aws

package
v0.1.0-alpha.8 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AWSUserDataEndpoint is the local EC2 endpoint for the user data.
	AWSUserDataEndpoint = "http://169.254.169.254/latest/user-data"
	// AWSPKCS7Endpoint is the local EC2 endpoint for the PKCS7 signature.
	AWSPKCS7Endpoint = "http://169.254.169.254/latest/dynamic/instance-identity/pkcs7"
	// AWSHostnameEndpoint is the local EC2 endpoint for the hostname.
	AWSHostnameEndpoint = "http://169.254.169.254/latest/meta-data/hostname"
	// AWSPublicCertificate is the AWS public certificate for the regions
	// provided by an AWS account.
	AWSPublicCertificate = `` /* 1073-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func IsEC2

func IsEC2() (b bool)

IsEC2 uses the EC2 PKCS7 signature to verify the instance by validating it against the appropriate AWS public certificate. See https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-identity-documents.html

Types

type AWS

type AWS struct{}

AWS is the concrete type that implements the platform.Platform interface.

func (*AWS) Name

func (a *AWS) Name() string

Name implements the platform.Platform interface.

func (*AWS) Prepare

func (a *AWS) Prepare(data userdata.UserData) (err error)

Prepare implements the platform.Platform interface.

func (*AWS) UserData

func (a *AWS) UserData() (userdata.UserData, error)

UserData implements the platform.Platform interface.

Jump to

Keyboard shortcuts

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