You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it is not possible to manage ECR repositories in multiple regions with the same name from a single k8s cluster.
I feel it is a very common configuration for teams operating in multiple aws regions to have ECR replication enabled so that images pushed to one region get replicated to other regions.
Because the name of the ECR repo is tied to the name of the k8s object I cant create the same repo in multiple regions.
How could Crossplane help solve your problem?
I'm thinking the best path forward would be to add a new property to the forProvider object called something like awsName.
This would allow you to have 2 objects with different names and regions, but the same awsName resulting in the same repository being created in multiple regions.
brandocomando
changed the title
Support the ability to create the same resource in multiple regions
Support the ability to create the same ECR Repository in multiple regions
Dec 14, 2023
You can do this using a Composition by patching the desired name into the crossplane.io/external-name annotation on the managed resource to specify the name used in AWS. The Repository objects would have unique names generated by the Composition, but the MRs can use the names you want in AWS.
Thank @bobh66 I didnt know we could already external-name annotation for this, very helpful for these kinds of regional resources.
I was already wrapping these repos in a helm chart so it made more sense to include the overwrite of the annotation in the helm chart rather than using compositions and or functions.
What problem are you facing?
Currently it is not possible to manage ECR repositories in multiple regions with the same name from a single k8s cluster.
I feel it is a very common configuration for teams operating in multiple aws regions to have ECR replication enabled so that images pushed to one region get replicated to other regions.
Because the name of the ECR repo is tied to the name of the k8s object I cant create the same repo in multiple regions.
How could Crossplane help solve your problem?
I'm thinking the best path forward would be to add a new property to the forProvider object called something like awsName.
This would allow you to have 2 objects with different names and regions, but the same awsName resulting in the same repository being created in multiple regions.
for example:
The text was updated successfully, but these errors were encountered: