Are there plans to add native functionality to the...
# aws
a
Are there plans to add native functionality to the VpcEndpoint for subnet association. IE I have 3 subnets but according to the docs I can only do a 1 to 1 per association unless I was to write a loop around the play vs being able to natively read a list to iterate over?
Copy code
VPC Endpoint Subnet Association (an association between a VPC endpoint and a single subnet_id
👀 1
Copy code
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:
Copy code
subnet_ids=[
	  private_subnet.id[0]
      private_subnet.id[1]
],