https://pulumi.com logo
#aws
Title
# aws
l

little-whale-73288

10/10/2022, 7:53 AM
Hello, I am trying to use https://www.pulumi.com/registry/packages/awsx/api-docs/ecr/repository/ in a Python Pulumi program for an existing repository. I want to import it and then have
awsx.ecr.Repository
manage it, but I am having issues importing it. I have tried: 1. using https://www.pulumi.com/docs/intro/concepts/resources/options/transformations/#stack-transformations to add an
import_
resource option, but it seems to be ignored (it wants to create the resource); 2. importing the ecr repository with the stack as the parent and using stack transformations to add an alias to the ecr repository child resource of
awsx.ecr.Repository
, but even though a
pulumi.Alias
instance got resolved to an URN in `pulumi_aws.ecr.Repository`'s
._aliases
field, it still got ignored (it wants to delete the existing repository and to create the new one). Is it perhaps related to the fact that the parent (
awsx.ecr.Repository
instance) of the existing resource (
pulumi_aws.ecr.Repository
) does not exist yet?
I have found https://github.com/pulumi/pulumi-awsx/issues/555, but it's very quiet there.