Creating an CloudFormation Template Project in Visual Studio - AWS Toolkit with Amazon Q
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Creating an CloudFormation Template Project in Visual Studio

To create a template project

  1. In Visual Studio, choose File, choose New, and then choose Project.

  2. For Visual Studio 2017:

    In the New Project dialog box, expand Installed and select AWS.

    New Project dialog box with AWS CloudFormation Project and AWS Lambda Function Project templates.

    For Visual Studio 2019:

    In the New Project dialog box, ensure that the Language, Platform, and Project type drop-down boxes are set to "All ..." and type aws in the Search field.

    Create a new project dialog box with aws search filter and AWS project templates listed.
  3. Select the AWS CloudFormation Project template.

  4. For Visual Studio 2017:

    Enter the desired Name, Location, etc., for your template project, and then click OK.

    For Visual Studio 2019:

    Click Next. In the next dialog, enter the desired Name, Location, etc., for your template project, and then click Create.

  5. On the Select Project Source page, choose the source of the template you will create:

    • Create with empty template generates a new, empty CloudFormation template.

    • Create from existing AWS |CFN| stack generates a template from an existing stack in your AWS account. (The stack doesn't need to have a status of CREATE_COMPLETE.)

    • Select sample template generates a template from one of the CloudFormation sample templates.

    New AWS CloudFormation Project dialog with options to create empty template or from existing stack.
  6. To complete the creation of your CloudFormation template project, choose Finish.