View a markdown version of this page

Create Networking Flexible Cost Allocation resources with AWS CloudFormation - Amazon Virtual Private Cloud

Create Networking Flexible Cost Allocation resources with AWS CloudFormation

Networking Flexible Cost Allocation (FCA) is integrated with AWS CloudFormation (CloudFormation), a service that helps you model and set up your AWS resources so that you can spend less time creating and managing your resources and infrastructure. You create a template that describes the FCA policies and associations that you want, and CloudFormation provisions and configures those resources for you.

FCA and CloudFormation templates

FCA provides the following CloudFormation resource types:

  • AWS::EC2::FcaPolicy – Creates a Networking Flexible Cost Allocation policy.

  • AWS::EC2::FcaPolicyAssociation – Associates a policy with a resource, or with an account, VPC, or subnet scope.

For the properties, return values, and syntax of each resource type, see Amazon EC2 resource type reference in the AWS CloudFormation User Guide.

To create an association, the IAM principal that deploys the stack also needs permission to describe the associated resource, for example ec2:DescribeNatGateways for a NAT gateway.

For complete examples that create policies with CloudFormation alongside the console and the AWS CLI, see the following use-case topics:

Learn more about CloudFormation

To learn more about CloudFormation, see the following resources: