-
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
Having stacks in different regions with the same name (again) does not work #5832
Comments
Can you share your cdk.context.json? |
{
"vpc-provider:account=xxxxxxxxxxxx:filter.tag:Name=skynet:region=eu-west-1:returnAsymmetricSubnets=true": {
"vpcId": "vpc-8c7607eb",
"vpcCidrBlock": "10.200.64.0/18",
"availabilityZones": [],
"vpnGatewayId": "vgw-da2419ae",
"subnetGroups": [
{
"name": "Private",
"type": "Private",
"subnets": [
{
"subnetId": "subnet-07620d60",
"cidr": "10.200.64.0/21",
"availabilityZone": "eu-west-1a",
"routeTableId": "rtb-2a469d4c"
},
{
"subnetId": "subnet-642c5a2d",
"cidr": "10.200.72.0/21",
"availabilityZone": "eu-west-1b",
"routeTableId": "rtb-2a469d4c"
},
{
"subnetId": "subnet-bb1fb7e0",
"cidr": "10.200.80.0/21",
"availabilityZone": "eu-west-1c",
"routeTableId": "rtb-2a469d4c"
}
]
},
{
"name": "Public",
"type": "Public",
"subnets": [
{
"subnetId": "subnet-c77d12a0",
"cidr": "10.200.88.0/21",
"availabilityZone": "eu-west-1a",
"routeTableId": "rtb-e0479c86"
},
{
"subnetId": "subnet-fe2d5bb7",
"cidr": "10.200.96.0/21",
"availabilityZone": "eu-west-1b",
"routeTableId": "rtb-e0479c86"
},
{
"subnetId": "subnet-da1fb781",
"cidr": "10.200.104.0/21",
"availabilityZone": "eu-west-1c",
"routeTableId": "rtb-e0479c86"
}
]
}
]
},
"hosted-zone:account=xxxxxxxxxxxx:domainName=example.com:region=eu-west-1": {
"Id": "/hostedzone/ZT2IZMVV4BYC3",
"Name": "example.com."
},
"vpc-provider:account=xxxxxxxxxxxx:filter.tag:Name=skynet:region=us-east-1:returnAsymmetricSubnets=true": {
"vpcId": "vpc-2ac65052",
"vpcCidrBlock": "10.200.128.0/22",
"availabilityZones": [],
"vpnGatewayId": "vgw-9136c3f8",
"subnetGroups": [
{
"name": "Public",
"type": "Public",
"subnets": [
{
"subnetId": "subnet-3c26b177",
"cidr": "10.200.130.0/24",
"availabilityZone": "us-east-1a",
"routeTableId": "rtb-4cc8fa36"
},
{
"subnetId": "subnet-e55e91b8",
"cidr": "10.200.131.0/24",
"availabilityZone": "us-east-1b",
"routeTableId": "rtb-4cc8fa36"
}
]
},
{
"name": "Private",
"type": "Private",
"subnets": [
{
"subnetId": "subnet-b225b2f9",
"cidr": "10.200.128.0/24",
"availabilityZone": "us-east-1a",
"routeTableId": "rtb-52b38128"
},
{
"subnetId": "subnet-48478815",
"cidr": "10.200.129.0/24",
"availabilityZone": "us-east-1b",
"routeTableId": "rtb-52b38128"
}
]
}
]
},
"hosted-zone:account=xxxxxxxxxxxx:domainName=example.com:region=us-east-1": {
"Id": "/hostedzone/ZT2IZMVV4BYC3",
"Name": "example.com."
}
} changed account and domain name. |
ah I can clarify myself. The setting that's needed in cdk.json "context": {
"@aws-cdk/core:enableStackNameDuplicates": true
} But after cdk.context.json "@aws-cdk/core:enableStackNameDuplicates": true Unfortunately the setting in the Is it good practise to commit the context.json? I thought not. |
It is a good practice as described here: Closing... |
Just in case: #5834 |
I'm confused. Afaik this should work now after #4412 #4895
Doing
cdk ls
in the code below shows me only one stacktest
.When I
cdk deploy test
only the stack in region us-east-1 gets deployed.Is it still not possible to have stacks in different regions with the same name?
Reproduction Steps
Environment
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: