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 ¶
Click to show internal directories.
Click to hide internal directories.