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

r/resource_aws_ssm_patch_baseline - add support for ApproveUntilDate attribute #13850

Merged
merged 6 commits into from
Feb 12, 2021

Conversation

drexler
Copy link
Contributor

@drexler drexler commented Jun 20, 2020

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 #13816

Release note for CHANGELOG:

add support for ApproveUntilDate attribute in resource_aws_ssm_patch_baseline

Output from acceptance testing:

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSSSMPatchBaseline'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSSMPatchBaseline -timeout 120m
=== RUN   TestAccAWSSSMPatchBaseline_basic
=== PAUSE TestAccAWSSSMPatchBaseline_basic
=== RUN   TestAccAWSSSMPatchBaseline_tags
=== PAUSE TestAccAWSSSMPatchBaseline_tags
=== RUN   TestAccAWSSSMPatchBaseline_disappears
=== PAUSE TestAccAWSSSMPatchBaseline_disappears
=== RUN   TestAccAWSSSMPatchBaseline_OperatingSystem
=== PAUSE TestAccAWSSSMPatchBaseline_OperatingSystem
=== RUN   TestAccAWSSSMPatchBaseline_ApproveUntilDateParam
=== PAUSE TestAccAWSSSMPatchBaseline_ApproveUntilDateParam
=== RUN   TestAccAWSSSMPatchBaseline_InvalidConfiguration
=== PAUSE TestAccAWSSSMPatchBaseline_InvalidConfiguration
=== CONT  TestAccAWSSSMPatchBaseline_basic
=== CONT  TestAccAWSSSMPatchBaseline_InvalidConfiguration
=== CONT  TestAccAWSSSMPatchBaseline_disappears
=== CONT  TestAccAWSSSMPatchBaseline_OperatingSystem
=== CONT  TestAccAWSSSMPatchBaseline_tags
=== CONT  TestAccAWSSSMPatchBaseline_ApproveUntilDateParam
--- PASS: TestAccAWSSSMPatchBaseline_InvalidConfiguration (8.89s)
--- PASS: TestAccAWSSSMPatchBaseline_disappears (16.06s)
--- PASS: TestAccAWSSSMPatchBaseline_ApproveUntilDateParam (36.59s)
--- PASS: TestAccAWSSSMPatchBaseline_basic (36.68s)
--- PASS: TestAccAWSSSMPatchBaseline_OperatingSystem (36.90s)
--- PASS: TestAccAWSSSMPatchBaseline_tags (49.81s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	49.899s

...

@ghost ghost added size/M Managed by automation to categorize the size of a PR. service/ssm Issues and PRs that pertain to the ssm service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. needs-triage Waiting for first response or review from a maintainer. labels Jun 20, 2020
@drexler drexler changed the title [WIP] - support ApproveUntilDate attribute in resource_aws_ssm_patch_baseline [WIP] r/resource_aws_ssm_patch_baseline - add support for ApproveUntilDate attribute Jun 20, 2020
@ghost ghost added size/L Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. and removed size/M Managed by automation to categorize the size of a PR. labels Jun 25, 2020
@drexler drexler marked this pull request as ready for review June 25, 2020 12:06
@drexler drexler requested a review from a team June 25, 2020 12:06
@drexler drexler changed the title [WIP] r/resource_aws_ssm_patch_baseline - add support for ApproveUntilDate attribute r/resource_aws_ssm_patch_baseline - add support for ApproveUntilDate attribute Jun 25, 2020
@dasbiswajit
Copy link

much needed.

@Mond18S
Copy link

Mond18S commented Oct 13, 2020

need of the hour

@jjuliogallegos
Copy link

very needed please!

Base automatically changed from master to main January 23, 2021 00:58
@breathingdust breathingdust requested a review from a team as a code owner January 23, 2021 00:58
@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Feb 12, 2021
@bflad bflad self-assigned this Feb 12, 2021
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for submitting this, @drexler. After rebasing this, it is looking pretty good, just changing the error handling back as mentioned below. 👍

aws/resource_aws_ssm_patch_baseline.go Outdated Show resolved Hide resolved
aws/resource_aws_ssm_patch_baseline.go Outdated Show resolved Hide resolved
aws/resource_aws_ssm_patch_baseline.go Outdated Show resolved Hide resolved
aws/resource_aws_ssm_patch_baseline.go Outdated Show resolved Hide resolved
aws/resource_aws_ssm_patch_baseline.go Outdated Show resolved Hide resolved
aws/resource_aws_ssm_patch_baseline.go Outdated Show resolved Hide resolved
aws/resource_aws_ssm_patch_baseline.go Outdated Show resolved Hide resolved
@ghost ghost removed the size/L Managed by automation to categorize the size of a PR. label Feb 12, 2021
@ghost ghost added the size/M Managed by automation to categorize the size of a PR. label Feb 12, 2021
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much, @drexler 🚀

Output from acceptance testing in AWS Commercial:

--- PASS: TestAccAWSSSMPatchBaseline_disappears (14.78s)
--- PASS: TestAccAWSSSMPatchBaseline_ApprovedPatchesNonSec (20.17s)
--- PASS: TestAccAWSSSMPatchBaseline_RejectPatchesAction (20.74s)
--- PASS: TestAccAWSSSMPatchBaseline_Sources (30.82s)
--- PASS: TestAccAWSSSMPatchBaseline_basic (31.96s)
--- PASS: TestAccAWSSSMPatchBaseline_ApproveUntilDateParam (32.05s)
--- PASS: TestAccAWSSSMPatchBaseline_OperatingSystem (32.27s)
--- PASS: TestAccAWSSSMPatchBaseline_tags (40.47s)

Output from acceptance testing in AWS GovCloud (US):

--- PASS: TestAccAWSSSMPatchBaseline_disappears (18.20s)
--- PASS: TestAccAWSSSMPatchBaseline_RejectPatchesAction (25.20s)
--- PASS: TestAccAWSSSMPatchBaseline_ApprovedPatchesNonSec (25.66s)
--- PASS: TestAccAWSSSMPatchBaseline_basic (38.23s)
--- PASS: TestAccAWSSSMPatchBaseline_Sources (38.59s)
--- PASS: TestAccAWSSSMPatchBaseline_ApproveUntilDateParam (38.79s)
--- PASS: TestAccAWSSSMPatchBaseline_OperatingSystem (39.24s)
--- PASS: TestAccAWSSSMPatchBaseline_tags (50.26s)

bflad added a commit that referenced this pull request Feb 12, 2021
@bflad bflad merged commit 975c8a7 into hashicorp:main Feb 12, 2021
@github-actions github-actions bot added this to the v3.28.0 milestone Feb 12, 2021
@ghost
Copy link

ghost commented Feb 12, 2021

This has been released in version 3.28.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 for triage. Thanks!

@ghost
Copy link

ghost commented Mar 14, 2021

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.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Mar 14, 2021
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. enhancement Requests to existing resources that expand the functionality or scope. service/ssm Issues and PRs that pertain to the ssm service. size/M 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.

[feature request] Add support for ApproveUntilDate in AWS resource aws_ssm_patch_baseline
5 participants