Skip to main content

vpc_connectors

Creates, updates, deletes, gets or lists a vpc_connectors resource.

Overview

Namevpc_connectors
TypeResource
Idaws.apprunner.vpc_connectors

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The time when the VPC connector was created. It's in Unix time stamp format.
deleted_atstring (date-time)The time when the VPC connector was deleted. It's in Unix time stamp format.
security_groupsarrayA list of IDs of security groups that App Runner uses for access to Amazon Web Services resources under the specified subnets. If not specified, App Runner uses the default security group of the Amazon VPC. The default security group allows all outbound traffic.
statusstringThe current state of the VPC connector. If the status of a connector revision is INACTIVE, it was deleted and can't be used. Inactive connector revisions are permanently removed some time after they are deleted. (ACTIVE, INACTIVE)
subnetsarrayA list of IDs of subnets that App Runner uses for your service. All IDs are of subnets of a single Amazon VPC.
vpc_connector_arnstringThe Amazon Resource Name (ARN) of this VPC connector. (pattern: <code>arn:aws(-[\w]+)*:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[0-9]{12}:(\w|/|-){1,1011}</code>)
vpc_connector_namestringThe customer-provided VPC connector name. (pattern: <code>[A-Za-z0-9][A-Za-z0-9-_]{3,39}</code>)
vpc_connector_revisionintegerThe revision of this VPC connector. It's unique among all the active connectors ("Status": "ACTIVE") that share the same Name. At this time, App Runner supports only one revision per name.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_vpc_connectorselectregionReturn a description of an App Runner VPC connector resource.
list_vpc_connectorsselectregionReturns a list of App Runner VPC connectors in your Amazon Web Services account.
create_vpc_connectorinsertregion, VpcConnectorName, SubnetsCreate an App Runner VPC connector resource. App Runner requires this resource when you want to associate your App Runner service to a custom Amazon Virtual Private Cloud (Amazon VPC).
delete_vpc_connectordeleteregionDelete an App Runner VPC connector resource. You can't delete a connector that's used by one or more App Runner services.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Return a description of an App Runner VPC connector resource.

SELECT
created_at,
deleted_at,
security_groups,
status,
subnets,
vpc_connector_arn,
vpc_connector_name,
vpc_connector_revision
FROM aws.apprunner.vpc_connectors
WHERE region = '{{ region }}' -- required
;

INSERT examples

Create an App Runner VPC connector resource. App Runner requires this resource when you want to associate your App Runner service to a custom Amazon Virtual Private Cloud (Amazon VPC).

INSERT INTO aws.apprunner.vpc_connectors (
VpcConnectorName,
Subnets,
SecurityGroups,
Tags,
region
)
SELECT
'{{ VpcConnectorName }}' /* required */,
'{{ Subnets }}' /* required */,
'{{ SecurityGroups }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
vpc_connector
;

DELETE examples

Delete an App Runner VPC connector resource. You can't delete a connector that's used by one or more App Runner services.

DELETE FROM aws.apprunner.vpc_connectors
WHERE region = '{{ region }}' --required
;