2023-02-19 23:35:39 +03:00
|
|
|
package structfs
|
|
|
|
|
|
|
|
type EC2Metadata struct {
|
|
|
|
Latest struct {
|
2024-12-09 13:06:43 +03:00
|
|
|
Userdata string `json:"user-data"`
|
2023-02-19 23:35:39 +03:00
|
|
|
Metadata struct {
|
2024-12-09 13:06:43 +03:00
|
|
|
AMIManifestPath string `json:"ami-manifest-path"`
|
|
|
|
InstanceType string `json:"instance-type"`
|
|
|
|
LocalHostname string `json:"local-hostname"`
|
|
|
|
LocalIPv4 string `json:"local-ipv4"`
|
|
|
|
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"`
|
2023-02-19 23:35:39 +03:00
|
|
|
AncestorAMIIDs []int `json:"ancestor-ami-ids"`
|
|
|
|
BlockDeviceMapping []string `json:"block-device-mapping"`
|
2024-12-09 13:06:43 +03:00
|
|
|
SecurityGroups []string `json:"security-groups"`
|
|
|
|
RamdiskID int `json:"ramdisk-id"`
|
|
|
|
ReservationID int `json:"reservation-id"`
|
|
|
|
AMIID int `json:"ami-id"`
|
|
|
|
AMILaunchIndex int `json:"ami-launch-index"`
|
2023-02-19 23:35:39 +03:00
|
|
|
kernelID int `json:"kernel-id"`
|
2024-12-09 13:06:43 +03:00
|
|
|
InstanceID int `json:"instance-id"`
|
2023-02-19 23:35:39 +03:00
|
|
|
} `json:"meta-data"`
|
|
|
|
} `json:"latest"`
|
|
|
|
}
|