From c61f8780ed27c010d06b3becd70b07f0a3987903 Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-vault-core <82990506+hc-github-team-secure-vault-core@users.noreply.github.com> Date: Tue, 6 Jun 2023 16:00:24 -0400 Subject: [PATCH] backport of commit 45b9dffea1cf4fe4e506a9ef9138229961bfbbb4 (#21026) Co-authored-by: kpcraig <3031348+kpcraig@users.noreply.github.com> --- builtin/logical/aws/path_static_creds.go | 8 ++++---- website/content/api-docs/secret/aws.mdx | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/builtin/logical/aws/path_static_creds.go b/builtin/logical/aws/path_static_creds.go index c1a152692..119f5d0b3 100644 --- a/builtin/logical/aws/path_static_creds.go +++ b/builtin/logical/aws/path_static_creds.go @@ -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 { diff --git a/website/content/api-docs/secret/aws.mdx b/website/content/api-docs/secret/aws.mdx index 32656ee38..9a13139ba 100644 --- a/website/content/api-docs/secret/aws.mdx +++ b/website/content/api-docs/secret/aws.mdx @@ -714,7 +714,7 @@ $ curl \ ```json { - "access_key_id": "AKIA...", - "access_secret_key": "..." + "access_key": "AKIA...", + "secret_key": "..." } ```