aws.ec2-route-table-association resource¶
Description¶
RouteTableAssociation links one route table to a subnet or a gateway. Exactly one of subnet-id or gateway-id names what the table attaches to, and both are fixed at create time, so a change to either replaces the association; the route table is changed in place by ReplaceRouteTableAssociation, which mints a fresh association id. AssociateRouteTable creates the association and returns its id; the state is not in that response, so the association is waited to associated before the resource reports it.
Source: internal/service/ec2/route_table_association_rsrc.go:39
Example usage:
imports: {
aws: 'github.com/cloudboss/unobin-library-aws'
}
resources: {
example: aws.ec2-route-table-association {
# Set input fields here.
}
}
Inputs¶
route-table-id
string
subnet-id
optional(string)
gateway-id
optional(string)
Input Constraints¶
Field combinations
Exactly one of subnet-id or gateway-id.
Outputs¶
route-table-association-id
string