in lib/projects/deploy-project-environment.ts [31:70]
export function projectEnvironmentVars(props: {
stageName: StageName
repoName: string
bucketName: string
bucketArn: string
}) {
const siteVars: any = {}
return {
TARGET_ENV: {
type: BuildEnvironmentVariableType.PLAINTEXT,
value: props.stageName
},
TARGET_ACCOUNT_ID: {
type: BuildEnvironmentVariableType.PLAINTEXT,
value: `${config.accountIds[props.stageName]}`
},
CROSS_ACCOUNT_ROLE: {
type: BuildEnvironmentVariableType.PLAINTEXT,
value: config.deployment['cicdRoleName']
},
REPO_NAME: {
type: BuildEnvironmentVariableType.PLAINTEXT,
value: props.repoName
},
TARGET_REGION: {
type: BuildEnvironmentVariableType.PLAINTEXT,
value: `${config.defaultRegions[props.stageName]}`
},
ARTIFACTS_BUCKET_NAME: {
type: BuildEnvironmentVariableType.PLAINTEXT,
value: props.bucketName
},
ARTIFACTS_BUCKET_ARN: {
type: BuildEnvironmentVariableType.PLAINTEXT,
value: props.bucketArn
},
...siteVars
}
}