ec2

package
v0.0.0-...-3b12f0d Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMetadata

func AddMetadata(result map[string]string)

AddMetadata adds metadata from the EC2 metadata service into the provided map. This is safe to call even if the instance isn't running on EC2. Added keys are the metadata path in the metadata service, prefixed with 'ec2:'. Instance tags are stored separately, prefixed with 'ec2:tags/{key}' for each tag key. Synthetic metadata is also added, prefixed with 'instance:'. Failures (missing keys, etc) are logged and ignored.

Types

This section is empty.

Jump to

Keyboard shortcuts

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