From c839a2a0fb4f4f9adf6868d892c301f77da5db53 Mon Sep 17 00:00:00 2001 From: Grzegorz Huber Date: Wed, 26 Jun 2024 19:08:45 +0200 Subject: [PATCH] [DOC-595] apply textract for PROD --- bitbucket-pipelines.yml | 16 ++++++++-------- textract-pipeline/terraform/main.tf | 7 +++++++ textract-pipeline/terraform/vars-prod.tfvars | 10 ++++++++++ 3 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 textract-pipeline/terraform/vars-prod.tfvars diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 12978ca..c775d52 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -238,14 +238,14 @@ pipelines: - *aws-context-prod - pip install -r requirements.txt - BB_PIPELINE_BRANCH="DEV" python terraform.py apply --environment=prod --module=streamlit-server -# - step: -# name: Plan textract-pipeline on PROD -# image: hugree/terraform-with-snowsql:latest -# oidc: true -# script: -# - *aws-context-prod -# - pip install -r requirements.txt -# - BB_PIPELINE_BRANCH="DEV" python terraform.py plan --environment=prod --module=textract-pipeline/terraform + - step: + name: Apply textract-pipeline on PROD + image: hugree/terraform-with-snowsql:latest + oidc: true + script: + - *aws-context-prod + - pip install -r requirements.txt + - BB_PIPELINE_BRANCH="DEV" python terraform.py apply --environment=prod --module=textract-pipeline/terraform feature/DOC-536-smart-git-diff: - parallel: diff --git a/textract-pipeline/terraform/main.tf b/textract-pipeline/terraform/main.tf index 15d3f1b..9a7fd0e 100644 --- a/textract-pipeline/terraform/main.tf +++ b/textract-pipeline/terraform/main.tf @@ -39,6 +39,13 @@ locals { devops_s3_bucket_name = "doczyai-use2-u-infra-s3-devops-resources" api_access_required_roles_arns = ["arn:aws:iam::975049960860:role/doczyai-use2-u-rol-streamlit-server"] } + + prod = { + vpc_id = "vpc-00cfffdf5b3ff8aec" + secret_manager_name = "doczy_dev_db_creds" + devops_s3_bucket_name = "doczyai-use2-p-infra-s3-devops-resources" + api_access_required_roles_arns = ["arn:aws:iam::211125720533:role/doczyai-use2-p-rol-streamlit-server"] + } } # region abbreviation diff --git a/textract-pipeline/terraform/vars-prod.tfvars b/textract-pipeline/terraform/vars-prod.tfvars new file mode 100644 index 0000000..8e93bbd --- /dev/null +++ b/textract-pipeline/terraform/vars-prod.tfvars @@ -0,0 +1,10 @@ +aws_account_id = 211125720533 +# TODO provide new layer arn for UAT? 336392948345 was used in DEV but not sure what account that is?! +text_creation_lambda_additional_layer_arn = "arn:aws:lambda:us-east-2:336392948345:layer:AWSSDKPandas-Python312:8" + +client_list = { + client1 = { + client_id = "cn1" + full_name = "Centene" + } +} \ No newline at end of file