Hey guys, looking to get some help with this terra...
# terraform
n
Hey guys, looking to get some help with this terraform module https://github.com/cloudposse/terraform-aws-codebuild/tree/main I am creating codebuild projects using atmos and the above module it's creating the env vars by default which i have not defined and i'm unable to exempt them. any ideas?? the env vars that it currently adds
Copy code
AWS_REGION
us-east-1
PLAINTEXT

AWS_ACCOUNT_ID
11111111
PLAINTEXT

IMAGE_REPO_NAME
UNSET
PLAINTEXT

IMAGE_TAG
latest
PLAINTEXT
I want to exempt IMAGE_REPO_NAME and IMAGE_TAG variables
m
Have you tried the "Read the code, Luke!" approach? It looks like if you set the
var.image_repo_name
and
var.image_tag
to empty strings, those variables will not be set, see https://github.com/cloudposse/terraform-aws-codebuild/blob/cf1073b923ce7fa689b9da7bbcf1a6f7d02b32a9/main.tf#L425-L439