Skip to content

Commit

Permalink
fix: Extend temporary key duration (#15)
Browse files Browse the repository at this point in the history
* Extend temporary key duration

* Update doc
  • Loading branch information
bonclay7 authored Jun 22, 2023
1 parent 9bf1b1f commit f017996
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ Build from latest release. This requires Go installed on your environement.
go install github.com/aws-observability/amazon-managed-grafana-migrator@latest
```

This command above will build the binary into your Go path `($HOME/go/bin)`.
Make sure to add your Go bin in your $PATH to run the command.
For Linux, this is usually `export PATH=$PATH:$HOME/go/bin`.

You can also download the pre-compiled binary for your OS and CPU architecture
from our [GitHub releases](https://github.com/aws-observability/amazon-managed-grafana-migrator/releases/latest).

Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (a *AMG) CreateWorkspaceApiKey(workspaceID string) (AMGApiKey, error) {

log.Debug("Creating temporary API key for ", workspaceID)

duration := time.Duration(5 * 60 * time.Second)
duration := time.Duration(30 * 60 * time.Second)
resp, err := a.Client.CreateWorkspaceApiKey(&managedgrafana.CreateWorkspaceApiKeyInput{
KeyName: aws.String(keyName),
KeyRole: aws.String("ADMIN"),
Expand Down

0 comments on commit f017996

Please sign in to comment.