aws_ami_from_instance doesn't stop EC2 instance while creating an AMI #13295
Labels
bug
Addresses a defect in current functionality.
service/ec2
Issues and PRs that pertain to the ec2 service.
This issue was originally opened by @ltartarini as hashicorp/terraform#24934. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform Configuration Files
Expected Behavior
According to the docs at https://www.terraform.io/docs/providers/aws/r/ami_from_instance.html:
"This resource is best applied to an instance that is stopped when this instance is created, so that the contents of the created image are predictable. When applied to an instance that is running, the instance will be stopped before taking the snapshots and then started back up again, resulting in a period of downtime."
Actual Behavior
EC2 instance is not stopped at all while the AMI is created.
References
The text was updated successfully, but these errors were encountered: