What is the best way to convert a StringOutput or StringPtrOutput to StringArrayOutput. I have tried the following, but it doesn't seem to work. Any help will be appreciated.
vpcSgId := cluster.EksCluster.ApplyT(func(eksCluster *awseks.Cluster) pulumi.StringArrayOutput {
return eksCluster.VpcConfig.ClusterSecurityGroupId().ApplyT(func(sgId *string) pulumi.StringArray {
return pulumi.StringArray{pulumi.String(*sgId)}
}).(pulumi.StringArrayOutput)
})