Hi there, it seems `aws.ec2.Subnet` and `awsx.ec2....
# aws
f
Hi there, it seems
aws.ec2.Subnet
and
awsx.ec2.Subnet
don’t set the subnet Name, neither from the
name
parameter nor any
SubnetArgs
values. Why and how to set it then ? Also these two lacks a lot of properties from
awsx.ec2.Vpc
subnets
argument, which would be helpful to have when adding new subnets later on. (or should we avoid
aws(x).ec2.Subnet
entirely ?)
f
awsx.ec2.Vpc
abstracts away the fact that naming a Subnet from AWS’s perspective is simply adding a tag with key
Name
f
Ok thanks @faint-table-42725 so if I want to create manually a subnet and set its name I have to add a tag
Name
to it ?
f
It does seem like it would make sense to add that same convenience to
awsx.ec2.Subnet
. I’m not sure why that wasn’t done in the original design.
That’s correct — just add a tag with key
Name
with the value being the name you want
f
Ok thanks. That’s definitely unclear and hard to guess. I agree you should eventually add this convenience to
awsx.ec2.Subnet
(shouldn’t be hard to add I suppose)
👍 1