-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaws.json
More file actions
29 lines (29 loc) · 920 Bytes
/
aws.json
File metadata and controls
29 lines (29 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
"variables" : {
"aws_access_key": "{{env `AWS_ACCESS_KEY`}}",
"aws_secret_key" : "{{env `AWS_SECRET_KEY`}}"
},
"builders": [{
"type":"amazon-ebs",
"instance_type": "t2.micro",
"ssh_username": "ubuntu",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "eu-west-2",
"ami_name": "pishoto-{{timestamp}}",
"source_ami_filter": {
"filters": {
"virtualization-type": "hvm",
"name": "ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*",
"root-device-type": "ebs"
},
"owners": ["099720109477"],
"most_recent": true
}
}],
"provisioners": [{
"type": "ansible",
"playbook_file": "nginx.yml",
"extra_arguments": ["--extra-vars", "ansible_python_interpreter=/usr/bin/python3"]
}]
}