Skip to content

Commit

Permalink
Add CODEBUILD_CONFIG_AUTO_DISCOVER environment variable of CodeBuild …
Browse files Browse the repository at this point in the history
…example

AWS started setting an environment variable by default to auto discover
reports (CODEBUILD_CONFIG_AUTO_DISCOVER) when creating CodeBuild projects.
This led to `pulumi preview` showing a diff after the initial deployment.
  • Loading branch information
flostadler committed Apr 18, 2024
1 parent 0d3931c commit 81f45e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/codebuild-project-py/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@
"imagePullCredentialsType": "CODEBUILD",
"type": "LINUX_CONTAINER",
"privilegedMode": True, # Required to use docker
"environmentVariables": [{
"name": "CODEBUILD_CONFIG_AUTO_DISCOVER",
"value": "true",
"type": "PLAINTEXT"
}]
},
service_role=cicd_role.arn,
source={
Expand Down

0 comments on commit 81f45e7

Please sign in to comment.