# Catalog: Bedrock Component Defaults # Lab 05: Generative AI with Foundation Models components: terraform: bedrock: metadata: component: bedrock # Amazon Bedrock resources for generative AI vars: enabled: true namespace: "ai" name: "bedrock" # Knowledge Base (disabled by default). It creates an OpenSearch # Serverless collection, which bills per OCU-hour with a minimum # capacity even when idle. See the Lab 05 guide before enabling it. create_knowledge_base: false # Set to true only after you create the vector index (Lab 05 guide). knowledge_base_index_ready: false knowledge_base_name: "ai-lab-kb" knowledge_base_description: "Knowledge Base for AI Lab hands-on exercises" embedding_model_arn: null # null -> amazon.titan-embed-text-v2:0 in the stack region # Extra IAM principals for the collection (for SSO / assumed-role users) kb_admin_principal_arns: [] # OpenSearch Serverless settings opensearch_collection_name: null # Auto-generated if null opensearch_standby_replicas: "DISABLED" # DISABLED for cost savings in labs # S3 data source for Knowledge Base create_s3_data_source: false data_source_bucket_arn: null data_source_inclusion_prefixes: [] # Document chunking configuration chunking_strategy: "FIXED_SIZE" # FIXED_SIZE, NONE, HIERARCHICAL, SEMANTIC chunk_max_tokens: 300 chunk_overlap_percentage: 20 # Guardrails for content filtering create_guardrail: true guardrail_blocked_input_message: "I cannot process this request due to content policy restrictions." guardrail_blocked_output_message: "I cannot provide this response due to content policy restrictions." content_filter_config: hate_input_strength: "HIGH" hate_output_strength: "HIGH" insults_input_strength: "HIGH" insults_output_strength: "HIGH" sexual_input_strength: "HIGH" sexual_output_strength: "HIGH" violence_input_strength: "MEDIUM" violence_output_strength: "MEDIUM" misconduct_input_strength: "HIGH" misconduct_output_strength: "HIGH" # Model invocation logging is account-wide per region and records the # prompts and responses of every model call in the region. Off by default. enable_model_invocation_logging: false log_retention_days: 7 tags: Project: "ai-hands-on-labs" ManagedBy: "atmos" Service: "bedrock"