Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Conversation

@pgasca
Copy link

@pgasca pgasca commented May 18, 2023

This is based on the following SIM from an external customer. Please test before merging: https://sim.amazon.com/issues/AWSDocsSchedule-27532

Page URL

https://docs.aws.amazon.com/eks/latest/userguide/fargate-logging.html Issue type:

Incomplete information
Name:

[none provided]
Email:
l**a@dock.tech

Trying to do:
Enable Retention in logGroup over the EKS Fargate LogRouter Make Better:

The IAM Policy recommended in this documentation, not has permission to configure retention in CW LogGroups.

https://raw.githubusercontent.com/aws-samples/amazon-eks-fluent-logging-examples/mainline/examples/fargate/cloudwatchlogs/permissions.json

This policy needs add the follow permissions:

"logs:PutRetentionPolicy"
"logs:DeleteRetentionPolicy"

Issue #, if available (include keywords to close issue as applicable, e.g. "fixes <##>"):

Description of changes:

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

This is based on the following SIM from an external customer. Please test before merging:
https://sim.amazon.com/issues/AWSDocsSchedule-27532

Page URL

https://docs.aws.amazon.com/eks/latest/userguide/fargate-logging.html
Issue type:

Incomplete information
Name:

[none provided]
Email:
l**a@dock.tech

Trying to do:
Enable Retention in logGroup over the EKS Fargate LogRouter
Make Better:

The IAM Policy recommended in this documentation, not has permission to configure retention in CW LogGroups.

https://raw.githubusercontent.com/aws-samples/amazon-eks-fluent-logging-examples/mainline/examples/fargate/cloudwatchlogs/permissions.json

This policy needs add the follow permissions:

"logs:PutRetentionPolicy"
"logs:DeleteRetentionPolicy"
@theoscaagomes
Copy link

i have the same problem and this fix the problem

"logs:PutLogEvents"
"logs:PutLogEvents",
"logs:PutRetentionPolicy",
"logs:DeleteRetentionPolicy"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why delete?

Copy link

@lteixeira-dock lteixeira-dock Nov 16, 2023

Choose a reason for hiding this comment

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

Because, If I want remove the retentionPolicy of my logGroup, I can do it. Only it

image

@PettitWesley
Copy link
Contributor

Merged this one instead, sorry: #14

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants