Right-click on the .tar file below and choose ‘Save As..’. Save this file inside your project folder.
If you do not have Vagrant installed, you will need to do so:
- https://www.vagrantup.com/downloads.html
- https://www.virtualbox.org/wiki/Downloads
You will also need to have an AWS account, and correctly configured ~/.aws/credentials
file.
Additionally, you will need 2 vagrant plugins:
- vagrant-aws
- vagrant-hostmanager
Extract the contents of the above archive into your project folder. You can then start and provision your AWS EC2 machines using vagrant.
$ vagrant plugin install vagrant-aws
$ vagrant plugin install vagrant-hostmanager
$ vagrant up
$ vagrant hostmanager
You can now use vagrant ssh
to access each of your 2 instances: mysql1, and pmm