Version: v1.2

阿里云 VPC

Description

Terraform configuration for Alibaba Cloud VPC

Samples

  1. apiVersion: core.oam.dev/v1beta1
  2. kind: Application
  3. metadata:
  4. name: app-vpc-sample
  5. spec:
  6. components:
  7. - name: sample-vpc
  8. type: alibaba-vpc
  9. properties:
  10. vpc_cidr: "172.16.0.0/12"
  11. writeConnectionSecretToRef:
  12. name: vpc-conn

Specification

Properties

NameDescriptionTypeRequiredDefault
vpc_nameThe vpc name used to launch a new vpc.stringtrue
vpc_descriptionThe vpc description used to launch a new vpc.stringtrue
vpc_cidrThe cidr block used to launch a new vpc.stringtrue
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
VPC_IDThe vpc id of the newly created vpc.