-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathami.json
46 lines (46 loc) · 983 Bytes
/
ami.json
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"variables": {
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}",
"aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}",
"region": "{{env `AWS_DEFAULT_REGION`}}"
},
"builders": [
{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "{{user `region`}}",
"source_ami": "ami-0fb394548acf15691",
"instance_type": "t2.micro",
"ssh_username": "alpine",
"ami_name": "bflo-alpine-k8s-{{timestamp}}",
"tags": {
"Name": "bflo-alpine-k8s-{{timestamp}}"
},
"launch_block_device_mappings": [
{
"device_name": "/dev/xvda",
"volume_size": 3,
"volume_type": "gp2",
"delete_on_termination": true
}
],
"subnet_filter": {
"filters":{
"tag:Name":"packer"
}
}
}
],
"provisioners": [
{
"type": "file",
"source": "files/",
"destination": "/tmp"
},
{
"type": "shell",
"script": "scripts/install-kubernetes.sh"
}
]
}