Skip to main content

Creating Global Environment Variables

# PostgreSQL
PGHOST="Your DB IP address"
PGPASSWORD="Your DB password"
PGDATABASE="You DB name"
PGUSER="Your DB username"

# CSV files on S3 bucket
S3_LOG_BUCKET_URI="s3://<Bucket name>/<Folder name>"
S3_LOG_CONFIG_FILE="/var/task/prd_s3.cfg"
S3_LOG_FOLDER="/tmp/store"

# Logging file to upload into S3 bucket
LAMBDA_FOLDER="/tmp/log"
LAMBDA_FILE="export_logs.log"

# Connection
TIMEZONE="<Your timezone>"
MAX_CONCURRENT_REQUESTS=10
SERVER_ID_LIMIT=5
AFTER_FAILED_IGNORING_MINUTES=10

PostgreSQL DB Variables

  1. PGHOST
  2. PGPASSWORD
  3. PGDATABASE
  4. PGUSER

CSV Files on S3 Bucket Variables

  1. S3_LOG_BUCKET_URI
  2. S3_LOG_CONFIG_FILE
  3. S3_LOG_FOLDER

Connection Variables

  1. TIMEZONE
  2. MAX_CONCURRENT_REQUESTS
  3. SERVER_ID_LIMIT
  4. AFTER_FAILED_IGNORING_MINUTES