aws

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AwsAvailabilityZoneURL        = MetadataKey("http://169.254.169.254/latest/meta-data/placement/availability-zone/")
	AwsInstanceIdURL              = MetadataKey("http://169.254.169.254/latest/meta-data/instance-id")
	AwsStackNameTag               = "aws:cloudformation:stack-name"
	ErrMsgBucketAlreadyOwnedByYou = s3.ErrCodeBucketAlreadyOwnedByYou
	ErrMsgBucketAlreadyExists     = s3.ErrCodeBucketAlreadyExists
	ErrMsgNoSuchBucket            = s3.ErrCodeNoSuchBucket
	ErrMsgInvalidACL              = "Invalid ACL"
)

Variables

This section is empty.

Functions

func InternalRegistry added in v0.18.0

func InternalRegistry(ctx context.Context) (string, error)

Registry return the internal registry endpoint

func Region

func Region() (string, error)

Region get the region from the metadata service

func S3CreateBucket

func S3CreateBucket(name string, acl string, region string) (string, error)

S3CreateBucket creates an s3 bucket

func S3DeleteBucket

func S3DeleteBucket(name string, region string, force bool) error

func S3GetBucketLocation

func S3GetBucketLocation(bucket string, region string) (string, error)

func S3ListBuckets

func S3ListBuckets(region string) (*[]string, error)

func StackInfo

func StackInfo(ctx context.Context, outputs *map[string]string) error

StackInfo updates the receiver with cloudformation stack information

Types

type MetadataKey

type MetadataKey string

Jump to

Keyboard shortcuts

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