Skip to content
Paul Duvall edited this page Nov 11, 2019 · 26 revisions

2.2 AWS Secrets Manager

Review and ensure that you have setup your development environment before going through the steps below.

Create an RDS Database

AWSTemplateFormatVersion: "2010-09-09"
Resources: 
  MyDB: 
    Type: "AWS::RDS::DBInstance"
    Properties: 
      AllocatedStorage: "100"
      DBInstanceClass: db.t3.small
      Engine: MySQL
      EngineVersion: "5.7.22"
      Iops: "1000"
      MasterUserPassword: "password"
      MasterUsername: "username"
aws cloudformation create-stack --stack-name ceoa-2-rds --template-body file:///home/ec2-user/environment/ceoa/rds.yml --capabilities CAPABILITY_NAMED_IAM --disable-rollback

Create a Secret

  1. Go to the Secrets Manager Console.
  2. Click Secrets and click the Store a new secret button.
  3. Click on the Other type of secrets radio button.
  4. Enter username and bfranklin in the first row.
  5. Enter password and F@under in the second row.
  6. Enter a Secret name and description on the Secret name and description page and click Next.

Additional Resources

https://raw.githubusercontent.com/PaulDuvall/aws-compliance-workshop/master/lesson6-continuous/rds.yml

Clone this wiki locally