Skip to content

Commit

Permalink
confugre profile
Browse files Browse the repository at this point in the history
  • Loading branch information
iampato committed Oct 26, 2023
1 parent 6e49dba commit 85ade1c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,16 @@ jobs:
with:
terraform_version: "1.1.7"

- name: Add profile credentials to ~/.aws/credentials
run: |
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} --profile patrick1
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} --profile patrick1
- name: Initialize Terraform
run: cd deployment && terraform init

- name: Plan Changes
run: cd deployment && terraform plan -out=tfplan
run: cd deployment && terraform plan

- name: Apply Changes
run: cd deployment && terraform apply -auto-approve tfplan
Expand Down

0 comments on commit 85ade1c

Please sign in to comment.