leverage
leverage copied to clipboard
Bug | Leverage configure AWS credentials with .csv file
Describe the Bug
When you try to configure the AWS credentials by specifying the path to a .csv file containing Access Key and Secret Access Key (downloaded from the AWS IAM section), an error message is generated and does not allow the configuration to be done this way. The Manually form is only available
➜ repository git:(main) ✗ leverage credentials configure --type MANAGEMENT
[16:49:25.155] INFO Reading info from build.env
[16:49:25.302] INFO Loading configuration file.
[16:49:25.303] INFO Loading project environment configuration file.
INFO Loading Terraform common configuration.
[16:49:26.316] INFO Configuring management credentials.
> Select the means by which you'll provide the programatic keys: Path to an access keys file obtained from AWS
> Path to access keys file: ~/Downloads/XXXXXXXX_accessKeys_management.csv
Fields for keys not found in access keys file
➜ repository git:(main) ✗ cat ~/Downloads/XXXXXXXX_accessKeys_management.csv
Access key ID,Secret access key
XXXXXXXX,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Expected Behavior
Both options shown in the cli output are expected to allow setting the variables, either from a .csv file or manually
Steps to Reproduce
Steps to reproduce the behavior:
- If you don't have it, clone this repo https://github.com/binbashar/le-tf-infra-aws
- Go to the root folder of the cloned repository and try to configure the MANAGEMENT or SECURITY credentials.
leverage credentials configure --type MANAGEMENT
- Select the Path to access keys file option to configure the credentials.
- Indicates the path to .csv file (previously obtained from the AWS console in the IAM section).
- See error
Screenshots

Environment (please complete the following information):
- OS:
macOS Ventura 13.2.1 (22D68) - Kernel Version: Darwin 22.3.0
- Workstation:
MacBook Pro M1 Pro
- Leverage cli version:
1.9.2
- Python version:
Python 3.10.5 | pip 23.0.1
- Docker version:
Client:
Cloud integration: v1.0.31
Version: 20.10.23
API version: 1.41
Go version: go1.18.10
Git commit: 7155243
Built: Thu Jan 19 17:35:19 2023
OS/Arch: darwin/arm64
Context: desktop-linux
Experimental: true
Server: Docker Desktop 4.17.0 (99724)
Engine:
Version: 20.10.23
API version: 1.41 (minimum version 1.12)
Go version: go1.18.10
Git commit: 6051f14
Built: Thu Jan 19 17:31:28 2023
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.6.18
GitCommit: 2456e983eb9e37e47538f59ea18f2043c9a73640
runc:
Version: 1.1.4
GitCommit: v1.1.4-0-g5fd4c4d
docker-init:
Version: 0.19.0
GitCommit: de40ad0