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

add schedule_offset parameter to aws_ssm_maintenance_window #16569

Merged
merged 3 commits into from
Dec 7, 2020

Conversation

sysamma
Copy link
Contributor

@sysamma sysamma commented Dec 3, 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

Release note for CHANGELOG:

add schedule_offset parameter to aws_ssm_maintenance_window

Output from acceptance testing:

make testacc TESTARGS='-run=TestAccAWSSSMMaintenanceWindow_basic'                                                                                                 46s
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSSMMaintenanceWindow_basic -timeout 120m
=== RUN   TestAccAWSSSMMaintenanceWindow_basic
=== PAUSE TestAccAWSSSMMaintenanceWindow_basic
=== CONT  TestAccAWSSSMMaintenanceWindow_basic
--- PASS: TestAccAWSSSMMaintenanceWindow_basic (37.08s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	39.163s

...

@sysamma sysamma requested a review from a team as a code owner December 3, 2020 18:09
@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. labels Dec 3, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Dec 3, 2020
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome @sysamma 👋

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 CONTRIBUTING 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! 😃

@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 Dec 3, 2020
@ghost ghost added the documentation Introduces or discusses updates to documentation. label Dec 3, 2020
@bflad bflad self-assigned this Dec 7, 2020
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 this, @sysamma 🚀 Pulling this in and fixing the remaining test failure:

=== CONT  TestAccAWSSSMMaintenanceWindow_ScheduleOffset
TestAccAWSSSMMaintenanceWindow_ScheduleOffset: resource_aws_ssm_maintenance_window_test.go:471: Step 1/3 error: Error running apply:
Error: error creating SSM Maintenance Window: ValidationException: An offset can't be added to the specified schedule. A schedule offset can be specified only for CRON expressions that target a specific day in a specific week of the month, such as TUE#3.
  status code: 400, request id: eb9f29ef-04a5-45a0-bbfc-a2d92943664b
--- FAIL: TestAccAWSSSMMaintenanceWindow_ScheduleOffset (20.50s)

Other resource acceptance testing:

--- PASS: TestAccAWSSSMMaintenanceWindow_basic (70.25s)
--- PASS: TestAccAWSSSMMaintenanceWindow_Cutoff (110.11s)
--- PASS: TestAccAWSSSMMaintenanceWindow_description (110.14s)
--- PASS: TestAccAWSSSMMaintenanceWindow_disappears (50.95s)
--- PASS: TestAccAWSSSMMaintenanceWindow_Duration (95.55s)
--- PASS: TestAccAWSSSMMaintenanceWindow_Enabled (77.48s)
--- PASS: TestAccAWSSSMMaintenanceWindow_EndDate (85.32s)
--- PASS: TestAccAWSSSMMaintenanceWindow_multipleUpdates (103.51s)
--- PASS: TestAccAWSSSMMaintenanceWindow_Schedule (66.02s)
--- PASS: TestAccAWSSSMMaintenanceWindow_ScheduleTimezone (74.36s)
--- PASS: TestAccAWSSSMMaintenanceWindow_StartDate (69.76s)
--- PASS: TestAccAWSSSMMaintenanceWindow_tags (126.19s)

@bflad bflad merged commit e11a809 into hashicorp:master Dec 7, 2020
@bflad bflad added this to the v3.21.0 milestone Dec 7, 2020
bflad added a commit that referenced this pull request Dec 7, 2020
@ghost
Copy link

ghost commented Dec 11, 2020

This has been released in version 3.21.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 Jan 7, 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 Jan 7, 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.

2 participants