Tags not read when importing with defaultTags #3311
Labels
area/import
An issue related to `pulumi import` or the import resource option.
kind/bug
Some behavior is incorrect or out of spec
resolution/fixed
This issue was fixed
Milestone
What happened?
I set aws.Provider's defaultTags and then tried some imports. Some work, but some are failing as it claims that tags don't match in spite of tags being present.
For AWS Backup Plans, calling
aws backup get-backup-plan
does not return tags (doc). To get tags,aws backup list-tags
needs to be called (doc). Even though I've set the tags on a backup plan, it won't import because it claims the tags are missing. Using the above commands, I can get the tags so they are set. Could the underlying code be failing to perform the extra step to get tags when importing?I'm experiencing the same problem with Backup Vaults and Roles. For Vaults,
aws backup describe-backup-vault
(doc) doesn't return tags but againaws backup list-tags
does. For Roles,aws iam get-role
does return tags.After experiencing this problem, I removed defaultTags but then had to remove the tags to allow the import to proceed.
Example
To keep this simple, I'll just provide the vault
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: