Skip to main content

vpc_endpoint_service_permissions

Creates, updates, deletes or gets a vpc_endpoint_service_permission resource or lists vpc_endpoint_service_permissions in a region

Overview

Namevpc_endpoint_service_permissions
TypeResource
DescriptionResource Type definition for AWS::EC2::VPCEndpointServicePermissions
Idaws.ec2.vpc_endpoint_service_permissions

Fields

NameDatatypeDescription
allowed_principalsarray
service_idstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTServiceId, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all vpc_endpoint_service_permissions in a region.

SELECT
region,
allowed_principals,
service_id
FROM aws.ec2.vpc_endpoint_service_permissions
WHERE region = 'us-east-1';

Gets all properties from an individual vpc_endpoint_service_permission.

SELECT
region,
allowed_principals,
service_id
FROM aws.ec2.vpc_endpoint_service_permissions
WHERE region = 'us-east-1' AND data__Identifier = '<ServiceId>';

INSERT example

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

/*+ create */
INSERT INTO aws.ec2.vpc_endpoint_service_permissions (
ServiceId,
region
)
SELECT
'{{ ServiceId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.ec2.vpc_endpoint_service_permissions
WHERE data__Identifier = '<ServiceId>'
AND region = 'us-east-1';

Permissions

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

Create

ec2:CreateVpcEndpointServicePermissions,
ec2:ModifyVpcEndpointServicePermissions,
ec2:DeleteVpcEndpointServicePermissions,
ec2:DescribeVpcEndpointServicePermissions

Update

ec2:CreateVpcEndpointServicePermissions,
ec2:ModifyVpcEndpointServicePermissions,
ec2:DeleteVpcEndpointServicePermissions,
ec2:DescribeVpcEndpointServicePermissions

Read

ec2:CreateVpcEndpointServicePermissions,
ec2:ModifyVpcEndpointServicePermissions,
ec2:DeleteVpcEndpointServicePermissions,
ec2:DescribeVpcEndpointServicePermissions

Delete

ec2:CreateVpcEndpointServicePermissions,
ec2:ModifyVpcEndpointServicePermissions,
ec2:DeleteVpcEndpointServicePermissions,
ec2:DescribeVpcEndpointServicePermissions

List

ec2:CreateVpcEndpointServicePermissions,
ec2:ModifyVpcEndpointServicePermissions,
ec2:DeleteVpcEndpointServicePermissions,
ec2:DescribeVpcEndpointServicePermissions