-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Implement credential_arn for ecr pull cache through rules #34475
Implement credential_arn for ecr pull cache through rules #34475
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Thank you for your contribution! 🚀 Please note that typically Go dependency changes are handled in this repository by dependabot or the maintainers. This is to prevent pull request merge conflicts and further delay reviews of contributions. Remove any changes to the Additional details:
|
24627ca
to
16498fb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome @Baachi 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
16498fb
to
5725d87
Compare
MR is ready for review! |
Related: #34716 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a wonderful PR! Thank you so much for your contribution! I'm requesting a few small additions (documentation for the resource and datasource) and some small linting modifications.
Please include documentation updates:
- /website/docs/r/ecr_pull_through_cache_rule.html.markdown
- /website/docs/d/ecr_pull_through_cache_rule.html.markdown
4cdb36a
to
ca733e1
Compare
Hey @AdamTylerLynch , thanks for the review! I fixed all your comments (or I hope at least.) 😁 |
Any updates here? |
@Baachi seems like that there are some merge conflicts now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last requested change
ebf44a4
to
2995756
Compare
@AdamTylerLynch fixed your comment and rebased against master :) |
btw. don't you know, if it possible to create |
btw. can you add an example of secret_string for aws_secretsmanager_secret_version? |
afaik no, dockerhub now requires everyone to be authenticated |
Yep, I have already checked docs. It's a little bit painful that I users can't use proxy without auth for public repositories. |
@ewbankkit can you check the PR, pls? It's really important feature for the production. |
@Baachi I think you're good to merge this in |
@honarkhah can you help merge this in? |
Im not a maintainer, so I can't merge it :) |
Yeah sorry, I was a bit to quick commenting there 😅 |
…k lines [Expected: 1; Actual: 2]'.
…pluginsdk.append-Read-to-diags'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccECRPullThroughCacheRuleDataSource_\|TestAccECRPullThroughCacheRule_' PKG=ecr ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ecr/... -v -count 1 -parallel 3 -run=TestAccECRPullThroughCacheRuleDataSource_\|TestAccECRPullThroughCacheRule_ -timeout 360m
=== RUN TestAccECRPullThroughCacheRuleDataSource_basic
=== PAUSE TestAccECRPullThroughCacheRuleDataSource_basic
=== RUN TestAccECRPullThroughCacheRuleDataSource_repositoryPrefixWithSlash
=== PAUSE TestAccECRPullThroughCacheRuleDataSource_repositoryPrefixWithSlash
=== RUN TestAccECRPullThroughCacheRuleDataSource_credential
=== PAUSE TestAccECRPullThroughCacheRuleDataSource_credential
=== RUN TestAccECRPullThroughCacheRule_basic
=== PAUSE TestAccECRPullThroughCacheRule_basic
=== RUN TestAccECRPullThroughCacheRule_credentialARN
=== PAUSE TestAccECRPullThroughCacheRule_credentialARN
=== RUN TestAccECRPullThroughCacheRule_disappears
=== PAUSE TestAccECRPullThroughCacheRule_disappears
=== RUN TestAccECRPullThroughCacheRule_failWhenAlreadyExists
=== PAUSE TestAccECRPullThroughCacheRule_failWhenAlreadyExists
=== RUN TestAccECRPullThroughCacheRule_repositoryPrefixWithSlash
=== PAUSE TestAccECRPullThroughCacheRule_repositoryPrefixWithSlash
=== CONT TestAccECRPullThroughCacheRuleDataSource_basic
=== CONT TestAccECRPullThroughCacheRule_credentialARN
=== CONT TestAccECRPullThroughCacheRule_failWhenAlreadyExists
--- PASS: TestAccECRPullThroughCacheRule_failWhenAlreadyExists (25.43s)
=== CONT TestAccECRPullThroughCacheRuleDataSource_credential
--- PASS: TestAccECRPullThroughCacheRuleDataSource_basic (36.58s)
=== CONT TestAccECRPullThroughCacheRule_basic
--- PASS: TestAccECRPullThroughCacheRule_credentialARN (41.44s)
=== CONT TestAccECRPullThroughCacheRuleDataSource_repositoryPrefixWithSlash
--- PASS: TestAccECRPullThroughCacheRuleDataSource_credential (23.19s)
=== CONT TestAccECRPullThroughCacheRule_disappears
--- PASS: TestAccECRPullThroughCacheRule_basic (21.31s)
=== CONT TestAccECRPullThroughCacheRule_repositoryPrefixWithSlash
--- PASS: TestAccECRPullThroughCacheRuleDataSource_repositoryPrefixWithSlash (17.94s)
--- PASS: TestAccECRPullThroughCacheRule_disappears (17.97s)
--- PASS: TestAccECRPullThroughCacheRule_repositoryPrefixWithSlash (16.18s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ecr 85.729s
@Baachi Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.37.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! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
As mentioned in #34466, AWS released the support for authenticated docker registries in ECR. This MR adds the new credentialArn to the terraform datasource and resource.
Relations
Closes #34466
References
https://docs.aws.amazon.com/AmazonECR/latest/APIReference/API_CreatePullThroughCacheRule.html
https://docs.aws.amazon.com/AmazonECR/latest/userguide/pull-through-cache-creating-rule.html
Output from Acceptance Testing