Skip to content

Commit

Permalink
chore: decommision project
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-h1 committed Jan 25, 2025
1 parent 04a5e80 commit 3d9ac26
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 33 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-aws.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Deploy to staging AWS
on:
workflow_dispatch:
push:
branches:
- main
# push:
# branches:
# - main
env:
TERRAFORM_ROOT: terraform
DOCKER_ENV: production
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/e2e-staging.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: e2e-staging
on:
workflow_dispatch:
schedule:
- cron: '0 */12 * * *'
env:
DATABASE_URL: postgres://pets:pets@localhost:5432/pets
REDIS_URL: redis://localhost:6379
Expand Down
28 changes: 0 additions & 28 deletions terraform/app-runner.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,6 @@ resource "aws_default_subnet" "application_subnet_c" {
availability_zone = "eu-west-2c"
}

resource "aws_security_group" "sg" {
name = "${var.project_name}-${var.env}-app-runner-security-group"
vpc_id = aws_default_vpc.default_vpc.id
ingress {
from_port = 80
to_port = 80
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}

egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
}
}

resource "aws_iam_role" "app_runner_role" {
name = "app-runner-poc"

Expand Down Expand Up @@ -122,13 +104,3 @@ resource "aws_apprunner_service" "app_runner_service" {
}
}

resource "aws_apprunner_vpc_connector" "app_runner_vpc_connector" {
vpc_connector_name = "${var.project_name}-vpc-connector"
subnets = [
aws_default_subnet.application_subnet_a.id,
aws_default_subnet.application_subnet_b.id,
aws_default_subnet.application_subnet_c.id
]
security_groups = [aws_security_group.sg.id]

}

0 comments on commit 3d9ac26

Please sign in to comment.