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

VPC Export Creates Output Without Value #2261

Closed
kuhnboy opened this issue Apr 14, 2019 · 1 comment
Closed

VPC Export Creates Output Without Value #2261

kuhnboy opened this issue Apr 14, 2019 · 1 comment
Labels
bug This issue is a bug.

Comments

@kuhnboy
Copy link

kuhnboy commented Apr 14, 2019

Describe the bug
Calling export on a VPC creates a export without a value

To Reproduce
var vpc = new VpcNetwork(this, "vpc", new VpcNetworkProps { Cidr = ipNetwork, EnableDnsHostnames = true, EnableDnsSupport = true, MaxAZs = AvailabilityZones });
vpc.Export();

Results in: agc-dev failed: ValidationError: Template format error: Every Outputs member must contain a Value object
Template format error: Every Outputs member must contain a Value object

Output
Outputs:
netvpcPublicSubnetIDsB4AEB182:
Value:
Fn::Join:
- ","
- - Ref: netvpcPublicSubnet1Subnet4CD4B50E
- Ref: netvpcPublicSubnet2SubnetDA258F98
- Ref: netvpcPublicSubnet3SubnetEEF98931
Export:
Name: agc-tst:netvpcPublicSubnetIDsB4AEB182
netvpcPrivateSubnetIDs0D06D2E1:
Value:
Fn::Join:
- ","
- - Ref: netvpcPrivateSubnet1Subnet44E8FA8C
- Ref: netvpcPrivateSubnet2Subnet4971F090
- Ref: netvpcPrivateSubnet3Subnet0D065BB7
Export:
Name: agc-tst:netvpcPrivateSubnetIDs0D06D2E1
netvpcVpcIdAE1C9B5B:
Value:
Ref: netvpc8AAA4B80
Export:
Name: agc-tst:netvpcVpcIdAE1C9B5B

Expected behavior
Exports are not created if they have no value.

Version:

  • OS: Win10
  • Programming Language: C#
  • CDK Version: 0.28.0
@kuhnboy kuhnboy added the bug This issue is a bug. label Apr 14, 2019
@jogold
Copy link
Contributor

jogold commented Apr 15, 2019

This has been fixed in #2219 (9e87661) but not yet released.

@rix0rrr rix0rrr closed this as completed Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
Development

No branches or pull requests

3 participants