Fetch the most recent Ubuntu 22.04 AMI by default.
Example:
module "ubuntu_22_04_latest" {
source = "github.com/andreswebs/terraform-aws-ami-ubuntu"
}
locals {
ami_id = module.ami_ubuntu_22_04_latest.ami.image_id
}
## --> use `local.ami_id
Name | Description | Type | Default | Required |
---|---|---|---|---|
arch | Processor architecture | string |
"amd64" |
no |
ubuntu_version | Ubuntu version | string |
"22.04" |
no |
virtualization_type | Virtualization type | string |
"hvm" |
no |
volume_type | Volume type | string |
"ebs-gp2" |
no |
No modules.
Name | Description |
---|---|
ami | SSM parameter resource containing the AMI data |
ami_id | AMI ID |
Name | Version |
---|---|
aws | ~> 5.0 |
Name | Version |
---|---|
terraform | ~> 1.3 |
aws | ~> 5.0 |
Name | Type |
---|---|
aws_ssm_parameter.this | data source |
Andre Silva - @andreswebs
This project is licensed under the Unlicense.