You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Knowledge Base Logging | Validates logging configuration for Bedrock Knowledge Base |[pBedrockKBLoggingRuleParams](#pbedrockkbloggingruleparams)|
149
+
| Knowledge Base Ingestion Encryption | Validates encryption for Knowledge Base data ingestion |[pBedrockKBIngestionEncryptionRuleParams](#pbedrockkbingestionencryptionruleparams)|
150
+
| Knowledge Base S3 Bucket | Validates S3 bucket configurations for Knowledge Base |[pBedrockKBS3BucketRuleParams](#pbedrockkbs3bucketruleparams)|
151
+
| Knowledge Base Vector Store Secret | Validates vector store secret configuration |[pBedrockKBVectorStoreSecretRuleParams](#pbedrockkbvectorstoresecretruleparams)|
> **Important Note**: The Config rule Lambda execution role needs to have access to any KMS keys used to encrypt Bedrock guardrails. Make sure to grant the appropriate KMS key permissions to the Lambda role to ensure proper evaluation of encrypted guardrail configurations.
144
155
@@ -155,6 +166,15 @@ Please read the following notes before deploying the stack to ensure successful
| KB Logging | Validates logging configuration for Bedrock Knowledge Base |[pBedrockKBLoggingRuleParams](#pbedrockkbloggingruleparams)|
173
+
| KB Ingestion Encryption | Validates encryption configuration for Bedrock Knowledge Base |[pBedrockKBIngestionEncryptionRuleParams](#pbedrockkbingestionencryptionruleparams)|
174
+
| KB S3 Bucket | Validates S3 bucket configuration for Bedrock Knowledge Base |[pBedrockKBS3BucketRuleParams](#pbedrockkbs3bucketruleparams)|
175
+
| KB Vector Store Secret | Validates secret configuration for Bedrock Knowledge Base |[pBedrockKBVectorStoreSecretRuleParams](#pbedrockkbvectorstoresecretruleparams)|
176
+
| KB OpenSearch Encryption | Validates encryption configuration for Bedrock Knowledge Base |[pBedrockKBOpenSearchEncryptionRuleParams](#pbedrockkbopensearchencryptionruleparams)|
177
+
158
178
---
159
179
## JSON Parameters
160
180
@@ -367,6 +387,72 @@ This section explains the parameters in the CloudFormation template that require
367
387
}
368
388
```
369
389
390
+
### `pBedrockKBLoggingRuleParams`
391
+
-**Purpose**: Validates logging configuration for Bedrock Knowledge Base.
392
+
-**Structure**:
393
+
```json
394
+
{
395
+
"deploy": "true|false",
396
+
"accounts": ["account_id1", "account_id2"],
397
+
"regions": ["region1", "region2"],
398
+
"input_params": {}
399
+
}
400
+
```
401
+
402
+
### `pBedrockKBIngestionEncryptionRuleParams`
403
+
-**Purpose**: Validates encryption configuration for Bedrock Knowledge Base.
404
+
-**Structure**:
405
+
```json
406
+
{
407
+
"deploy": "true|false",
408
+
"accounts": ["account_id1", "account_id2"],
409
+
"regions": ["region1", "region2"],
410
+
"input_params": {}
411
+
}
412
+
```
413
+
414
+
### `pBedrockKBS3BucketRuleParams`
415
+
-**Purpose**: Validates S3 bucket configuration for Bedrock Knowledge Base.
416
+
-**Structure**:
417
+
```json
418
+
{
419
+
"deploy": "true|false",
420
+
"accounts": ["account_id1", "account_id2"],
421
+
"regions": ["region1", "region2"],
422
+
"input_params": {
423
+
"check_retention": "true|false",
424
+
"check_encryption": "true|false",
425
+
"check_access_logging": "true|false",
426
+
"check_object_locking": "true|false",
427
+
"check_versioning": "true|false"
428
+
}
429
+
}
430
+
```
431
+
432
+
### `pBedrockKBVectorStoreSecretRuleParams`
433
+
-**Purpose**: Validates secret configuration for Bedrock Knowledge Base.
434
+
-**Structure**:
435
+
```json
436
+
{
437
+
"deploy": "true|false",
438
+
"accounts": ["account_id1", "account_id2"],
439
+
"regions": ["region1", "region2"],
440
+
"input_params": {}
441
+
}
442
+
```
443
+
444
+
### `pBedrockKBOpenSearchEncryptionRuleParams`
445
+
-**Purpose**: Validates encryption configuration for Bedrock Knowledge Base.
446
+
-**Structure**:
447
+
```json
448
+
{
449
+
"deploy": "true|false",
450
+
"accounts": ["account_id1", "account_id2"],
451
+
"regions": ["region1", "region2"],
452
+
"input_params": {}
453
+
}
454
+
```
455
+
370
456
---
371
457
## References
372
458
-[AWS SRA Generative AI Deep-Dive](https://docs.aws.amazon.com/prescriptive-guidance/latest/security-reference-architecture/gen-ai-sra.html)
@@ -375,3 +461,32 @@ This section explains the parameters in the CloudFormation template that require
375
461
-[CloudWatch Metrics and Alarms](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatch.html)
This solution works in conjunction with other AWS SRA solutions to provide comprehensive security controls for Bedrock GenAI environments:
468
+
469
+
### Amazon Bedrock Guardrails Solution
470
+
The [SRA Bedrock Guardrails solution](../../genai/bedrock_guardrails/README.md) provides automated deployment of Amazon Bedrock Guardrails across your organization. It supports:
471
+
472
+
-**Content Filters**: Block harmful content in inputs/outputs based on predefined categories (Hate, Insults, Sexual, Violence, Misconduct, Prompt Attack)
473
+
-**Denied Topics**: Define and block undesirable topics
474
+
-**Word Filters**: Block specific words, phrases, and profanity
475
+
-**Sensitive Information Filters**: Block or mask PII and sensitive data
476
+
-**Contextual Grounding**: Detect and filter hallucinations based on source grounding
477
+
478
+
The solution uses KMS encryption for enhanced security and requires proper IAM role configurations for users who need to invoke or manage guardrails.
479
+
480
+
### GuardDuty Malware Protection for S3
481
+
The [SRA GuardDuty Malware Protection solution](../../guardduty/guardduty_malware_protection_for_s3/README.md) helps protect S3 buckets used in your Bedrock environment from malware. This is particularly important for:
482
+
483
+
- Model evaluation job buckets
484
+
- Knowledge base data ingestion buckets
485
+
- Model invocation logging buckets
486
+
487
+
The solution enables GuardDuty's malware scanning capabilities to detect malicious files that could be used in prompt injection attacks or compromise your GenAI applications.
488
+
489
+
These complementary solutions work together to provide defense-in-depth for your Bedrock GenAI environment:
490
+
- This solution (SRA Bedrock Org) provides organizational security controls and monitoring
491
+
- Bedrock Guardrails solution provides content and data security controls
Copy file name to clipboardExpand all lines: aws_sra_examples/solutions/genai/bedrock_org/lambda/rules/sra_bedrock_check_invocation_log_cloudwatch/app.py
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
0 commit comments