Skip to content

Commit

Permalink
Fix demo after we added the list_latest endpoint (airbytehq#2709)
Browse files Browse the repository at this point in the history
  • Loading branch information
michel-tricot authored Apr 2, 2021
1 parent 1eadbb0 commit 3f6415f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions terraform/aws/demo/core/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ data "aws_ami" "amazon-linux-2" {
name = "name"
values = ["amzn2-ami-hvm-2*"]
}

filter {
name = "image-id"
values = [var.ami_id]
}
}

# Ensure we can ssh to the airbyte instance
Expand Down
4 changes: 4 additions & 0 deletions terraform/aws/demo/core/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ variable "instance-size" {
variable "key-name" {
type = string
}

variable "ami_id" {
type = string
}
1 change: 1 addition & 0 deletions terraform/aws/demo/lb/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ resource "aws_lb_listener_rule" "allow-read-api" {
path_pattern {
values = [
"/api/v1/*/list",
"/api/v1/*/list_latest",
"/api/v1/*/get",
"/api/v1/*/get_by_slug",
"/api/v1/*/health",
Expand Down
1 change: 1 addition & 0 deletions terraform/aws/demo/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module "airbyte-instance" {
default-sg = var.default-sg
instance-size = var.instance-size
key-name = var.key-name
ami_id = var.ami-id
}

module "public-lb" {
Expand Down
4 changes: 4 additions & 0 deletions terraform/aws/demo/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ variable "instance-size" {
type = string
}

variable "ami-id" {
type = string
}

variable "key-name" {
type = string
}
Expand Down

0 comments on commit 3f6415f

Please sign in to comment.