How do we handle manipulating resources created as...
# general
i
How do we handle manipulating resources created as a side-effect? For example, if creating a cluster causes a default security group to be created, how do we reference that security group?
m
Can you iterate over the
securityGroups
property on the cluster created?
Copy code
const cluster = new awsx.ecs.Cluster("my-cluster");
for (let i = 0; i < cluster.securityGroups.length; i++) {
  console.log(cluster.securityGroups[i]);
}
i
i mean generically is there a method for doing this? a search or lookup that can run in the context of a pulumi run?