Name | Version |
---|---|
terraform | >= 1 |
aws | >= 5 |
Name | Version |
---|---|
aws | >= 5 |
No modules.
module "ami-find" {
source = "./modules/terraform-aws-ami-find"
os = "rhel8"
architecture = "x86_64"
}
output "ami_id" {
value = "${module.ami-find.ami_id}"
}
output "ami_name" {
value = "${module.ami-find.name}"
}
output "ami_date" {
value = "${module.ami-find.creation_date}"
}
Name | Type |
---|---|
aws_ami.find | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
amis_map_owners | n/a | map(string) |
{ |
no |
amis_map_public | n/a | map(string) |
{ |
no |
amis_map_regex | n/a | map(string) |
{ |
no |
architecture | OS architecture of the AMI (ie: i386 or x86_64). | string |
n/a | yes |
os | The OS reference to search for | string |
n/a | yes |
Name | Description |
---|---|
ami_id | The ID of the found AMI |
creation_date | Date and time the image was created |
deprecation_time | Date and time when the image will be deprecated |
name | The AMI Name |
owner_id | AWS account ID of the image owner |
root_device_name | Device name of the root device. |