misp-cloud/dev/packer-aws.json

45 lines
1.2 KiB
JSON
Raw Normal View History

2018-06-22 00:10:39 +02:00
{
"variables": {
"profile": "default",
2018-08-31 19:09:32 +02:00
"destination_regions": "eu-west-1,eu-west-2,eu-west-3,eu-central-1,us-east-1,us-west-1,ap-northeast-1,sa-east-1,us-west-2",
2018-06-22 00:10:39 +02:00
"hostname": "misp"
},
"builders": [{
"type": "amazon-ebs",
"region": "eu-west-1",
"ami_groups": "all",
"source_ami_filter": {
"filters": {
"virtualization-type": "hvm",
"name": "ubuntu/images/*ubuntu-bionic-18.04-amd64-server-*",
2018-06-22 00:10:39 +02:00
"root-device-type": "ebs"
},
"owners": ["099720109477"],
"most_recent": true
},
"instance_type": "t2.medium",
2018-06-22 00:10:39 +02:00
"ami_regions": "{{user `destination_regions`}}",
"ssh_username": "ubuntu",
"ami_name": "MISP-{{timestamp}}",
"ami_description": "MISP - Malware Information Sharing Platform",
"tags": {
"Amazon_AMI_Management_Identifier": "misp-build"
}
}],
"provisioners": [
{
"type": "shell",
"execute_command" : "{{ .Vars }} sudo -H -E sh '{{ .Path }}'",
2018-08-31 19:09:32 +02:00
"script": "/home/ubuntu/misp/bootstrap",
2018-06-22 00:10:39 +02:00
"pause_before": "10s"
}
],
"post-processors":[{
"type": "amazon-ami-management",
"regions": "{{user `destination_regions`}}",
"identifier": "misp-build",
"keep_releases": "1"
}
]
}