Getting Outputs from aws cloudformation describe-stacks

后端 未结 3 1428
慢半拍i
慢半拍i 2020-12-13 08:47

I am using the below to get the stack information I want via AWS Cli:

aws cloudformation --region ap-southeast-2 describe-stacks --stack-name mystack
         


        
3条回答
  •  萌比男神i
    2020-12-13 09:08

    I got the answer, use the below:

    --query "Stacks[0].Outputs[?OutputKey=='DbUrl'].OutputValue" --output text
    

    Hope this will help someone.

提交回复
热议问题