Skip to content

Instantly share code, notes, and snippets.

@barnabyalter
Created April 23, 2021 19:14
Show Gist options
  • Save barnabyalter/b201f4312183a1afbb1e95928c41566a to your computer and use it in GitHub Desktop.
Save barnabyalter/b201f4312183a1afbb1e95928c41566a to your computer and use it in GitHub Desktop.
version: "3.7"
x-environment: &x-environment
BACKEND_BUCKET:
BACKEND_REGION:
BACKEND_DYNAMODB_TABLE:
# AWS_ACCESS_KEY_ID:
# AWS_SECRET_ACCESS_KEY:
# AWS_DEFAULT_REGION:
SLACK_URL:
TF_VAR_lambda_exec_arn:
TF_VAR_apigw_id:
TF_VAR_apigw_root_resource_id:
TF_VAR_apigw_execution_arn:
TF_VAR_lambda_s3_bucket:
TF_VAR_aws_username:
TF_VAR_apigw_stage:
TF_VAR_lambda_version:
TF_VAR_environment_variables:
services:
fn_create_specialcollections:
build:
context: deploy/
command: ["terraform", "apply", "-auto-approve"]
env_file:
- .env
environment:
<<: *x-environment
BACKEND_KEY: lambdas/tf_state/synthetic_tests/specialcollections
TF_VAR_lambda_function_name: synthetic-tests-specialcollections
TF_VAR_lambda_description: "Ping test for Special Collections"
TF_VAR_lambda_handler: handler.syntheticTest
TF_VAR_lambda_runtime: nodejs10.x
TF_VAR_lambda_method: GET
TF_VAR_lambda_memory_limit: 128
TF_VAR_schedule_expression: rate(10 minutes)
TEST_URL: "https://specialcollections.library.nyu.edu/"
EXPECTED_CODE: 301
EXPECTED_RESPONSE_TIME_MS: 600
EXPECTED_REDIRECT_LOCATION: "http://specialcollections.library.nyu.edu/search"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment