diff --git a/builtin/credential/aws/client.go b/builtin/credential/aws/client.go index 2b4c4aba4e..761ddeb55a 100644 --- a/builtin/credential/aws/client.go +++ b/builtin/credential/aws/client.go @@ -69,7 +69,7 @@ func (b *backend) getRawClientConfig(ctx context.Context, s logical.Storage, reg } // getClientConfig returns an aws-sdk-go config, with optionally assumed credentials -// It uses getRawClientConfig to obtain config for the runtime environemnt, and if +// It uses getRawClientConfig to obtain config for the runtime environment, and if // stsRole is a non-empty string, it will use AssumeRole to obtain a set of assumed // credentials. The credentials will expire after 15 minutes but will auto-refresh. func (b *backend) getClientConfig(ctx context.Context, s logical.Storage, region, stsRole, accountID, clientType string) (*aws.Config, error) { diff --git a/helper/awsutil/generate_credentials.go b/helper/awsutil/generate_credentials.go index 6b18968329..83c134a56e 100644 --- a/helper/awsutil/generate_credentials.go +++ b/helper/awsutil/generate_credentials.go @@ -77,7 +77,7 @@ func (c *CredentialsConfig) GenerateCredentialChain() (*credentials.Credentials, // Create the credentials required to access the API. creds := credentials.NewChainCredentials(providers) if creds == nil { - return nil, fmt.Errorf("could not compile valid credential providers from static config, environemnt, shared, or instance metadata") + return nil, fmt.Errorf("could not compile valid credential providers from static config, environment, shared, or instance metadata") } return creds, nil