Skip to content

Commit

Permalink
feature #1 - update alb sg and subnets
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeniosales committed Oct 16, 2022
1 parent ac1c467 commit 120e387
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 35 deletions.
2 changes: 1 addition & 1 deletion terraform/env/dev.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ aws_profile = "dev"
vpc_id = "vpc-0b1ae7a4fa0ec7d9d"
SUB_NET_01 = "subnet-05d245e39491bb3d2"
SUB_NET_02 = "subnet-06761316782230c98"
base_url_internal = "internal-sbf-exchangerate-dev-lb-1838583828.us-east-1.elb.amazonaws.com"
SG_ID = "sg-026d83888df8aa77d"
2 changes: 1 addition & 1 deletion terraform/env/hml.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ aws_profile = "hml"
vpc_id = "vpc-0b1ae7a4fa0ec7d9d"
SUB_NET_01 = "subnet-05d245e39491bb3d2"
SUB_NET_02 = "subnet-06761316782230c98"
base_url_internal = "internal-sbf-exchangerate-dev-lb-1838583828.us-east-1.elb.amazonaws.com"
SG_ID = "sg-026d83888df8aa77d"
6 changes: 3 additions & 3 deletions terraform/env/prd.tfvars
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ENV = "prd"
aws_profile = "prd"
vpc_id = "vpc-0b1ae7a4fa0ec7d9d"
SUB_NET_01 = "subnet-05d245e39491bb3d2"
SUB_NET_02 = "subnet-06761316782230c98"
base_url_internal = "internal-sbf-exchangerate-dev-lb-1838583828.us-east-1.elb.amazonaws.com"
SUB_NET_01 = "subnet-06761316782230c98"
SUB_NET_02 = "subnet-052df03e273a7e04c"
SG_ID = "sg-026d83888df8aa77d"
2 changes: 1 addition & 1 deletion terraform/load-balance.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ resource "aws_lb" "lb-sbf-exchangerate" {
name = "sbf-exchangerate-${var.aws_profile}-lb"
internal = true
load_balancer_type = "application"
security_groups = [aws_security_group.lb.id]
security_groups = [var.SG_ID]
subnets = [var.SUB_NET_01, var.SUB_NET_02]

ip_address_type = "ipv4"
Expand Down
24 changes: 0 additions & 24 deletions terraform/security-group.tf

This file was deleted.

11 changes: 6 additions & 5 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ variable "SUB_NET_02" {
default = null
}

variable "base_url_internal" {
type = string
description = "base url internal for exchange rate microsservice"
}

variable "aws_profile" {
type = string
description = "AWS Profile"
default = null
}

variable "SG_ID" {
type = string
description = "security group id"
default = null
}

0 comments on commit 120e387

Please sign in to comment.