Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Ref: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-identity-documents.html AWSImdsUrl = "http://169.254.169.254/latest/dynamic/instance-identity/document" AWSUserDataImdsUrl = "http://169.254.169.254/latest/user-data" )
Variables ¶
This section is empty.
Functions ¶
func GetUserData ¶
Method to retrieve userData from the instance metadata service and return it as a string
Types ¶
type Config ¶
type Config struct { AccessKeyId string SecretKey string Region string LoginProfile string LaunchTemplateName string ImageId string InstanceType string KeyName string SubnetId string SecurityGroupIds securityGroupIds UseLaunchTemplate bool InstanceTypes instanceTypes InstanceTypeSpecList []provider.InstanceTypeSpec Tags provider.KeyValueFlag UsePublicIP bool RootVolumeSize int RootDeviceName string DisableCVM bool }
type MetadataRetriever ¶
type MetadataRetriever struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.