Getting Outputs from aws cloudformation describe-stacks

后端 未结 3 1410
慢半拍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条回答
  •  醉梦人生
    2020-12-13 08:56

    Using the Windows AWS CLI I had to ensure the --query param was doubled quoted.

    aws cloudformation describe-stacks --stack-name --query "Stacks[0].Outputs[?OutputKey==``].OutputValue" --output text

    Failing to use double quotes, resulted in the query returning:

    Stacks[0].Outputs[?OutputKey==].OutputValue

    Not so helpful.

提交回复
热议问题