aws / aws/chalice

Export SAM template outputs

Open
#1,087 5 comments 11 reactions 0 assignees View on GitHub
feature-request
Dominant language
Python
Stars
11.1k
Forks
1k
Avg merge
1d 22h
Merged PRs (30d)
2

Description

I noticed the generated SAM templates have some very useful output values, such as the EndpointURL. It would be really great if these were exported with a unique name, such as `"${AWS::StackName}-LogicalID"` so we could import them into other cloudformation templates (such as a frontend stack making requests to the Chalice api). Right now, it seems like the only way to get at them programmatically is to write a script using the aws command line tools to describe the stack and parse the result for outputs. A benefit of importing values directly into other CF templates is also that AWS will then restrict any actions that would change these exported values and break these other stacks.

Contributor guide

Open the contributing guide

Research direction

Start by locating the code that generates SAM templates and inspect how values such as EndpointURL are represented in the generated CloudFormation outputs. Check the existing template-generation tests, if present, and verify that each output receives a unique export name that can be imported by another stack without breaking dependent-stack protections.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.