Documentation ¶
Index ¶
Constants ¶
View Source
const AWSCredentialsTemplate = `` /* 189-byte string literal not displayed */
AWSCredentialsTemplate generates an AWS credentials file that can be loaded by the various SDKs.
View Source
const AWSDefaultRegion = "us-east-1"
Variables ¶
View Source
var ErrNoAWSRegionConfigured = errors.New("no AWS region configured. Use --region or set AWS_REGION or DEFAULT_AWS_REGION environment variable")
Functions ¶
func ResolveRegion ¶
Types ¶
type AWSCredentials ¶
type AWSCredentials struct { AccessKeyID string SecretAccessKey string SessionToken string Region string }
func NewAWSCredentialFromDefaultChain ¶
func NewAWSCredentialFromDefaultChain(region string) (*AWSCredentials, error)
func (AWSCredentials) RenderAWSDefaultProfile ¶
func (c AWSCredentials) RenderAWSDefaultProfile() (string, error)
func (AWSCredentials) RenderBase64EncodedAWSDefaultProfile ¶
func (c AWSCredentials) RenderBase64EncodedAWSDefaultProfile() (string, error)
type ErrEnvironmentVariableNotFound ¶
type ErrEnvironmentVariableNotFound string
func (ErrEnvironmentVariableNotFound) Error ¶
func (e ErrEnvironmentVariableNotFound) Error() string
Click to show internal directories.
Click to hide internal directories.