Hi All, how can I get ECR repo details using regis...
# general
s
Hi All, how can I get ECR repo details using registryID. Another question is there a way to refer the ECR which belongs to other AWS account. In the same pulumi code/stack I want to create resources on AWS Account A and want to push the image on ECR which belongs to another AWS Account B.
Copy code
export const repository= aws.ecr.Repository.get("ecr-repo", ??? )
b
hey @swift-australia-96791 you, can use an explicit provider to do this https://www.pulumi.com/docs/reference/pkg/aws/provider/ You can find some examples of using an AWS provider here: https://github.com/pulumi/examples/search?p=2&q=aws.Provider If you specify a provider with different keys for your AWS Account A and AWS Account B
s
Thanks @billowy-army-68599