|« PreviousNext »|
|Did this page help you? Yes | No | Tell us about it...|
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.
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
Launch the Create Stack wizard.
Open the AWS CloudFormation console at https://console.aws.amazon.com/cloudformation/.
Make sure US East (N. Virginia) is selected in the region selector in the top navigation bar.
Click Create Stack.
Select a template.
On the SELECT TEMPLATE page of the Create Stack wizard, type a stack name in the Stack Name box.
Click Provide a Template URL and type the location where you saved your modified template.
Click Show Advanced Options.
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.
Type CRM in the New topic name box.
Type your email address in the Email box and accept the rest of the default values.
Review your settings. You can make changes to the settings by clicking the edit link for a specific step in the process.
Click Create Stack.
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.
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.
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.