Skip to content

DOC-371: Add Docker flags environment variables for container-spawning services - #846

Open
HarshCasper wants to merge 1 commit into
mainfrom
docs-agent/doc-371
Open

DOC-371: Add Docker flags environment variables for container-spawning services#846
HarshCasper wants to merge 1 commit into
mainfrom
docs-agent/doc-371

Conversation

@HarshCasper

Copy link
Copy Markdown
Member

Summary

This PR documents 10 new <SERVICE>_DOCKER_FLAGS environment variables that enable passing custom Docker flags to service containers spawned by LocalStack. These variables follow the same pattern as the existing LAMBDA_DOCKER_FLAGS and ECS_DOCKER_FLAGS configuration options.

Changes

Added documentation for the following environment variables in src/content/docs/aws/customization/configuration-options.md:

  1. BEDROCK_DOCKER_FLAGS - Bedrock (Ollama) containers
  2. CODEBUILD_DOCKER_FLAGS - CodeBuild build containers
  3. DOCDB_DOCKER_FLAGS - DocumentDB (MongoDB) containers
  4. ELASTICACHE_DOCKER_FLAGS - ElastiCache containers
  5. GLUE_DOCKER_FLAGS - Glue job containers
  6. KINESISANALYTICSV2_DOCKER_FLAGS - Kinesis Analytics v2 (Flink) containers
  7. KAFKA_DOCKER_FLAGS - Kafka/MSK containers
  8. MEMORYDB_DOCKER_FLAGS - MemoryDB containers
  9. MQ_DOCKER_FLAGS - Amazon MQ (RabbitMQ) broker containers
  10. RDS_DOCKER_FLAGS - RDS MySQL and MSSQL containers
  11. SAGEMAKER_DOCKER_FLAGS - SageMaker training and endpoint containers

Each variable is documented in its respective service section with:

  • Example value: -v /certs:/certs (illustrating the primary use case of custom CA certificate mounting)
  • Description: "Additional flags passed to Docker when creating [service] containers. Same restrictions as LAMBDA_DOCKER_FLAGS."
  • Reference to LAMBDA_DOCKER_FLAGS for detailed usage restrictions

Additionally, created three new service sections in alphabetical order:

  • Kinesis Analytics (between Kinesis and Kafka)
  • Kafka (between Kinesis Analytics and Lambda)
  • MQ (between MWAA and Neptune)
  • SageMaker (between S3 and SNS)

Primary Use Case

The primary use case for these flags is injecting custom CA certificates into service containers, which is critical for customers operating in environments with custom certificate authorities.

Audit Trail

Sources Accessed

Research Conducted

  1. Analyzed existing patterns: Reviewed how LAMBDA_DOCKER_FLAGS, ECS_DOCKER_FLAGS, BATCH_DOCKER_FLAGS, and MWAA_DOCKER_FLAGS are documented to maintain consistency
  2. Verified alphabetical ordering: Ensured new service sections (Kinesis Analytics, Kafka, MQ, SageMaker) are placed in correct alphabetical order
  3. Cross-referenced PR description: Confirmed all 10 services mentioned in the PR are documented
  4. Validated structure: Used consistent table formatting and description patterns across all additions

Coverage Verification

All 10 new environment variables from the upstream PR are documented:

  • ✅ BEDROCK_DOCKER_FLAGS
  • ✅ CODEBUILD_DOCKER_FLAGS
  • ✅ DOCDB_DOCKER_FLAGS
  • ✅ ELASTICACHE_DOCKER_FLAGS
  • ✅ GLUE_DOCKER_FLAGS
  • ✅ KINESISANALYTICSV2_DOCKER_FLAGS
  • ✅ KAFKA_DOCKER_FLAGS
  • ✅ MEMORYDB_DOCKER_FLAGS
  • ✅ MQ_DOCKER_FLAGS
  • ✅ RDS_DOCKER_FLAGS
  • ✅ SAGEMAKER_DOCKER_FLAGS

Build Validation

  • npm run build completed successfully
  • ✅ All internal links validated
  • ✅ No frontmatter errors
  • ✅ 399 pages built without errors

Confidence & Gaps Assessment

Confidence: High

  • All variables are sourced directly from the upstream PR description
  • Documentation follows established patterns for similar variables
  • Build validation confirms no technical issues
  • No conflicts with existing documentation

Gaps: None identified

  • All required services are documented
  • Example values are appropriate for the primary use case
  • Descriptions are clear and reference the detailed LAMBDA_DOCKER_FLAGS documentation for full specifications

Related

  • Closes DOC-371
  • Related to localstack/localstack-pro#8037

Important

An AI agent generated this pull request. Review all changes before you merge.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 4, 2026

Copy link
Copy Markdown

Deploying localstack-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7086edb
Status: ✅  Deploy successful!
Preview URL: https://f4b4e55a.localstack-docs.pages.dev
Branch Preview URL: https://docs-agent-doc-371.localstack-docs.pages.dev

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants