Documentation
¶
Overview ¶
Package aws provides AWS cloud environment detection and metadata retrieval capabilities using the EC2 instance metadata service (IMDS) v2.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scout ¶
type Scout struct {
// contains filtered or unexported fields
}
func (*Scout) Detect ¶
Detect determines if the current environment is running on AWS by testing the metadata service. AWS metadata service returns 401 when accessed without IMDSv2 token, which is a positive indicator.
func (*Scout) EnvironmentInfo ¶
EnvironmentInfo retrieves AWS environment information from EC2 metadata service
Click to show internal directories.
Click to hide internal directories.