Change the above code to this, I got different err...
# aws
r
Change the above code to this, I got different error: sgNames := vpc.Vpc.DefaultSecurityGroupId.ApplyT(func(sg interface{}) pulumi.StringArray {             return goStringArrayToPulumiStringArray([]string{sg.(string)})         }).(pulumi.StringArrayOutput) panic: runtime error: invalid memory address or nil pointer dereference
b
What does your function to do?
r
I am trying to use VPC default security group in an aws RDS instance creation for the VpcSecurityGroupId parameter.
Is there a golang example for creating a RDS in a EKS VPC with proper security group, so all the nodes can talk to the RDS instance?
b
goStringArrayToPulumiStringArray
- this function, what does it do?
r
func goStringArrayToPulumiStringArray(ss []string) pulumi.StringArray { var elems []pulumi.StringInput for _, s := range ss { elems = append(elems, pulumi.String(s)) } return pulumi.StringArray(elems) }