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.72k stars 9.08k forks source link

[Docs]: resource "aws_ssm_association" "example" #38362

Open Divyanshutomar27 opened 1 month ago

Divyanshutomar27 commented 1 month ago

Documentation Link

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_association#parameters

Description

resource "aws_ssm_association" "example" {
  name = aws_ssm_document.example.name

  # Cron expression example
  schedule_expression = "cron(0 2 ? * SUN *)"

  # Single-run example
  # schedule_expression = "at(2020-07-07T15:55:00)"

  # Rate expression example
  # schedule_expression = "rate(7 days)"

  targets {
    key    = "InstanceIds"
    values = [aws_instance.example.id]
  }
}

in above block of code, target block doest work as given

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 1 month ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

stefanfreitag commented 1 month ago

Hi @Divyanshutomar27,

could you please add more details?
What do you see when using the target block and what is your expectation?

justinretzolk commented 1 week ago

Hey @Divyanshutomar27 👋 I wanted to check in here to see if you still feel the documentation needs updating. If so, can you provide a bit more detail, as requested above?