Skip to content

Commit

Permalink
removed workflows used for testing and modified workflows triggers to…
Browse files Browse the repository at this point in the history
… match main
  • Loading branch information
shanice-skylight committed Jan 4, 2025
1 parent 4f354c3 commit 90780f1
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 201 deletions.
91 changes: 0 additions & 91 deletions .github/workflows/ecs_deployment_apply.yaml

This file was deleted.

94 changes: 0 additions & 94 deletions .github/workflows/ecs_deployment_plan.yaml

This file was deleted.

8 changes: 7 additions & 1 deletion .github/workflows/ecs_terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ name: Terraform Plan & Terraform Apply
run-name: Terraform plan & apply ${{ inputs.workspace }} by @${{ github.actor }}

on:
pull_request:
branches:
- "**"
merge_group:
types:
- checks_requested
push:
branches:
- shanice/transition_ecs_infra
- main
workflow_dispatch:
inputs:
workspace:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tflint.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Terraform Linting
on:
pull_request:
branches:
- "**"
push:
branches:
- main
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Trivy Security Scan

on:
pull_request:
branches:
- "**"
push:
branches:
- main
Expand Down
16 changes: 1 addition & 15 deletions terraform/implementation/ecs/main.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
# data "aws_acm_certificate" "this" {
# domain = "streamline.dibbs.cloud"
# types = ["AMAZON_ISSUED"] # or ["ISSUED"] or ["PRIVATE"]
# statuses = ["ISSUED"]
# }




resource "aws_acm_certificate" "cloudflare_cert" {
private_key = var.qc_tls_key # Private key from Cloudflare
certificate_body = var.qc_tls_cert # Public cert from Cloudflare
Expand All @@ -33,7 +24,6 @@ module "vpc" {
module "ecs" {
source = "CDCgov/dibbs-ecr-viewer/aws"
version = "0.3.0"
# source = "../../../../terraform-aws-dibbs-ecr-viewer"

public_subnet_ids = flatten(module.vpc.public_subnets)
private_subnet_ids = flatten(module.vpc.private_subnets)
Expand Down Expand Up @@ -82,11 +72,7 @@ module "ecs" {
name = "DATABASE_URL"
value = "postgresql://${aws_db_instance.qc_db.username}:${aws_db_instance.qc_db.password}@${aws_db_instance.qc_db.endpoint}/${aws_db_instance.qc_db.db_name}"
},
# {
# name = "tefcaViewerDBRoleArn"
# value = var.tefca_viewer_db_role_arn
# },
{
{
name = "FLYWAY_URL"
value = "jdbc:postgresql://${aws_db_instance.qc_db.endpoint}/${aws_db_instance.qc_db.db_name}"

Expand Down

0 comments on commit 90780f1

Please sign in to comment.