# EC2 instance unable to create

**URL:** <https://discuss.hashicorp.com/t/ec2-instance-unable-to-create/71655>\
**Category:** Terraform\
**Created:** [November 29, 2024, 4:54am UTC](https://discuss.hashicorp.com/t/ec2-instance-unable-to-create/71655 "2024-11-29T04:54:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![revilo322](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/revilo322/32/42806_2.png) [@revilo322](https://discuss.hashicorp.com/u/revilo322)\
**Post date:** [November 29, 2024, 4:54am UTC](https://discuss.hashicorp.com/t/ec2-instance-unable-to-create/71655/1 "2024-11-29T04:54:23Z")

</div>

Hi,

I am using the below terraform script to create my first aws instance. I have performed terraform init (success), plan(success) and apply to execute the script. However, there is no ec2 was created but only received the message (Apply complete! Resources: 0 added, 0 changed, 0 destroyed.). I am using free account.

provider “aws” {  
region = “us-east-1” # Choose your region  
}

resource “aws\_instance” “free\_tier\_instance” {  
ami = “0453ec754f44f9a4a” # Example: Amazon Linux 2 AMI in us-west-2 (check for your region)  
instance\_type = “t2.micro” # Free Tier eligible instance

tags = {  
Name = “MyFreeTierInstance”  
}

Anyone who could enlighten me on this pls. thanks.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/hashicorp/original/1X/79bf76adfd92a75631996933098f9ce29d37abf3.svg) [@system](https://discuss.hashicorp.com/u/system)\
**Post date:** [May 28, 2025, 4:54am UTC](https://discuss.hashicorp.com/t/ec2-instance-unable-to-create/71655/2 "2025-05-28T04:54:29Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
