-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* UML-3225 Remove unnecessary data lookups
- Loading branch information
Sam Ainsworth
authored
Dec 21, 2023
1 parent
3a7a362
commit 9d5a2fe
Showing
5 changed files
with
44 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,3 @@ | ||
data "aws_vpc" "default" { | ||
default = "true" | ||
} | ||
|
||
data "aws_subnets" "private" { | ||
filter { | ||
name = "vpc-id" | ||
values = [data.aws_vpc.default.id] | ||
} | ||
|
||
tags = { | ||
Name = "private" | ||
} | ||
} | ||
|
||
data "aws_subnets" "public" { | ||
filter { | ||
name = "vpc-id" | ||
values = [data.aws_vpc.default.id] | ||
} | ||
|
||
tags = { | ||
Name = "public" | ||
} | ||
} | ||
|
||
data "aws_cloudwatch_log_group" "use-an-lpa" { | ||
name = "use-an-lpa" | ||
} | ||
|
||
data "aws_acm_certificate" "certificate_view" { | ||
domain = "${local.dev_wildcard}view.lastingpowerofattorney.opg.service.justice.gov.uk" | ||
|
@@ -48,64 +19,13 @@ data "aws_acm_certificate" "public_facing_certificate_use" { | |
domain = "${local.dev_wildcard}use-lasting-power-of-attorney.service.gov.uk" | ||
} | ||
|
||
data "aws_kms_alias" "sessions_viewer" { | ||
name = "alias/sessions-viewer-mrk" | ||
} | ||
|
||
data "aws_kms_alias" "sessions_actor" { | ||
name = "alias/sessions-actor-mrk" | ||
} | ||
|
||
data "aws_kms_alias" "secrets_manager" { | ||
name = "alias/secrets_manager_encryption-mrk" | ||
} | ||
|
||
data "aws_kms_alias" "pagerduty_sns" { | ||
name = "alias/pagerduty-sns" | ||
} | ||
|
||
data "aws_kms_alias" "cloudwatch_encryption" { | ||
name = "alias/cloudwatch-encryption-mrk" | ||
} | ||
|
||
//-------------------- | ||
// ECR Repos | ||
|
||
data "aws_ecr_repository" "use_an_lpa_front_web" { | ||
provider = aws.management | ||
name = "use_an_lpa/front_web" | ||
} | ||
|
||
data "aws_ecr_repository" "use_an_lpa_front_app" { | ||
provider = aws.management | ||
name = "use_an_lpa/front_app" | ||
} | ||
|
||
data "aws_ecr_repository" "use_an_lpa_api_app" { | ||
provider = aws.management | ||
name = "use_an_lpa/api_app" | ||
} | ||
|
||
data "aws_ecr_repository" "use_an_lpa_api_web" { | ||
provider = aws.management | ||
name = "use_an_lpa/api_web" | ||
} | ||
|
||
data "aws_ecr_repository" "use_an_lpa_pdf" { | ||
provider = aws.management | ||
name = "pdf_service" | ||
} | ||
|
||
data "aws_ecr_image" "pdf_service" { | ||
repository_name = "pdf_service" | ||
image_tag = local.environment.pdf_container_version | ||
provider = aws.management | ||
} | ||
|
||
data "aws_ecr_repository" "use_an_lpa_admin_app" { | ||
provider = aws.management | ||
name = "use_an_lpa/admin_app" | ||
} | ||
|
||
data "aws_ecr_repository" "use_an_lpa_upload_statistics" { | ||
provider = aws.management | ||
|
@@ -116,35 +36,3 @@ module "allow_list" { | |
source = "[email protected]:ministryofjustice/terraform-aws-moj-ip-allow-list.git?ref=v2.3.0" | ||
} | ||
|
||
data "aws_secretsmanager_secret" "notify_api_key" { | ||
name = local.environment.notify_key_secret_name | ||
} | ||
|
||
data "aws_secretsmanager_secret" "gov-uk-onelogin-identity-private-key" { | ||
name = "gov-uk-onelogin-identity-private-key" | ||
} | ||
|
||
data "aws_secretsmanager_secret" "gov-uk-onelogin-identity-public-key" { | ||
name = "gov-uk-onelogin-identity-public-key" | ||
} | ||
|
||
data "aws_ip_ranges" "route53_healthchecks" { | ||
services = ["route53_healthchecks"] | ||
regions = ["GLOBAL"] | ||
} | ||
|
||
data "aws_security_group" "brute_force_cache_service" { | ||
filter { | ||
name = "group-name" | ||
values = ["brute-force-cache-service*"] | ||
} | ||
} | ||
|
||
data "aws_elasticache_replication_group" "brute_force_cache_replication_group" { | ||
replication_group_id = "brute-force-cache-replication-group" | ||
|
||
} | ||
|
||
data "aws_iam_role" "ecs_autoscaling_service_role" { | ||
name = "AWSServiceRoleForApplicationAutoScaling_ECSService" | ||
} |