Skip to main content

vpc_connectors

Creates, updates, deletes or gets a vpc_connector resource or lists vpc_connectors in a region

Overview

Namevpc_connectors
TypeResource
DescriptionThe AWS::AppRunner::VpcConnector resource specifies an App Runner VpcConnector.
Idaws.apprunner.vpc_connectors

Fields

NameDatatypeDescription
vpc_connector_namestringA name for the VPC connector. If you don't specify a name, AWS CloudFormation generates a name for your VPC connector.
vpc_connector_arnstringThe Amazon Resource Name (ARN) of this VPC connector.
vpc_connector_revisionintegerThe revision of this VPC connector. It's unique among all the active connectors ("Status": "ACTIVE") that share the same Name.
subnetsarrayA list of IDs of subnets that App Runner should use when it associates your service with a custom Amazon VPC. Specify IDs of subnets of a single Amazon VPC. App Runner determines the Amazon VPC from the subnets you specify.
security_groupsarrayA list of IDs of security groups that App Runner should use for access to AWS 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.
tagsarrayA list of metadata items that you can associate with your VPC connector resource. A tag is a key-value pair.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTSubnets, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all vpc_connectors in a region.

SELECT
region,
vpc_connector_name,
vpc_connector_arn,
vpc_connector_revision,
subnets,
security_groups,
tags
FROM aws.apprunner.vpc_connectors
WHERE region = 'us-east-1';

Gets all properties from an individual vpc_connector.

SELECT
region,
vpc_connector_name,
vpc_connector_arn,
vpc_connector_revision,
subnets,
security_groups,
tags
FROM aws.apprunner.vpc_connectors
WHERE region = 'us-east-1' AND data__Identifier = '<VpcConnectorArn>';

INSERT example

Use the following StackQL query and manifest file to create a new vpc_connector resource, using stack-deploy.

/*+ create */
INSERT INTO aws.apprunner.vpc_connectors (
Subnets,
region
)
SELECT
'{{ Subnets }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.apprunner.vpc_connectors
WHERE data__Identifier = '<VpcConnectorArn>'
AND region = 'us-east-1';

Permissions

To operate on the vpc_connectors resource, the following permissions are required:

Create

iam:CreateServiceLinkedRole,
apprunner:CreateVpcConnector,
apprunner:DescribeVpcConnector,
apprunner:TagResource,
ec2:DescribeSubnets,
ec2:DescribeSecurityGroups

Read

apprunner:DescribeVpcConnector

Delete

apprunner:DeleteVpcConnector

List

apprunner:ListVpcConnectors