Invalid reference :A reference to a resource type must be followed by at least one attribute access, specifying the resource name.
provider "aws" { region = "us-east-1"
access_key = "AKIAUPDPDSZWUND6JYU7"
secret_key = "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"
}
resource "aws_instance" "myec2"
{ ami = ami-00c39f71452c08778
instance_type = "t2.micro"
}
The above code gives...
devopsnotes.hashnode.dev1 min read