-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.json
39 lines (39 loc) · 1.17 KB
/
template.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
{
"_comment": "eu-west-2 - Amazon Linux 2 AMI 2.0.20200917.0 x86_64 HVM gp2 - ami-08b993f76f42c3e2f",
"variables": {
"aws_profile": "",
"aws_region": "eu-west-2",
"source_ami_id": "ami-08b993f76f42c3e2f",
"aws_ami_name": "greengrass core v1 ec2 {{timestamp}}",
"architecture": "amazon-linux"
},
"builders": [
{
"type": "amazon-ebs",
"profile": "{{user `aws_profile`}}",
"region": "{{user `aws_region`}}",
"source_ami": "{{user `source_ami_id`}}",
"instance_type": "t2.micro",
"ssh_username": "ec2-user",
"ami_name": "{{user `aws_ami_name`}}",
"user_data_file": "{{template_dir}}/files/user_data.sh"
}
],
"provisioners": [
{
"type": "shell",
"script": "{{template_dir}}/files/greengrass_core_v1.sh"
},
{
"type": "file",
"source": "{{template_dir}}/files/",
"destination": "/home/ec2-user/"
},
{
"type": "shell",
"inline": [
"chmod +x /home/ec2-user/*.sh"
]
}
]
}