1111# TF_STATE_BUCKET_DESTROY
1212# AWS_EC2_PORT_LIST
1313# AWS_ELB_LISTEN_PORT
14+ # RDS_ENDPOINT
15+ # RDS_SECRETS_NAME
16+ # ECS_ALB_DNS
17+ # ECS_DNS
1418# ECR_REPO_ARN
1519# ECR_REPO_URL
1620
2832# 8 - success, destroy buckets and infrastructure
2933# 9 - success, destroy infrastructure
3034# 10 - success, ECR created
35+ # 11 - success. RDS created
36+ # 12 - success, ECS created
3137# 500 - cancelled
3238
3339# Function to process and return the result as a string
@@ -78,6 +84,20 @@ if [[ $SUCCESS == 'success' ]]; then
7884 result_string=" ## Deploy Complete! :rocket:
7985 ECR Repo ARN: ${ECR_REPO_ARN}
8086 ECR Repo URL: ${ECR_REPO_URL} "
87+ elif [[ -n $RDS_ENDPOINT ]] && [[ -n $RDS_SECRETS_NAME ]]; then
88+ SUMMARY_CODE=11
89+ result_string=" ## Deploy Complete! :rocket:
90+ RDS Endpoint: ${RDS_ENDPOINT}
91+ RDS Details Secret Manager name: ${RDS_SECRETS_NAME} "
92+ elif [[ -n $ECS_ALB_DNS ]] && ! [[ -n $ECS_DNS ]]; then
93+ SUMMARY_CODE=12
94+ result_string=" ## Deploy Complete! :rocket:
95+ ECS LB Endpoint: ${ECS_ALB_DNS} "
96+ elif [[ -n $ECS_ALB_DNS ]] && [[ -n $ECS_DNS ]]; then
97+ SUMMARY_CODE=12
98+ result_string=" ## Deploy Complete! :rocket:
99+ ECS LB Endpoing: ${ECS_ALB_DNS}
100+ ECS Public DNS: ${ECS_DNS} "
81101 elif [[ $BITOPS_CODE_ONLY == ' true' ]]; then
82102 if [[ $BITOPS_CODE_STORE == ' true' ]]; then
83103 SUMMARY_CODE=6
@@ -94,11 +114,11 @@ if [[ $SUCCESS == 'success' ]]; then
94114 elif [[ $TF_STACK_DESTROY == ' true' ]]; then
95115 if [[ $TF_STATE_BUCKET_DESTROY != ' true' ]]; then
96116 SUMMARY_CODE=9
97- result_string=" ## VM Destroyed! :boom:
117+ result_string=" ## Destroyed! :boom:
98118 Infrastructure should be gone now!"
99119 else
100120 SUMMARY_CODE=8
101- result_string=" ## VM Destroyed! :boom:
121+ result_string=" ## Destroyed! :boom:
102122 Buckets and infrastructure should be gone now!"
103123 fi
104124
0 commit comments