24
loading...
This website collects cookies to deliver better user experience
serverless.yml
in the resources
block:resources:
# Okay, now we're writing raw CloudFormation
Resources:
Outputs:
PersonasTableArn:
Description: The ARN for the Persona's Table
Value:
'Fn::GetAtt': [personasTable, Arn] # This could be a string, but I'm using a GetAtt as that seems more realistic
Export:
Name: ${self:service}:${opt:stage}:PersonasTableArn # Export name must be *unique* across all outputs for a region. This name is what you'll import in other stacks
Export
name in another stack to consume the output with the ${cf:output_name}
syntax (documentation here):provider:
environment:
PERSONAS_TABLE_ARN: ${cf:OtherService:${opt:stage}:PersonasTableArn}
${ssm:...}
reference.24