diff options
| author | Paul Buetow <paul@buetow.org> | 2023-09-02 12:28:13 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-09-02 12:28:13 +0300 |
| commit | 8d21bfe1cbdda3119ccc9b02542020446d0735d3 (patch) | |
| tree | a477d8dbd11b4481087ea3b179ddedb6e436a99c | |
| parent | c651fb5d4e41f2d30edfc13db76a45f85177badc (diff) | |
ok
| -rw-r--r-- | eu-central-1-vpc/main.tf | 3 | ||||
| -rw-r--r-- | eu-central-1-vpc/outputs.tf | 11 |
2 files changed, 9 insertions, 5 deletions
diff --git a/eu-central-1-vpc/main.tf b/eu-central-1-vpc/main.tf index 1585d94..ff1c8d8 100644 --- a/eu-central-1-vpc/main.tf +++ b/eu-central-1-vpc/main.tf @@ -51,8 +51,7 @@ resource "aws_subnet" "eks_subnets" { } resource "aws_security_group" "org_buetow_sg" { - count = 3 - name = "org-buetow-sg-${count.index}" + name = "org-buetow-sg" description = "Security group of the VPS" vpc_id = aws_vpc.org_buetow_vpc.id } diff --git a/eu-central-1-vpc/outputs.tf b/eu-central-1-vpc/outputs.tf index 10a8d6f..6ac0bc1 100644 --- a/eu-central-1-vpc/outputs.tf +++ b/eu-central-1-vpc/outputs.tf @@ -1,3 +1,8 @@ +output "vpc_id" { + value = aws_vpc.org_buetow_vpc.id + description = "The IDs of the VPC" +} + output "eks_control_pane_subnet_ids" { value = aws_subnet.eks_control_pane_subnets[*].id description = "The IDs of the EKS control pane subnets" @@ -8,7 +13,7 @@ output "eks_subnet_ids" { description = "The IDs of the EKS subnets" } -output "security_group_ids" { - value = aws_security_group.org_buetow_sg[*].id - description = "The IDs of the created security groups" +output "security_group_id" { + value = aws_security_group.org_buetow_sg.id + description = "The IDs of the created security group" } |
