common.sh 261 B

123456789
  1. get_aws_export () {
  2. STACK=$1
  3. PROPERTY=$2
  4. RESULT=$(aws cloudformation list-exports \
  5. --profile $CLI_PROFILE \
  6. --query "Exports[?starts_with(Name,'$STACK$PROPERTY')].Value" \
  7. --output text | sed 's/\t\t*/\n/g')
  8. echo -e $RESULT | tr " " "\n"
  9. }