@@ -71,39 +71,38 @@ Read the [Important Notes](#important-notes) section before deploying the stack.
71
71
72
72
``` bash
73
73
aws cloudformation create-stack \
74
- --stack-name BedrockOrg \
75
- --template-body file://templates/sra-bedrock-org-main.yaml \
74
+ --stack-name sra-bedrock-org-main \
75
+ --template-body file://aws_sra_examples/solutions/genai/bedrock_org/templates/sra-bedrock-org-main.yaml \
76
+ --region us-east-1 \
76
77
--parameters \
77
- ParameterKey=pSRARepoZipUrl,ParameterValue=https://github.com/aws-samples/aws- security-reference-architecture-examples/archive/refs/heads/main .zip \
78
- ParameterKey=pDryRun,ParameterValue=false \
79
- ParameterKey=pSRAExecutionRoleName,ParameterValue=sra-execution-role \
78
+ ParameterKey=pSRARepoZipUrl,ParameterValue=https://github.com/aws-security-reference-architecture-examples/archive/refs/heads/sra-genai .zip \
79
+ ParameterKey=pDryRun,ParameterValue=true \
80
+ ParameterKey=pSRAExecutionRoleName,ParameterValue=sra-execution \
80
81
ParameterKey=pDeployLambdaLogGroup,ParameterValue=true \
81
82
ParameterKey=pLogGroupRetention,ParameterValue=30 \
82
83
ParameterKey=pLambdaLogLevel,ParameterValue=INFO \
83
84
ParameterKey=pSRASolutionName,ParameterValue=sra-bedrock-org \
84
85
ParameterKey=pSRASolutionVersion,ParameterValue=1.0.0 \
85
86
ParameterKey=pSRAAlarmEmail,ParameterValue=alerts@examplecorp.com \
86
- ParameterKey=pSRAStagingS3BucketName,ParameterValue=staging-artifacts -bucket \
87
- ParameterKey=pBedrockOrgLambdaRoleName,ParameterValue=sra-bedrock-org-lambda-role \
88
- ParameterKey=pBedrockAccounts,ParameterValue=' ["123456789012","234567890123"] ' \
89
- ParameterKey=pBedrockRegions,ParameterValue=' [ "us-east-1", "us-west-2"] ' \
90
- ParameterKey=pBedrockModelEvalBucketRuleParams,ParameterValue=' { "deploy": "true", "accounts": ["123456789012" ], "regions": ["us-east-1" ], "input_params": {"BucketNamePrefix": "evaluation- bucket", "CheckRetention": "true", "CheckEncryption": "true", "CheckLogging": "true", "CheckObjectLocking": "true", "CheckVersioning": "true"}}' \
91
- ParameterKey=pBedrockIAMUserAccessRuleParams,ParameterValue=' { "deploy": "true", "accounts": ["123456789012" ], "regions": ["us-east-1" ], "input_params": {}}' \
92
- ParameterKey=pBedrockGuardrailsRuleParams,ParameterValue=' { "deploy": "true", "accounts": ["123456789012" ], "regions": ["us-east-1" ], "input_params": {"content_filters": "true", "denied_topics": "true", "word_filters": "true", "sensitive_info_filters": "true", "contextual_grounding": "true"}}' \
93
- ParameterKey=pBedrockVPCEndpointsRuleParams,ParameterValue=' { "deploy": "true", "accounts": ["123456789012" ], "regions": ["us-east-1" ], "input_params": {"check_bedrock": "true", "check_bedrock_agent": "true", "check_bedrock_agent_runtime": "true", "check_bedrock_runtime": "true"}}' \
94
- ParameterKey=pBedrockInvocationLogCWRuleParams,ParameterValue=' { "deploy": "true", "accounts": ["123456789012" ], "regions": ["us-east-1" ], "input_params": {"check_retention": "true", "check_encryption": "true"}}' \
95
- ParameterKey=pBedrockInvocationLogS3RuleParams,ParameterValue=' { "deploy": "true", "accounts": ["123456789012" ], "regions": ["us-east-1" ], "input_params": {"check_retention": "true", "check_encryption": "true", "check_access_logging": "true", "check_object_locking": "true", "check_versioning": "true"}}' \
96
- ParameterKey=pBedrockCWEndpointsRuleParams,ParameterValue=' { "deploy": "true", "accounts": ["123456789012" ], "regions": ["us-east-1" ], "input_params": {}}' \
97
- ParameterKey=pBedrockS3EndpointsRuleParams,ParameterValue=' { "deploy": "true", "accounts": ["123456789012" ], "regions": ["us-east-1" ], "input_params": {}}' \
98
- ParameterKey=pBedrockGuardrailEncryptionRuleParams,ParameterValue=' { "deploy": "true", "accounts": ["123456789012" ], "regions": ["us-east-1" ], "input_params": {}}' \
99
- ParameterKey=pBedrockServiceChangesFilterParams,ParameterValue=' { "deploy": "true", "accounts": ["123456789012 "], "regions": ["us-east-1"], "filter_params": {"log_group_name": "aws-controltower/CloudTrailLogs"}}' \
100
- ParameterKey=pBedrockBucketChangesFilterParams,ParameterValue=' { "deploy": "true", "accounts": ["123456789012 "], "regions": ["us-east-1"], "filter_params": {"log_group_name": "aws-controltower/CloudTrailLogs", "bucket_names": ["my- bucket-name" ]}}' \
101
- ParameterKey=pBedrockPromptInjectionFilterParams,ParameterValue=' { "deploy": "true", "accounts": ["123456789012" ], "regions": ["us-east-1"], "filter_params": {"log_group_name": " invocation-log-group", "input_path": "input.inputBodyJson.messages[0].content"}}' \
102
- ParameterKey=pBedrockSensitiveInfoFilterParams,ParameterValue=' { "deploy": "true", "accounts": ["123456789012" ], "regions": ["us-east-1"], "filter_params": {"log_group_name": " invocation-log-group", "input_path": "input.inputBodyJson.messages[0].content"}}' \
103
- ParameterKey=pBedrockCentralObservabilityParams,ParameterValue=' { "deploy": "true", "bedrock_accounts": ["123456789012" ], "regions": ["us-east-1"]}' \
87
+ ParameterKey=pSRAStagingS3BucketName,ParameterValue=/sra/ staging-s3 -bucket-name \
88
+ ParameterKey=pBedrockOrgLambdaRoleName,ParameterValue=sra-bedrock-org-lambda \
89
+ ParameterKey=pBedrockAccounts,ParameterValue=' "[\"222222222222\",\"333333333333\"]" ' \
90
+ ParameterKey=pBedrockRegions,ParameterValue=' "[\ "us-east-1\",\ "us-west-2\"]" ' \
91
+ ParameterKey=pBedrockModelEvalBucketRuleParams,ParameterValue=' "{\ "deploy\ ": \ "true\ ", \ "accounts\ ": [\"222222222222\",\"333333333333\" ], \ "regions\ ": [\ "us-east-1\",\"us-west-2\" ], \ "input_params\ ": {\ "BucketNamePrefix\ ": \"model-eval-job- bucket\",\ "CheckRetention\ ": \ "true\ ", \ "CheckEncryption\ ": \ "true\ ", \ "CheckLogging\ ": \ "true\ ", \ "CheckObjectLocking\ ": \ "true\ ", \ "CheckVersioning\ ": \ "true\ "}}" ' \
92
+ ParameterKey=pBedrockIAMUserAccessRuleParams,ParameterValue=' "{\ "deploy\ ": \ "true\ ", \ "accounts\ ": [\"222222222222\",\"333333333333\" ], \ "regions\ ": [\ "us-east-1\",\"us-west-2\" ], \ "input_params\ ": {}}" ' \
93
+ ParameterKey=pBedrockGuardrailsRuleParams,ParameterValue=' "{\ "deploy\ ": \ "true\ ", \ "accounts\ ": [\"222222222222\",\"333333333333\" ], \ "regions\ ": [\ "us-east-1\",\"us-west-2\" ], \ "input_params\ ": {\ "content_filters\ ": \ "true\ ", \ "denied_topics\ ": \ "true\ ", \ "word_filters\ ": \ "true\ ", \ "sensitive_info_filters\ ": \ "true\ ", \ "contextual_grounding\ ": \ "true\ "}}" ' \
94
+ ParameterKey=pBedrockVPCEndpointsRuleParams,ParameterValue=' "{\ "deploy\ ": \ "true\ ", \ "accounts\ ": [\"222222222222\",\"333333333333\" ], \ "regions\ ": [\ "us-east-1\",\"us-west-2\" ], \ "input_params\ ": {\ "check_bedrock\ ": \ "true\ ", \ "check_bedrock_agent\ ": \ "true\ ", \ "check_bedrock_agent_runtime\ ": \ "true\ ", \ "check_bedrock_runtime\ ": \ "true\ "}}" ' \
95
+ ParameterKey=pBedrockInvocationLogCWRuleParams,ParameterValue=' "{\ "deploy\ ": \ "true\ ", \ "accounts\ ": [\"222222222222\",\"333333333333\" ], \ "regions\ ": [\ "us-east-1\",\"us-west-2\" ], \ "input_params\ ": {\ "check_retention\ ": \ "true\ ", \ "check_encryption\ ": \ "true\ "}}" ' \
96
+ ParameterKey=pBedrockInvocationLogS3RuleParams,ParameterValue=' "{\ "deploy\ ": \ "true\ ", \ "accounts\ ": [\"222222222222\",\"333333333333\" ], \ "regions\ ": [\ "us-east-1\",\"us-west-2\" ], \ "input_params\ ": {\ "check_retention\ ": \ "true\ ", \ "check_encryption\ ": \ "true\ ", \ "check_access_logging\ ": \ "true\ ", \ "check_object_locking\ ": \ "true\ ", \ "check_versioning\ ": \ "true\ "}}" ' \
97
+ ParameterKey=pBedrockCWEndpointsRuleParams,ParameterValue=' "{\ "deploy\ ": \ "true\ ", \ "accounts\ ": [\"222222222222\",\"333333333333\" ], \ "regions\ ": [\ "us-east-1\",\"us-west-2\" ], \ "input_params\ ": {}}" ' \
98
+ ParameterKey=pBedrockS3EndpointsRuleParams,ParameterValue=' "{\ "deploy\ ": \ "true\ ", \ "accounts\ ": [\"222222222222\",\"333333333333\" ], \ "regions\ ": [\ "us-east-1\",\"us-west-2\" ], \ "input_params\ ": {}}" ' \
99
+ ParameterKey=pBedrockGuardrailEncryptionRuleParams,ParameterValue=' "{\ "deploy\ ": \ "true\ ", \ "accounts\ ": [\"222222222222\",\"333333333333\" ], \ "regions\ ": [\ "us-east-1\",\"us-west-2\" ], \ "input_params\ ": {}}" ' \
100
+ ParameterKey=pBedrockServiceChangesFilterParams,ParameterValue=' "{\ "deploy\ ": \ "true\ ", \ "accounts\ ": [\"111111111111\ "], \ "regions\ ": [\ "us-east-1\ "], \ "filter_params\ ": {\ "log_group_name\ ": \ "aws-controltower/CloudTrailLogs\ "}}" ' \
101
+ ParameterKey=pBedrockBucketChangesFilterParams,ParameterValue=' "{\ "deploy\ ": \ "true\ ", \ "accounts\ ": [\"111111111111\ "], \ "regions\ ": [\ "us-east-1\ "], \ "filter_params\ ": {\ "log_group_name\ ": \ "aws-controltower/CloudTrailLogs\ ", \ "bucket_names\ ": [\"model-invocation-log- bucket-222222222222-us-west-2\",\"model-invocation-log-bucket-222222222222-us-east-1\",\"model-invocation-log-bucket-333333333333-us-west-2\",\"model-invocation-log-bucket-333333333333-us-east-1\" ]}}" ' \
102
+ ParameterKey=pBedrockPromptInjectionFilterParams,ParameterValue=' "{\ "deploy\ ": \ "true\ ", \ "accounts\ ": [\"222222222222\",\"333333333333\" ], \ "regions\ ": [\ "us-east-1\ "], \ "filter_params\ ": {\ "log_group_name\ ": \"model- invocation-log-group\ ", \ "input_path\ ": \ "input.inputBodyJson.messages[0].content\ "}}" ' \
103
+ ParameterKey=pBedrockSensitiveInfoFilterParams,ParameterValue=' "{\ "deploy\ ": \ "true\ ", \ "accounts\ ": [\"222222222222\",\"333333333333\" ], \ "regions\ ": [\ "us-east-1\ "], \ "filter_params\ ": {\ "log_group_name\ ": \"model- invocation-log-group\ ", \ "input_path\ ": \ "input.inputBodyJson.messages[0].content\ "}}" ' \
104
+ ParameterKey=pBedrockCentralObservabilityParams,ParameterValue=' "{\ "deploy\ ": \ "true\ ", \ "bedrock_accounts\ ": [\"222222222222\",\"333333333333\" ], \ "regions\ ": [\ "us-east-1\ "]}" ' \
104
105
--capabilities CAPABILITY_NAMED_IAM
105
- ```
106
-
107
106
2. Monitor the stack creation progress in the AWS CloudFormation Console or via CLI commands.
108
107
109
108
# ## Post-Deployment
0 commit comments