Skip to content

Commit f3931d5

Browse files
authored
[NDR-181] Variable tidy up (#355)
* [NDR-181] removing current_account_id * [NDR-181] poll_frequency removed * [NDR-181] removing unused base var vars * [NDR-181] remove certificate_domain var from route 53 * [NDR-] * [NDR-181] remove lamba_edge lambda_timeout * [NDR-181] moving data blocks to the top * [NDR-181] re-adding over zealous parameter removal * [NDR-181] lambdalayerbug * [NDR-181] removing acount id var * [NDR-181] removing current_account_id --------- Co-authored-by: Sam Whyte <[email protected]>
1 parent d83c97e commit f3931d5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+451
-560
lines changed

infrastructure/README.md

Lines changed: 410 additions & 411 deletions
Large diffs are not rendered by default.

infrastructure/dev.tfvars

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ domain = "access-request-fulfilment.patient-deduction
44
certificate_domain = "access-request-fulfilment.patient-deductions.nhs.uk"
55
certificate_subdomain_name_prefix = "api-"
66

7-
cloudwatch_alarm_evaluation_periods = 5
8-
poll_frequency = "3600"
9-
107
standalone_vpc_tag = "ndr-dev"
118
standalone_vpc_ig_tag = "ndr-dev"
129

infrastructure/ecr.tf

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
module "ndr-docker-ecr-ui" {
2-
source = "./modules/ecr/"
3-
app_name = "ndr-${terraform.workspace}-app"
4-
current_account_id = data.aws_caller_identity.current.account_id
5-
2+
source = "./modules/ecr/"
3+
app_name = "ndr-${terraform.workspace}-app"
64
environment = var.environment
75
owner = var.owner
86
}
97
module "ndr-docker-ecr-data-collection" {
10-
count = local.is_sandbox ? 0 : 1
11-
source = "./modules/ecr/"
12-
app_name = "${terraform.workspace}-data-collection"
13-
current_account_id = data.aws_caller_identity.current.account_id
14-
environment = var.environment
15-
owner = var.owner
8+
count = local.is_sandbox ? 0 : 1
9+
source = "./modules/ecr/"
10+
app_name = "${terraform.workspace}-data-collection"
11+
environment = var.environment
12+
owner = var.owner
1613
}

infrastructure/kms_sns.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ module "sns_encryption_key" {
22
source = "./modules/kms"
33
kms_key_name = "alias/alarm-notification-encryption-key-kms-${terraform.workspace}"
44
kms_key_description = "Custom KMS Key to enable server side encryption for sns subscriptions"
5-
current_account_id = data.aws_caller_identity.current.account_id
65
environment = var.environment
76
owner = var.owner
87
service_identifiers = ["sns.amazonaws.com", "cloudwatch.amazonaws.com"]
9-
}
8+
}

infrastructure/lambda-access-audit.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ module "access-audit-alarm" {
2525
module "access-audit-alarm-topic" {
2626
source = "./modules/sns"
2727
sns_encryption_key_id = module.sns_encryption_key.id
28-
current_account_id = data.aws_caller_identity.current.account_id
2928
topic_name = "access-audit-alarms-topic"
3029
topic_protocol = "lambda"
3130
topic_endpoint = module.access-audit-lambda.lambda_arn

infrastructure/lambda-authoriser.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ module "authoriser-alarm" {
4545
module "authoriser-alarm-topic" {
4646
source = "./modules/sns"
4747
sns_encryption_key_id = module.sns_encryption_key.id
48-
current_account_id = data.aws_caller_identity.current.account_id
4948
topic_name = "create_doc-alarms-topic"
5049
topic_protocol = "lambda"
5150
topic_endpoint = module.authoriser-lambda.lambda_arn

infrastructure/lambda-back-channel-logout.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ module "back_channel_logout_alarm" {
5757
module "back_channel_logout_alarm_topic" {
5858
source = "./modules/sns"
5959
sns_encryption_key_id = module.sns_encryption_key.id
60-
current_account_id = data.aws_caller_identity.current.account_id
6160
topic_name = "back-channel-logout-alarms-topic"
6261
topic_protocol = "lambda"
6362
topic_endpoint = module.back_channel_logout_lambda.lambda_arn

infrastructure/lambda-bulk-upload-metadata.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ module "bulk-upload-metadata-alarm" {
4141
module "bulk-upload-metadata-alarm-topic" {
4242
source = "./modules/sns"
4343
sns_encryption_key_id = module.sns_encryption_key.id
44-
current_account_id = data.aws_caller_identity.current.account_id
4544
topic_name = "bulk-upload-metadata-topic"
4645
topic_protocol = "lambda"
4746
topic_endpoint = module.bulk-upload-metadata-lambda.lambda_arn
@@ -67,4 +66,4 @@ module "bulk-upload-metadata-alarm-topic" {
6766
})
6867

6968
depends_on = [module.bulk-upload-metadata-lambda, module.sns_encryption_key]
70-
}
69+
}

infrastructure/lambda-bulk-upload-report.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ module "bulk-upload-report-alarm" {
6262
module "bulk-upload-report-alarm-topic" {
6363
source = "./modules/sns"
6464
sns_encryption_key_id = module.sns_encryption_key.id
65-
current_account_id = data.aws_caller_identity.current.account_id
6665
topic_name = "bulk-upload-report-topic"
6766
topic_protocol = "lambda"
6867
topic_endpoint = module.bulk-upload-report-lambda.lambda_arn
@@ -88,4 +87,4 @@ module "bulk-upload-report-alarm-topic" {
8887
})
8988

9089
depends_on = [module.bulk-upload-report-lambda, module.sns_encryption_key]
91-
}
90+
}

infrastructure/lambda-bulk-upload.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ module "bulk-upload-alarm" {
8484
module "bulk-upload-alarm-topic" {
8585
source = "./modules/sns"
8686
sns_encryption_key_id = module.sns_encryption_key.id
87-
current_account_id = data.aws_caller_identity.current.account_id
8887
topic_name = "bulk-upload-topic"
8988
topic_protocol = "lambda"
9089
topic_endpoint = module.bulk-upload-lambda.lambda_arn
@@ -110,4 +109,4 @@ module "bulk-upload-alarm-topic" {
110109
})
111110

112111
depends_on = [module.bulk-upload-lambda, module.sns_encryption_key]
113-
}
112+
}

0 commit comments

Comments
 (0)