use map string instead of map
MODIFY
aws-go-webserver/main.go
aws-go-webserver/main.go
@@ -40,7 +40,7 @@ func main() {
// Create a simple web server using the startup script for the instance.
srv, err := ec2.NewInstance(ctx, "web-server-www", &ec2.InstanceArgs{
- Tags: pulumi.Map{"Name": pulumi.String("web-server-www")},
+ Tags: pulumi.MapString{"Name": pulumi.String("web-server-www")},
InstanceType: pulumi.String("t2.micro"), // t2.micro is available in the AWS free tier.
VpcSecurityGroupIds: pulumi.StringArray{group.ID()},
Ami: pulumi.String(ami.Id),

use map string instead of map