Skip to content

Commit

Permalink
Merge pull request #67 from FullStackWithLawrence/next
Browse files Browse the repository at this point in the history
docs
  • Loading branch information
lpm0073 authored Dec 22, 2023
2 parents 1c69425 + 3eac9e4 commit 8bade96
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions doc/json/info_endpoint.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -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",
Expand All @@ -342,7 +342,7 @@
"shared_resource_identifier": "rekognition",
"stage": "v1",
"tags": {
"contact": "Lawrence McDaniel - [email protected]",
"contact": "YOUR CONTACT INFO HERE",
"project": "Facial Recognition microservice",
"shared_resource_identifier": "rekognition",
"terraform": "true"
Expand All @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions terraform/python/rekognition_api/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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")
Expand Down

0 comments on commit 8bade96

Please sign in to comment.