thankful-coat-47937
05/25/2022, 5:05 PMconst cluster = aws.ecs.getClusterOutput({ clusterName: infraRef.getOutput("clusterName") });
which is a pulumi.output<aws.ecs.GetClusterResult>
How do i convert this into a awsx.ecs.Cluster
?orange-policeman-59119
05/25/2022, 7:12 PMlittle-cartoon-10569
05/25/2022, 8:49 PMaws.ecs.Cluster
? I cant find an awsx version. Do you have a link to the docs for it?
To create a read-only Cluster from a GetClusterResult, you have to create a new Cluster using the same ID. Cluster has a static get
method: https://www.pulumi.com/registry/packages/aws/api-docs/ecs/cluster/#look-upimport
opt when constructing the Cluster, or by using the import CL (https://www.pulumi.com/registry/packages/aws/api-docs/ecs/cluster/#import)