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" {
Parameters
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 providerdefault_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 isAVAILABLE
, you can use the connection to create anaws_apprunner_service
resource.tags_all
- A map of tags assigned to the resource, including those inherited from the providerdefault_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.