From 4a172cb20d6c92eccf348a3f68890426f5233dc1 Mon Sep 17 00:00:00 2001 From: Christian Carlsson Date: Tue, 12 Nov 2024 19:01:28 +0000 Subject: [PATCH] sg --- .github/actions/apply/terraform/action.yml | 2 +- infra/db.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/apply/terraform/action.yml b/.github/actions/apply/terraform/action.yml index 43341ec1..ba3b71b2 100644 --- a/.github/actions/apply/terraform/action.yml +++ b/.github/actions/apply/terraform/action.yml @@ -30,7 +30,7 @@ runs: - name: Terraform Import run: | terraform import aws_db_subnet_group.default db-subnet-group-4 - terraform import aws_security_group.default sg-0b1b3b3b3b3b3b3b3 + terraform import aws_security_group.default sg-0517ff4946c44591d working-directory: ./infra shell: bash env: diff --git a/infra/db.tf b/infra/db.tf index 6cfd5949..2f4fbb95 100644 --- a/infra/db.tf +++ b/infra/db.tf @@ -44,7 +44,7 @@ resource "aws_db_subnet_group" "default" { # Optional: Create a security group if you don't have one already resource "aws_security_group" "default" { - id = "sg-0b1b3b3b3b3b3b3b3" + id = "sg-0517ff4946c44591d" name = "db-security-group-4" description = "Allow DB access" vpc_id = "vpc-016eba058ed193190" # Replace with your VPC ID