Skip to content

Commit 69e951f

Browse files
committed
Using AWS_PROFILE conditionally
1 parent d1f685b commit 69e951f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.github/workflows/pr-deploy-to-int.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ jobs:
4141
run: |
4242
make init
4343
44-
4544
- name: Terraform Plan
4645
working-directory: ./terraform_old
4746
run: |

terraform_old/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
environment = $(ENVIRONMENT)
44
aws_profile = $(AWS_PROFILE) #apim-dev # Leave this here for pipeline
5-
tf_cmd = AWS_PROFILE=$(aws_profile) terraform
5+
tf_cmd = $(if $(AWS_PROFILE),AWS_PROFILE=$(AWS_PROFILE) ,)terraform
66

77
project_name = immunisation
88
project_short_name = imms

0 commit comments

Comments
 (0)