CloudFormation

    AWS CloudFormation is AWS’s primary Infrastructure-as-Code (IaC) service. It is used to declaratively define your architecture on the AWS cloud, including resources such as S3 Buckets, Lambda Functions, and much more.

    CloudFormation Stack templates are written in either YAML or JSON and can be written manually or generated by higher-level tools such as AWS CDK, , Pulumi or .

    Make sure you’ve set up awslocal and that you have a running LocalStack instance.

    Use this code snippet and save the content in either or respectively.

    Check out the official AWS CloudFormation User Guide for a general introduction to CloudFormation concepts and a more comprehensive introduction on how to write CloudFormation templates.

    In general support for resources is currently limited. Prefer re-creating a stack rather than updating an existing one.

    The resources below are only available with a valid Pro license key. When running the Community Edition, any unsupported resources in the stack are ignored and will not get deployed.