Sign in
Menu
Start free trial

Use this module

module "app_runner_shared_configs" {
  source = "registry.compliance.tf/terraform-aws-modules/app-runner/aws"

  # Disable service resources
  create_service = false

  connections = {
    # The AWS Connector for GitHub connects to your GitHub account is a one-time setup,
    # You can reuse the connection for creating multiple App Runner services based on repositories in this account.
    # After creation, you must complete the authentication handshake using the App Runner console.
    github = {
      provider_type = "GITHUB"
    }
  }

  auto_scaling_configurations = {
    mini = {
      name            = "mini"
      max_concurrency = 20
      max_size        = 5
      min_size        = 1

      tags = {
        Type = "Mini"
      }
    }

    mega = {
      name            = "mega"
      max_concurrency = 200
      max_size        = 25
      min_size        = 5

      tags = {
        Type = "MEGA"
      }
    }
  }

  tags = {
    Terraform   = "true"
    Environment = "dev"
  }
}

The example from the module's README, with this page's source.

Key inputs

Required inputs first, then the inputs the README example sets.

  • create_servicebool, default true

    Determines whether the service will be created

  • connectionsany, default {}

    Map of connection definitions to create

  • auto_scaling_configurationsany, default {}

    Map of auto-scaling configuration definitions to create

  • tagsmap(string), default {}

    A map of tags to add to all resources

All 40 inputs