How to deploy AWS CloudFormation template

This how-to explains how to leverage the AWS CloudFormation feature to deploy IT solutions in a predictable and repeatable way. It will show how to import an AWS CloudFormation template and then how to deploy it using the AWS cloud account of your choice.

Prerequisites

  • Have a valid AWS subscription in Multi-Cloud Orchestrator.
  • Have an AWS CloudFormation template.
  • For this example we will use the following template WordPressSingleInstance

Upload the CloudFormation template

The CloudFormation template is going to be uploaded into the orchestrator repository of AWS CloudFormation templates.

  1. Go to APPLICATIONS -> CSEs. Step 1
  2. Press the "Import CSE template" button. Step 2
  3. Provide a name for the template, select Cloud Provider syntax as AWS, select a local file with .json extension containing a valid AWS template with "Select file".
  4. Press the "Import" button. Step 3
  5. The AWS template is available in the CSEs menu.

Deploy the CloudFormation template

From the orchestrator repository we will be able to deploy AWS CloudFormation templates using any of the configured AWS cloud accounts.

  1. Go to APPLICATIONS -> CSEs. Step 4
  2. Select the aws template from the list to expand it. Step 5
  3. Press the "New CSE deployment" button. Step 6
  4. Provide all mandatory fields for the selected AWS template, select the Cloud Account & Zone where you want to deploy. Then press the "Deploy CSE" button. Step 7
  5. You will see the new deployment in "Deploying" state.
  6. Wait until deployment is in "Deployed" state. Step 8
  7. If you want to see the deployment details click on the deployment name. Step 9
  8. You can see the aws template deployment parameters as well the generated output, in this case the url of the wordpress site.
  9. Copy and paste the wordpress url in your browser to go to the site. Step 10

Undeploy the CloudFormation deployment

We are going to undeploy all of the AWS resources deployed with the CloudFormation template.

  1. Go to APPLICATIONS -> CSEs. Step 11
  2. Select the aws template from the list to expand it. Step 12
  3. Press the "Actions menu" icon at the right of the deployment row and then press the "Undeploy deployment" button. Step 13
  4. Press the "Undeploy" button in the confirmation popup. Step 14
  5. You will see the deployment in "Undeploying" state.
  6. Wait until deployment disappears. Step 15

Additional Resources