I have:
- An AWS account with free tier
- An Ubuntu 14.04 LTS laptop with a PEM file, and I can create EC2 instances, and SSH into them.
- AWS command line installed on my laptop
- Vagrant installed on the laptop
- AWS plugin installed on Vagrant
In the AWS plugin readme file it gives a template for a Vagrant file:
Vagrant.configure("2") do |config|
config.vm.box = "dummy"
config.vm.provider :aws do |aws, override|
aws.access_key_id = "YOUR KEY"
aws.secret_access_key = "YOUR SECRET KEY"
aws.session_token = "SESSION TOKEN"
aws.keypair_name = "KEYPAIR NAME"
aws.ami = "ami-7747d01e"
override.ssh.username = "ubuntu"
override.ssh.private_key_path = "PATH TO YOUR PRIVATE KEY"
end
end
How do I get aws.session_token = "SESSION TOKEN" ?