11
11
# TF_STATE_BUCKET_DESTROY
12
12
# AWS_EC2_PORT_LIST
13
13
# AWS_ELB_LISTEN_PORT
14
+ # RDS_ENDPOINT
15
+ # RDS_SECRETS_NAME
16
+ # ECS_ALB_DNS
17
+ # ECS_DNS
14
18
# ECR_REPO_ARN
15
19
# ECR_REPO_URL
16
20
28
32
# 8 - success, destroy buckets and infrastructure
29
33
# 9 - success, destroy infrastructure
30
34
# 10 - success, ECR created
35
+ # 11 - success. RDS created
36
+ # 12 - success, ECS created
31
37
# 500 - cancelled
32
38
33
39
# Function to process and return the result as a string
@@ -78,6 +84,20 @@ if [[ $SUCCESS == 'success' ]]; then
78
84
result_string=" ## Deploy Complete! :rocket:
79
85
ECR Repo ARN: ${ECR_REPO_ARN}
80
86
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} "
81
101
elif [[ $BITOPS_CODE_ONLY == ' true' ]]; then
82
102
if [[ $BITOPS_CODE_STORE == ' true' ]]; then
83
103
SUMMARY_CODE=6
@@ -94,11 +114,11 @@ if [[ $SUCCESS == 'success' ]]; then
94
114
elif [[ $TF_STACK_DESTROY == ' true' ]]; then
95
115
if [[ $TF_STATE_BUCKET_DESTROY != ' true' ]]; then
96
116
SUMMARY_CODE=9
97
- result_string=" ## VM Destroyed! :boom:
117
+ result_string=" ## Destroyed! :boom:
98
118
Infrastructure should be gone now!"
99
119
else
100
120
SUMMARY_CODE=8
101
- result_string=" ## VM Destroyed! :boom:
121
+ result_string=" ## Destroyed! :boom:
102
122
Buckets and infrastructure should be gone now!"
103
123
fi
104
124
0 commit comments