eventbridge-schedule-to-cloudwatch-alarm-terraform: Update AWS Provider to v6 - #3301
Open
kakakakakku wants to merge 3 commits into
Open
Conversation
…Image Not Filtered" error
…anaged_policy_arns` argument
kakakakakku
commented
Sep 13, 2026
|
|
||
| filter { | ||
| name = "name" | ||
| name = "name" |
Contributor
Author
There was a problem hiding this comment.
╷
│ Error: Most Recent Image Not Filtered
│
│ with data.aws_ami.amazon-linux-2,
│ on main.tf line 36, in data "aws_ami" "amazon-linux-2":
│ 36: data "aws_ami" "amazon-linux-2" {
│
│ "most_recent" is set to "true" and results are not filtered by owner or image ID. With this configuration, a third party may introduce a new image which will be returned by this data source. Filter by owner or image ID to avoid this
│ possibility.
╵
kakakakakku
commented
Sep 13, 2026
|
|
||
| resource "aws_iam_role_policy_attachment" "scheduler_alarm_policy_attachment" { | ||
| role = aws_iam_role.scheduler-alarm-role.name | ||
| policy_arn = aws_iam_policy.scheduler_alarm_policy.arn |
Contributor
Author
There was a problem hiding this comment.
note: The managed_policy_arns argument is already deprecated. I update code correctly😀 See document below.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
N/A
Description of changes:
Hi😀 Thanks for the useful patterns!
To keep this pattern maintainable, I updated the AWS Provider to v6.
Check
terraform applycompleted successfully and works good.Note: The original schedules only fire at 8am/5pm EST on weekdays, so I temporarily changed them as follows to confirm that both schedules fire as expected.
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.