Skip to content

Commit 59467cc

Browse files
committed
Add more debug in terraform script
1 parent cf5e660 commit 59467cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/servicedeployer/_static/terraform_deployer_run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ cleanup() {
1414
set -x
1515
terraform destroy -auto-approve
1616

17+
echo "After Terraform destroy command"
18+
aws s3api list-buckets --query "Buckets[].Name" --output text | tr '\t' '\n'
19+
1720
exit $r
1821
}
1922
trap cleanup EXIT INT TERM
@@ -25,6 +28,7 @@ export AWS_DEFAULT_REGION="${AWS_REGION}"
2528
echo "Before Terraform Apply command"
2629
aws s3api list-buckets --query "Buckets[].Name" --output text | tr '\t' '\n'
2730

31+
export TF_LOG="DEBUG"
2832
terraform apply -auto-approve
2933

3034
echo "After Terraform Apply command"

0 commit comments

Comments
 (0)