Skip to content

eventbridge-cloudwatch-terraform: Update AWS Provider to v6#3064

Open
kakakakakku wants to merge 3 commits intoaws-samples:mainfrom
kakakakakku:eventbridge-cloudwatch-terraform
Open

eventbridge-cloudwatch-terraform: Update AWS Provider to v6#3064
kakakakakku wants to merge 3 commits intoaws-samples:mainfrom
kakakakakku:eventbridge-cloudwatch-terraform

Conversation

@kakakakakku
Copy link
Copy Markdown
Contributor

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 and fixed the CloudWatch Logs resource policy and README that were broken due to the outdated provider version.

Check

terraform apply completed successfully and works good.

$ aws events put-events --entries file://event.json --region us-east-1
{
    "FailedEntryCount": 0,
    "Entries": [
        {
            "EventId": "a4225bec-15eb-d539-4a8f-8e383e0d6237"
        }
    ]
}
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.


## How it works

The AWS SAM template deploys the resources and the IAM permissions required to run the application.
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: Removed an incorrect reference to "AWS SAM template" and "IAM permissions" since this is a Terraform pattern and no IAM resources are defined.

"logs:PutLogEvents"
],
"Resource": "${aws_cloudwatch_log_group.MyLogGroup.arn}",
"Resource": "${aws_cloudwatch_log_group.MyLogGroup.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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants