https://pulumi.com logo
#aws
Title
# aws
r

ripe-shampoo-80285

02/09/2022, 3:28 AM
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

bored-table-20691

02/09/2022, 3:44 AM
What does your function to do?
r

ripe-shampoo-80285

02/09/2022, 4:46 PM
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

bored-table-20691

02/09/2022, 5:25 PM
goStringArrayToPulumiStringArray
- this function, what does it do?
r

ripe-shampoo-80285

02/09/2022, 6:20 PM
func goStringArrayToPulumiStringArray(ss []string) pulumi.StringArray { var elems []pulumi.StringInput for _, s := range ss { elems = append(elems, pulumi.String(s)) } return pulumi.StringArray(elems) }
2 Views