auth

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

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

type OIDCConfig struct {
	IAMRole          string
	WebIdentityToken string
}

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

type StaticKeyConfig struct {
	AccessKeyID  string
	SecretKey    string
	SessionToken *string
}

StaticKeyConfig is the configuration for using static credentials

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL