Try our new documentation site (beta).
Filter Content By
Version
Text Search
${sidebar_list_label} - Back
Filter by Language
{
"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-server811-{{timestamp}}"
}
],
"provisioners": [
{
"type": "file",
"source": "gurobi_server8.1.1_linux64.tar.gz",
"destination": "/tmp/gurobi_server8.1.1_linux64.tar.gz"
},
{
"type": "shell",
"inline": [
"sudo tar xfz /tmp/gurobi_server8.1.1_linux64.tar.gz -C /opt",
"sudo cp /opt/gurobi_server811/linux64/bin/grb_rs_aws.cnf /opt/gurobi_server811/linux64/bin/grb_rs.cnf",
"sudo /opt/gurobi_server811/linux64/bin/grb_rs start"
]
}
]
}