Amazon web services 有一种方法可以按堆栈列出导出值

Amazon web services 有一种方法可以按堆栈列出导出值,amazon-web-services,amazon-cloudformation,Amazon Web Services,Amazon Cloudformation,我看到了这个函数,但它将返回整个帐户/地区的所有导出值,我只想将导出值获取到给定的堆栈,这可能吗?是的,您可以使用 例如,以下仅显示导出内容的输出: aws cloudformation describe-stacks --stack-name <your-stack-name> --query "Stacks[0].Outputs[?ExportName]" aws cloudformation描述堆栈--堆栈名称--查询“堆栈[0]。输出[?导出名称]”

我看到了这个函数,但它将返回整个帐户/地区的所有导出值,我只想将导出值获取到给定的堆栈,这可能吗?

是的,您可以使用

例如,以下仅显示导出内容的输出:

aws cloudformation describe-stacks --stack-name <your-stack-name> --query "Stacks[0].Outputs[?ExportName]" 
aws cloudformation描述堆栈--堆栈名称--查询“堆栈[0]。输出[?导出名称]”