fix: resolve dependency chain issues (#108)
Signed-off-by: matttrach <matt.trachier@suse.com>
This commit is contained in:
parent
83dfbafe64
commit
21a5cb1bd0
|
|
@ -20,11 +20,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1723019560,
|
||||
"narHash": "sha256-O/kxmybNecC3Efr6ITOdtCzFv90/B2Iiedavj5aRWt0=",
|
||||
"lastModified": 1724395761,
|
||||
"narHash": "sha256-zRkDV/nbrnp3Y8oCADf5ETl1sDrdmAW6/bBVJ8EbIdQ=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "f5129fb42b9c262318130a97b47516946da3e7d7",
|
||||
"rev": "ae815cee91b417be55d43781eb4b73ae1ecc396c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
|||
|
|
@ -55,7 +55,10 @@ resource "aws_security_group_rule" "external_ingress" {
|
|||
}
|
||||
|
||||
resource "aws_lb" "new" {
|
||||
count = local.create
|
||||
count = local.create
|
||||
depends_on = [
|
||||
aws_eip.created,
|
||||
]
|
||||
name = local.name
|
||||
internal = false
|
||||
load_balancer_type = "network"
|
||||
|
|
@ -83,6 +86,9 @@ resource "aws_lb" "new" {
|
|||
}
|
||||
|
||||
resource "aws_lb_target_group" "created" {
|
||||
depends_on = [
|
||||
aws_lb.new,
|
||||
]
|
||||
for_each = (local.create == 1 ? local.access_info : {})
|
||||
name = each.value.target_name
|
||||
port = each.value.port
|
||||
|
|
@ -101,6 +107,9 @@ resource "aws_lb_target_group" "created" {
|
|||
}
|
||||
|
||||
resource "aws_lb_listener" "created" {
|
||||
depends_on = [
|
||||
aws_lb.new,
|
||||
]
|
||||
for_each = (local.create == 1 ? local.access_info : {})
|
||||
load_balancer_arn = aws_lb.new[0].arn
|
||||
port = each.value.port
|
||||
|
|
|
|||
Loading…
Reference in New Issue