Terraform-provider-aws: Add support for Redshift scheduled actions

Created on 9 Apr 2020  ·  2Comments  ·  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

It looks like there is currently no support for AWS Redshift scheduled actions such as pause and resume (those actions and schedules are different to those of snapshots) — at least I could not find any references to them in docs nor in issue tracker here.

New or Affected Resource(s)

  • aws_redschift_scheduled_action

Potential Terraform Configuration

resource "aws_redschift_scheduled_action" "this" {
  name = "nightly-pause"
  description = "Pause redshift cluster for the night"  # optional
  active = true  # optional

  # possibly use some more user-friendly time format here
  start_time = "2020-04-10T00:00:00+00:00"  # optional
  end_time = "2020-05-11T00:00:00+00:00"  # optional
  schedule = "cron(00 21 * * ? *)"   # time is UTC
  iam_role = aws_iam_role.scheduler.arn 

  target_action {
    action = "PauseCluster"
    cluster_identifier = aws_redshift_cluster.this.id
  }
}

References

  • https://docs.aws.amazon.com/redshift/latest/APIReference/API_ScheduledAction.html

  • new-resource servicredshift

    Most helpful comment

    This could _almost_ be merged already - https://github.com/terraform-providers/terraform-provider-aws/pull/13474 - seems like done but abandoned.

    All 2 comments

    This could _almost_ be merged already - https://github.com/terraform-providers/terraform-provider-aws/pull/13474 - seems like done but abandoned.

    Was this page helpful?
    0 / 5 - 0 ratings