Skip to content
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: ECR registry scanning configuration #22179

Merged
merged 8 commits into from
Dec 13, 2021
Merged

New resource: ECR registry scanning configuration #22179

merged 8 commits into from
Dec 13, 2021

Conversation

bendehaan
Copy link
Contributor

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #21964

Output from acceptance testing:

$ make testacc TESTS=TestAccECRScanningConfiguration_serial PKG=ecr (main|✔)
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ecr/... -v -count 1 -parallel 20 -run='TestAccECRScanningConfiguration_serial' -timeout 180m
=== RUN   TestAccECRScanningConfiguration_serial
=== RUN   TestAccECRScanningConfiguration_serial/basic
--- PASS: TestAccECRScanningConfiguration_serial (33.70s)
    --- PASS: TestAccECRScanningConfiguration_serial/basic (33.70s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/ecr        33.752s
...

@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. provider Pertains to the provider itself, rather than any interaction with AWS. service/ecr Issues and PRs that pertain to the ecr service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. needs-triage Waiting for first response or review from a maintainer. size/XL Managed by automation to categorize the size of a PR. labels Dec 11, 2021
@ewbankkit ewbankkit added new-resource Introduces a new resource. and removed needs-triage Waiting for first response or review from a maintainer. labels Dec 13, 2021
Copy link
Contributor

@ewbankkit ewbankkit left a 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 TESTS=TestAccECRScanningConfiguration_ PKG=ecr
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ecr/... -v -count 1 -parallel 20 -run='TestAccECRScanningConfiguration_' -timeout 180m
=== RUN   TestAccECRScanningConfiguration_serial
=== RUN   TestAccECRScanningConfiguration_serial/basic
=== RUN   TestAccECRScanningConfiguration_serial/update
--- PASS: TestAccECRScanningConfiguration_serial (44.35s)
    --- PASS: TestAccECRScanningConfiguration_serial/basic (16.33s)
    --- PASS: TestAccECRScanningConfiguration_serial/update (28.02s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ecr	47.958s
GovCloud
% make testacc TESTS=TestAccECRScanningConfiguration_ PKG=ecr                        
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ecr/... -v -count 1 -parallel 20 -run='TestAccECRScanningConfiguration_' -timeout 180m
=== RUN   TestAccECRScanningConfiguration_serial
=== RUN   TestAccECRScanningConfiguration_serial/basic
    acctest.go:960: skipping test for aws-us-gov/us-gov-west-1: Error running apply: exit status 1
        
        Error: error creating ECR Registry Scanning Configuration: ValidationException: This feature is disabled
        
          with aws_ecr_registry_scanning_configuration.test,
          on terraform_plugin_test.tf line 2, in resource "aws_ecr_registry_scanning_configuration" "test":
           2: resource "aws_ecr_registry_scanning_configuration" "test" {
        
=== RUN   TestAccECRScanningConfiguration_serial/update
    acctest.go:960: skipping test for aws-us-gov/us-gov-west-1: Error running apply: exit status 1
        
        Error: error creating ECR Registry Scanning Configuration: ValidationException: This feature is disabled
        
          with aws_ecr_registry_scanning_configuration.test,
          on terraform_plugin_test.tf line 2, in resource "aws_ecr_registry_scanning_configuration" "test":
           2: resource "aws_ecr_registry_scanning_configuration" "test" {
        
--- PASS: TestAccECRScanningConfiguration_serial (14.20s)
    --- SKIP: TestAccECRScanningConfiguration_serial/basic (8.45s)
    --- SKIP: TestAccECRScanningConfiguration_serial/update (5.74s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ecr	17.424s

@ewbankkit
Copy link
Contributor

@bendehaan Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit 16d4ee9 into hashicorp:main Dec 13, 2021
@github-actions github-actions bot added this to the v3.70.0 milestone Dec 13, 2021
@github-actions
Copy link

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!

@github-actions
Copy link

github-actions bot commented Jun 1, 2022

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. new-resource Introduces a new resource. provider Pertains to the provider itself, rather than any interaction with AWS. service/ecr Issues and PRs that pertain to the ecr service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for ECR basic and enhanced (registry) scanning
2 participants