Skip to main content

drt_accesses

Creates, updates, deletes or gets a drt_access resource or lists drt_accesses in a region

Overview

Namedrt_accesses
TypeResource
DescriptionConfig the role and list of Amazon S3 log buckets used by the Shield Response Team (SRT) to access your AWS account while assisting with attack mitigation.
Idawscc.shield.drt_accesses

Fields

NameDatatypeDescription
account_idstring
log_bucket_listarrayAuthorizes the Shield Response Team (SRT) to access the specified Amazon S3 bucket containing log data such as Application Load Balancer access logs, CloudFront logs, or logs from third party sources. You can associate up to 10 Amazon S3 buckets with your subscription.
role_arnstringAuthorizes the Shield Response Team (SRT) using the specified role, to access your AWS account to assist with DDoS attack mitigation during potential attacks. This enables the SRT to inspect your AWS WAF configuration and create or update AWS WAF rules and web ACLs.
regionstringAWS region.

For more information, see AWS::Shield::DRTAccess.

Methods

NameResourceAccessible byRequired Params
create_resourcedrt_accessesINSERTRoleArn, region
delete_resourcedrt_accessesDELETEIdentifier, region
update_resourcedrt_accessesUPDATEIdentifier, PatchDocument, region
list_resourcesdrt_accesses_list_onlySELECTregion
get_resourcedrt_accessesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual drt_access.

SELECT
region,
account_id,
log_bucket_list,
role_arn
FROM awscc.shield.drt_accesses
WHERE
region = 'us-east-1' AND
Identifier = '{{ account_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.shield.drt_accesses (
RoleArn,
region
)
SELECT
'{{ role_arn }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a drt_access resource, using stack-deploy.

/*+ update */
UPDATE awscc.shield.drt_accesses
SET PatchDocument = string('{{ {
"LogBucketList": log_bucket_list,
"RoleArn": role_arn
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ account_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.shield.drt_accesses
WHERE
Identifier = '{{ account_id }}' AND
region = 'us-east-1';

Permissions

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

shield:DescribeDRTAccess,
shield:AssociateDRTLogBucket,
shield:AssociateDRTRole,
iam:PassRole,
iam:GetRole,
iam:ListAttachedRolePolicies,
s3:GetBucketPolicy,
s3:PutBucketPolicy