vpc_ingress_connections
Creates, updates, deletes or gets a vpc_ingress_connection resource or lists vpc_ingress_connections in a region
Overview
| Name | vpc_ingress_connections |
| Type | Resource |
| Description | The AWS::AppRunner::VpcIngressConnection resource is an App Runner resource that specifies an App Runner VpcIngressConnection. |
| Id | awscc.apprunner.vpc_ingress_connections |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
vpc_ingress_connection_arn | string | The Amazon Resource Name (ARN) of the VpcIngressConnection. |
vpc_ingress_connection_name | string | The customer-provided Vpc Ingress Connection name. |
service_arn | string | The Amazon Resource Name (ARN) of the service. |
status | string | The current status of the VpcIngressConnection. |
domain_name | string | The Domain name associated with the VPC Ingress Connection. |
ingress_vpc_configuration | object | The configuration of customer’s VPC and related VPC endpoint |
tags | array | |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
vpc_ingress_connection_arn | string | The Amazon Resource Name (ARN) of the VpcIngressConnection. |
region | string | AWS region. |
For more information, see AWS::AppRunner::VpcIngressConnection.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | vpc_ingress_connections | INSERT | ServiceArn, IngressVpcConfiguration, region |
delete_resource | vpc_ingress_connections | DELETE | Identifier, region |
update_resource | vpc_ingress_connections | UPDATE | Identifier, PatchDocument, region |
list_resources | vpc_ingress_connections_list_only | SELECT | region |
get_resource | vpc_ingress_connections | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual vpc_ingress_connection.
SELECT
region,
vpc_ingress_connection_arn,
vpc_ingress_connection_name,
service_arn,
status,
domain_name,
ingress_vpc_configuration,
tags
FROM awscc.apprunner.vpc_ingress_connections
WHERE
region = '{{ region }}' AND
Identifier = '{{ vpc_ingress_connection_arn }}';
Lists all vpc_ingress_connections in a region.
SELECT
region,
vpc_ingress_connection_arn
FROM awscc.apprunner.vpc_ingress_connections_list_only
WHERE
region = '{{ region }}';
INSERT example
Use the following StackQL query and manifest file to create a new vpc_ingress_connection resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.apprunner.vpc_ingress_connections (
ServiceArn,
IngressVpcConfiguration,
region
)
SELECT
'{{ service_arn }}',
'{{ ingress_vpc_configuration }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
/*+ create */
INSERT INTO awscc.apprunner.vpc_ingress_connections (
VpcIngressConnectionName,
ServiceArn,
IngressVpcConfiguration,
Tags,
region
)
SELECT
'{{ vpc_ingress_connection_name }}',
'{{ service_arn }}',
'{{ ingress_vpc_configuration }}',
'{{ tags }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: vpc_ingress_connection
props:
- name: vpc_ingress_connection_name
value: '{{ vpc_ingress_connection_name }}'
- name: service_arn
value: '{{ service_arn }}'
- name: ingress_vpc_configuration
value:
vpc_id: '{{ vpc_id }}'
vpc_endpoint_id: '{{ vpc_endpoint_id }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
UPDATE example
Use the following StackQL query and manifest file to update a vpc_ingress_connection resource, using stack-deploy.
/*+ update */
UPDATE awscc.apprunner.vpc_ingress_connections
SET PatchDocument = string('{{ {
"IngressVpcConfiguration": ingress_vpc_configuration
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ vpc_ingress_connection_arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
DELETE example
/*+ delete */
DELETE FROM awscc.apprunner.vpc_ingress_connections
WHERE
Identifier = '{{ vpc_ingress_connection_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
Additional Parameters
Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:
| Parameter | Description |
|---|---|
ClientToken | A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.A client token is valid for 36 hours once used. After that, a resource request with the same client token is treated as a new request. If you do not specify a client token, one is generated for inclusion in the request. |
RoleArn | The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.If you do not specify a role, a temporary session is created using your AWS user credentials. |
TypeVersionId | For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used. |
Permissions
To operate on the vpc_ingress_connections resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
apprunner:CreateVpcIngressConnection,
apprunner:DescribeVpcIngressConnection,
ec2:DescribeVpcs,
ec2:DescribeVpcEndpoints,
ec2:DescribeSubnets,
apprunner:TagResource
apprunner:DescribeVpcIngressConnection
apprunner:UpdateVpcIngressConnection
apprunner:DeleteVpcIngressConnection
apprunner:ListVpcIngressConnections