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

Using lookups in stack sets #295

Open
kornicameister opened this issue Dec 15, 2023 · 3 comments
Open

Using lookups in stack sets #295

kornicameister opened this issue Dec 15, 2023 · 3 comments

Comments

@kornicameister
Copy link

Hey,

Wonder if it might be possible to implement functionalities like ec2.Vpc.fromLookup when creating stack sets.

Thx.

@kornicameister
Copy link
Author

My use case is that I am trying to add augment default VPC but I cannot use lookups because of lack of region/account upon synth.

@josh-demuth
Copy link
Contributor

are you able to do something similar using a stackset cloudformation resource directly? the stackset template needs to be generic across accounts/regions since the CDK will produce one template per stackset. there could be potential to use intrinsic functions. if you have an example of how this works using a stackset template then we could work backwards from that to see if it could be a good fit for the L2 construct.

@kornicameister
Copy link
Author

I actually build a custom resource that loads up properties to perform Vpc.fromAttribtes.

With this I was able load up default vpc.

Does that count?

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

2 participants