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

SubnetSelection "OnePerAZ" adds more than one per AZ #6217

Closed
githubnoobieme opened this issue Feb 11, 2020 · 1 comment
Closed

SubnetSelection "OnePerAZ" adds more than one per AZ #6217

githubnoobieme opened this issue Feb 11, 2020 · 1 comment
Assignees
Labels
@aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@githubnoobieme
Copy link

Hello,

when I try to use SubnetSelection and the option "OnePerAZ" it just creates a template of all subnets that are attached to the vpc and not only 1 per AZ

This is the code Iam using

vpc1.add_interface_endpoint('SSMEndpoint', service=ec2.InterfaceVpcEndpointAwsService('ssm'), subnets=ec2.SubnetSelection(subnet_type=ec2.SubnetType.PRIVATE, one_per_az=True))

And this is my output

VPC2SSMEndpoint635B3888:
Type: AWS::EC2::VPCEndpoint
Properties:
ServiceName:
Fn::Join:
- ""
- - com.amazonaws.
- Ref: AWS::Region
- .ssm
VpcId: vpc-0756804582992c518
PrivateDnsEnabled: true
SecurityGroupIds:
- Fn::GetAtt:
- VPC2SSMEndpointSecurityGroupC16A4318
- GroupId
SubnetIds:
- subnet-02763f47226fccxxx
- subnet-0c2af8bb871b359x
- subnet-0099cf88bcb36222
- subnet-0000db6c52c8ddc22
- subnet-0fb87224a65d3842
- subnet-0ed2bf836eb579c22
VpcEndpointType: Interface

Not sure if Iam doing something wrong or this option is not working properly

@githubnoobieme githubnoobieme added the needs-triage This issue or PR still needs to be triaged. label Feb 11, 2020
@SomayaB SomayaB added bug This issue is a bug. @aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud labels Feb 13, 2020
@rix0rrr
Copy link
Contributor

rix0rrr commented Feb 14, 2020

Duplicate of #3126, fixed in upcoming release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

3 participants