Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lambda/utils/fetch_scope_configuration
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ log debug " ✅ hosted_private_zone_id=$HOSTED_PRIVATE_ZONE_ID"
TOFU_STATE_BUCKET=$(echo "$SCOPE_CONFIG" | jq -r '.state.tofu_state_bucket // empty')
log debug " ✅ tofu_state_bucket=$TOFU_STATE_BUCKET"

PLACEHOLDER_IMAGE_URI=$(echo "$SCOPE_CONFIG" | jq -r '.deployment.placeholder_image_uri // empty')
log debug " ✅ placeholder_image_uri=$PLACEHOLDER_IMAGE_URI"

NULL_AGENT_LAYER_ARN=$(echo "$SCOPE_CONFIG" | jq -r '.agent.null_agent_layer_arn // empty')
log debug " ✅ null_agent_layer_arn=$NULL_AGENT_LAYER_ARN"

Expand All @@ -83,6 +86,7 @@ export AWS_REGION
export HOSTED_PUBLIC_ZONE_ID
export HOSTED_PRIVATE_ZONE_ID
export TOFU_STATE_BUCKET
export PLACEHOLDER_IMAGE_URI
export NULL_AGENT_LAYER_ARN

log info "✨ Scope configuration fetched successfully"
29 changes: 18 additions & 11 deletions lambda/values.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
# AWS Lambda Scope Configuration
#
# The following values are fetched automatically from the scope-configurations provider:
# AWS_REGION - AWS region for Lambda deployment
# TOFU_STATE_BUCKET - S3 bucket for Terraform remote state (native S3 locking via use_lockfile=true)
# ALB_PUBLIC_LISTENER_ARN - ALB listener ARN for public (internet-facing) scopes
# ALB_PRIVATE_LISTENER_ARN - ALB listener ARN for private (internal) scopes
# NULL_AGENT_LAYER_ARN - ARN of nullplatform agent Lambda layer (if USE_NULL_AGENT=true)
# The following values are fetched automatically from provider categories:
#
# Conditional environment variables (can override scope-configurations values if needed):
# SECURITY_GROUP_IDS - Comma-separated security group IDs (required when vpc_enabled=true)
# vpc category:
# ALB_PUBLIC_LISTENER_ARN - ALB listener ARN for public (internet-facing) scopes
# ALB_PRIVATE_LISTENER_ARN - ALB listener ARN for private (internal) scopes
# VPC_ID - VPC ID for Lambda network placement
# AWS_SUBNET_IDS - Comma-separated subnet IDs
# SECURITY_GROUP_IDS - Comma-separated security group IDs
#
# cloud-providers category:
# AWS_ACCOUNT_ID - AWS account ID
# AWS_REGION - AWS region for Lambda deployment
# HOSTED_PUBLIC_ZONE_ID - Route53 public hosted zone ID
# HOSTED_PRIVATE_ZONE_ID - Route53 private hosted zone ID
#
# scope-configurations category:
# TOFU_STATE_BUCKET - S3 bucket for Terraform remote state
# PLACEHOLDER_IMAGE_URI - ECR image URI used during scope creation
# NULL_AGENT_LAYER_ARN - ARN of nullplatform agent Lambda layer (if USE_NULL_AGENT=true)

configuration:
# ── Terraform ──────────────────────────────────────────────────────────────
Expand Down Expand Up @@ -36,6 +46,3 @@ configuration:

# ── CloudWatch Logs ────────────────────────────────────────────────────────
LOG_RETENTION_DAYS: 30

# ── Placeholder Image ──────────────────────────────────────────────────────
PLACEHOLDER_IMAGE_URI: "688720756067.dkr.ecr.us-east-1.amazonaws.com/aws-lambda/nullplatform-lambda-placeholder:latest"