https://pulumi.com logo
Title
f

full-analyst-32960

10/27/2022, 9:07 PM
Create a new VPC, code snippet
vpc = aws.ec2.Vpc("vpc",
    cidr_block="172.31.0.0/16",
    enable_dns_hostnames=True,
    enable_dns_support=True,
    instance_tenancy="default"
)
Is there a way to programmatically change the “Name” on the AWS web UI?
b

billowy-army-68599

10/27/2022, 9:22 PM
set the Name tag
vpc = aws.ec2.Vpc("vpc",
    cidr_block="172.31.0.0/16",
    enable_dns_hostnames=True,
    enable_dns_support=True,
    instance_tenancy="default",
    tags: {
       Name: "my-cool-name"
    }
)
f

full-analyst-32960

10/27/2022, 9:27 PM
tags: { … } or since I’m using python tags={…} and that added Name: to the tags but not not the place I would like it.
vpc = aws.ec2.Vpc("vpc",
    cidr_block="172.31.0.0/16",
    enable_dns_hostnames=True,
    enable_dns_support=True,
    instance_tenancy="default",
    tags={
        "Name:": "my-cool-name",
    }
)
s

strong-helmet-83704

10/27/2022, 9:31 PM
drop your colon
b

billowy-army-68599

10/27/2022, 9:33 PM
yep,
Name:
should
Name
note the additional colon in between the
""
f

full-analyst-32960

10/27/2022, 9:33 PM
TY
and :face_with_peeking_eye: