How to create multiple resource in a crossplane composition form an input array?

663 Views Asked by At

I have crossplane XRD where I want to create the same set of resources in multiple AWS regions

apiVersion: aws.example.com/v1alpha1
kind: XFoo
metadata: 
  name: green-foo
spec: 
  clusters: 
    regions: 
      - us-east-1
      - us-east-2
      - us-west-2

In the crossplane composition how do I create a resource for each of the regions in the clusters.regions array? Is there some way to iterate over the inputs and stamp out a resource for each item?

0

There are 0 best solutions below