https://pulumi.com logo
Title
s

swift-australia-96791

10/11/2021, 3:15 PM
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.
export const repository= aws.ecr.Repository.get("ecr-repo", ??? )
b

billowy-army-68599

10/11/2021, 5:15 PM
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

swift-australia-96791

10/11/2021, 7:49 PM
Thanks @billowy-army-68599