Skip to content

Commit

Permalink
Merge pull request 99designs#1208 from jchorl/jchorl/fixregion
Browse files Browse the repository at this point in the history
fix region query endpoint
  • Loading branch information
mtibben committed May 15, 2023
2 parents 02412fc + a7a005f commit 7583a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/ec2server.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func startEc2CredentialsServer(credsProvider aws.CredentialsProvider, region str
})

// used by AWS SDK to determine region
router.HandleFunc("/latest/meta-data/dynamic/instance-identity/document", func(w http.ResponseWriter, r *http.Request) {
router.HandleFunc("/latest/dynamic/instance-identity/document", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, `{"region": "`+region+`"}`)
})

Expand Down

0 comments on commit 7583a83

Please sign in to comment.