CmdID / aws / aws apprunner
aws apprunner create-connection
Create an App Runner connection resource. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To create a GitHub connection
The following create-connection example creates a connection to a private GitHub code repository. The connection status after a successful call is PENDING_HANDSHAKE. This is because an authentication handshake with the provider still hasn't happened. Complete the handshake using the App Runner console.
aws apprunner create-connection --cli-input-json file://input.jsonIdentifyContents of input.json:
{
"ConnectionName": "my-github-connection",
"ProviderType": "GITHUB"
}
Its output
{
"Connection": {
"ConnectionArn": "arn:aws:apprunner:us-west-2:123456789012:connection/my-github-connection",
"ConnectionName": "my-github-connection",
"Status": "PENDING_HANDSHAKE",
"CreatedAt": "2020-11-03T00:32:51Z",
"ProviderType": "GITHUB"
}
}For more information, see Managing App Runner connections in the AWS App Runner Developer Guide.
Options
--connection-nameA name for the new connection.--provider-typeThe source repository provider.--tagsA list of metadata items that you can associate with your connection resource.