Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.
/ infra-ci Public archive

CI pipeline for terraform using terraform

Notifications You must be signed in to change notification settings

brave/infra-ci

Repository files navigation

Infra CI (WIP)

Terraform CI with no external dependencies to AWS. This does not actually apply the changes currently.

Bootstrap

Currently this expects cloudflare_parameter_name and fastly_parameter_name to be references to SSM parameter store items containing CLOUDFLARE_TOKEN and FASTLY_API_KEY. Later this would likely be referenced cross account. You can use the following to set these in AWS.

aws ssm put-parameter --type SecureString --name '/CodeBuild/FASTLY_API_KEY' --value "$(echo -n 'enter secret: ' 1>&2; read s; echo -n $s)"
aws ssm put-parameter --type SecureString --name '/CodeBuild/CLOUDFLARE_TOKEN' --value "$(echo -n 'enter secret: ' 1>&2; read s; echo -n $s)"

With docker installed run the following

# <profile> is the profile to load from ~/.aws/credentials

./scripts/tf.sh <profile> init
./scripts/tf.sh <profile> apply

Worth noting ./scripts/tf.sh passes arguments to terraform so can run any other tf commands as well.

About

CI pipeline for terraform using terraform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published