-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathami.json
52 lines (52 loc) · 1.55 KB
/
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
47
48
49
50
51
52
{
"variables": {
"aws_access_key": "",
"aws_secret_key": "",
"aws_region": "",
"subnet_id": "",
"source_ami": ""
},
"builders": [{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"ami_name": "csye6225_{{timestamp}}",
"subnet_id": "{{user `subnet_id`}}",
"region": "{{user `aws_region`}}",
"source_ami": "{{user `source_ami`}}",
"ssh_username": "ec2-user",
"instance_type": "t2.micro",
"ami_description": "Linux AMI for CSYE6225",
"disable_stop_instance": "false",
"ssh_timeout": "20m",
"communicator": "ssh",
"launch_block_device_mappings": [
{
"device_name": "/dev/xvda",
"volume_size": 8,
"volume_type": "gp2",
"delete_on_termination": true
}
],
"run_tags": {
"Name": "Packer Builder",
"OsType": "Linux",
"CreationDate": "{{timestamp}}",
"Owner": "bhan"
},
"tags": {
"CreationDate": "{{timestamp}}",
"OsType": "Linux",
"Owner": "bhan",
"Name": "csye6225_{{timestamp}}"
}
}],
"provisioners": [{
"type": "shell",
"inline": [
"sudo yum update -y",
"sudo yum install java-1.8.0-openjdk -y",
"sudo yum install wget"
]
}]
}