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
5 changes: 4 additions & 1 deletion AppRunner/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ resource "aws_apprunner_service" "this" {
image_repository {
image_identifier = var.image_identifier
image_repository_type = var.image_repository_type

image_configuration {
port = var.port
port = var.port
runtime_environment_variables = var.runtime_environment_variables
runtime_environment_secrets = var.runtime_environment_secrets
}
}
auto_deployments_enabled = var.auto_deployments_enabled
Expand Down
4 changes: 2 additions & 2 deletions AppRunner/project.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "1.0.1"
}
"version": "1.0.2"
}
12 changes: 12 additions & 0 deletions AppRunner/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ variable "port" {
default = "8080"
}

variable "runtime_environment_variables" {
type = map(string)
description = "Environment variables for the running service (key-value). Non-sensitive only; for secrets use runtime_environment_secrets."
default = {}
}

variable "runtime_environment_secrets" {
type = map(string)
description = "Secrets for the running service: map of env var name to Secrets Manager secret ARN or SSM Parameter Store parameter ARN."
default = {}
}

###
# App Runner - Access role (for private ECR)
###
Expand Down