THEY-Consulting / they-terraform

Helper modules for an easier terraform life
3 stars 0 forks source link

remove deprecated inline policies in aws lambda module #108

Open StarfishM opened 1 month ago

StarfishM commented 1 month ago

Context

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