View a markdown version of this page

Create Networking Flexible Cost Allocation resources with Amazon CloudFormation - Amazon Virtual Private Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Create Networking Flexible Cost Allocation resources with Amazon CloudFormation

Networking Flexible Cost Allocation (FCA) is integrated with Amazon CloudFormation (Amazon CloudFormation), a service that helps you model and set up your Amazon 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 Amazon CloudFormation provisions and configures those resources for you.

FCA and Amazon CloudFormation templates

FCA provides the following Amazon 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 Amazon 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 Amazon CloudFormation alongside the console and the Amazon CLI, see the following use-case topics:

Learn more about Amazon CloudFormation

To learn more about Amazon CloudFormation, see the following resources: