hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.84k stars 9.19k forks source link

[Enhancement]: Support On Call Rotations #39758

Open jdavidson-arturo opened 1 month ago

jdavidson-arturo commented 1 month ago

Description

It looks like on call rotations are represented as a third type of contact. Supporting this would mean a couple things. a new property to either aws_ssmcontacts_contact or aws_ssmcontacts_plan resource called rotation_ids, adding a new supported type called "ONCALL_SCHEDULE", and not adding stages to contact plans by default. as trying this at the moment causes the following error.

ValidationException: Invalid value provided - ONCALL SCHEDULE contact cannot have stages in plan

Affected Resource(s) and/or Data Source(s)

Potential Terraform Configuration

resource aws_ssmcontacts_contact "contact" {
  alias = "me"
  display_name = "Me Here"
  type = "ONCALL_SCHEDULE"
  rotation_ids = [ "arn:aws:ssm-contacts:...:...:rotation/..." ]
}
# or
resource aws_ssmcontacts_plan "plan" {
  contact_id = "arn:aws:ssm-contacts:...:...:contact/..."
  rotation_ids = [ "arn:aws:ssm-contacts:...:...:rotation/..." ]
}

References

contacts https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmcontacts-contact.html contact plans https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmcontacts-plan.html

Would you like to implement a fix?

No

github-actions[bot] commented 1 month ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue