-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_dlm_lifecycle_policy support for AMI policies #16520
Comments
Looks like I'm in need of this. Any kind souls out there up for a little ❤️ on this enhancement? |
Looks like we got it for free at some point with the AWS SDK. Simply use: resource_types = "INSTANCE" |
Using That will still only snapshot the EBS volumes associated with the EC2 instance. It doesn't create an AMI. What's described in the article linked in the issue description is the ability to create EBS backed AMIs through a lifecycle management policy. Here is the selection in the console: |
@brian-hogan-vgh Thanks, for the correction. Digging deeper today... |
Anything come of this exploration @jlmoody ? |
I'm also interested in how this exploration went and/or what the blockers are toward implementation. Using AMIs would really ease restoration of an instance with multiple volumes. |
Did some digging. This is not
However, this is a field currently not supported by the resource: https://github.com/hashicorp/terraform-provider-aws/blob/main/aws/resource_aws_dlm_lifecycle_policy.go As such it is currently defaulting to So:
|
I too need this feature in order to use EBS-backed AMI policy and policy type Instance and a backup interval that's not limited to 24 hours at most. Thanks |
It would be great if this could be implemented |
This functionality has been released in v4.9.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Description
Following https://aws.amazon.com/about-aws/whats-new/2020/11/ami-lifecycle-management-available-data-lifecycle-manager/, it would be great to support creating policies to manage AMI lifecycles.
I believe this would look like allowing
resource_types = ["AMI"]
in addition to"VOLUME"
.New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: