-
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
New Resource: aws_ecr_pull_through_cache_rule #22172
New Resource: aws_ecr_pull_through_cache_rule #22172
Conversation
bb945e8
to
b4f12b8
Compare
…r messages and log lines.
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 🚀.
Commercial
% make testacc PKG=ecr TESTS=TestAccPullThroughCacheRule_
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ecr/... -v -count 1 -parallel 20 -run='TestAccPullThroughCacheRule_' -timeout 180m
=== RUN TestAccPullThroughCacheRule_basic
=== PAUSE TestAccPullThroughCacheRule_basic
=== RUN TestAccPullThroughCacheRule_disappears
=== PAUSE TestAccPullThroughCacheRule_disappears
=== RUN TestAccPullThroughCacheRule_failWhenAlreadyExists
=== PAUSE TestAccPullThroughCacheRule_failWhenAlreadyExists
=== CONT TestAccPullThroughCacheRule_basic
=== CONT TestAccPullThroughCacheRule_failWhenAlreadyExists
=== CONT TestAccPullThroughCacheRule_disappears
--- PASS: TestAccPullThroughCacheRule_failWhenAlreadyExists (10.56s)
--- PASS: TestAccPullThroughCacheRule_disappears (12.85s)
--- PASS: TestAccPullThroughCacheRule_basic (16.49s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ecr 20.197s
GovCloud
% make testacc PKG=ecr TESTS=TestAccPullThroughCacheRule_
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ecr/... -v -count 1 -parallel 20 -run='TestAccPullThroughCacheRule_' -timeout 180m
=== RUN TestAccPullThroughCacheRule_basic
=== PAUSE TestAccPullThroughCacheRule_basic
=== RUN TestAccPullThroughCacheRule_disappears
=== PAUSE TestAccPullThroughCacheRule_disappears
=== RUN TestAccPullThroughCacheRule_failWhenAlreadyExists
pull_through_cache_rule_test.go:74: ECR Pull Through Cache Rule is not supported in GovCloud partition
--- SKIP: TestAccPullThroughCacheRule_failWhenAlreadyExists (0.00s)
=== CONT TestAccPullThroughCacheRule_basic
=== CONT TestAccPullThroughCacheRule_disappears
acctest.go:960: skipping test for aws-us-gov/us-gov-west-1: Error running apply: exit status 1
Error: error creating ECR Pull Through Cache Rule (tf-test-gujssfrf): ValidationException: This feature is disabled
with aws_ecr_pull_through_cache_rule.test,
on terraform_plugin_test.tf line 2, in resource "aws_ecr_pull_through_cache_rule" "test":
2: resource "aws_ecr_pull_through_cache_rule" "test" {
=== CONT TestAccPullThroughCacheRule_basic
acctest.go:960: skipping test for aws-us-gov/us-gov-west-1: Error running apply: exit status 1
Error: error creating ECR Pull Through Cache Rule (tf-test-sft21ejl): ValidationException: This feature is disabled
with aws_ecr_pull_through_cache_rule.test,
on terraform_plugin_test.tf line 2, in resource "aws_ecr_pull_through_cache_rule" "test":
2: resource "aws_ecr_pull_through_cache_rule" "test" {
--- SKIP: TestAccPullThroughCacheRule_disappears (7.82s)
--- SKIP: TestAccPullThroughCacheRule_basic (7.84s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ecr 11.317s
@roberth-k Thanks for the contribution 🎉 👏. |
This functionality has been released in v3.70.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. |
Community Note
Closes #21951
Implementation of
registry_id
follows the same pattern asaws_ecr_repository
.Output from acceptance testing: