alert-lock-34522
08/27/2021, 8:15 PMVPC Endpoint Subnet Association (an association between a VPC endpoint and a single subnet_id
ec2_vpc_endpoint = aws.ec2.VpcEndpoint("ec2",
vpc_id=shared_vpc.id,
service_name="com.amazonaws.us-gov-west-1.ec2",
vpc_endpoint_type="Interface",
subnet_ids=[private_subnet.id], ##Either allow for recongiziontion of multiple subnets. It seems to just pick one at random
security_group_ids=[endpoint_sg.id],
tags={
"Name": config.require('cluster_name') + "-ec2-endpoint",
"<http://kubernetes.io/cluster/|kubernetes.io/cluster/>" + config.require('cluster_name'): "owned"
}
)
Or possibly allow listing of multi subnets:
subnet_ids=[
private_subnet.id[0]
private_subnet.id[1]
],