2023-02-19 23:35:39 +03:00
|
|
|
package structfs
|
|
|
|
|
|
|
|
type EC2Metadata struct {
|
|
|
|
Latest struct {
|
|
|
|
Metadata struct {
|
|
|
|
AMIID int `json:"ami-id"`
|
|
|
|
AMILaunchIndex int `json:"ami-launch-index"`
|
|
|
|
AMIManifestPath string `json:"ami-manifest-path"`
|
|
|
|
AncestorAMIIDs []int `json:"ancestor-ami-ids"`
|
|
|
|
BlockDeviceMapping []string `json:"block-device-mapping"`
|
|
|
|
InstanceID int `json:"instance-id"`
|
|
|
|
InstanceType string `json:"instance-type"`
|
|
|
|
LocalHostname string `json:"local-hostname"`
|
|
|
|
LocalIPv4 string `json:"local-ipv4"`
|
2024-03-09 23:35:13 +03:00
|
|
|
KernelID int `json:"kernel-id"`
|
2023-02-19 23:35:39 +03:00
|
|
|
Placement string `json:"placement"`
|
|
|
|
AvailabilityZone string `json:"availability-zone"`
|
|
|
|
ProductCodes string `json:"product-codes"`
|
|
|
|
PublicHostname string `json:"public-hostname"`
|
|
|
|
PublicIPv4 string `json:"public-ipv4"`
|
|
|
|
PublicKeys []struct {
|
|
|
|
Key []string `json:"-"`
|
|
|
|
} `json:"public-keys"`
|
|
|
|
RamdiskID int `json:"ramdisk-id"`
|
|
|
|
ReservationID int `json:"reservation-id"`
|
|
|
|
SecurityGroups []string `json:"security-groups"`
|
|
|
|
} `json:"meta-data"`
|
|
|
|
Userdata string `json:"user-data"`
|
|
|
|
} `json:"latest"`
|
|
|
|
}
|