binbashar / leverage

Binbash Leverage CLI intended to orchestrate Leverage Reference Architecture for AWS (www.binbash.co/leverage)
https://pypi.org/project/leverage/
Apache License 2.0
17 stars 2 forks source link

Fix | Remove Unnecessary Suffixes from AWS Profiles in aws config/credentials #291

Open exequielrafaela opened 4 weeks ago

exequielrafaela commented 4 weeks ago

Describe the Feature

Currently, when using commands like aws configure sso or running tf shell --sso within Leverage, AWS profiles are created with additional suffixes such as "administrator" or "devops" in the aws config/credentials file. For example:

These suffixes are unnecessary and create inconsistencies, especially when referenced in Terraform configurations, such as terraform_remote_state or provider configurations. This results in profiles being written with extended names, which could be streamlined for better usability and consistency.

Expected Behavior

Use Case

The current implementation causes confusion and additional complexity in Terraform configurations, especially when specifying profiles for remote state data sources and providers. By simplifying the profile naming convention, we can reduce redundancy, improve consistency, and make configurations cleaner.

Describe Ideal Solution

Alternatives Considered

Additional Context