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: Allow generic assume role conditions #543

Conversation

bryantbiggs
Copy link
Member

Description

  • Allow generic assume role conditions

Motivation and Context

Breaking Changes

  • No

How Has This Been Tested?

  • 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

@@ -16,6 +16,16 @@ variable "trusted_role_services" {
default = []
}

variable "trust_policy_conditions" {
description = "[Condition constraints](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document#condition) applied to the trust policy"
type = list(object({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also think we should start introducing such stricter types for variables where it makes sense. 👍

In my experience with other modules (e.g., S3 bucket), 100% concrete variable types are impossible, which is unfortunate. We need to be careful about that. :)

@bryantbiggs bryantbiggs merged commit c3e54f2 into terraform-aws-modules:master Dec 30, 2024
34 checks passed
antonbabenko pushed a commit that referenced this pull request Dec 30, 2024
## [5.52.0](v5.51.0...v5.52.0) (2024-12-30)

### Features

* Allow generic assume role conditions ([#543](#543)) ([c3e54f2](c3e54f2))
@antonbabenko
Copy link
Member

This PR is included in version 5.52.0 🎉

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 Jan 30, 2025
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.

Add more options for generating trust policy
2 participants