Skip to content

Commit

Permalink
Merge pull request #3300 from ministryofjustice/dp-deploy-workgroup
Browse files Browse the repository at this point in the history
Deploy infra with policies not dependent on other resources
  • Loading branch information
murdo-moj authored Sep 6, 2023
2 parents 982a684 + 71562db commit 714e4d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions terraform/environments/data-platform/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ module "data_product_presigned_url_lambda" {
tags = local.tags
description = "Lambda to generate a presigned url for uploading data"
role_name = "presigned_url_lambda_role_${local.environment}"
policy_json = data.aws_iam_policy_document.iam_policy_document_for_presigned_url_lambda.json
# policy_json = data.aws_iam_policy_document.iam_policy_document_for_presigned_url_lambda.json
policy_json = data.aws_iam_policy_document.iam_policy_document_for_get_glue_metadata_lambda.json
function_name = "data_product_presigned_url_${local.environment}"
create_role = true
reserved_concurrent_executions = 1
Expand Down Expand Up @@ -126,7 +127,8 @@ module "data_product_athena_load_lambda" {
tags = local.tags
description = "Lambda to load and transform raw data products landing in s3. Creates partitioned parquet tables"
role_name = "athena_load_lambda_role_${local.environment}"
policy_json = data.aws_iam_policy_document.athena_load_lambda_function_policy.json
# policy_json = data.aws_iam_policy_document.athena_load_lambda_function_policy.json
policy_json = data.aws_iam_policy_document.iam_policy_document_for_get_glue_metadata_lambda.json
function_name = "data_product_athena_load_${local.environment}"
create_role = true
reserved_concurrent_executions = 1
Expand Down

0 comments on commit 714e4d7

Please sign in to comment.