From 19e86c7ed8c47e10384641f9139248d20fd94ffd Mon Sep 17 00:00:00 2001 From: Sagar Joshi Date: Thu, 13 Jul 2023 16:20:57 -0700 Subject: [PATCH] diabled terraform workflow --- .github/workflows/terraform-cicd.yaml | 9 +++------ terraform/main.tf | 17 ++++++++--------- terraform/variables.tf | 1 + 3 files changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/terraform-cicd.yaml b/.github/workflows/terraform-cicd.yaml index 76a260a..1cbf445 100644 --- a/.github/workflows/terraform-cicd.yaml +++ b/.github/workflows/terraform-cicd.yaml @@ -1,11 +1,9 @@ name: 'Terraform-Workflow' +#Currently this workflow is disabled since resources were already deployed manually in NGAP. + on: - push: - branches: - - '**' - pull_request: - types: [opened, edited, reopened, ready_for_review, review_requested] + # push: workflow_dispatch: permissions: @@ -50,7 +48,6 @@ jobs: - name: Terraform Plan id: plan - if: github.event_name == 'push' || github.event_name == 'pull_request' env: TF_VAR_efs_file_system_id: "${{ secrets.EFS_FILE_SYSTEM_ID }}" TF_VAR_registry_loader_scripts_access_point_id: "${{ secrets.REGISTRY_LOADER_SCRIPTS_ACCESS_POINT_ID }}" diff --git a/terraform/main.tf b/terraform/main.tf index 793f4ae..32153c1 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -9,7 +9,6 @@ module "mwaa-env" { airflow_execution_role = var.airflow_execution_role } - # The following modules are specific to PDS Registry and are under development. These modules are currently # capable of successfully deploying some ECS tasks related with PDS Registry. However, these modules # are currently disabled to keep the PDS Nucleus Baseline System clean and to avoid confusions. @@ -18,12 +17,12 @@ module "mwaa-env" { # source = "./terraform-modules/efs" # } -module "ecs" { - source = "./terraform-modules/ecs" +# module "ecs" { +# source = "./terraform-modules/ecs" - efs_file_system_id = var.efs_file_system_id - registry_loader_scripts_access_point_id = var.registry_loader_scripts_access_point_id - registry_loader_default_configs_access_point_id = var.registry_loader_default_configs_access_point_id - task_role_arn = var.task_role_arn - execution_role_arn = var.execution_role_arn -} +# efs_file_system_id = var.efs_file_system_id +# registry_loader_scripts_access_point_id = var.registry_loader_scripts_access_point_id +# registry_loader_default_configs_access_point_id = var.registry_loader_default_configs_access_point_id +# task_role_arn = var.task_role_arn +# execution_role_arn = var.execution_role_arn +# } diff --git a/terraform/variables.tf b/terraform/variables.tf index 1bc52e1..2c3287b 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -63,3 +63,4 @@ variable "execution_role_arn" { description = "Airflow Execution Role ARN" sensitive = true } +