Skip to content
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

feat: Add support for condition role_session_name when assuming a role #379

Merged
merged 1 commit into from
May 17, 2023

Conversation

christiangonre
Copy link
Contributor

Description

Trying to set as a requirement the parameter role_session_name when a user assumes a role I found that someone created an issue but it has been closed. I need this feature, so I implemented this MR.
I hope this will be useful for the community.

Motivation and Context

The purpose of this condition is to make easier track the user actions when viewing AWS CloudTrail logs, as described in this AWS post

Breaking Changes

Nothing

How Has This Been Tested?

I tested this locally in my environment and it works great. To test this, you need to set your username as role_session_name when assuming the role. If you don´t set your username as this variable, the assumerole will fail.

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

@bryantbiggs bryantbiggs merged commit 5aabe67 into terraform-aws-modules:master May 17, 2023
antonbabenko pushed a commit that referenced this pull request May 17, 2023
## [5.19.0](v5.18.0...v5.19.0) (2023-05-17)

### Features

* Add support for condition role_session_name when assuming a role ([#379](#379)) ([5aabe67](5aabe67))
@antonbabenko
Copy link
Member

This PR is included in version 5.19.0 🎉

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants