-
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
r/aws_ecr_repository_creation_template: New resource. #38597
r/aws_ecr_repository_creation_template: New resource. #38597
Conversation
Community NoteVoting for Prioritization
For Submitters
|
c3d1a54
to
b1d3b0a
Compare
b1d3b0a
to
5232328
Compare
I found I had to tweak the semgrep configuration as it was failing due to matching the Tests are all passing now, let me know if I've missed anything. |
Have a data source as well: data "aws_ecr_repository_creation_template" "example" {
prefix = "example"
} % make testacc TESTS=TestAccECRRepositoryCreationTemplateDataSource PKG=ecr
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ecr/... -v -count 1 -parallel 20 -run='TestAccECRRepositoryCreationTemplateDataSource' -timeout 360m
=== RUN TestAccECRRepositoryCreationTemplateDataSource_basic
=== PAUSE TestAccECRRepositoryCreationTemplateDataSource_basic
=== CONT TestAccECRRepositoryCreationTemplateDataSource_basic
--- PASS: TestAccECRRepositoryCreationTemplateDataSource_basic (14.27s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ecr 14.378s |
7d8ab06
to
8acc191
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.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccECRRepositoryCreationTemplate' PKG=ecr ACCTEST_PARALLELISM=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/ecr/... -v -count 1 -parallel 3 -run=TestAccECRRepositoryCreationTemplate -timeout 360m
=== RUN TestAccECRRepositoryCreationTemplateDataSource_basic
=== PAUSE TestAccECRRepositoryCreationTemplateDataSource_basic
=== RUN TestAccECRRepositoryCreationTemplate_basic
=== PAUSE TestAccECRRepositoryCreationTemplate_basic
=== RUN TestAccECRRepositoryCreationTemplate_disappears
=== PAUSE TestAccECRRepositoryCreationTemplate_disappears
=== RUN TestAccECRRepositoryCreationTemplate_failWhenAlreadyExists
=== PAUSE TestAccECRRepositoryCreationTemplate_failWhenAlreadyExists
=== RUN TestAccECRRepositoryCreationTemplate_ignoreEquivalentLifecycle
=== PAUSE TestAccECRRepositoryCreationTemplate_ignoreEquivalentLifecycle
=== RUN TestAccECRRepositoryCreationTemplate_repository
=== PAUSE TestAccECRRepositoryCreationTemplate_repository
=== CONT TestAccECRRepositoryCreationTemplateDataSource_basic
=== CONT TestAccECRRepositoryCreationTemplate_failWhenAlreadyExists
=== CONT TestAccECRRepositoryCreationTemplate_disappears
--- PASS: TestAccECRRepositoryCreationTemplate_failWhenAlreadyExists (6.64s)
=== CONT TestAccECRRepositoryCreationTemplate_repository
--- PASS: TestAccECRRepositoryCreationTemplateDataSource_basic (10.10s)
=== CONT TestAccECRRepositoryCreationTemplate_basic
--- PASS: TestAccECRRepositoryCreationTemplate_disappears (10.45s)
=== CONT TestAccECRRepositoryCreationTemplate_ignoreEquivalentLifecycle
--- PASS: TestAccECRRepositoryCreationTemplate_basic (10.34s)
--- PASS: TestAccECRRepositoryCreationTemplate_ignoreEquivalentLifecycle (11.12s)
--- PASS: TestAccECRRepositoryCreationTemplate_repository (17.17s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ecr 28.741s
@bodgit Thanks for the contribution 🎉 👏. |
I am unable to create a ROOT
root is different from ROOT as I can have both defined using the ui, one would make AWS look for a as per ui
vs
this is the error I get:
edit: add error message |
This functionality has been released in v5.61.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
Adds support for ECR Repository Creation Templates.
Example:
Relations
Closes #34503
References
Output from Acceptance Testing