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

[networks] Outputs.RouteTable disappears unexpectedly #40

Open
tatat opened this issue Dec 21, 2021 · 0 comments
Open

[networks] Outputs.RouteTable disappears unexpectedly #40

tatat opened this issue Dec 21, 2021 · 0 comments

Comments

@tatat
Copy link
Member

tatat commented Dec 21, 2021

Outputs.RouteTable disappears when the condition CreateOfNatGateway is truthy falsy.
This seems to make the value of !Ref VPCRouteTable not accessible.

RouteTable:
Description: VPC Route Table ID
Condition: CreateOfNatGateway
Value: !Join
- ','
-
- Fn::If: [CreateOfNatGateway, !Ref "AWS::NoValue", !Ref VPCRouteTable]
- Fn::If: [CreateOfNatGateway1, !Ref VPCRouteTable1, !Ref "AWS::NoValue"]
- Fn::If: [CreateOfNatGateway2, !Ref VPCRouteTable2, !Ref "AWS::NoValue"]
- Fn::If: [CreateOfNatGateway3, !Ref VPCRouteTable3, !Ref "AWS::NoValue"]
- Fn::If: [CreateOfNatGateway4, !Ref VPCRouteTable4, !Ref "AWS::NoValue"]
- Fn::If: [CreateOfNatGateway5, !Ref VPCRouteTable5, !Ref "AWS::NoValue"]

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

1 participant