How pass output values between aws nested stacks in serverless?

半城伤御伤魂 提交于 2019-12-06 09:40:41

First you will need to export the resources from the corresponding nested stack like this:

AWSTemplateFormatVersion: '2010-09-09'
Parameters:
  ...
Resources:
  ...
Outputs:
  o1:
    Description: ...
    Value: <your_resource_arn>
    Export:
      Name: <your_export_name>

To import the resource in other stack, you will need to use the intrinsic function Fn::ImportValue, like this:

Fn::ImportValue: <your_export_name>

For more information check the AWS documentation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!