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

Fix deprecation warning(deprecate managed_policy_arns argument) #31

Open
ryosukes opened this issue Nov 8, 2024 · 1 comment
Open

Comments

@ryosukes
Copy link
Contributor

ryosukes commented Nov 8, 2024

When applying the cloudwatch-logs-aggregator module, the following warning appears. I would like to resolve this:

Warning: Argument is deprecated

  with module.cw_logs_aggregator_lambda.aws_iam_role.this,
  on .terraform/modules/cw_logs_aggregator_lambda/cloudwatch-logs-aggregator/lambda/main.tf line 27, in resource "aws_iam_role" "this":
  27:   managed_policy_arns = ["arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"]

The managed_policy_arns argument is deprecated. Use the
aws_iam_role_policy_attachments_exclusive resource instead.

(and one more similar warning elsewhere)
@ne-sachirou
Copy link
Member

Thank you for reporting the problem. We will fix the issue.

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

No branches or pull requests

2 participants