awsconfig

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 9 Imported by: 4

Documentation

Overview

Package awsconfig loads AWS configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Region               string
	RoleArn              string
	RoleSessionName      string
	RoleExternalID       string
	EndpointURL          string
	Printf               boilerplate.FuncPrintf // defaults to log.Printf
	RetryMaxAttempts     int
	RetryMaxBackoffDelay time.Duration
}

Options provide optional parameters for AwsConfig.

type Output added in v0.1.0

type Output struct {
	AwsConfig    aws.Config // AwsConfig holds the desired configuration.
	StsAccountID string
	StsArn       string
	StsUserID    string
}

Output holds returned result.

func AwsConfig

func AwsConfig(opt Options) (Output, error)

AwsConfig provides a configuration to initialize clients for AWS services. If roleArn is provided, it assumes the role. Otherwise it works with default credentials.

Jump to

Keyboard shortcuts

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