little-whale-73288
10/10/2022, 7:53 AMawsx.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?