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.