provider "aws" {
version = "~> 2.0"
region = "us-east-1"
}
resource "aws_instance" "dev" {
count = 3
ami = "ami-0a91cd140a1fc148a"
instance_type = "t2.micro"
key_name = "terraform-aws"
tags = {
Name = "dev${count.index}"
}
}
Error: Error launching source instance: InvalidAMIID.NotFound: The image id '[ami-0a91cd140a1fc148a]' does not exist
status code: 400, request id: 2f48a4ac-5f32-4fc1-811e-ff438f6e2b99
on main.tf line 6, in resource "aws_instance" "dev":
6: resource "aws_instance" "dev" {
Error: Error launching source instance: InvalidAMIID.NotFound: The image id '[ami-0a91cd140a1fc148a]' does not exist
status code: 400, request id: e648e894-47ce-47d7-9194-ced7c11bbb55
on main.tf line 6, in resource "aws_instance" "dev":
6: resource "aws_instance" "dev" {
Error: Error launching source instance: InvalidAMIID.NotFound: The image id '[ami-0a91cd140a1fc148a]' does not exist
status code: 400, request id: 27d5aa0e-8a91-4278-975e-bc09c985bd62
on main.tf line 6, in resource "aws_instance" "dev":
6: resource "aws_instance" "dev" {