samkio / repo-sandbox

Playground for testing repo, GitHub actions and AWS CI/CD features.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

repo-sandbox

Playground for testing repo, GitHub actions and AWS CI/CD features.

AWS Bootstrapping Setup

  1. Run cdk bootstrap aws://123456789012/eu-west-2
    • NOTE: Only required if the AWS environment is not already bootstrapped.
    • NOTE: Replaced AWS Account ID as appropriate.
    • NOTE: This can be done via AWS CloudShell.
  2. Run the setup.template CloudFormation template via CloudFormation
    • NOTE: OIDC Provider ARN is optional. If not provided it will generate one. (Useful if one has already been created)
    • Run this for every environment that will be created in the appropriate AWS account ("Development", "Integration", "Production")
    • Set the GitHub secret values 'DEV_DEPLOY_ROLE', 'INT_DEPLOY_ROLE' and 'PROD_DEPLOY_ROLE' to be the associated arns created previously at the environment level (not repo level) in GitHub.

CloudFormation Quick Links:

NOTE: Repository should require approval to run actions for non-codeowners.

Further docs: https://www.eliasbrange.dev/posts/secure-aws-deploys-from-github-actions-with-oidc/

About

Playground for testing repo, GitHub actions and AWS CI/CD features.


Languages

Language:TypeScript 67.8%Language:HTML 14.5%Language:JavaScript 9.8%Language:CSS 7.9%