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

AWS SSM DoesNotExistException for missing Maintenance Window #5412

Closed
jseiser opened this issue Aug 1, 2018 · 3 comments · Fixed by #5416
Closed

AWS SSM DoesNotExistException for missing Maintenance Window #5412

jseiser opened this issue Aug 1, 2018 · 3 comments · Fixed by #5416
Labels
bug Addresses a defect in current functionality. good first issue Call to action for new contributors looking for a place to start. Smaller or straightforward issues. service/ssm Issues and PRs that pertain to the ssm service.
Milestone

Comments

@jseiser
Copy link
Contributor

jseiser commented Aug 1, 2018

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

➜ terraform -v
Terraform v0.11.7

  • provider.aws v1.29.0

Affected Resource(s)

Terraform Configuration Files

# Scan MW Window
resource "aws_ssm_maintenance_window" "scan_window" {
  count    = "${var.is_patching}"
  name     = "${var.customer}-${var.project}-${var.environment}-patch-maintenance-scan-mw"
  schedule = "${var.scan_maintenance_window_schedule}"
  duration = "${var.maintenance_window_duration}"
  cutoff   = "${var.maintenance_window_cutoff}"
}

# Install MW Window
resource "aws_ssm_maintenance_window" "install_window" {
  count    = "${var.is_patching}"
  name     = "${var.customer}-${var.project}-${var.environment}-patch-maintenance-install-mw"
  schedule = "${var.install_maintenance_window_schedule}"
  duration = "${var.maintenance_window_duration}"
  cutoff   = "${var.maintenance_window_cutoff}"
}

Expected Behavior

Terraform should re-create the missing maint. window

Actual Behavior

* module.network.aws_ssm_maintenance_window.scan_window: 1 error(s) occurred:

* module.network.aws_ssm_maintenance_window.scan_window: aws_ssm_maintenance_window.scan_window: DoesNotExistException: Maintenance window mw-0967d3367d6166725 does not exist
	status code: 400, request id: 26b96960-0ec1-48d1-828a-c12d1fad40cf
* module.network.aws_ssm_maintenance_window.install_window: 1 error(s) occurred:

* module.network.aws_ssm_maintenance_window.install_window: aws_ssm_maintenance_window.install_window: DoesNotExistException: Maintenance window mw-0029976ce921415ef does not exist
	status code: 400, request id: c1dab474-986f-468b-8ef5-993aac875c05

Steps to Reproduce

  1. terraform plan

Important Factoids

References

#4612 (comment)

  • #0000
@bflad bflad added bug Addresses a defect in current functionality. good first issue Call to action for new contributors looking for a place to start. Smaller or straightforward issues. service/ssm Issues and PRs that pertain to the ssm service. labels Aug 1, 2018
saravanan30erd added a commit to saravanan30erd/terraform-provider-aws that referenced this issue Aug 1, 2018
saravanan30erd added a commit to saravanan30erd/terraform-provider-aws that referenced this issue Aug 2, 2018
@bflad bflad added this to the v1.31.0 milestone Aug 2, 2018
bflad added a commit that referenced this issue Aug 2, 2018
issue #5412 AWS SSM DoesNotExistException for missing Maintenance Window
@bflad
Copy link
Contributor

bflad commented Aug 2, 2018

The fix for this has been merged into master and will release with version 1.30.0 of the AWS provider, likely middle of next week. 👍

@bflad
Copy link
Contributor

bflad commented Aug 9, 2018

This has been released in version 1.31.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@ghost
Copy link

ghost commented Apr 4, 2020

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 and limited conversation to collaborators Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. good first issue Call to action for new contributors looking for a place to start. Smaller or straightforward issues. service/ssm Issues and PRs that pertain to the ssm service.
Projects
None yet
2 participants