-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: DBTP-914 - Environment pipeline terraform apply (#116)
Co-authored-by: Anthony Roy <[email protected]> Co-authored-by: Will Gibson <[email protected]>
- Loading branch information
1 parent
9de0762
commit a7f701c
Showing
11 changed files
with
1,195 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: 0.2 | ||
phases: | ||
install: | ||
commands: | ||
- export PATH="$CODEBUILD_SRC_DIR/build-tools:$PATH" | ||
- mv $CODEBUILD_SRC_DIR_terraform_plan/terraform/${ENVIRONMENT}/plan.tfplan $CODEBUILD_SRC_DIR/terraform/${ENVIRONMENT}/ | ||
build: | ||
commands: | ||
- echo "Terraform Apply Phase" | ||
- echo "Working on environment ${ENVIRONMENT}" | ||
- cd terraform/${ENVIRONMENT} | ||
- terraform init | ||
- terraform apply plan.tfplan | ||
artifacts: | ||
files: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
version: 0.2 | ||
|
||
env: | ||
exported-variables: | ||
- BUILD_ID | ||
|
||
phases: | ||
install: | ||
commands: | ||
- export PATH="$CODEBUILD_SRC_DIR/build-tools:$PATH" | ||
build: | ||
commands: | ||
- echo "Terraform Plan Phase" | ||
- echo "Working on environment ${ENVIRONMENT}" | ||
- cd terraform/${ENVIRONMENT} | ||
- terraform init | ||
- terraform plan -out=plan.tfplan | ||
post_build: | ||
commands: | ||
- export BUILD_ID="$CODEBUILD_BUILD_ID" | ||
artifacts: | ||
files: | ||
- terraform/${ENVIRONMENT}/plan.tfplan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.