Skip to content

Commit f1f8194

Browse files
authored
Add values to SSM needed by Data API (#258)
1 parent 9409b4f commit f1f8194

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

terraform/main.tf

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ locals {
1818

1919
# Docker file for FastAPI app
2020
module "container_registry" {
21-
source = "git::https://github.com/wri/gfw-terraform-modules.git//terraform/modules/container_registry?ref=v0.4.2.9"
21+
source = "git::https://github.com/wri/gfw-terraform-modules.git//terraform/modules/container_registry?ref=v0.4.2.12"
2222
image_name = lower("${local.project}${local.name_suffix}")
2323
root_dir = "../${path.root}"
2424
tag = local.container_tag
2525
force_delete = var.force_delete_ecr_repos
2626
}
2727

2828
module "orchestration" {
29-
source = "git::https://github.com/wri/gfw-terraform-modules.git//terraform/modules/fargate_autoscaling?ref=v0.4.2.9"
29+
source = "git::https://github.com/wri/gfw-terraform-modules.git//terraform/modules/fargate_autoscaling?ref=v0.4.2.12"
3030
project = local.project
3131
name_suffix = local.name_suffix
3232
tags = local.tags
@@ -110,12 +110,15 @@ module "ssm" {
110110
environment = var.environment
111111
namespace = "gfw-tile-cache"
112112
contract = {
113-
tile_cache_bucket = module.storage.tiles_bucket_name
114-
tile_cache_bucket_arn = module.storage.tiles_bucket_arn
115-
tile_cache_cloudfront_id = module.content_delivery_network.cloudfront_distribution_id
116-
tile_cache_url = local.tile_cache_url
117-
tile_cache_cluster = module.orchestration.ecs_cluster_name
118-
tile_cache_service = module.orchestration.ecs_service_name
113+
cloudfront_invalidation_policy_arn = module.content_delivery_network.cloudfront_invalidation_policy_arn
114+
ecs_update_service_policy_arn = module.orchestration.ecs_update_service_policy_arn
115+
tile_cache_bucket = module.storage.tiles_bucket_name
116+
tile_cache_bucket_arn = module.storage.tiles_bucket_arn
117+
tile_cache_bucket_write_policy_arn = module.storage.s3_write_tiles_arn
118+
tile_cache_cloudfront_id = module.content_delivery_network.cloudfront_distribution_id
119+
tile_cache_url = local.tile_cache_url
120+
tile_cache_cluster = module.orchestration.ecs_cluster_name
121+
tile_cache_service = module.orchestration.ecs_service_name
119122
}
120123
lists = {}
121124
strings = {}

0 commit comments

Comments
 (0)