Documentation ¶
Overview ¶
Package auth handles AWS authentication.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAWSConfig ¶
func BuildAWSConfig(ctx context.Context, region string, oidcConfig *OIDCConfig, staticKeyConfig *StaticKeyConfig) (*aws.Config, error)
BuildAWSConfig returns an AWS config based on the supplied auth inputs.
Types ¶
type OIDCConfig ¶
OIDCConfig is the configuration for assuming an IAM role using OIDC
type Options ¶
type Options struct { Logger hclog.Logger OIDCConfig *OIDCConfig StaticKeyConfig *StaticKeyConfig Region string }
Options are the options for creating an AWS client.
type StaticKeyConfig ¶
StaticKeyConfig is the configuration for using static credentials
Click to show internal directories.
Click to hide internal directories.