Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions aws-auth-proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ func main() {

fs.StringVar(&auth.AccessKey, "access-key", "", "aws access key id")
fs.StringVar(&auth.SecretKey, "secret-key", "", "aws secret access key")
// Ensure we can get authorization
// if using IAM role auth this will also set the token for the first time
// which Sign will renew when expiring
auth, err := aws.GetAuth(auth.AccessKey, auth.SecretKey, "", time.Time{})
if err != nil {
log.Fatal(err)
}
fs.StringVar(&serviceName, "service-name", "", "aws service name")
var regionName string
fs.StringVar(&regionName, "region-name", "", "aws region name")
Expand Down