-
Notifications
You must be signed in to change notification settings - Fork 40
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
Using Multiple Stacks #14
Comments
Hi @benwaine your alerting stack seems to be named Let me know if this works for you. |
We reuse modules like this by creating exports. For example, this
This lets us import the template elsewhere without having any relation between the two files:
This example also exports the ALB in a narrower namespace since it's specific to a single client. When we want to build on that client's ALB, you need to use a slightly more verbose import...
As you can see, the VPC is also client-specific. The NLB is defined inline (in this same file). This particular template implements the lambda-based forwarding logic from an AWS Blog post. |
These lines above from the VPC module README seem to imply that it's possible to create multiple stacks and feed the exports of one stack into the another.
I'm trying to do this with the idea that my vpc and alerting stacks will be referenced from multiple applications stacks.
After successfully creating the vpc and alerting stacks following the instructions in these docs, I attempt to create an application stack like so:
I get the following error when creating the application stack:
Looking at the alerting stack, there are no exports.
Looking at the nested stack created by my alerting stack I see exports including the expected ARN.
Is the design pattern I'm attempting possible? Have I missed something in terms of how to identify the stack in "child stacks"?
The text was updated successfully, but these errors were encountered: