Skip to content

Commit

Permalink
Update CDK qa.json file
Browse files Browse the repository at this point in the history
  • Loading branch information
MikkoKauhanen committed Dec 17, 2024
1 parent 0c0f15d commit d5d8331
Showing 1 changed file with 216 additions and 16 deletions.
232 changes: 216 additions & 16 deletions aoe-infra/infra/environments/qa.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,200 @@
"domain": "qa.aoe.fi"
},
"services": {
"data_analytics": {
"cpu_limit": "512",
"memory_limit": "1024",
"min_count": 1,
"max_count": 1,
"image_tag": "ga-105",
"allow_ecs_exec": true,
"env_vars": {
"LOGGING_LEVEL_FI_CSC": "ERROR",
"LOGGING_LEVEL_ORG_APACHE_KAFKA": "ERROR",
"LOGGING_LEVEL_ORG_SPRINGFRAMEWORK": "ERROR",
"SERVER_PORT": "8080",
"SERVER_SERVLET_CONTEXTPATH": "/analytics/api",
"SPRING_PROFILES_ACTIVE": "prod",
"SPRING_AUTOCONFIGURATION_EXCLUDE": "org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration",

"SPRING_DATASOURCE_PRIMARY_USERNAME": "reporter",
"SPRING_DATASOURCE_PRIMARY_INITIALIZATIONMODE": "never",
"SPRING_DATASOURCE_PRIMARY_DRIVERCLASSNAME": "org.postgresql.Driver",

"MONGODB_PRIMARY_ENABLE_SSL": "true",
"MONGODB_PRIMARY_DATABASE": "analytics",
"MONGODB_PRIMARY_USERNAME": "aoeOwner",

"KAFKA_ENABLED": "true",
"KAFKA_SASL_ENABLE": "true",
"TRUST_STORE_LOCATION": "/certs/rds-truststore.jks",

"SPRING_KAFKA_CONSUMER_AUTO_STARTUP": "true",
"SPRING_KAFKA_CONSUMER_AUTOOFFSETRESET": "latest",
"SPRING_KAFKA_CONSUMER_ENABLEAUTOCOMMIT": "true",
"SPRING_KAFKA_PRODUCER_BATCH_SIZE": "10",
"SPRING_KAFKA_PRODUCER_CLIENTID": "aoe-kafka-client",

"KAFKA_GROUPID_PRODMATERIALACTIVITY": "group-prod-material-activity",
"KAFKA_GROUPID_PRODSEARCHREQUESTS": "group-prod-search-requests",

"KAFKA_TOPIC_PRODMATERIALACTIVITY": "prod_material_activity",
"KAFKA_TOPIC_PRODSEARCHREQUESTS": "prod_search_requests"
}
},
"data_services": {
"cpu_limit": "512",
"memory_limit": "1024",
"min_count": 1,
"max_count": 1,
"image_tag": "ga-105",
"allow_ecs_exec": true,
"env_vars": {
"SPRING_PROFILES_ACTIVE": "prod",
"SERVER_PORT": "8080",
"AOE_OAIIDENTIFIER_REPOSITORYIDENTIFIER": "qa.aoe.fi",
"AOE_REQUEST_PERPAGE": "20",
"AOE_REQUEST_URL": "http://web-backend.qa.aoe.local:8080/api/v1/oaipmh/metadata"
}
},
"web_frontend": {
"cpu_limit": "512",
"memory_limit": "1024",
"min_count": 1,
"max_count": 1,
"image_tag": "ga-172-qa",
"allow_ecs_exec": true
},
"web_backend": {
"cpu_limit": "512",
"memory_limit": "1024",
"min_count": 1,
"max_count": 1,
"image_tag": "ga-105",
"allow_ecs_exec": true,
"env_vars": {
"PID_SERVICE_URL": "http://localhost",
"NODE_ENV": "production",
"LOG_LEVEL": "error",
"PORT_LISTEN": "8080",
"TEST_RUN": "false",
"MATERIAL_VERSION_URL": "https://qa.aoe.fi/#/materiaali/",
"HTTP_OPTIONS_TIMEOUT": "5000",
"HTTP_OPTIONS_RETRY": "2",
"HTTP_OPTIONS_CLOCK_TOLERANCE":"5",

"POSTGRESQL_DATA": "aoe",
"PG_USER": "aoe_admin",
"SERVER_CONFIG_OAIPMH_ANALYTICS_URL": "https://qa.aoe.fi:8080/oaipmh",
"KAFKA_EXCLUDED_AGENT_IDENTIFIERS": "oersi",
"KAFKA_BROKER_TOPIC_MATERIAL_ACTIVITY": "prod_material_activity",
"KAFKA_BROKER_TOPIC_SEARCH_REQUESTS": "prod_search_requests",
"KAFKA_CLIENT_ID": "aoe-web-backend",
"KAFKA_CLIENT_REGION": "eu-west-1",

"SESSION_COOKIE_DOMAIN":".aoe.fi",
"SESSION_COOKIE_HTTP_ONLY": "true",
"SESSION_COOKIE_MAX_AGE": "86400000",
"SESSION_COOKIE_PATH": "/api",
"SESSION_COOKIE_SAME_SITE": "lax",
"SESSION_COOKIE_SECURE": "true",
"SESSION_OPTION_PROXY": "true",
"SESSION_OPTION_RESAVE": "false",
"SESSION_OPTION_ROLLING": "false",
"SESSION_OPTION_SAVE_UNINITIALIZED": "false",

"CLOUD_STORAGE_REGION": "eu-west-1",
"CLOUD_STORAGE_BUCKET": "aoe-qa",
"CLOUD_STORAGE_BUCKET_PDF": "aoepdf-qa",
"CLOUD_STORAGE_BUCKET_THUMBNAIL": "aoethumbnail-qa",

"THUMBNAIL_END_POINT": "/app/thumbnail/",
"FILE_SIZE_LIMIT": "10737418240",
"THUMBNAIL_FILE_SIZE_LIMIT": "10485760",

"REDIRECT_URI": "https://qa.aoe.fi/api/secure/redirect",
"SUCCESS_REDIRECT_URI": "/",
"FAILURE_REDIRECT_URI": "/api/login",

"CREATE_ES_INDEX": "1",
"ES_INDEX": "aoe",
"ES_MAPPING_FILE": "/app/aoemapping.json",
"ES_COLLECTION_INDEX": "aoecollection",
"ES_COLLECTION_MAPPING_FILE": "/app/aoecollectionmapping.json",
"ES_SIZE_DEFAULT": "1000",
"ES_FROM_DEFAULT": "0",

"HTML_BASE_URL": "https://lessons.qa.aoe.fi",
"HTML_FOLDER": "/mnt/data/webdata/htmlfolder",

"H5P_JSON_CONFIGURATION": "dist/services/config/h5p.json",
"H5P_PATH_LIBRARIES": "/mnt/data/webdata/h5p/libraries",
"H5P_PATH_TEMPORARY_STORAGE": "/mnt/data/webdata/h5p/temporary-storage",
"H5P_PATH_CONTENT": "/mnt/data/webdata/h5p/content",
"H5P_PATH_CORE": "/mnt/data/webdata/h5p/core",
"H5P_PATH_EDITOR": "/mnt/data/webdata/h5p/editor",
"H5P_PLAY_API": "https://lessons.qa.aoe.fi/h5p/play/",
"H5P_USER_EMAIL": "oppimateriaalivaranto@aoe.fi",

"MATERIAL_FILE_UPLOAD_FOLDER": "/mnt/data/uploads",

"CONVERSION_TO_PDF_API": "https://qa.aoe.fi/api/v1/pdf/content/",
"CONVERSION_TO_PDF_ENABLED": "1",

"FILE_DOWNLOAD_URL": "https://qa.aoe.fi/api/v1/download/file/",
"THUMBNAIL_DOWNLOAD_URL": "https://qa.aoe.fi/api/v1/thumbnail/",
"COLLECTION_THUMBNAIL_DOWNLOAD_URL": "https://qa.aoe.fi/api/v1/collection/thumbnail/",

"REDIS_USERNAME": "app",
"REDIS_USE_TLS": "true",
"BASE_URL": "https://qa.aoe.fi/api/v1/",
"EMAIL_FROM": "oppimateriaalivaranto@aoe.fi",
"TRANSPORT_AUTH_USER": "oppimateriaalivaranto@aoe.fi",
"TRANSPORT_AUTH_HOST": "XXXX",
"TRANSPORT_PORT": "25",
"SEND_EMAIL": "0",
"VERIFY_EMAIL_REDIRECT_URL": "/",

"CLOUD_STORAGE_ENABLED": "1",
"KAFKA_ENABLED": "1",
"LOGIN_ENABLED": "1",

"PID_SERVICE_RUN_SCHEDULED": "0",
"PID_SERVICE_ENABLED": "0",

"STREAM_ENABLED": "0",
"STREAM_FILESIZE_MIN": "100000",
"STREAM_REDIRECT_URI": "https://stream.qa.aoe.fi/api/v1/material/",
"STREAM_STATUS_HOST": "streaming-app.qa.aoe.local:8080",
"STREAM_STATUS_PATH": "/api/v1/material/"
}
},
"streaming": {
"cpu_limit": "512",
"memory_limit": "1024",
"min_count": 1,
"max_count": 1,
"image_tag": "ga-105",
"allow_ecs_exec": true,
"env_vars": {
"LOG_LEVEL": "error",
"PORT": "8080",
"NODE_ENV": "production",
"STORAGE_BUCKET": "aoe-qa",
"STORAGE_REGION": "eu-west-1",
"STORAGE_MAX_RANGE": "10000000"
}
},
"semantic_apis": {
"cpu_limit": "512",
"memory_limit": "1024",
"min_count": 1,
"max_count": 1,
"image_tag": "ga-25",
"image_tag": "ga-105",
"allow_ecs_exec": true,
"env_vars": {
"LOG_LEVEL": "debug",
"PORT_LISTEN": "8080",
"REDIS_HOST": "semantic-apis-cdb80h.serverless.euw1.cache.amazonaws.com",
"REDIS_PORT": "6379",
"REDIS_USERNAME": "app",
"REDIS_EXPIRE_TIME": "86400",
"REDIS_USE_TLS": "true",
Expand All @@ -27,33 +209,51 @@
"EXTERNAL_API_SUOMI_KOODISTOT": "https://koodistot.suomi.fi/codelist-api/api/v1/coderegistries",
"EXTERNAL_API_OPINTOPOLKU_ORGANISAATIOT": "https://virkailija.opintopolku.fi/organisaatio-service/rest",
"EXTERNAL_API_OPINTOPOLKU_EPERUSTEET": "https://virkailija.opintopolku.fi/eperusteet-service/api"
}
}
}
},
"msk": {
"clusterName": "AOEKafkaCluster",
"instanceType": "kafka.t3.small",
"numberOfBrokerNodes": 2,
"version": "3.6.0",
"volumeSize": 100
},
"open_search": {
"standbyReplicas": "DISABLED",
"collectionName": "aoecollection",
"collectionDescription": "Collection for aoe"
},

"aurora_databases": {
"data-analytics": {
"version": "15.4",
"data_analytics": {
"version": "16.4",
"min_size_acu": 0.5,
"max_size_acu": 1,
"performance_insights": false,
"domain_names": ["data-analytics"]
},
"web-backend": {
"version": "15.4",
"performance_insights": false
},
"web_backend": {
"version": "16.4",
"min_size_acu": 0.5,
"max_size_acu": 1,
"performance_insights": false,
"domain_names": ["web-backend"]
}
"performance_insights": false
}
},
"document_db": {
"engineVersion": "4.0.0"
},
"S3": {
"aoeBucketName": "aoe",
"aoePdfBucketName": "aoepdf",
"aoeThumbnailBucketName": "aoethumbnail"
},

"redis_serverless": {
"semantic_apis": {
"major_version": "7",
"storage_min": 1,
"storage_max": 5,
"min_ecpu_per_second": 1000,
"max_ecpu_per_second": 40000
}
}
}
}

0 comments on commit d5d8331

Please sign in to comment.