Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stack/get-outputs assumes same region #3

Open
markusbk opened this issue Feb 11, 2016 · 0 comments
Open

stack/get-outputs assumes same region #3

markusbk opened this issue Feb 11, 2016 · 0 comments

Comments

@markusbk
Copy link

The function stack/get-outputs has no way to override which endpoint to use, and assumes you will only retrieve outputs for stacks in the same region. However, as CloudFormation can be used to maintain cross-region resources (e.g., Route 53 record sets or S3 buckets), it's useful to be able to retrieve outputs from stacks in other regions.

Amazonica lets you override the endpoint for each API call, so by replacing

(cf/describe-stacks :stack-name stack-name)

with

(cf/describe-stacks {:endpoint endpoint} :stack-name stack-name)

you can get stack outputs for a stack in a different region. endpoint could be an optional parameter to get-outputs.

@markusbk markusbk changed the title stack/get-outputs assumes same region stack/get-outputs assumes same region Feb 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant