Skip to content

gamisan9999/ec2vpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

ec2vpc

get VPC ID from EC2 InstanceID

install & execute

  • run the EC2
local $ gox
local $ scp ec2vpc_<os>_<arch> <target EC2>:~
server $ ./ec2vpc_linux_amd64 --i `curl -s http://169.254.169.254/latest/meta-data/instance-id`
vpc-XXXXXXXX
  • run the local
orenomac$ go run main.go --instance-id <insance_id> --region ap-northeast-1
vpc-XXXXXXXX

About

get VPC ID from EC2 InstanceID

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages