mirror of
https://github.com/Sea-Haven-Industries/payments-dashboard.git
synced 2026-09-30 06:33:11 +00:00
Some checks are pending
Deploy / Deploy to prod (push) Waiting to run
* feat(infra): migrate payments-dashboard to HCP Terraform (PLAT-79) Replace the mgmt SAM stack with a prod-only HCP workspace using the afterhours stub-plus-zip-CD seam so GitHub Actions owns function code and Terraform owns infrastructure. * fix(infra): pin secret and CMK ARNs for bootstrap-plan hcptf-bootstrap-plan cannot ssm:GetParameter or DescribeSecret, so the first plan must not data-source those values. * fix(infra): add EIP describe and DynamoDB CMK grants for first apply Scoped apply missed ec2:DescribeAddressesAttribute and kms Encrypt/Decrypt/GenerateDataKey on the table CMK.
15 lines
598 B
HCL
15 lines
598 B
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"
|
|
}
|