mackerelio-labs / mackerel-monitoring-modules

Reusable IaC modules for monitoring systems/services on Mackerel
Apache License 2.0
3 stars 2 forks source link

Fix deprecation warning when applying cloudwatch-logs-aggregator module #28

Closed koresou closed 1 month ago

koresou commented 1 month ago

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 10, in resource "aws_iam_role" "this":
  10: resource "aws_iam_role" "this" {

Use the aws_iam_role_policy resource instead. If Terraform should exclusively
manage all inline policy associations (the current behavior of this
argument), use the aws_iam_role_policies_exclusive resource as well.
Arthur1 commented 1 month ago

Hello, @koresou. Thank you for your report.

This problem has been resolved with the v0.4.0 release.