-
Notifications
You must be signed in to change notification settings - Fork 14
/
ami.json
55 lines (54 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
53
54
55
{
"variables": {
"inspector_vpc_id": "",
"commit_id": "",
"ami_name": "",
"region": ""
},
"builders": [{
"type": "amazon-ebs",
"region": "{{user `region`}}",
"source_ami_filter": {
"filters": {
"virtualization-type": "hvm",
"name": "amzn2-ami-hvm-2.0.*x86_64-ebs",
"root-device-type": "ebs"
},
"owners": ["amazon"],
"most_recent": true
},
"tags": {
"Name": "{{user `ami_name`}}-{{timestamp}}",
"CommitId": "{{user `commit_id`}}",
"HardeningPreformed": "false"
},
"snapshot_tags": {
"Name": "{{user `ami_name`}}-{{timestamp}}",
"CommitId": "{{user `commit_id`}}",
"HardeningPreformed": "false"
},
"instance_type": "t2.micro",
"ssh_username": "ec2-user",
"associate_public_ip_address": true,
"vpc_id": "{{user `inspector_vpc_id`}}",
"subnet_filter": {
"filters": {
"tag:Subnet": "InspectorQuickstart-subnet-1"
},
"random": true
},
"ami_name": "{{user `ami_name`}}-{{timestamp}}",
"ami_description": "Inspector Quickstart"
}],
"provisioners": [
{
"type": "shell",
"inline": [
"sudo yum update -y",
"sudo yum install -y wget",
"wget https://inspector-agent.amazonaws.com/linux/latest/install",
"sudo bash install"
]
}
]
}