Skip to content

Support multiple assume_role blocks in provider configuration for chained role use #91

@dene14

Description

@dene14

Describe the Feature

Provider should support multiple assume_role blocks in order to allow chained roles in some scenarios

Expected Behavior

Multiple assume_role blocks work just fine in hashicorp/aws

Use Case

In some scenarios there is a need to assume target role through a "proxy" role. Extremely useful in case of infra migrations or accommodating additional security requirements.

Additional Context

17:38:01.464 STDERR tofu1.10.6: Error: Too many assume_role blocks
17:38:01.464 STDERR tofu1.10.6:   on providers.tf line 46, in provider "awsutils":
17:38:01.464 STDERR tofu1.10.6:   46:   assume_role {
17:38:01.464 STDERR tofu1.10.6: No more than 1 "assume_role" blocks are allowed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions