From 39ef9ba1f9e81db69f259a28b5014b13c247279f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcios=20Batista=20da=20Silva?= Date: Thu, 16 Jan 2025 15:41:22 -0300 Subject: [PATCH] feat: make AWS credentials required in bedrock component (#5710) 1. Make aws_access_key_id field required 2. Make aws_secret_access_key field required --- src/backend/base/langflow/components/models/amazon_bedrock.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/base/langflow/components/models/amazon_bedrock.py b/src/backend/base/langflow/components/models/amazon_bedrock.py index de4155899..fa294c94f 100644 --- a/src/backend/base/langflow/components/models/amazon_bedrock.py +++ b/src/backend/base/langflow/components/models/amazon_bedrock.py @@ -26,6 +26,7 @@ class AmazonBedrockComponent(LCModelComponent): info="The access key for your AWS account." "Usually set in Python code as the environment variable 'AWS_ACCESS_KEY_ID'.", value="AWS_ACCESS_KEY_ID", + required=True, ), SecretStrInput( name="aws_secret_access_key", @@ -33,6 +34,7 @@ class AmazonBedrockComponent(LCModelComponent): info="The secret key for your AWS account. " "Usually set in Python code as the environment variable 'AWS_SECRET_ACCESS_KEY'.", value="AWS_SECRET_ACCESS_KEY", + required=True, ), SecretStrInput( name="aws_session_token",