Reference an EXISTING AWS Secrets Manager secret by name or ARN, to wire into defineHosting's environment. Read at runtime with getSecret('<key>').
defineHosting
environment
getSecret('<key>')
the secret's name (e.g. my/app/token) or full ARN.
my/app/token
defineHosting({ environment: { LEGACY_TOKEN: byoSecret('my/app/legacy-token') } });// → getSecret('LEGACY_TOKEN') Copy
defineHosting({ environment: { LEGACY_TOKEN: byoSecret('my/app/legacy-token') } });// → getSecret('LEGACY_TOKEN')
Reference an EXISTING AWS Secrets Manager secret by name or ARN, to wire into
defineHosting'senvironment. Read at runtime withgetSecret('<key>').