You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# module.aws_iam_role.lambda[0] will be updated in-place
~ resource "aws_iam_role" "lambda" {
~ assume_role_policy = jsonencode(
~ {
~ Statement = [
~ {
~ Principal = {
- AWS = "arn:aws:sts::************:assumed-role/OktaRoleFor*****/******@*****.com" -> null
~ Service = "lambda.amazonaws.com" -> [
+ "lambda.amazonaws.com",
+ "arn:aws:sts::************:assumed-role/OktaRoleFor*****/******@*****.com",
]
}
# (3 unchanged elements hidden)
},
]
# (1 unchanged element hidden)
}
)
Which will result in a Error Updating IAM Role (****) Assume Role Policy: MalformedPolicyDocument: Invalid principal in policy: "SERVICE":"arn:aws:sts::************:assumed-role/OktaRoleFor*****/******@*****.com"
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is your request related to a new offering from AWS?
I don’t think so
Is your request related to a problem? Please describe.
We want our trusted entities from our lambda role to look like the following:
Unfortunately, when using the input
trusted_entities
as following:Terraform tries to perform this :
Which will result in a
Error Updating IAM Role (****) Assume Role Policy: MalformedPolicyDocument: Invalid principal in policy: "SERVICE":"arn:aws:sts::************:assumed-role/OktaRoleFor*****/******@*****.com"
Describe the solution you'd like.
It would be nice to use
trusted_entities
like so:Describe alternatives you've considered.
We don’t find an alternative at this moment, we would appreciate any direction :)
Additional context
Thank you all for your great work on this fabulous module !! 🎉
The text was updated successfully, but these errors were encountered: