Created
May 24, 2022 14:25
-
-
Save ishanku/34825010dd4acbd033e4f1423371693e to your computer and use it in GitHub Desktop.
AWS and Vagrant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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