Private Route Table Ids not found. #4668
Replies: 1 comment
-
It seems like the By default, when you first deploy an environment we don't create NAT gateways or any of the routing infrastructure for web traffic to reach the private subnet. Mostly this is for cost reasons; NAT gateways are expensive for small projects and we want to minimize costs for customers until they evolve to a place in their infrastructure where they can opt in. Instead, we only create that infrastructure when you specify That's done by attaching a All of this is to say that it's not working because the PrivateRouteTable1 resource doesn't exist yet. You can work around it by doing one of the following:
|
Beta Was this translation helpful? Give feedback.
-
Both
Fn::ImportValue: !Sub ${App}-${Env}-PrivateRouteTableIDs
and
Fn::ImportValue: !Sub ${AWS::StackName}-PrivateRouteTableIDs
result in the following error:
No export named myapp-staging-PrivateRouteTableIDs found
when I refer from an env addon.Actually I got the same error when I tried to use other resources too (e.g., VpcId). I suspect this error occurs because the addon is a nested (child) stack which is created in parallel together with the parent stack. But since the parent stack is not ready yet the resources referred from the child stack are not found. Usually we deal with it using
DpendsOn
. Does anyone know how to deal with it? In case of VPC id I resolved it by specifyinginside
addons.parameters.yml
. But when I specifyPrivateRouteTable1
it says "PrivateRouteTable1 not found" Do I miss something?Beta Was this translation helpful? Give feedback.
All reactions