kubevela.github.io/docs/reference/addons/terraform.md

1.8 KiB

title
Addon Cloud Resources

Terraform addon

vela addon enable terraform

Terraform Provider addon for Alibaba Cloud

Enable Terraform Alibaba Cloud Provider as below to provision and/or consume cloud resources.

Here is how to get access key. Set the value for ALICLOUD_REGION by picking one RegionId from Alibaba Cloud region list. You can also set the value for parameter ALICLOUD_SECURITY_TOKEN, which is optional, per this doc.

vela addon enable terraform-alibaba ALICLOUD_ACCESS_KEY=<xxx> ALICLOUD_SECRET_KEY=<yyy> ALICLOUD_REGION=<region>

Terraform Provider addon for Azure

Enable Terraform Azure Provider as below to provision and/or consume cloud resources.

Set these parameters below per Authenticate Terraform to Azure.

vela addon enable terraform-azure ARM_CLIENT_ID=<aaa> ARM_CLIENT_SECRET=<bbb> ARM_SUBSCRIPTION_ID=<ccc> ARM_TENANT_ID=<ddd>

Terraform Provider addon for AWS

Enable Terraform AWS Provider as below to provision and/or consume cloud resources.

Set these parameters below per Authenticate Terraform to AWS.

vela addon enable terraform-aws AWS_ACCESS_KEY_ID=<aaa> AWS_SECRET_ACCESS_KEY=<bbb> AWS_DEFAULT_REGION=<region>