backport of commit 45b9dffea1cf4fe4e506a9ef9138229961bfbbb4 (#21026)
Co-authored-by: kpcraig <3031348+kpcraig@users.noreply.github.com>
This commit is contained in:
parent
69104f93b8
commit
c61f8780ed
|
@ -13,13 +13,13 @@ import (
|
|||
const (
|
||||
pathStaticCreds = "static-creds"
|
||||
|
||||
paramAccessKeyID = "access_key_id"
|
||||
paramSecretsAccessKey = "secret_access_key"
|
||||
paramAccessKeyID = "access_key"
|
||||
paramSecretsAccessKey = "secret_key"
|
||||
)
|
||||
|
||||
type awsCredentials struct {
|
||||
AccessKeyID string `json:"access_key_id" structs:"access_key_id" mapstructure:"access_key_id"`
|
||||
SecretAccessKey string `json:"secret_access_key" structs:"secret_access_key" mapstructure:"secret_access_key"`
|
||||
AccessKeyID string `json:"access_key" structs:"access_key" mapstructure:"access_key"`
|
||||
SecretAccessKey string `json:"secret_key" structs:"secret_key" mapstructure:"secret_key"`
|
||||
}
|
||||
|
||||
func pathStaticCredentials(b *backend) *framework.Path {
|
||||
|
|
|
@ -714,7 +714,7 @@ $ curl \
|
|||
|
||||
```json
|
||||
{
|
||||
"access_key_id": "AKIA...",
|
||||
"access_secret_key": "..."
|
||||
"access_key": "AKIA...",
|
||||
"secret_key": "..."
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue