mirror of
https://github.com/Sea-Haven-Industries/afi-backup-monitor.git
synced 2026-09-30 06:03:12 +00:00
Migrate afi-backup-monitor deploy path from SAM CD to HCP Terraform parity config; freeze mgmt by removing push-to-main SAM deploy.
24 lines
621 B
HCL
24 lines
621 B
HCL
locals {
|
|
account_id = "011934824531"
|
|
boundary_arn = "arn:aws:iam::${local.account_id}:policy/seahaven-lambda-execution-boundary"
|
|
|
|
common_env = {
|
|
AFI_API_KEY_SECRET_ARN = var.afi_api_key_secret_arn
|
|
AFI_TENANT_ID = var.afi_tenant_id
|
|
SLACK_WEBHOOK_SECRET_ARN = var.slack_webhook_secret_arn
|
|
}
|
|
|
|
secrets_policy_json = jsonencode({
|
|
Version = "2012-10-17"
|
|
Statement = [
|
|
{
|
|
Effect = "Allow"
|
|
Action = ["secretsmanager:GetSecretValue"]
|
|
Resource = [
|
|
var.afi_api_key_secret_arn,
|
|
var.slack_webhook_secret_arn,
|
|
]
|
|
}
|
|
]
|
|
})
|
|
}
|