Configures an AWS App Runner service to deploy an application using a public image from the Amazon ECR.

Terraform Template

resource "aws_apprunner_service" "example" {
  service_name = "example"

  source_configuration {
    auto_deployments_enabled = false

    image_repository {

      image_configuration {
        port = "8000"
      }
      image_identifier = "public.ecr.aws/aws-containers/hello-app-runner:latest"
      image_repository_type = "ECR_PUBLIC"
    }
  }

  tags = {
    Name = "example-apprunner-service"
  }
}