From ea47cbd1f3b9398d6ef0095dbfd3c9d4a3f6c8f3 Mon Sep 17 00:00:00 2001 From: matt-heery <116661071+matt-heery@users.noreply.github.com> Date: Wed, 15 Jan 2025 16:46:57 +0000 Subject: [PATCH] add versions tf and remove database from name of policy --- .../electronic-monitoring-data/ap_airflow_iam.tf | 4 ++-- .../modules/ap_airflow_iam_role/versions.tf | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 terraform/environments/electronic-monitoring-data/modules/ap_airflow_iam_role/versions.tf diff --git a/terraform/environments/electronic-monitoring-data/ap_airflow_iam.tf b/terraform/environments/electronic-monitoring-data/ap_airflow_iam.tf index 6bb861fbe24..7932563c35c 100644 --- a/terraform/environments/electronic-monitoring-data/ap_airflow_iam.tf +++ b/terraform/environments/electronic-monitoring-data/ap_airflow_iam.tf @@ -225,7 +225,7 @@ module "load_unstructured_atrium_database" { data_bucket_lf_resource = aws_lakeformation_resource.data_bucket.arn de_role_arn = try(one(data.aws_iam_roles.data_engineering_roles.arns)) - name = "unstructured-atrium-database" + name = "unstructured-atrium" environment = local.environment database_name = "g4s-atrium-unstructured" path_to_data = "/load/g4s_atrium_unstructured/structure" @@ -272,4 +272,4 @@ module "load_mdss" { oidc_arn = aws_iam_openid_connect_provider.analytical_platform_compute.arn athena_dump_bucket = module.s3-athena-bucket.bucket cadt_bucket = module.s3-create-a-derived-table-bucket.bucket -} \ No newline at end of file +} diff --git a/terraform/environments/electronic-monitoring-data/modules/ap_airflow_iam_role/versions.tf b/terraform/environments/electronic-monitoring-data/modules/ap_airflow_iam_role/versions.tf new file mode 100644 index 00000000000..2b58ee107cb --- /dev/null +++ b/terraform/environments/electronic-monitoring-data/modules/ap_airflow_iam_role/versions.tf @@ -0,0 +1,13 @@ +terraform { + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 5.0" + } + random = { + source = "hashicorp/random" + version = "~> 3.0" + } + } + required_version = ">= 1.0.1" +}