Hi - I am creating aws subnet as follows: ```var s...
# dotnet
d
Hi - I am creating aws subnet as follows:
Copy code
var subnet = new Ec2.Subnet(subnetName, new Ec2.SubnetArgs
            {
                CidrBlock = config.CidrBlock,
                AvailabilityZone=config.AvailabilityZone,
                VpcId = config.VpcId
            });
but when the subnet is created in aws, it doesnt have the name defined. The
SubnetArgs
also doesnt have a
Name
property unlike most other resources. Is there a way I can specify the name?
b
you need to set it as a tag:
Copy code
Tag = {
 Name: my-name
}
d
aah.. will give it a try - thank you