This extension provides Sigv4 authentication for making requests to AWS services. For more information on the Sigv4 process, please look here.
Configuration
The configuration fields are as follows:
assume_role: Optional. Specifies the configuration needed to assume a role
arn: The Amazon Resource Name (ARN) of a role to assume
session_name: Optional. The name of a role session
sts_region: The AWS region where STS is used to assumed the configured role
Note that if a role is intended to be assumed, and sts_region is not provided, then sts_region will default to the value for region if region is provided
region: Optional. The AWS region for the service you are exporting to for AWS Sigv4. This is differentiated from sts_region to handle cross region authentication
Note that an attempt will be made to obtain a valid region from the endpoint of the service you are exporting to
Note for supported services an attempt will be made to obtain a valid service from the endpoint of the service you are exporting to. Supported services include - workspaces, es, logs and traces.
Package sigv4authextension implements the `auth.Client` interface.
This extension provides the Sigv4 process of adding authentication information to AWS API requests sent by HTTP.
As such, the extension can be used for HTTP based exporters that export to AWS services.
type Config struct {
Region string `mapstructure:"region,omitempty"`
Service string `mapstructure:"service,omitempty"`
AssumeRole AssumeRole `mapstructure:"assume_role"`
// contains filtered or unexported fields
}
Config stores the configuration for the Sigv4 Authenticator