Documentation

{ "variables": { "aws_access_key": "", "aws_secret_key": "" }, "builders": [ { "type": "amazon-ebs", "access_key": "{{user `aws_access_key`}}", "secret_key": "{{user `aws_secret_key`}}", "region": "us-east-1", "source_ami_filter": { "filters": { "virtualization-type": "hvm", "name": "ubuntu/images/*ubuntu-bionic-18.04-amd64-server-*", "root-device-type": "ebs" }, "owners": [ "099720109477" ], "most_recent": true }, "instance_type": "t2.micro", "ssh_username": "ubuntu", "ami_name": "gurobi-server9.1.0-{{timestamp}}" } ], "provisioners": [ { "type": "file", "source": "gurobi_server9.1.0_linux64.tar.gz", "destination": "/tmp/gurobi_server9.1.0_linux64.tar.gz" }, { "type": "shell", "inline": [ "sudo tar xfz /tmp/gurobi_server9.1.0_linux64.tar.gz -C /opt", "sudo cp /opt/gurobi_server9.1.0/linux64/bin/grb_rs_aws.cnf /opt/gurobi_server9.1.0/linux64/bin/grb_rs.cnf", "sudo /opt/gurobi_server9.1.0/linux64/bin/grb_rs start" ] } ] }