Skip to content

eventbridge-schedule-to-cloudwatch-terraform: Fix deprecated managed_policy_arns argument#2915

Merged
julianwood merged 1 commit intoaws-samples:mainfrom
kakakakakku:eventbridge-schedule-to-cloudwatch-terraform
Mar 24, 2026
Merged

eventbridge-schedule-to-cloudwatch-terraform: Fix deprecated managed_policy_arns argument#2915
julianwood merged 1 commit intoaws-samples:mainfrom
kakakakakku:eventbridge-schedule-to-cloudwatch-terraform

Conversation

@kakakakakku
Copy link
Copy Markdown
Contributor

Issue #, if available:
N/A

Description of changes:
Hi😀 Thanks for the useful patterns!

While testing eventbridge-schedule-to-cloudwatch-terraform, I noticed that the managed_policy_arns argument is already deprecated. And I fixed it.

"managed_policy_arns" is deprecated

Check

terraform apply completed successfully and it works good.

image

Thank you😀


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.


resource "aws_iam_role" "scheduler-cloudwatch-role" {
name = "scheduler-cloudwatch-role"
managed_policy_arns = [aws_iam_policy.scheduler_cloudwatch_policy.arn]
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: The managed_policy_arns argument is already deprecated. I update code correctly😀 See document below.

@biswanathmukherjee
Copy link
Copy Markdown
Contributor

Approved. DA will merge is soon!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants