Skip to content

TheSoftwareHouse/aws-app-runner

Repository files navigation

Requirements

Name Version
terraform ~> 1.7
aws ~> 5.8

Providers

Name Version
aws ~> 5.8

Modules

Name Source Version
notify_cloudwatch_alarms terraform-aws-modules/notify-slack/aws 6.5.2
notify_slack_deployments terraform-aws-modules/notify-slack/aws 6.5.2

Resources

Name Type
aws_apprunner_auto_scaling_configuration_version.this resource
aws_apprunner_custom_domain_association.this resource
aws_apprunner_observability_configuration.this resource
aws_apprunner_service.this resource
aws_cloudwatch_dashboard.app_runner_dashboard resource
aws_cloudwatch_event_rule.apprunner_deploy_notifications resource
aws_cloudwatch_event_target.apprunner_deploy_notifications resource
aws_cloudwatch_metric_alarm.app_runner_4xx_errors resource
aws_cloudwatch_metric_alarm.app_runner_5xx_errors resource
aws_cloudwatch_metric_alarm.app_runner_cpu_utilization resource
aws_cloudwatch_metric_alarm.app_runner_error_rate resource
aws_cloudwatch_metric_alarm.app_runner_latency resource
aws_cloudwatch_metric_alarm.app_runner_memory_utilization resource
aws_iam_policy.app_runner_access_policy resource
aws_iam_policy.app_runner_instance_policy resource
aws_iam_role.app_runner_access_role resource
aws_iam_role.app_runner_instance_role resource
aws_iam_role_policy_attachment.app_runner_access_policy resource
aws_iam_role_policy_attachment.app_runner_instance_policy resource
aws_sns_topic.apprunner_cloudwatch_notifications resource
aws_sns_topic.apprunner_deployment_notifications resource
aws_sns_topic_policy.apprunner_deployment_notifications resource
aws_wafv2_web_acl_association.this resource
aws_caller_identity.current data source
aws_iam_policy_document.app_runner_access_policy data source
aws_iam_policy_document.app_runner_access_role_assume_policy data source
aws_iam_policy_document.app_runner_instance_policy data source
aws_iam_policy_document.app_runner_instance_role_assume_policy data source
aws_iam_policy_document.apprunner_cloudwatch_notifications data source
aws_iam_policy_document.apprunner_deployment_notifications data source

Inputs

Name Description Type Default Required
application_buckets Buckets where application will store data list(string) [] no
associate_waf Associate WAF with App Runner service bool false no
auto_deployments_enabled Enable automatic deployments after image tag push (tag has to be the same all the time, for example 'latest') bool true no
autoscaling_max_concurrency The maximum number of concurrent requests that App Runner can process per instance. number 3 no
autoscaling_max_size The maximum number of instances that App Runner can scale up to. number 3 no
autoscaling_min_size The minimum number of instances that App Runner should maintain. number 1 no
aws_region Primary region for AWS App Runner string "eu-west-1" no
cloudwatch_alarms_slack_channel The Slack channel where Cloudwatch Alarms notifications should be sent. string "" no
cloudwatch_alarms_slack_username The username that should appear for Cloudwatch Alarms Slack notifications. string "AWS App Runner Cloudwatch Alarm" no
cloudwatch_alarms_slack_webhook_url The webhook URL for sending Cloudwatch Alarms notifications to Slack. string "" no
cpu The number of vCPUs allocated for the App Runner service. string "2 vCPU" no
deployments_slack_channel The Slack channel where deployment notifications should be sent. string "" no
deployments_slack_username The username that should appear for deployment Slack notifications. string "AWS App Runner Deployment" no
deployments_slack_webhook_url The webhook URL for sending deployment notifications to Slack. string "" no
domain_name The custom domain name to be associated with the App Runner service. string "" no
health_check_healthy_treshold The number of consecutive successful health checks before considering the instance healthy. number 1 no
health_check_interval The interval, in seconds, between health checks. number 15 no
health_check_path The path to be used for HTTP health checks. string "/" no
health_check_protocol The protocol used for health checks (HTTP or TCP). string "HTTP" no
health_check_timeout The time, in seconds, before a health check is considered a failure. number 15 no
health_check_unhealthy_treshold The number of consecutive failed health checks before considering the instance unhealthy. number 3 no
image_repository_source The URL of the container image repository used by App Runner. string "public.ecr.aws/aws-containers/hello-app-runner" no
image_repository_tag The tag of the container image to be deployed. string "latest" no
image_repository_type The type of image repository, e.g., 'ECR' for Elastic Container Registry. string "ECR" no
is_publicly_accessible Is this service accessible from Internet bool true no
memory The amount of memory (in MB) allocated for the App Runner service. number 4096 no
port The port on which the application listens for incoming requests. number 8000 no
runtime_environment_secrets Map of objects to be used as environmental variables coming from AWS Secret Manager and AWS SSM Parameter Store map(any) {} no
runtime_environment_variables Map of simple environmental variables that are static and defined in Terraform code map(any) {} no
send_cloudwatch_notifications_to_slack Do you want to send Cloudwatch Alarm notifications to Slack (true/false)? bool false no
send_deployment_notifications_to_slack Do you want to send deployment notifications to Slack (true/false)? bool false no
service_name The name of the App Runner service. string n/a yes
tags A map of tags to assign to the App Runner resources. map(string) n/a yes
use_custom_domain Use custom domain for your AppRunner service (true/false)? Note, that this will create DNS records you have to add to your DNS provider bool false no
vpc_connector_arn The ARN of the VPC connector used to enable network access for the service. If left empty, the service will not be connected to a VPC. string "" no
waf_arn Web ACL ARN of WAF to associate string "" no

Outputs

Name Description
service_arn The Amazon Resource Name (ARN) of the App Runner service.
service_id The unique identifier of the App Runner service.
service_status The current operational status of the App Runner service (e.g., RUNNING, FAILED, etc.).
service_url The publicly accessible URL of the App Runner service.

About

Terraform Module To Create App Runner

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published