Skip to content

Conversation

@simonblake-mp
Copy link
Owner

No description provided.

TL;DR: no change to policy names or permissions, just terraform
restructuring to avoid deprecation warnings.

recent (>v5.68.0) versions of the aws provider throw deprecation
warnings for inline policies.  This change moves the inline policies to
separate aws_iam_role_policy resources and converts the policies from
inline jsonencode to iam_policy_documents

I did consider adding aws_iam_role_policies_exclusive to prevent
modification of the policies from outside terraform, but that would have
forced the minimum version of the provider to v5.68.0 - felt like the
possible disruption didn't justify the benefit.
by default the module grants Lambda@Edge rights to create CloudWatch log
groups, which can cause a proliferation of log groups across multiple
regions.  This change:
- adds a variable to control whether the lambda function has permissions
to create log groups
- adds the function name as an output, to support creation of log groups
outside the module
- adds docs to the README explaining the rationale

no change to default behaviour of the module, this should be a
non-breaking change

ff
@simonblake-mp simonblake-mp merged commit 200b3f6 into main Mar 31, 2025
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

Successfully merging this pull request may close these issues.

2 participants