Skip to content

Commit

Permalink
Try new method for ami image.
Browse files Browse the repository at this point in the history
  • Loading branch information
maximenoel8 committed Dec 6, 2024
1 parent 89d5ac7 commit 5e65a68
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend_modules/aws/host/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
locals {
ami = lookup(lookup(var.base_configuration["ami_info"], var.image, {}), "ami", var.image)
# ami = lookup(lookup(var.base_configuration["ami_info"], var.image, {}), "ami", var.image)
ami = lookup(
lookup(var.base_configuration["ami_info"], var.image, { "ami" = var.image }),
"ami",
var.image
)

provider_settings = merge({
key_name = var.base_configuration["key_name"]
Expand Down

0 comments on commit 5e65a68

Please sign in to comment.