Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.41 KB

README.md

File metadata and controls

27 lines (22 loc) · 1.41 KB

Bootstrap

This directory holds a single Cloudformation template to set up the following

  • A Single VPC, NAT Gateway, IG, Private/Public Subnet, VPC Endpoints to ensure private networking
  • GithubRunner attached to your specified Github repository
  • Terraform Remote State S3 Bucket and DynamoDB
  • S3 bucket containing the exercise's data to be ingested and transformed

Setup

  1. Create a Github Personal Access Token with the Repo Scope. This will be used to generate a token to register a GithubRunner. github-repo-scope

  2. To reduce clashing with other AWS credentials, the bootstrap script uses an AWS_PROFILE set to data-derp. An AWS profile named data-derp with valid credentials to your AWS account must exist. For those expected to assume a role (within the same account), there is a helper function:

./switch-role -b <starting-role> -t <target-role>
  1. Create the Stack
./aws-deps -p your-project-name -m your-team-name -u your-github-username
  1. When prompted, enter your Personal Access Token (created in step 1)
Enter host password for user 'your-github-username': <the-personal-access-token>
  1. View your Cloudformation Stacks in the AWS Console