Version: v1.2

Alibaba Cloud Redis

Description

Terraform configuration for Alibaba Cloud Redis object

Sample

  1. apiVersion: core.oam.dev/v1beta1
  2. kind: Application
  3. metadata:
  4. name: redis-cloud-source
  5. spec:
  6. components:
  7. - name: sample-redis
  8. type: alibaba-redis
  9. properties:
  10. instance_name: oam-redis
  11. account_name: oam
  12. password: Xyfff83jfewGGfaked
  13. writeConnectionSecretToRef:
  14. name: redis-conn

Specification

Properties

NameDescriptionTypeRequiredDefault
passwordRedis instance account passwordstringtrue
instance_nameRedis instance namestringtrue
account_nameRedis instance user account namestringtrue
writeConnectionSecretToRefThe secret which the cloud resource connection will be written towriteConnectionSecretToReffalse

writeConnectionSecretToRef

NameDescriptionTypeRequiredDefault
nameThe secret name which the cloud resource connection will be written tostringtrue
namespaceThe secret namespace which the cloud resource connection will be written tostringfalse

Outputs

If writeConnectionSecretToRef is set, a secret will be generated with these keys as below:

NameDescription
REDIS_NAMEredis instance name
REDIS_USERredis instance username
REDIS_PASSWORDredis instance password
REDIS_REDIS_CONNECT_ADDRESSredis connect address