I created an ec2 instance using this code. However...
# general
a
I created an ec2 instance using this code. However, the value I assigned to resource_name wasn't added. It's showing blank on the EC2 console. What is missing in my code?
Copy code
instance = aws.ec2.Instance(
    resource_name="my-ec2-instance",
    instance_type="t2.micro",
    ami="ami-11111111111111",
    vpc_security_group_ids=[existing_security_group.id],
)
c
I think you need to tag the instance with "Name" tag of "my-ec2-instance" value to see the Name in the EC2 console table. This is AWS thing, not Pulumi thing.
a
Ok, I'll retry
WOW! Interesting to learn something new. It worked!