Protecting AWS resources with MDC

⌛ Estimated time to complete this lab: 60 minutes

Download the zip that contains the CloudFormation Templates for deploying AWS resources (CloudFormation-Templates.zip) 👉 here

Step 1 - Deploying AWS Resources

NOTE

We will deploy the resources in us-east-2 so please make sure to change your AWS Region to Ohio

deploymentRegion

REQUIREMENTS

1. Permissions

NOTE

You will not have this issue in a new Account but it's good to know as your customer might have this issue.

This process will require certain permissions to create a few resources in your Account. Ensure you are using a Role that has the ability to create the following resources

  1. IAM Role
  2. IAM Managed Policy
  3. VPC
  4. IGW
  5. Route tables
  6. Security Group
  7. NAT Gateway
  8. Elastic IP (EIP)
  9. EC2 Instance
  10. S3 Bucket

2. Check your Service Quotas (Limits)

NOTE

You will not have this issue in a new Account but it's good to know as your customer might have this issue

In addition to the IAM Permissions you will need to verify that you will not run into an issue with Service Quotas.

The best place to check is with the Service Quotas Console

screenshot

Create an S3 bucket in us-east-2 'Ohio'

The following guide can walk you through how to create an S3 bucket if you are not familiar. Make sure to note the name of the bucket that you create as we will need this in the next step.

NOTE

You need to deploy the cloudformation template in the same region as the bucket that you create

Upload files to S3

Copy the uncompressed files from "CloudFormation-Templates.zip" into your S3 bucket. There should be 6 YML files [SelfServiceSec.yml, SelfServiceSecEC2.yml, SelfServiceSecIAM.yml, SelfServiceSecRDS.yml, SelfServiceSecS3.yml, SelfServiceSecVPC.yml]

Copy the S3 URL

Example

Object URL
https://s3-us-west-2.amazonaws.com/Your-Bucket-Name-Here/SelfServiceSec.yml

CloudFormation Console

Go to the CloudFormation console and select “Create Stack"

screenshot

S3 Load the imported template

Select Amazon S3 URL as the source and copy and paste the S3 URL from the step above:

example:
https://s3-us-west-2.amazonaws.com/Your-Bucket-Name-Here/SelfServiceSec.yml

Tagging, Advanced Options and Deploying the stack

1. Unique Stack Name

Enter a unique stack name

Parameters

S3 bucket name

2. Tagging and Role for CloudFormation

Leave this blank and CloudFormation will use the permissions that you currently have (this is the default behavior).

3. Advanced Options

No Advanced Options are required.

4. Deploying the stack

On the next screen, before you select “Create Stack” be sure to check the two (2) check boxes

NOTE

The stack deployment will fail if you Do Not check these two boxes.

screenshot

Cleanup

NOTE

Do not Clean Up until after the lab is complete.

You can go to CloudFormation and delete the CloudFormation stack.

screenshot

Once the stack is successfully deployed, let's go to Step 2 and connect your AWS account to MDC! click 👉 here