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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved support for specifying time HH:MM in azurerm_automation_schedule #11636

Open
Noel-Jones opened this issue May 8, 2021 · 1 comment

Comments

@Noel-Jones
Copy link
Contributor

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

Description

When specifying the start time you are required to enter an RFC format time or leave the time as null (in which case a time is generated 7 minutes in the future). I wish to schedule actions at a specific time each day. In Terraform it is nigh on impossible to create a time sting with a fixed time component that is at least 7 minutes in the future bearing in mind the start time may be the next day. Timestamp functions cannot be used because the resource would be recreated each execution. The time_static and time_offset resources allow a complex solution but still sub optimal solution to be devised. If there is anything better then I have not been able to work it out.

My request is that the start time field be allowed to specify only the time component, e.g. hh:mm:ss instead of a full time stamp. The next possible start time can be calculated ensuring that it is 7 minutes in the future.

New or Affected Resource(s)

  • azurerm_automation_schedule

Potential Terraform Configuration

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.

References

  • #0000
@MattGarner-N
Copy link

Use timestamp and just do this?

lifecycle {
ignore_changes = [
start_time
]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants