File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
.github/actions/configure-aws-credentials Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 15
15
using : " composite"
16
16
steps :
17
17
- name : Get AWS account authentication details (AWS account, IAM role, AWS region)
18
+ env :
19
+ TF_LOG : DEBUG
20
+ TF_LOG_PATH : ' ./terraform-debug.log'
18
21
run : |
22
+ # Set up environment for detailed Terraform logging
23
+ echo "Enabling Terraform Debug Logging"
24
+ export TF_LOG="${{ env.TF_LOG }}"
25
+ export TF_LOG_PATH="${{ env.TF_LOG_PATH }}"
26
+
19
27
# Get AWS account authentication details (AWS account, IAM role, AWS region)
20
28
# associated with the application environment to figure out which AWS
21
29
# account to log into, which IAM role to assume, and which AWS region to use
50
58
echo "Setting env vars AWS_ROLE_TO_ASSUME and AWS_REGION..."
51
59
echo "AWS_ROLE_TO_ASSUME=$AWS_ROLE_TO_ASSUME" >> "$GITHUB_ENV"
52
60
echo "AWS_REGION=$AWS_REGION" >> "$GITHUB_ENV"
61
+
62
+ # Output Terraform log file contents
63
+ cat "$TF_LOG_PATH"
53
64
shell : bash
54
65
- name : Configure AWS credentials
55
66
uses : aws-actions/configure-aws-credentials@v3
You can’t perform that action at this time.
0 commit comments