Update `aws-go-webserver` to use `VpcSecurityGroupIds`, not `SecurityGroups`.
`SecurityGroups` doesn't allow for updates while `VpcSecurityGroupIds` does.
See for more context.
MODIFY
aws-go-webserver/main.go
aws-go-webserver/main.go
@@ -43,7 +43,7 @@ func main() {
srv, err := ec2.NewInstance(ctx, "web-server-www", &ec2.InstanceArgs{
Tags: pulumi.Map{"Name": pulumi.String("web-server-www")},
InstanceType: pulumi.String("t2.micro"), // t2.micro is available in the AWS free tier.
- SecurityGroups: pulumi.StringArray{group.Name},
+ VpcSecurityGroupIds: pulumi.StringArray{group.ID()},
Ami: pulumi.String(ami.Id),
UserData: pulumi.String(`#!/bin/bash
echo "Hello, World!" > index.html

Update `aws-go-webserver` to use `VpcSecurityGroupIds`, not `SecurityGroups`. (#596)

`SecurityGroups` doesn't allow for updates while `VpcSecurityGroupIds` does.

See https://github.com/pulumi/pulumi-aws/issues/852 for more context.