Terraform Provider with Dynamic AWS Role or SSO
Terraform Providers can sometimes be a bit clunky when you are working locally vs what your final pipeline configuration will be. For instance, often an AWS role will be limited to pipeline access and not allowed to be assumed by users for security reasons. Users will have to authenticate with their SSO roles for any actions they perform instead.
While Terraform supports this with the profile = <your-sso-profile>
configuration, this means setting specific values in your local development, remembering to change those before committing/pushing to your project, etc.
Now, there is way you can get the best of both worlds, with dynamic "assume_role"
and some clever logic!