From fe6d5c4157dc2909640c4aae284c31f291e28f78 Mon Sep 17 00:00:00 2001 From: lpm0073 Date: Fri, 22 Dec 2023 14:53:08 -0600 Subject: [PATCH 1/2] docs: cleanup defaults --- doc/json/info_endpoint.json | 8 ++++---- terraform/python/rekognition_api/conf.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/json/info_endpoint.json b/doc/json/info_endpoint.json index abd448a..b732693 100644 --- a/doc/json/info_endpoint.json +++ b/doc/json/info_endpoint.json @@ -192,7 +192,7 @@ }, "aws_auth": { "aws_access_key_id_source": "overridden by IAM role-based security", - "aws_profile": "lawrence", + "aws_profile": "default", "aws_region": "us-east-1", "aws_secret_access_key_source": "overridden by IAM role-based security" }, @@ -324,7 +324,7 @@ "aws_account_id": "****", "aws_apigateway_create_custom_domaim": true, "aws_apigateway_root_domain": "example.com", - "aws_profile": "lawrence", + "aws_profile": "default", "aws_region": "us-east-1", "aws_rekognition_face_detect_attributes": "DEFAULT", "aws_rekognition_face_detect_quality_filter": "AUTO", @@ -342,7 +342,7 @@ "shared_resource_identifier": "rekognition", "stage": "v1", "tags": { - "contact": "Lawrence McDaniel - lpm0073@gmail.com", + "contact": "YOUR CONTACT INFO HERE", "project": "Facial Recognition microservice", "shared_resource_identifier": "rekognition", "terraform": "true" @@ -360,7 +360,7 @@ "AWS_APIGATEWAY_READ_TIMEOUT": 70, "AWS_APIGATEWAY_ROOT_DOMAIN": "example.com", "AWS_DYNAMODB_TABLE_ID": "rekognition", - "AWS_PROFILE": "lawrence", + "AWS_PROFILE": null, "AWS_REGION": "us-east-1", "AWS_REKOGNITION_COLLECTION_ID": "rekognition-collection", "AWS_REKOGNITION_FACE_DETECT_ATTRIBUTES": "DEFAULT", diff --git a/terraform/python/rekognition_api/conf.py b/terraform/python/rekognition_api/conf.py index af35d68..def1e38 100644 --- a/terraform/python/rekognition_api/conf.py +++ b/terraform/python/rekognition_api/conf.py @@ -87,7 +87,7 @@ class SettingsDefaults: """Default values for Settings""" # defaults for this Python package - SHARED_RESOURCE_IDENTIFIER = TFVARS.get("shared_resource_identifier", "rekognition_api") + SHARED_RESOURCE_IDENTIFIER = TFVARS.get("shared_resource_identifier", "rekognition") DEBUG_MODE: bool = bool(TFVARS.get("debug_mode", False)) DUMP_DEFAULTS = TFVARS.get("dump_defaults", True) From 3eac9e4712c90a206ef04986aa1e663c730a13b1 Mon Sep 17 00:00:00 2001 From: lpm0073 Date: Fri, 22 Dec 2023 14:55:12 -0600 Subject: [PATCH 2/2] docs: cleanup defaults --- terraform/python/rekognition_api/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/python/rekognition_api/conf.py b/terraform/python/rekognition_api/conf.py index def1e38..f70a3e7 100644 --- a/terraform/python/rekognition_api/conf.py +++ b/terraform/python/rekognition_api/conf.py @@ -105,10 +105,10 @@ class SettingsDefaults: AWS_APIGATEWAY_MAX_ATTEMPTS = TFVARS.get("aws_apigateway_max_attempts", 10) # aws dynamodb defaults - AWS_DYNAMODB_TABLE_ID = "rekognition" + AWS_DYNAMODB_TABLE_ID = SHARED_RESOURCE_IDENTIFIER # aws rekognition defaults - AWS_REKOGNITION_COLLECTION_ID = AWS_DYNAMODB_TABLE_ID + "-collection" + AWS_REKOGNITION_COLLECTION_ID = SHARED_RESOURCE_IDENTIFIER + "-collection" AWS_REKOGNITION_FACE_DETECT_MAX_FACES_COUNT: int = int(TFVARS.get("aws_rekognition_max_faces_count", 10)) AWS_REKOGNITION_FACE_DETECT_THRESHOLD: int = int(TFVARS.get("aws_rekognition_face_detect_threshold", 10)) AWS_REKOGNITION_FACE_DETECT_ATTRIBUTES = TFVARS.get("aws_rekognition_face_detect_attributes", "DEFAULT")