Skip to content
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_ami_from_instance doesn't stop EC2 instance while creating an AMI #13295

Open
ghost opened this issue May 13, 2020 · 0 comments
Open

aws_ami_from_instance doesn't stop EC2 instance while creating an AMI #13295

ghost opened this issue May 13, 2020 · 0 comments
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service.

Comments

@ghost
Copy link

ghost commented May 13, 2020

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

0.12.20

Terraform Configuration Files

resource "aws_ami_from_instance" "this" {
  name               = "my_ami"
  source_instance_id = data.aws_instance.this.id
}

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

@ghost ghost added the service/ec2 Issues and PRs that pertain to the ec2 service. label May 13, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label May 13, 2020
@breathingdust breathingdust added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
Development

No branches or pull requests

1 participant