Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: simplifyBaseIAMLogGroups function is not taking others statements used in the iam role definition #5

Open
frangeris opened this issue Dec 28, 2024 · 2 comments · May be fixed by #6

Comments

@frangeris
Copy link

Hi there, quick issue report

The function that rewrite the Statement is discarting any other permissions being used and previously defined, only the logs actions are being attached:

"Action": [
  "logs:CreateLogStream",
  "logs:CreateLogGroup",
  "logs:PutLogEvents"
],

I have others required permissions that are not included in the final policy:

      statements:
        - Effect: Allow
          Action:
            - "s3:*"
          Resource: "*"
        - Effect: Allow
          Action:
            - "cloudwatch:*"
            - "logs:*"
          Resource: "*"
        - Effect: Allow
          Action:
            - "lambda:InvokeFunction"
          Resource: "*"
        - Effect: Allow
          Action:
            - "ssm:GetParameter"
            - "ssm:GetParametersByPath"
            - "ssm:PutParameter"
            - "ssm:DescribeParameters"
          Resource: "*"
        - Effect: Allow
          Action:
            - "events:PutEvents"
          Resource: "*"
@fisrar-dev
Copy link

@frangeris were you able to find a workaround or an alternate for this? I too am facing the same problem.

@frangeris
Copy link
Author

Hey @fisrar-dev , yea, there is an open pr, for now apply it as patch, has been working for the last 2 weeks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants