Skip to content

Commit fe2744d

Browse files
committed
[Add] - add functions for get stack set and list all stack set with detail
1 parent 39fc88f commit fe2744d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

services/cloudformation.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,19 @@
44
aws_cloudformation_list_stack_sets() {
55
aws_run_commandline "aws cloudformation list-stack-sets"
66
}
7+
8+
aws_cloudformation_get_stack_set() {
9+
aws_run_commandline "\
10+
aws cloudformation describe-stack-set \
11+
--stack-set-name ${1:?'stack_set_name is unset or empty'}
12+
13+
"
14+
}
15+
16+
aws_cloudformation_stack_info() {
17+
18+
local lhs_stack_set_names=$(aws cloudformation list-stack-sets --query '*[].StackSetName' --output text)
19+
for stack_set_name in ${lhs_stack_set_names}; do
20+
aws_cloudformation_get_stack_set ${stack_set_name}
21+
done
22+
}

0 commit comments

Comments
 (0)