Brad Poulton 359144f5f3 Adds module for customer portal il y a 4 ans
..
README.md 359144f5f3 Adds module for customer portal il y a 4 ans
aws-efs-utils.tf 08b86a9ea0 Adds Codebuild_ECR to GC il y a 4 ans
collectd-project.tf 08b86a9ea0 Adds Codebuild_ECR to GC il y a 4 ans
ecr.tf 08b86a9ea0 Adds Codebuild_ECR to GC il y a 4 ans
ecr_pop_user.tf 08b86a9ea0 Adds Codebuild_ECR to GC il y a 4 ans
github-webhooks.tf 08b86a9ea0 Adds Codebuild_ECR to GC il y a 4 ans
iam.tf 08b86a9ea0 Adds Codebuild_ECR to GC il y a 4 ans
kms.tf 08b86a9ea0 Adds Codebuild_ECR to GC il y a 4 ans
lame.tf 08b86a9ea0 Adds Codebuild_ECR to GC il y a 4 ans
main.tf 359144f5f3 Adds module for customer portal il y a 4 ans
mcas-container.tf 08b86a9ea0 Adds Codebuild_ECR to GC il y a 4 ans
portal_container.tf 08b86a9ea0 Adds Codebuild_ECR to GC il y a 4 ans
stunnel.tf 08b86a9ea0 Adds Codebuild_ECR to GC il y a 4 ans
syslog-ng-container.tf 08b86a9ea0 Adds Codebuild_ECR to GC il y a 4 ans
syslog-ng-project.tf 08b86a9ea0 Adds Codebuild_ECR to GC il y a 4 ans
tmux-project.tf 08b86a9ea0 Adds Codebuild_ECR to GC il y a 4 ans
vars.tf 08b86a9ea0 Adds Codebuild_ECR to GC il y a 4 ans
xdr-unbound-container.tf 08b86a9ea0 Adds Codebuild_ECR to GC il y a 4 ans

README.md

How to Use this Module

This module is where the CodeBuild projects are created. It uses the Terraform GitHub Provider and requires a Personal Access Token. This should be your Personal Access Token not mdr-aws-codebuild's token. The provider will look in the environmental variables for the token.

export GITHUB_TOKEN=<gihub_token>

This module should NOT create the github repo. That is a manual process. I am not comfortable with terraform adding/removing github repos. The github repo should have the same name as the name variable in the terrafgrunt.hcl file. The user associated with the Personal Access Token needs to have admin permissions on the github repo.

Github Service Account ( mdr-aws-codebuild )

AWS CodeBuild needs a Github Personal Access Token to pull code after the code in a repository has been updated. Terraform is capable of storing the Github Personal Access Token, but that is a bad idea. A better idea is a service account in Github that gives CodeBuild access to specific repositories. This user will need access to repositories in different organizations. The login credentials as well as the Personal Access Token for mdr-aws-codebuild are stored in Vault.

The service account (mdr-aws-codebuild) needs to have a personal access token manually placed into the aws console.