mirror of
https://github.com/Sea-Haven-Industries/afterhours-shift-manager.git
synced 2026-09-30 04:33:10 +00:00
* feat(api): collapse Slack, portal, and jobs onto Fargate (PLAT-216) Move HTTP and scheduled work onto one always-on Flask task so after-hours loses Lambda cold start without changing the Cognito or roster contracts. * fix(portal-api): keep CORS headers on unexpected 500s Portal SPA error handling needs Access-Control-Allow-Origin even when DynamoDB or other internals fail, otherwise the browser hides the 500. * fix(api): retarget holidays per account and ship App Home changelog (PLAT-216) * fix(iam): list ECS tasks and fail closed on non-prod Paychex (PLAT-216) * fix(portal-api): serve portal JSON with an explicit JSON content type
57 lines
2 KiB
HCL
57 lines
2 KiB
HCL
resource "aws_ssm_parameter" "deploy_artifacts_bucket" {
|
|
name = "${local.ssm_prefix}/deploy/artifacts-bucket"
|
|
type = "String"
|
|
value = aws_s3_bucket.artifacts.id
|
|
description = "Lambda artifacts bucket; deploy.yaml uploads functions/<name>/<sha>.zip"
|
|
}
|
|
|
|
resource "aws_ssm_parameter" "deploy_function_name" {
|
|
for_each = local.functions
|
|
|
|
name = "${local.ssm_prefix}/deploy/${each.key}-function-name"
|
|
type = "String"
|
|
value = each.value.function_name
|
|
description = "Lambda function name for ${each.key}; deploy.yaml calls update-function-code"
|
|
}
|
|
|
|
resource "aws_ssm_parameter" "deploy_api_url" {
|
|
name = "${local.ssm_prefix}/deploy/api-url"
|
|
type = "String"
|
|
value = local.api_url
|
|
description = "API origin for deploy-api.yaml health check"
|
|
}
|
|
|
|
resource "aws_ssm_parameter" "deploy_cluster" {
|
|
name = "${local.ssm_prefix}/deploy/cluster"
|
|
type = "String"
|
|
value = aws_ecs_cluster.api.name
|
|
description = "ECS cluster name for deploy-api.yaml"
|
|
}
|
|
|
|
resource "aws_ssm_parameter" "deploy_service" {
|
|
name = "${local.ssm_prefix}/deploy/service"
|
|
type = "String"
|
|
value = aws_ecs_service.api.name
|
|
description = "ECS service name for deploy-api.yaml"
|
|
}
|
|
|
|
resource "aws_ssm_parameter" "deploy_task_family" {
|
|
name = "${local.ssm_prefix}/deploy/task-family"
|
|
type = "String"
|
|
value = aws_ecs_task_definition.api.family
|
|
description = "ECS task definition family for deploy-api.yaml"
|
|
}
|
|
|
|
resource "aws_ssm_parameter" "deploy_ecr_repository" {
|
|
name = "${local.ssm_prefix}/deploy/ecr-repository"
|
|
type = "String"
|
|
value = aws_ecr_repository.api.repository_url
|
|
description = "ECR repository URL for deploy-api.yaml"
|
|
}
|
|
|
|
resource "aws_ssm_parameter" "deploy_container_name" {
|
|
name = "${local.ssm_prefix}/deploy/container-name"
|
|
type = "String"
|
|
value = local.api_container_name
|
|
description = "Container name in the ECS task definition"
|
|
}
|