AWS App Runner Connection

This page shows how to write Terraform for App Runner Connection and write them securely.

aws_apprunner_connection (Terraform)

The Connection in App Runner can be configured in Terraform with the resource name aws_apprunner_connection. The following sections describe 1 example of how to use the resource and its parameters.

Example Usage from GitHub
resource "aws_apprunner_connection" "demo_python" {
  connection_name = "demo-python"
  provider_type   = "GITHUB"

resource "aws_apprunner_auto_scaling_configuration_version" "demo_python" {

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).


The following arguments supported:

  • connection_name - (Required) Name of the connection.
  • provider_type - (Required) The source repository provider. Valid values: GITHUB.
  • tags - (Optional) Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

In addition to all arguments above, the following attributes are exported:

  • arn - ARN of the connection.
  • status - The current state of the App Runner connection. When the state is AVAILABLE, you can use the connection to create an aws_apprunner_service resource.
  • tags_all - A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Explanation in Terraform Registry

Manages an App Runner Connection.

NOTE: After creation, you must complete the authentication handshake using the App Runner console.

CloudFormation Example

CloudFormation code does not have the related resource.

Frequently asked questions

What is AWS App Runner Connection?

AWS App Runner Connection is a resource for App Runner of Amazon Web Service. Settings can be wrote in Terraform.

Where can I find the example code for the AWS App Runner Connection?

For Terraform, the sano307/terraform-app-runner-demo source code example is useful. See the Terraform Example section for further details.


Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.