App Runner

Configure AWS App Runner services in DuploCloud

AWS App Runner is a fully managed service for running containerized web applications and APIs without managing infrastructure. It automatically handles container orchestration, load balancing, scaling, and secure traffic routing.

Creating an App Runner Service

  1. In the DuploCloud Portal, navigate to Cloud Services App Runner.

  2. Click Add. The Add App Runner Service pane displays.

    Create App Runner Service pane
  3. Complete the fields on the Basic Options pane:

Service Name

Enter a unique name for the App Runner service.

Image Repository Type

Select the type of image repository. Choose ECR for a private registry or ECR_PUBLIC for a public registry.

Image Identifier

Enter the full URI of the container image.

Port

Enter the port your application listens on inside the container (e.g., 8080).

CPU

Select the amount of CPU to allocate for the service from the available options (e.g., 0.25 vCPU, 0.5 vCPU).

Memory

Select the amount of memory to allocate for the service. For example, 0.5 GB or 1  GB.

Auto Deployments Enabled

Select this option to enable automatic deployments when the source image changes.

Observability Enabled

Select this option to enable logging and metrics collection via CloudWatch.

  • When enabled, enter the ARN in the Observability Configuration ARN field.

Environment Variables

Enter key-value pairs to set environment variables for the service.

Environment Secrets

Enter key-value pairs for sensitive data. Secrets are securely stored and injected into the service environment.

Tags

Enter key-value pairs to tag the service for identification, organization, or billing purposes.

  1. Click Next. The Advanced Options pane displays.

  2. Complete the following configurations, if needed:

Auto Scaling

Enter the Auto Scaling Configuration ARN if using a custom configuration.

Encryption

If using KMS, select a KMS key to enable server-side encryption.

Network

Configure network options:

  • IP Address Type: Select the type of IP addresses for the service. Choose IPv4 or Dual-stack.

  • Outgoing Network Traffic: Select Public or VPC.

    • If Public is selected, the service can access the internet directly.

    • If VPC is selected, the service can only access resources within the VPC. Enter the VPC Connector ARN when using VPC.

  • Incoming Network Traffic: Enable to make the service publicly accessible over the internet. Disable to restrict access to the VPC.

Health Check

Configure health check settings:

  • Protocol: Specify the protocol to use for health checks (e.g., HTTP or TCP).

  • Path: Enter the endpoint path to check for service health.

  • Interval: Set the time between health checks.

  • Timeout: Specify how long to wait for a response before marking the check as failed.

  • Healthy Threshold: Enter the number of consecutive successful checks required to consider the service healthy.

  • Unhealthy Threshold: Enter the number of consecutive failed checks required to consider the service unhealthy.

  1. Click Create. DuploCloud provisions the App Runner service and configures AWS resources automatically.

Viewing App Runner Services

You can view details for any App Runner service in the DuploCloud Portal, including runtime information, deployment history, configuration, and endpoints.

  1. In the DuploCloud Portal, go to Cloud Services App Runner Services.

  2. Click the name of the App Runner service you want to view details for.

    Details tab for the App Runner service
  3. Use the tabs to explore service details:

    • Details: displays the full service configuration in JSON format.

      Includes general info, image, instance, health check, network, auto scaling, and observability settings.

    • YAML: Displays the service configuration in YAML format.

Note: The service endpoint is shown as the URL on the Details tab under the General section. Use this URL to access your running application.

Last updated

Was this helpful?