https://pulumi.com logo
#aws
Title
f

faint-motherboard-95438

07/28/2020, 1:30 PM
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

faint-table-42725

07/28/2020, 4:10 PM
awsx.ec2.Vpc
abstracts away the fact that naming a Subnet from AWS’s perspective is simply adding a tag with key
Name
f

faint-motherboard-95438

07/28/2020, 4:12 PM
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

faint-table-42725

07/28/2020, 4:12 PM
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

faint-motherboard-95438

07/28/2020, 4:13 PM
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