network_acls
Creates, updates, deletes or gets a network_acl
resource or lists network_acls
in a region
Overview
Name | network_acls |
Type | Resource |
Description | Specifies a network ACL for your VPC. |
Id | aws.ec2.network_acls |
Fields
Name | Datatype | Description |
---|---|---|
id | string | |
tags | array | The tags for the network ACL. |
vpc_id | string | The ID of the VPC for the network ACL. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | VpcId, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all network_acls
in a region.
SELECT
region,
id,
tags,
vpc_id
FROM aws.ec2.network_acls
WHERE region = 'us-east-1';
Gets all properties from an individual network_acl
.
SELECT
region,
id,
tags,
vpc_id
FROM aws.ec2.network_acls
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';
INSERT
example
Use the following StackQL query and manifest file to create a new network_acl
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.ec2.network_acls (
VpcId,
region
)
SELECT
'{{ VpcId }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.ec2.network_acls (
Tags,
VpcId,
region
)
SELECT
'{{ Tags }}',
'{{ VpcId }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: network_acl
props:
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
- name: VpcId
value: '{{ VpcId }}'
DELETE
example
/*+ delete */
DELETE FROM aws.ec2.network_acls
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';
Permissions
To operate on the network_acls
resource, the following permissions are required:
Create
ec2:CreateNetworkAcl,
ec2:DescribeNetworkAcls,
ec2:CreateTags
Read
ec2:DescribeNetworkAcls,
ec2:DescribeTags
Update
ec2:DescribeNetworkAcls,
ec2:DeleteTags,
ec2:CreateTags
Delete
ec2:DeleteTags,
ec2:DeleteNetworkAcl,
ec2:DescribeNetworkAcls
List
ec2:DescribeNetworkAcls