File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: Deploy Backup vault infrastructure
2
2
run-name : Deploy backup vault infrastructure for ${{ inputs.environment }}
3
3
4
4
on :
5
+ push :
5
6
workflow_dispatch :
6
7
inputs :
7
8
environment :
46
47
terraform_version : 1.10.5
47
48
- name : Terraform Plan
48
49
id : plan
50
+ env :
51
+ PERSONAL_ACCESS_TOKEN : ${{ secrets.BACKUP_MODULES_ACCESS_TOKEN }}
49
52
run : |
50
53
set -e
54
+ git config --global url."https://foo:${PERSONAL_ACCESS_TOKEN}@github.com/NHSDigital".insteadOf "https://github.com/NHSDigital"
51
55
terraform init -backend-config="env/${{ inputs.environment }}-backend.hcl" -upgrade
52
56
terraform plan -var-file="env/${{ inputs.environment }}.tfvars" \
53
57
-out ${{ runner.temp }}/tfplan | tee ${{ runner.temp }}/tf_stdout
86
90
with :
87
91
terraform_version : 1.10.5
88
92
- name : Apply the changes
93
+ env :
94
+ PERSONAL_ACCESS_TOKEN : ${{ secrets.BACKUP_MODULES_ACCESS_TOKEN }}
89
95
run : |
90
96
set -e
97
+ git config --global url."https://foo:${PERSONAL_ACCESS_TOKEN}@github.com/NHSDigital".insteadOf "https://github.com/NHSDigital"
91
98
terraform init -backend-config="env/${{ inputs.environment }}-backend.hcl" -upgrade
92
99
terraform apply ${{ runner.temp }}/tfplan
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ resource "aws_kms_key" "backup_notifications" {
116
116
# Now we can deploy the source and destination modules, referencing the resources we've created above.
117
117
118
118
module "source" {
119
- source = " git@ github.com: NHSDigital/terraform-aws-backup.git//modules/aws-backup-source?ref=v1.1.0"
119
+ source = " github.com/ NHSDigital/terraform-aws-backup.git//modules/aws-backup-source?ref=v1.1.0"
120
120
121
121
backup_copy_vault_account_id = local. destination_account_id
122
122
backup_copy_vault_arn = var. destination_vault_arn
You can’t perform that action at this time.
0 commit comments