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.
When applying the cloudwatch-logs-aggregator module, the following warning appears. I would like to resolve this: