-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpacker.json
40 lines (38 loc) · 1.25 KB
/
packer.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
{
"variables": {
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}",
"aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}",
"region": "eu-central-1"
},
"builders": [
{
"access_key": "{{user `aws_access_key`}}",
"ami_name": "kali-linux-aws-{{timestamp}}",
"instance_type": "t2.medium",
"region": "eu-central-1",
"secret_key": "{{user `aws_secret_key`}}",
"source_ami": "ami-0fbb40f398aef1e61",
"ssh_username": "ec2-user",
"type": "amazon-ebs",
"tags": {
"OS_Version": "Kali Linux",
"Release": "Latest",
"Base_AMI_Name": "{{ .SourceAMIName }}",
"Project": "Kali"
}
}
],
"provisioners": [
{
"type": "shell",
"environment_vars": "DEBIAN_FRONTEND=noninteractive",
"execute_command": "sudo -S env {{ .Vars }} {{ .Path }}",
"inline":[
"apt-get update",
"apt -o Dpkg::Options::='--force-confnew' -q --force-yes -y full-upgrade",
"apt-get autoremove -q -y",
"apt-get autoclean -q -y"
]
}
]
}