Skip to content

Commit

Permalink
Merge pull request #10 from aviatrix/ACS-442-ami-json-url
Browse files Browse the repository at this point in the history
feat: Update AMI ID JSON urls and allow for customization
  • Loading branch information
rlee-aviatrix authored Apr 9, 2024
2 parents f4c2e7a + 9d1dde5 commit a44c12d
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -339,15 +339,28 @@ locals {
})
}

variable "controller_json_url" {
type = string
description = "The URL of the JSON file with Controller AMI IDs"
default = "https://cdn.prod.sre.aviatrix.com/image-details/aws_controller_image_details.json"

}

variable "copilot_json_url" {
type = string
description = "The URL of the JSON file with CoPilot AMI IDs"
default = "https://cdn.prod.sre.aviatrix.com/image-details/aws_copilot_image_details.json"
}

data "http" "avx_iam_id" {
url = "https://s3-us-west-2.amazonaws.com/aviatrix-download/AMI_ID/ami_id.json"
url = var.controller_json_url
request_headers = {
"Accept" = "application/json"
}
}

data "http" "copilot_iam_id" {
url = "https://aviatrix-download.s3.us-west-2.amazonaws.com/AMI_ID/copilot_ami_id.json"
url = var.copilot_json_url
request_headers = {
"Accept" = "application/json"
}
Expand Down

0 comments on commit a44c12d

Please sign in to comment.