Skip to content

Commit

Permalink
Update env vars type in lambda function
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sumi-k committed Sep 18, 2023
1 parent 96944fb commit 5fde520
Showing 1 changed file with 22 additions and 64 deletions.
86 changes: 22 additions & 64 deletions infrastructure/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,70 +149,28 @@ Resources:
- subnet-0e3df6dacf201528d
Environment:
Variables:
- Name: ENV
Value:
Fn::Sub: ${EnvName}
- Name: SENDER
Value:
Fn::Sub: ${Sender}
- Name: CONTACT_SENDER
Value:
Fn::Sub: ${ContactSender}
- Name: JOBS_RECEIVER
Value:
Fn::Sub: ${JobsReceiver}
- Name: CONTACT_RECEIVER
Value:
Fn::Sub: ${ContactReceiver}
- Name: ACCESS_KEY_ID
Value:
Fn::Sub: ${AccessKeyId}
- Name: SECRET_ACCESS_KEY
Value:
Fn::Sub: ${SecretAccessKey}
- Name: REGION
Value:
Fn::Sub: ${Region}
- Name: DB_USERNAME
Value:
Fn::Sub: ${DbUsername}
- Name: DB_PASSWORD
Value:
Fn::Sub: ${DbPassword}
- Name: DB_HOST
Value:
Fn::Sub: ${DbHost}
- Name: DB_PORT
Value:
Fn::Sub: ${DbPort}
- Name: DB_NAME
Value:
Fn::Sub: ${DbName}
- Name: RECAPTCHA_CONFIG_JSON_BASE64
Value:
Fn::Sub: ${RecaptchaConfigJSONBase64}
- Name: RECAPTCHA_SITE_KEY
Value:
Fn::Sub: ${RecaptchaSiteKey}
- Name: RECAPTCHA_PROJECT_ID
Value:
Fn::Sub: ${RecaptchaProjectId}
- Name: JOBS_SPREADSHEET_ID
Value:
Fn::Sub: ${JobsSpreadsheetId}
- Name: JOBS_SHEET_ID
Value:
Fn::Sub: ${JobsSheetId}
- Name: PERSONAL_ACCESS_TOKEN_GITHUB
Value:
Fn::Sub: ${GithubAccessToken}
- Name: RESOURCES_URL
Value:
Fn::Sub: ${ResourcesURL}
- Name: TZ
Value: UTC
- Name: GIN_MODE
value: release
ENV: ${EnvName}
SENDER: ${Sender}
CONTACT_SENDER: ${ContactSender}
CONTACT_RECEIVER: ${ContactReceiver}
JOBS_RECEIVER: ${JobsReceiver}
ACCESS_KEY_ID: ${AccessKeyId}
SECRET_ACCESS_KEY: ${SecretAccessKey}
REGION: ${Region}
DB_USERNAME: ${DbUsername}
DB_PASSWORD: ${DbPassword}
DB_HOST: ${DbHost}
DB_PORT: ${DbPort}
DB_NAME: ${DbName}
RECAPTCHA_CONFIG_JSON_BASE64: ${RecaptchaConfigJSONBase64}
RECAPTCHA_SITE_KEY: ${RecaptchaSiteKey}
RECAPTCHA_PROJECT_ID: ${RecaptchaProjectId}
JOBS_SPREADSHEET_ID: ${JobsSpreadsheetId}
JOBS_SHEET_ID: ${JobsSheetId}
PERSONAL_ACCESS_TOKEN_GITHUB: ${GithubAccessToken}
RESOURCES_URL: ${ResourcesURL}
TZ: UTC
GIN_MODE: release
DependsOn:
- LambdaLogGroup

Expand Down

0 comments on commit 5fde520

Please sign in to comment.