Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (41 sloc) 947 Bytes
{
"builders": [
{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"profile": "demo",
"region": "eu-west-1",
"instance_type": "t3.small",
"ssh_username": "ubuntu",
"ami_name": "rails-base {{timestamp}}",
"source_ami_filter": {
"filters": {
"name": "ubuntu-1804*"
},
"owners": ["self"],
"most_recent": true
},
"associate_public_ip_address": true,
"tags": {
"Name": "Rails Base",
"Project": "Core",
"Commit": "{{user `commit`}}"
}
}
],
"provisioners": [
{
"type": "file",
"source": "../demo-salt/salt",
"destination": "~/salt"
},
{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"scripts/init.sh"
]
}
]
}
You can’t perform that action at this time.