Skip to content

govuk-one-login/devplatform-demo-sam-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dev Platform Demo SAM application

This repository contains a simple SAM application that uses a variety of common resources to help develop the dev platform pipelines.

Usage

This repository contains GitHub workflows that deploy two separate artifacts by interfacing with AWS CodePipelines defined in the di-devplatform-demo-pipelines repository.

The GitHub workflows make use of the following secrets:

  • CONTAINER_SIGN_KMS_KEY - The KMS key ARN signing container images for node, sam-app and aws-integration-test
  • NODE_ARTIFACT_BUCKET - The name of the S3 bucket to deploy node to
  • NODE_ROLE_TO_ASSUME - The ARN of the AWS role to assume when deploying node
  • PARAMETERS_ARTIFACT_SOURCE_BUCKET_NAME - The name of the S3 bucket to deploy parameters to
  • PARAMETERS_GH_ACTIONS_ROLE_ARN - The ARN of the AWS role to assume when deploying parameters
  • SIGNING_PROFILE_NAME - The name of the AWS code signer profile to use
  • SAM_APP_ARTIFACT_BUCKET_NAME - The name of the S3 bucket to deploy sam-app to
  • SAM_APP_GH_ACTIONS_ROLE_ARN - The ARN of the AWS role to assume when deploying sam-app
  • SAM_APP_VALIDATE_ROLE_ARN - The ARN of the AWS role that enables validation of the sam-app SAM template
  • SAM_APP_ECR_REPOSITORY_BUILD - The name of the ECR repository that contains the test image for the sam-app in the build environment
  • SAM_APP_ECR_REPOSITORY_STAGING - The name of the ECR repository that contains the test image for the sam-app in the staging environment
  • SAM_APP2_ARTIFACT_BUCKET_NAME - The name of the S3 bucket to deploy sam-app2 to
  • SAM_APP2_GH_ACTIONS_ROLE_ARN - The ARN of the AWS role to assume when deploying sam-app2

The values for these secrets are the Terraform outputs of the di-devplatform-demo-pipelines repository.

Getting Started

Tools required:

  • AWS CLI with credentials to your target AWS account
  • AWS SAM CLI (brew install aws/tap/aws-sam-cli)
  • commitlint (npm install -g @commitlint/cli)
  • pre-commit (pip install pre-commit && pre-commit install && pre-commit install -tprepare-commit-msg -tcommit-msg)
  • GDS CLI (brew tap alphagov/gds && brew install gds-cli)

About

Digital identity dev platform demo SAM project

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 36