in our aws/lambda/iam.tf we're still using deprecated in line role policies, these need to swapped for
resources blocks of "aws_iam_role_policy" and then attached via a resource block of "aws_iam_role_policy_exclusive"
to see actual warning in example code:
go to: examples/aws/lambda_with_sqs_trigger
update terraform provider we're using to:"~> 5.71"
run:terraform init -upgrade
run:terraform plan
Desired Outcome
no more deprecation warning when using the most recent aws provider
Context
in our
aws/lambda/iam.tf
we're still using deprecated in line role policies, these need to swapped forresources blocks of "aws_iam_role_policy" and then attached via a resource block of "aws_iam_role_policy_exclusive"
to see actual warning in example code: go to:
examples/aws/lambda_with_sqs_trigger
update terraform provider we're using to:"~> 5.71"
run:terraform init -upgrade
run:terraform plan
Desired Outcome