Error while creating Vpc with one subnet which has the same cidr range #23654
Unanswered
dennisfleischmann
asked this question in
Q&A
Replies: 1 comment
-
Still thinking about a solution.From my understanding at least 2 subnets needs to be creates hence one subnet with the same cidr of the vpc is not possible. Happy to hear suggestions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi together,
I might wonder how to create one vpc with exactly one subnet which has the same cidr range. I tried the following
This is Synthesizing without Erros but when I deploy it -- it will fail.
Note: When I change the cidr range in the subnet to 28 -- it is working fine. But I need to create a vpc with 27 and a subnet with the same.
Error Log
`
8:01:48 AM | CREATE_FAILED | AWS::EC2::Subnet | apptenantvpcexampl...net1Subnet43A66E78
Template error: Conversion = s, Flags = 0
❌ app-tenant failed: Error: The stack named app-tenant failed to deploy: UPDATE_ROLLBACK_COMPLETE: Template error: Conversion = s, Flags = 0
at FullCloudFormationDeployment.monitorDeployment (/usr/local/lib/node_modules/aws-cdk/lib/api/deploy-stack.ts:505:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at deployStack2 (/usr/local/lib/node_modules/aws-cdk/lib/cdk-toolkit.ts:241:24)
at /usr/local/lib/node_modules/aws-cdk/lib/deploy.ts:39:11
at run (/usr/local/lib/node_modules/p-queue/dist/index.js:163:29)
❌ Deployment failed: Error: Stack Deployments Failed: Error: The stack named app-tenant failed to deploy: UPDATE_ROLLBACK_COMPLETE: Template error: Conversion = s, Flags = 0
at deployStacks (/usr/local/lib/node_modules/aws-cdk/lib/deploy.ts:61:11)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at CdkToolkit.deploy (/usr/local/lib/node_modules/aws-cdk/lib/cdk-toolkit.ts:315:7)
at initCommandLine (/usr/local/lib/node_modules/aws-cdk/lib/cli.ts:358:12)
Stack Deployments Failed: Error: The stack named app-tenant failed to deploy: UPDATE_ROLLBACK_COMPLETE: Template error: Conversion = s, Flags = 0
`
Beta Was this translation helpful? Give feedback.
All reactions