Terraform-provider-aws: Support for AWS Glue Job Notification Delay

Created on 31 Jan 2020  ·  5Comments  ·  Source: hashicorp/terraform-provider-aws

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 other comments that do not add relevant new information or questions, 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

Description

Add support for the AWS Glue Job Notification Delay After feature. This feature allows for AWS Glue to send a notification to Clouwatch rules when a job takes longer than the configured minutes value. To configure this property it looks like we need to include a "NotificationProperty" that is of type object with 1 field called "NotifyDelayAfter" that is the minute integer value. It is indicated on the AWS CLI as --notification-property <value>.

New or Affected Resource(s)

  • aws_glue_job

Potential Terraform Configuration

Example possible implementation of the terraform for the aws_glue_job.

resource "aws_glue_job" "example" {
  name     = "example"
  role_arn = "${aws_iam_role.example.arn}"

  command {
    script_location = "s3://${aws_s3_bucket.example.bucket}/example.py"
  }
  notification_property {
    notify_delay_after = 90
  }
}

References

enhancement servicglue

Most helpful comment

Thank you so much for the quick turn around here. I was hoping to get a PR together this weekend to support this feature but you guys already have it in production!

All 5 comments

Anyone got an issue with me having an initial go at this?

Support for this functionality has been merged and will release with version 2.50.0 of the Terraform AWS Provider, end of next week. Thanks to @jhole89 for the implementation. 👍

This has been released in version 2.51.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!

Thank you so much for the quick turn around here. I was hoping to get a PR together this weekend to support this feature but you guys already have it in production!

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!

Was this page helpful?
0 / 5 - 0 ratings