Skip to content

AWSCC Provider

The awscc provider manages AWS resources through the AWS Cloud Control API.

Configuration

provider awscc {
region = awscc.Region.ap_northeast_1
}

Usage

Resources are defined using the awscc.<service>.<resource_type> syntax:

let vpc = awscc.ec2.vpc {
name = 'my-vpc'
cidr_block = '10.0.0.0/16'
tags = {
Environment = 'production'
}
}

Named resources (using let) can be referenced by other resources:

let subnet = awscc.ec2.subnet {
name = 'my-subnet'
vpc_id = vpc.vpc_id
cidr_block = '10.0.1.0/24'
availability_zone = 'ap-northeast-1a'
}

Enum Values

Some attributes accept enum values. These can be specified in three formats:

  • Bare value: instance_tenancy = default
  • TypeName.value: instance_tenancy = InstanceTenancy.default
  • Full namespace: instance_tenancy = awscc.ec2.vpc.InstanceTenancy.default