Skip to content

v0.39.0

Compare
Choose a tag to compare
@cloudpossebot cloudpossebot released this 11 Apr 22:44
13e082f
Add scheduled_actions variables (#174) @florian0410 (#177)

What is changing ?

Adding a new var scheduled_actions to give ability to setup beanstalk Scheduled actions.

Example:

scheduled_actions = [
  {
    name            = "Refreshinstances"
    minsize         = "1"
    maxsize         = "2"
    desiredcapacity = "2"
    starttime       = "2015-05-14T07:00:00Z"
    endtime         = "2016-01-12T07:00:00Z"
    recurrence      = "*/20 * * * *"
    suspend         = false
  },
  {
    name            = "Refreshinstances2"
    minsize         = "1"
    maxsize         = "2"
    desiredcapacity = "2"
    starttime       = "2015-05-14T07:00:00Z"
    endtime         = "2016-01-12T07:00:00Z"
    recurrence      = "*/30 * * * *"
    suspend         = false
  }
]

Why ?

We cannot use additional_settings to define these since it does not handle the dedicated resource field.

https://github.com/cloudposse/terraform-aws-elastic-beanstalk-environment/blob/2d146afbe6ca491d07b81732209244867bbdcd5c/variables.tf#L380-L385

https://github.com/cloudposse/terraform-aws-elastic-beanstalk-environment/blob/2d146afbe6ca491d07b81732209244867bbdcd5c/main.tf#L867-L875

references