vpc_connectors
Creates, updates, deletes or gets a vpc_connector resource or lists vpc_connectors in a region
Overview
| Name | vpc_connectors |
| Type | Resource |
| Description | The AWS::AppRunner::VpcConnector resource specifies an App Runner VpcConnector. |
| Id | awscc.apprunner.vpc_connectors |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
vpc_connector_name | string | A name for the VPC connector. If you don't specify a name, AWS CloudFormation generates a name for your VPC connector. |
vpc_connector_arn | string | The Amazon Resource Name (ARN) of this VPC connector. |
vpc_connector_revision | integer | The revision of this VPC connector. It's unique among all the active connectors ("Status": "ACTIVE") that share the same Name. |
subnets | array | A 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_groups | array | A 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. |
tags | array | A list of metadata items that you can associate with your VPC connector resource. A tag is a key-value pair. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
vpc_connector_arn | string | The Amazon Resource Name (ARN) of this VPC connector. |
region | string | AWS region. |
For more information, see AWS::AppRunner::VpcConnector.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | vpc_connectors | INSERT | Subnets, region |
delete_resource | vpc_connectors | DELETE | Identifier, region |
list_resources | vpc_connectors_list_only | SELECT | region |
get_resource | vpc_connectors | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual vpc_connector.
SELECT
region,
vpc_connector_name,
vpc_connector_arn,
vpc_connector_revision,
subnets,
security_groups,
tags
FROM awscc.apprunner.vpc_connectors
WHERE
region = 'us-east-1' AND
Identifier = '{{ vpc_connector_arn }}';
Lists all vpc_connectors in a region.
SELECT
region,
vpc_connector_arn
FROM awscc.apprunner.vpc_connectors_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new vpc_connector resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.apprunner.vpc_connectors (
Subnets,
region
)
SELECT
'{{ subnets }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.apprunner.vpc_connectors (
VpcConnectorName,
Subnets,
SecurityGroups,
Tags,
region
)
SELECT
'{{ vpc_connector_name }}',
'{{ subnets }}',
'{{ security_groups }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: vpc_connector
props:
- name: vpc_connector_name
value: '{{ vpc_connector_name }}'
- name: subnets
value:
- '{{ subnets[0] }}'
- name: security_groups
value:
- '{{ security_groups[0] }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
DELETE example
/*+ delete */
DELETE FROM awscc.apprunner.vpc_connectors
WHERE
Identifier = '{{ vpc_connector_arn }}' AND
region = 'us-east-1';
Permissions
To operate on the vpc_connectors resource, the following permissions are required:
- Create
- Read
- Delete
- List
iam:CreateServiceLinkedRole,
apprunner:CreateVpcConnector,
apprunner:DescribeVpcConnector,
apprunner:TagResource,
ec2:DescribeSubnets,
ec2:DescribeSecurityGroups
apprunner:DescribeVpcConnector
apprunner:DeleteVpcConnector
apprunner:ListVpcConnectors