steep-lamp-20408
10/05/2022, 8:56 AMpublic_subnet_1 = aws.ec2.Subnet(
"subnet-public-1", # Seems like the name is not working in AWS console
vpc_id=vpc.id,
cidr_block="10.0.1.0/24",
)
private_subnet_1 = aws.ec2.Subnet(
"subnetn-private-1", # Seems like the name is not working in AWS console
vpc_id=vpc.id,
cidr_block="10.0.2.0/24",
)
The subnets are created, but their names do not appear in the AWS console (they have no names).
I also tried with resource-name
attribute (attribute="subnet-public-1"
), but it’s the same. Why?vpc = aws.ec2.Vpc("my-vpc", _cidr_block_="10.0.0.0/16")
The created VPC has no name in AWS.great-sunset-355
10/05/2022, 10:10 AMresource_name
and Name
(display name)
Many AWS resources have a display name represented as the tag Name
. And for those, the pulumi provider won't apply the value of resource_name
to the tag Name
.
So you need to add tags={"Name":"YOUR VALUE"}
steep-lamp-20408
10/13/2022, 5:54 AMgreat-sunset-355
10/13/2022, 7:06 AMtags
property, add your value