-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: aws_ecr_repository data source not fetching tags #38155
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Hi @justinretzolk 👋 , I just checked both 5.54.0 and 5.56.0 and both return tags as I ran through the code yesterday to validate if it was just a case there was no tags on the image and the section for discovering the tags has been removed and as far as I could see there was no replacement for it at all. |
Hi @si-c613, can confirm what you spotted. My test environment is ❯ terraform version
Terraform v1.9.0
on linux_amd64
+ provider registry.terraform.io/hashicorp/aws v5.56.1 It would be nice to understand why |
This could be caused by bad/missing generated code due to the |
As per Resource Tagging, explicit call to
|
Hi @acwwat, I actually missed the extra ")" in the annotation and thanks for sharing the link! |
Hi @stefanfreitag, the test case Since you asked, I decided to spend a few more minutes to test it only to find that the original resource.TestCheckResourceAttrPair(resourceName, names.AttrTags, dataSourceName, names.AttrTags), Looking into the resource.TestCheckResourceAttrPair(resourceName, acctest.CtTagsPercent, dataSourceName, acctest.CtTagsPercent), Rerunning the tests just now yields good results. Going forward, once tag testing is migrated to using the new framework, the generated testing should be a lot more robust. I am still learning more about it, so I won't do the migration here :) |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.58.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Upgraded to this version and tested. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Core Version
all
AWS Provider Version
5.44.0+
Affected Resource(s)
Expected Behavior
Data source should contain a map of tags
Actual Behavior
tags map is null
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Create an ECR repo called
my-repo
with tagsRun the above Terraform and observe no tags
Lower provider version to <5.44.0 and observe tags are output
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
Tagging was removed in #36493
https://github.com/hashicorp/terraform-provider-aws/pull/36493/files#diff-e6db909c3ab1e28e7b307f7f5d244a4c9eb880ae2a93db7b7177e9db22fbc64f
There was however no note on the PR as to why
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: