Skip to content

Code Examples for Omaha AWS Meetup Presentation - Feb 5, 2018

License

Notifications You must be signed in to change notification settings

jdolinski/aws-user-group-demo

Repository files navigation

Your City & County on the AWS Cloud

February 5, 2018

This repository is a collection of AWS CloudFormation demo examples to help manage your environment in a DevSecOps approach. Using the fictitious business case "Your Company’s AWS Footprint and Usage is Growing Beyond a Single Business Unit Account that was Easily Managed by a Small Team of Two", the scripts show the ease at which AWS can help you automate.

Some examples are not region agnostic and will need to be modified to run in all regions supporting the services. Execution should use "us-east-1".

Important: Some services used in this project are excluded from the free tier. You will be charged for provisioning resources.

References

AWS Services Used

  • AutoScaling
  • CodeBuild
  • CodeCommit
  • CodeDeploy
  • CodePipeline
  • CloudFormation
  • CloudWatch
  • Config
  • DynamoDB
  • EC2
  • EFS
  • GuardDuty
  • IAM
  • Inspector
  • Lambda
  • RDS
  • Route 53
  • S3
  • Shield
  • Systems Manager
  • Trusted Advisor
  • VPC

Prerequisites

Getting Started

First clone this repo: git clone https://github.com/jdolinski/aws-user-group-demo

Initial Setup

Open CloudFormation on your AWS account and create a stack from template 00-pipeline-to-service-catalog.yaml

This will create your AWS CodeCommit Repository.

You will need to Setup your repository authentication and clone your new AWS Repository and push this project into it.

When you push your code to AWS Repo it will invoke the pipeline to sync your service catalog.

Next browse to service catalog and find the product-10-shared-storage.yaml Launch this product and it will create two buckets for source code. Code deployments to these buckets are usually done via a CI tool such as Jenkins. However we will need to manually upload two zip packages.

  1. In the Lambda code bucket, upload "your-project-location"/scripts/autosubnet/autosubnet.zip

  2. In the Application code bucket, upload "your-project-location"/cms/Joomla_3.8.4-Stable-Full_Package.zip

Run Templates

The templates will create stacks and provision additional resources (not all free). You can run the templates in the numerical product order. Some templates will use cross stack references for input into the next template.

Final Steps

Remember to tear down all your stacks to avoid unnecessary costs in your AWS account.

About

Code Examples for Omaha AWS Meetup Presentation - Feb 5, 2018

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published