[Enhancement]: aws_instance resource documentation should mention the option to use "resolve:ssm:/aws/service/ami-amazon-linux-latest/" as ami parameter #39592
Labels
documentation
Introduces or discusses updates to documentation.
service/ec2
Issues and PRs that pertain to the ec2 service.
Description
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html
describes that this works too:
resource "aws_instance" "example" {
ami = "resolve:ssm:/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2"
instance_type = "t2.micro"
subnet_id = aws_subnet.example.id
}
it's probably the most easy way to use a "latest" image
Affected Resource(s) and/or Data Source(s)
resource aws_instance
Potential Terraform Configuration
References
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: