-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Question - Lookup one app/stack from another #3372
Comments
OK I managed to find the from_lookup static method of the vpc class, however when I try perform a lookup using tags like so:
I get the following error when I run cdk ls:
Are tag based lookups currently working? I am using version 1.1.0 of the CDK. |
Hey @lobsterdore - you are correct, we are not correctly emitting filters for the tags when making the EC2 call. Whoops. If you want this to work right now, you can prefix all tag names with |
When in the `Filters` parameter of the `DescribeVpcs` call, the tags need to be encoded as `{ Name: "tag:<name>", Values: ["<value>"] }`, but the `tag:` prefix was not added by the preparation code. Fixes #3372
@RomainMuller OK no worries at all, I will try the |
@RomainMuller is there a way to lookup any Cloudfomation stack and examine it's outputs? |
@lobsterdore we don't have any support for this built-in right now, but it should be fairly straight-forward to make a lambda-backed CustomResource that does just this! |
When in the `Filters` parameter of the `DescribeVpcs` call, the tags need to be encoded as `{ Name: "tag:<name>", Values: ["<value>"] }`, but the `tag:` prefix was not added by the preparation code. Fixes #3372
I am using the Python version of the CDK, I have a question about looking up stacks/apps (and whether it's possible or not).
I am creating a few different apps for the various parts of my infra, I would like to create separate apps so I do not need to update foundational components when deploying services, eg. I don't want to deploy the VPC when I deploy a Fargate service.
So far I have three separate apps, one for the VPC, one for the ECS Cluster and one for a Fargate service. To make all this work I need to be able to lookup the VPC stack from both the ECS Cluster and Fargate apps, I will also need to lookup the Cluster app within the Fargate app. Is this currently possible? Or is there a different method for splitting things up?
The text was updated successfully, but these errors were encountered: