Skip to content

Commit 0fb22a4

Browse files
authored
Merge pull request #44504 from hashicorp/d-stop-instance-note
Stop instance warning
2 parents 24b10de + 4af7960 commit 0fb22a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

website/docs/actions/ec2_stop_instance.html.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ description: |-
1010

1111
~> **Note:** `aws_ec2_stop_instance` is in alpha. Its interface and behavior may change as the feature evolves, and breaking changes are possible. It is offered as a technical preview without compatibility guarantees until Terraform 1.14 is generally available.
1212

13+
!> **Warning:** This action may cause unintended consequences. When triggered, the `aws_ec2_stop_instance` action changes the instance state to `stopped`, and Terraform does not reconcile the change. With `aws_instance`, the `instance_state` attribute will be out of sync until the next refresh. With `aws_ec2_instance_state`, this action directly conflicts. With higher-level managers (Auto Scaling Groups, ECS/EKS node groups, EMR, Batch), it may trigger replacement or restart of instances. Use caution—this preview action should be limited to development environments.
14+
1315
Stops an EC2 instance. This action will gracefully stop the instance and wait for it to reach the stopped state.
1416

1517
For information about Amazon EC2, see the [Amazon EC2 User Guide](https://docs.aws.amazon.com/ec2/latest/userguide/). For specific information about stopping instances, see the [StopInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_StopInstances.html) page in the Amazon EC2 API Reference.

0 commit comments

Comments
 (0)