Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Latest commit

 

History

History

Terraform a new AWS Secrets Manager instance to manage secrets

Based on the following Terraform example.

Assumes:

  • AWS credentials are passed as environment variables
    • See AWS_* arguments here

Local testing

Copy sample configuration

cp terraform.tfvars.sample terraform.tfvars

Edit terraform.tfvars

Amend the values for

  • alias

Specify environment variables

export AWS_ACCESS_KEY_ID="xxx"
export AWS_SECRET_ACCESS_KEY="xxx"
export AWS_DEFAULT_REGION="xxx"

Replace occurrences of xxx above with appropriate values

Create secrets manager instance

./create-secrets-manager.sh

Teardown secrets manager instance

./destroy-secrets-manager.sh

Github Action

This action is workflow dispatched with inputs.

See aws-secrets-manager-dispatch.yml