packer/builder/amazon/instance
Arthur Burkart 5b59f56cdb Adds force_delete_snapshot flag
This PR adds the ability for Packer to clean up snapshots in addition to
deregistering AMIs at build time.

To test this, I used the following `test.json` file:

```json
{
  "builders": [
    {
      "type": "amazon-ebs",
      "region": "us-east-1",
      "source_ami": "ami-fce3c696",
      "ami_name": "packer-test",
      "instance_type": "m3.medium",
      "ssh_username": "ubuntu",
      "vpc_id": "some-vpc-id",
      "subnet_id": "some-subnet-routed-through-igw",
      "security_group_id": "some-security-group-with-port-22-access",
      "force_delete_snapshot": true
    }
  ],
  "provisioners": [
    {
      "type": "shell-local",
      "command": "echo 'hello'"
    }
  ]
}

```

I appreciate any constructive feedbakc that can be given. Cheers!
2016-11-29 23:39:36 -05:00
..
builder.go Adds force_delete_snapshot flag 2016-11-29 23:39:36 -05:00
builder_test.go builder/amazon/instance: set valid bundle prefix [GH-2328] 2015-06-29 09:49:11 -07:00
step_bundle_volume.go Add suggestion to AWS Instance builder error message 2015-10-02 17:06:33 -04:00
step_register_ami.go Update calls to amazon to match the upstream 2015-08-17 17:44:01 -07:00
step_upload_bundle.go Populate access and secret key for bundle_upload_command. 2015-08-13 14:58:15 +01:00
step_upload_x509_cert.go provisioner/file: set file/directory permissions 2014-05-09 21:03:35 -07:00