Techniques for Securing an Application in AWS

1 hour
  • 4 Learning Objectives

About this Hands-on Lab

As a newly hired DevOps Engineer, you have been given objectives to strengthen the security posture around a high-profile application. You are given three specific tasks: 1) Move secrets from a CloudFormation template to Secrets Manager and reference them from the template, 2) Configure a web access control list to guard against specific OWASP Top Ten items, and 3) Configure an EC2 instance to be managed by Amazon Inspector.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create Secrets in Secrets Manager
  1. View the CF template to move the username/password to Secrets Manager.
  2. Create a secret in Secrets Manager named dbsecret (make sure to get the name exactly right for grading).
Update the CloudFormation Template
  1. Edit the template to reference secrets in Secrets Manager.
  2. Update the template using the reference to Secrets Manager.

    Hint: Don’t struggle with the syntax on this. Check out this AWS page.

Configure the Web ACL
  1. From the WAF Console, select Create Web ACL.
  2. Add the AWS Managed Rules: Core rule set, SQL database rule set, and known bad inputs.

Note: This Web ACL is being created to protect an Application Load Balancer (which we won’t create in this lab) in the Northern Virginia Region.

Configure an EC2 Instance to be Managed by Systems Manager
  1. In IAM, select Create Role.
  2. Attach the AmazonSSMManagedInstanceCore policy to the role.
  3. Launch an EC2 Instance with the size t3.micro and the name instance4ssm1 and attach the role.

Additional Resources

As a new Devops Engineer, you have been assigned three tasks:

  1. Remove secrets from a CloudFormation template and store them in Secrets Manager, so that they can be referenced by the CloudFormation template.
  2. Create a web access control list which will help protect against OWASP Top Ten items 1, 3, and 6.
  3. Launch an EC2 instance and configure it in a way that will enable it to be managed by AWS Systems Manager.

Log in to the lab environment with the cloud_user credentials provided. Ensure you are using the us-east-1 Region throughout the lab.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?