parameter-store-manager
parameter-store-manager copied to clipboard
Document instructions for connecting to AWS
Document the different ways of how the app connects to AWS.
Connection to AWS was super simple for me:
connect using aws-vault
av /opt/ParameterStoreManager/parameter-store-manager
Where av is:
av () { exec aws-vault --debug exec "${AWS_DEFAULT_PROFILE:-work-profile}" --server -- "$@"; }
aws-vault debug log
2019/05/25 15:21:19 [keyring] Considering backends: [file]
2019/05/25 15:21:19 Loading config file /home/virgil/.aws/config
2019/05/25 15:21:19 Parsing config file /home/virgil/.aws/config
2019/05/25 15:21:19 Looking for sessions for work-profile
2019/05/25 15:21:19 Looking up all keys in keyring
2019/05/25 15:21:19 [keyring] Expanded file dir to /home/virgil/.awsvault/keys/
2019/05/25 15:21:19 Session "work-profile session (1558798490)" expires in 10h13m30.790102s
2019/05/25 15:21:19 [keyring] Expanded file dir to /home/virgil/.awsvault/keys/
2019/05/25 15:21:19 [keyring] Expanded file dir to /home/virgil/.awsvault/keys/
2019/05/25 15:21:19 Using session ****************N56T, expires in 10h13m30.7580109s
2019/05/25 15:21:19 Using region "ap-southeast-2" from AWS_REGION
2019/05/25 15:21:19 Assuming role arn:aws:iam::123456798132:role/AdminRole from session token
2019/05/25 15:21:20 Using role ****************QBS2 (from session token), expires in 58m59.3696621s
2019/05/25 15:21:20 Local instance role server running on 127.0.0.1:9099
2019/05/25 15:21:20 Setting subprocess env: AWS_DEFAULT_REGION=ap-southeast-2, AWS_REGION=ap-southeast-2
Unable to revert mtime: /usr/local/share/fonts
shared memfd open() failed: Function not implemented
15:21:24.695 › APPIMAGE env is not defined, current application is not an AppImage
2019/05/25 15:21:34 RemoteAddr = 127.0.0.1:34704
2019/05/25 15:21:34 Credentials.IsExpired() = false
2019/05/25 15:21:34 Serving credentials via http ****************QBS2, expiration of 2019-05-25T06:20:20Z (58m45.7200334s)
2019/05/25 15:43:45 RemoteAddr = 127.0.0.1:35457
2019/05/25 15:43:45 Credentials.IsExpired() = false
2019/05/25 15:43:45 Serving credentials via http ****************QBS2, expiration of 2019-05-25T06:20:20Z (36m34.2371272s)
Hope that's of use for the documentation.