-
-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Correct assume role permissions for SNS service to assume IAM role #220
fix: Correct assume role permissions for SNS service to assume IAM role #220
Conversation
@@ -31,7 +31,16 @@ resource "aws_iam_role" "sns_feedback_role" { | |||
path = var.sns_topic_feedback_role_path | |||
force_detach_policies = var.sns_topic_feedback_role_force_detach_policies | |||
permissions_boundary = var.sns_topic_feedback_role_permissions_boundary | |||
assume_role_policy = data.aws_iam_policy_document.sns_feedback[0].json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
part 1:
lets leave this as is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
iam.tf
Outdated
@@ -31,7 +31,16 @@ resource "aws_iam_role" "sns_feedback_role" { | |||
path = var.sns_topic_feedback_role_path | |||
force_detach_policies = var.sns_topic_feedback_role_force_detach_policies | |||
permissions_boundary = var.sns_topic_feedback_role_permissions_boundary | |||
assume_role_policy = data.aws_iam_policy_document.sns_feedback[0].json | |||
assume_role_policy = jsonencode({ | |||
Version = "2012-10-17", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
part 2:
Replace the permissions here with the permissions defined below
also, I guess this has been broken for 2 years?! 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am hoping you meant extend this with the inline permission that I had added ?
## [6.1.2](v6.1.1...v6.1.2) (2024-03-26) ### Bug Fixes * Correct assume role permissions for SNS service to assume IAM role ([#220](#220)) ([dae0c0f](dae0c0f))
This PR is included in version 6.1.2 🎉 |
I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
Replaced the defined
assume_role_policy
with an inline policy and with that the IAM policy for CloudWatch Logs is properly attached to the role, and a valid assume role policy is defined, granting AWS SNS the right to assume the role.Motivation and Context
Fixes #219
Breaking Changes
How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projectspre-commit run -a
on my pull request