Registry / cloud / aws-aws-sdk-go-v2-ec2imds

aws-aws-sdk-go-v2-ec2imds

JSON →
library0.1.5gogounverified

Package ec2imds provides the API client for interacting with the Amazon EC2 Instance Metadata Service.

go get github.com/aws/aws-sdk-go-v2/ec2imds
INSTALL
IMPORT
SIG · AWS-AWS-SDK-GO-V2-
A
aws-aws-sdk-go-v2-ec2imds
cloudgov0.1.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ec2imds
github.com/aws/aws-sdk-go-v2/ec2imds

Creates an EC2 IMDS client and retrieves the instance identity document.

package main import ( "context" "fmt" "github.com/aws/aws-sdk-go-v2/ec2imds" ) func main() { client := ec2imds.New(ec2imds.Options{}) output, err := client.GetInstanceIdentityDocument(context.TODO(), &ec2imds.GetInstanceIdentityDocumentInput{}) if err != nil { panic(err) } fmt.Println(output.InstanceID) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.5latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
26
OpenAI (training)
2
Resources
aws-aws-sdk-go-v2-ec2imds — go get aws-aws-sdk-go-v2-ec2imds · libregistry