mirror of
https://github.com/tiennm99/miti99bot.git
synced 2026-09-14 10:19:57 +00:00
CI's --parameter-overrides replaces (not merges with) samconfig.toml's parameter_overrides, so BOT_OWNER_ID was empty in the deployed Lambda. deploynotify silently skipped sending the post-deploy DM, and all Protected/Private commands were denied. Extract the values from samconfig.toml at deploy time so the file remains the single source of truth for non-secret deploy params. Also add 'stats' to samconfig.toml's ModulesCSV so local `sam deploy` doesn't regress the stats module.
25 lines
892 B
TOML
25 lines
892 B
TOML
version = 0.1
|
|
|
|
[default.global.parameters]
|
|
stack_name = "miti99bot"
|
|
region = "ap-southeast-1"
|
|
|
|
[default.deploy.parameters]
|
|
region = "ap-southeast-1"
|
|
capabilities = "CAPABILITY_IAM"
|
|
confirm_changeset = true
|
|
fail_on_empty_changeset = false
|
|
resolve_s3 = true
|
|
s3_prefix = "miti99bot"
|
|
# Secrets MUST live in SSM Parameter Store (see aws/README.md). Never put
|
|
# them here — this file is committed.
|
|
parameter_overrides = "StackEnv=\"prod\" ModulesCSV=\"util,misc,wordle,loldle,lolschedule,twentyq,trading,stats\" BotOwnerID=\"1064111334\" AdminUserIDs=\"1064111334\" LambdaAdapterLayerArn=\"arn:aws:lambda:ap-southeast-1:753240598075:layer:LambdaAdapterLayerArm64:25\" AlertEmail=\"minhtienit99@gmail.com\""
|
|
image_repositories = []
|
|
|
|
[default.validate.parameters]
|
|
lint = true
|
|
|
|
[default.build.parameters]
|
|
# We build Go ourselves via `make build-lambda`. SAM build only stages.
|
|
use_container = false
|