You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 12, 2025. It is now read-only.
go build -mod vendor -ldflags="-s -w" -o bin/aws-set-env cmd/aws-set-env/main.go
19
19
go build -mod vendor -ldflags="-s -w" -o bin/aws-sign-request cmd/aws-sign-request/main.go
20
20
go build -mod vendor -ldflags="-s -w" -o bin/aws-credentials-json-to-ini cmd/aws-credentials-json-to-ini/main.go
21
+
go build -mod vendor -ldflags="-s -w" -o bin/aws-imds-credentials cmd/aws-imds-credentials/main.go
21
22
```
22
23
23
24
## aws-cognito-credentials
@@ -108,6 +109,22 @@ Usage of ./bin/aws-get-credentials:
108
109
A valid AWS credentials profile (default "default")
109
110
```
110
111
112
+
### aws-imds-credentials
113
+
114
+
`aws-imds-credentials` returns the current `aws.Credentials` derived from the EC2 IMDS API. For example:
115
+
116
+
```
117
+
$> ./bin/aws-imds-credentials | jq
118
+
{
119
+
"AccessKeyID": "...",
120
+
"SecretAccessKey": "...",
121
+
"SessionToken": "...",
122
+
"Source": "EC2RoleProvider",
123
+
"CanExpire": true,
124
+
"Expires": "2024-03-28T19:44:42.59621653Z"
125
+
}
126
+
```
127
+
111
128
### aws-mfa-session
112
129
113
130
`aws-mfa-session` is a command line to create session-based authentication keys and secrets for a given profile and multi-factor authentication (MFA) token and then writing that key and secret back to a "credentials" file in a specific profile section.
0 commit comments