rhythmic-branch-12845
05/16/2023, 7:04 AMpulumi state rename urn:pulumi:stage::vpc::aws:ec2/vpc:Vpc::environment urn:pulumi:stage::vpc::aws:ec2/vpc:Vpc::shared
# the second argument to 'rename' should have been the new name, instead of the new urn
Now when I pulumi state --show-urns
shows the following urn for the vpc:
├─ aws:ec2/vpc:Vpc urn:pulumi:stage
│ URN: urn:pulumi:stage::vpc::aws:ec2/vpc:Vpc::urn:pulumi:stage::vpc::aws:ec2/vpc:Vpc::shared
Now using the new urn, I get an error when trying to rename:
$ pulumi state rename urn:pulumi:stage::vpc::aws:ec2/vpc:Vpc::urn:pulumi:stage::vpc::aws:ec2/vpc:Vpc::shared shared
error: The provided input URN is not valid