Getting Started Guide
AWS Web Application Hosting for Microsoft Windows
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

Create an AWS CloudFormation Stack

Now that you have modified your AWS CloudFormation template, let's create a new stack to launch your new environment. Before you launch your new stack, you can verify that it works by cleaning up all your AWS resources except for your key pair and custom AMI. For instructions on how to clean up your resources see Step 14: Clean Up.

Note

AWS CloudFormation is a free service. However, you are charged for the AWS resources you include in your stacks at the current rates for each. For more information about AWS pricing, go to the detail page for each product on http://aws.amazon.com/pricing.

To create an AWS CloudFormation stack

  1. Launch the Create Stack wizard.

    1. Open the AWS CloudFormation console at https://console.aws.amazon.com/cloudformation/.

    2. Make sure US East (N.Virginia) is selected in the region selector in the top navigation bar.

    3. Click Create Stack.

  2. Select a template.

    1. On the SELECT TEMPLATE page of the Create Stack wizard, type a stack name in the Stack Name box.

    2. Click Provide a Template URL and type the location where you saved your modified template.

    3. Click Show Advanced Options.

    4. Select Create a new SNS topic from the Amazon SNS Topic drop-down menu. You will receive email notifications when resources are created and when they are deleted.

    5. Type CRM in the New topic name box.

    6. Type your email address in the Email box and accept the rest of the default values.

    7. Click Continue.

  3. Review your settings. You can make changes to the settings by clicking the edit link for a specific step in the process.

  4. Click Create Stack.

  5. Click Close to close the confirmation window.

    The confirmation window closes, returning you to the CloudFormation page. Your new AWS CloudFormation template appears in the list with the status set to CREATE_IN_PROGRESS.

    Note

    Your stack will take a few minutes to create. Make sure to click Refresh in the Stacks page to see when the template has successfully been created.

Where You're At

Congratulations! You have just launched your new environment using the AWS resources you created in this tutorial. Your Elastic Load Balancer is now pointing to both of your Amazon EC2 instances across multiple Availability Zones.

AWS CloudFormation creates a new endpoint for your Amazon RDS database. You'll need to update the Amazon RDS endpoint on each instance in your default.aspx.cs file just as you did in Modify the Application. You can connect to your Amazon EC2 instances using the new Administrator password that you created when you first connected to your instance. You'll also notice that you don't see the images that you stored in your original Amazon RDS database because you are now pointint to a new database. To restore your original images you can create a backup of your database and then restore it from snapshot. For more information about backing up your Amazon RDS database, see Backing Up and Restoring DB Instances in the Amazon Relational Database Service User Guide. Now let's clean up all of your AWS resources. Deleting your AWS CloudFormation stack will delete all of the AWS resources it just created.

To delete an AWS CloudFormation stack

  1. At the top of the AWS Management Console, click the AWS CloudFormation tab.

  2. Click the stack you want to delete, and click Delete Stack.