Skip to content

Commit 94572b6

Browse files
Merge pull request #1163 from NHSDigital/hotfix/made14-NRL-1966-fix-test-acc-wide-deploy
[NRL-1966] Remove permissions layer from account-wide lambdas
2 parents a744055 + 37fff60 commit 94572b6

File tree

5 files changed

+0
-23
lines changed

5 files changed

+0
-23
lines changed

.github/workflows/deploy-account-wide-infra.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@ jobs:
6565
role-to-assume: ${{ secrets.MGMT_ROLE_ARN }}
6666
role-session-name: github-actions-ci-${{ inputs.environment }}-${{ github.run_id }}
6767

68-
- name: Add S3 Permissions to Lambda Layer
69-
env:
70-
ACCOUNT_NAME: ${{ vars.ACCOUNT_NAME }}
71-
run: |
72-
make get-s3-perms ENV=${ACCOUNT_NAME}
73-
7468
- name: Retrieve Server Certificates
7569
env:
7670
ACCOUNT_NAME: ${{ vars.ACCOUNT_NAME }}
@@ -107,7 +101,6 @@ jobs:
107101
108102
aws s3 cp dist/nrlf.zip s3://nhsd-nrlf--mgmt--ci-data/acc-$ACCOUNT_NAME/${{ github.run_id }}/nrlf.zip
109103
aws s3 cp dist/dependency_layer.zip s3://nhsd-nrlf--mgmt--ci-data/acc-$ACCOUNT_NAME/${{ github.run_id }}/dependency_layer.zip
110-
aws s3 cp dist/nrlf_permissions.zip s3://nhsd-nrlf--mgmt--ci-data/acc-$ACCOUNT_NAME/${{ github.run_id }}/nrlf_permissions.zip
111104
aws s3 cp dist/seed_sandbox.zip s3://nhsd-nrlf--mgmt--ci-data/acc-$ACCOUNT_NAME/${{ github.run_id }}/seed_sandbox.zip
112105
113106
terraform-apply:
@@ -151,7 +144,6 @@ jobs:
151144
mkdir -p dist
152145
aws s3 cp s3://nhsd-nrlf--mgmt--ci-data/acc-$ACCOUNT_NAME/${{ github.run_id }}/nrlf.zip dist/nrlf.zip
153146
aws s3 cp s3://nhsd-nrlf--mgmt--ci-data/acc-$ACCOUNT_NAME/${{ github.run_id }}/dependency_layer.zip dist/dependency_layer.zip
154-
aws s3 cp s3://nhsd-nrlf--mgmt--ci-data/acc-$ACCOUNT_NAME/${{ github.run_id }}/nrlf_permissions.zip dist/nrlf_permissions.zip
155147
aws s3 cp s3://nhsd-nrlf--mgmt--ci-data/acc-$ACCOUNT_NAME/${{ github.run_id }}/seed_sandbox.zip dist/seed_sandbox.zip
156148
157149
- name: Retrieve Server Certificates

terraform/account-wide-infrastructure/dev/lambda__seed-sandbox.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ module "seed_sandbox_lambda" {
2020
layers = [
2121
module.shared_lambda_layers.nrlf_layer_arn,
2222
module.shared_lambda_layers.third_party_layer_arn,
23-
module.shared_lambda_layers.nrlf_permissions_layer_arn
2423
]
2524

2625
table_names = local.seed_table_names

terraform/account-wide-infrastructure/modules/lambda-layers/layers.tf

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,3 @@ resource "aws_lambda_layer_version" "third_party" {
2323
compatible_runtimes = ["python3.12"]
2424
description = "Third party dependencies layer (account-wide)"
2525
}
26-
27-
resource "aws_lambda_layer_version" "nrlf_permissions" {
28-
layer_name = "${var.name_prefix}--nrlf-permissions-layer"
29-
filename = "${local.dist_dir}/${local.layer_zips.nrlf_permissions}"
30-
source_code_hash = filebase64sha256("${local.dist_dir}/${local.layer_zips.nrlf_permissions}")
31-
compatible_runtimes = ["python3.12"]
32-
description = "NRLF permissions library layer (account-wide)"
33-
}

terraform/account-wide-infrastructure/modules/lambda-layers/outputs.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,3 @@ output "third_party_layer_arn" {
77
description = "ARN of the third party dependencies Lambda layer"
88
value = aws_lambda_layer_version.third_party.arn
99
}
10-
11-
output "nrlf_permissions_layer_arn" {
12-
description = "ARN of the NRLF permissions Lambda layer"
13-
value = aws_lambda_layer_version.nrlf_permissions.arn
14-
}

terraform/account-wide-infrastructure/test/lambda__seed-sandbox.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ module "seed_sandbox_lambda" {
2121
layers = [
2222
module.shared_lambda_layers.nrlf_layer_arn,
2323
module.shared_lambda_layers.third_party_layer_arn,
24-
module.shared_lambda_layers.nrlf_permissions_layer_arn
2524
]
2625

2726
table_names = local.seed_table_names

0 commit comments

Comments
 (0)