Skip to content

Instantly share code, notes, and snippets.

@ishanku
Created May 24, 2022 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ishanku/34825010dd4acbd033e4f1423371693e to your computer and use it in GitHub Desktop.
Save ishanku/34825010dd4acbd033e4f1423371693e to your computer and use it in GitHub Desktop.
AWS and Vagrant
Vagrant.configure("2") do |config|
config.vm.box = "my_vagrant_box_using_aws"
config.vm.provider :aws do |a, override|
# AWS Uses Access Key and Secret Key for any console based access
# REFER :: https://github.com/ishanku/images/blob/main/AWS%20IAM%20AccessKey.png
a.access_key_id = "AWS ACCESS KEY"
a.secret_access_key = "AWS SECRET KEY"
a.ami = "ami-**********" # AWS AMI ID
override.ssh.username = "ubuntu"
override.ssh.private_key_path = "~/my_privatekeys/pkey" # Sample Path in user home folder
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment