Closed matheus-rdo closed 2 years ago
ami
is actually required. More info here - https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#ami
ami
is actually required. More info here - https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#ami
I was reading through the terraform-aws-modules documentation. It says the field is optional https://registry.terraform.io/modules/terraform-aws-modules/ec2-instance/aws/latest
Thanks!
It is optional if you disable the creation of the module's resources like this:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
terraform apply
fails when the "ami" property is not set. According to the documentation, this property is optional. I was expecting to use the default linux AMI.Error
Versions