2018-06-22 00:10:39 +02:00
|
|
|
{
|
|
|
|
"variables": {
|
2018-09-13 18:34:11 +02:00
|
|
|
"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",
|
2018-08-29 11:30:25 +02:00
|
|
|
"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
|
|
|
|
},
|
2018-08-29 11:30:25 +02:00
|
|
|
"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",
|
2018-09-29 16:23:25 +02:00
|
|
|
"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"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|