hashicorp / hashicorp/packer-plugin-amazon

Add support for fast snapshot restore

Open
#463 2 comments 9 reactions 0 assignees View on GitHub
enhancement stage/accepted sync to jira
Dominant language
Go
Stars
91
Forks
141
Avg merge
2d 18h
Merged PRs (30d)
3

Description

#### Community Note

Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request.
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.

#### Description

When images are taken and snapshots copied, Packer users should be able to [enable EBS fast snapshot restore](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-fast-snapshot-restore.html) on those snapshots for some list of availability zones. Note that the list of AZs would be per snapshot, which could span regions, so the configuration syntax might get a little hairy.

#### Use Case(s)

Make instance launches not suffer from the degraded performance that comes with launching from an AMI or EBS snapshot while the volume is initializing.

#### Potential configuration

```hcl
source "amazon-ebssurrogate" "foo" {
ami_regions = ["us-east-1", "us-west-2"]

ami_fast_snapshot_restore {
region = "us-east-1"
availability_zones = ["us-east-1a", "us-east-1b"]
}

ami_fast_snapshot_restore {
region = "us-west-2"
availability_zones = ["us-west-2a", "us-west-2b"]
}
}
```

#### Potential References

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-fast-snapshot-restore.html

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.