aws

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// PluginName for AWS IID
	PluginName = "aws_iid"
	// AccessKeyIDVarName env var name for AWS access key ID
	AccessKeyIDVarName = "AWS_ACCESS_KEY_ID"
	// SecretAccessKeyVarName env car name for AWS secret access key
	SecretAccessKeyVarName = "AWS_SECRET_ACCESS_KEY" //nolint: gosec // false positive
)

Variables

This section is empty.

Functions

func AttestationStepError

func AttestationStepError(step string, cause error) error

AttestationStepError error with attestation

func NewAWSSession

func NewAWSSession(accessKeyID, secretAccessKey, region string) (*session.Session, error)

NewAWSSession create an AWS Session from the config and given region

Types

type IIDAttestationData

type IIDAttestationData struct {
	Document  string `json:"document"`
	Signature string `json:"signature"`
}

IIDAttestationData AWS IID attestation data

type InstanceIdentityDocument

type InstanceIdentityDocument struct {
	InstanceID string `json:"instanceId" `
	AccountID  string `json:"accountId"`
	Region     string `json:"region"`
}

InstanceIdentityDocument AWS IID struct

type SessionConfig

type SessionConfig struct {
	AccessKeyID     string `hcl:"access_key_id"`
	SecretAccessKey string `hcl:"secret_access_key"`
}

SessionConfig is a common config for AWS session config.

Jump to

Keyboard shortcuts

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