generated from NHSDigital/nhs-notify-repository-template
-
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.
Merge pull request #131 from NHSDigital/CCM-8071_destroyenv_workflow
CCM-8071 destroy env fixes
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
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
12 changes: 12 additions & 0 deletions
12
infrastructure/terraform/components/branch/null_resource_initial_amplify_branch_build.tf
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,12 @@ | ||
resource "null_resource" "initial_amplify_branch_build" { | ||
# Trigger initial build when the branch is creates. Subsequent commits to the branch would cause builds anyway | ||
triggers = { | ||
csi = local.csi | ||
amplify_app_id = local.app.amplify["id"] | ||
amplify_branch_name = module.amplify_branch.name | ||
} | ||
|
||
provisioner "local-exec" { | ||
command = "aws amplify start-job --app-id ${self.triggers.amplify_app_id} --branch-name ${self.triggers.amplify_branch_name} --job-type 'RELEASE'" | ||
} | ||
} |