Skip to main content

target_account_configurations

Creates, updates, deletes or gets a target_account_configuration resource or lists target_account_configurations in a region

Overview

Nametarget_account_configurations
TypeResource
DescriptionResource schema for AWS::FIS::TargetAccountConfiguration
Idaws.fis.target_account_configurations

Fields

NameDatatypeDescription
experiment_template_idstringThe ID of the experiment template.
account_idstringThe AWS account ID of the target account.
role_arnstringThe Amazon Resource Name (ARN) of an IAM role for the target account.
descriptionstringThe description of the target account.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTExperimentTemplateId, AccountId, RoleArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all target_account_configurations in a region.

SELECT
region,
experiment_template_id,
account_id,
role_arn,
description
FROM aws.fis.target_account_configurations
WHERE region = 'us-east-1';

Gets all properties from an individual target_account_configuration.

SELECT
region,
experiment_template_id,
account_id,
role_arn,
description
FROM aws.fis.target_account_configurations
WHERE region = 'us-east-1' AND data__Identifier = '<ExperimentTemplateId>|<AccountId>';

INSERT example

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

/*+ create */
INSERT INTO aws.fis.target_account_configurations (
ExperimentTemplateId,
AccountId,
RoleArn,
region
)
SELECT
'{{ ExperimentTemplateId }}',
'{{ AccountId }}',
'{{ RoleArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.fis.target_account_configurations
WHERE data__Identifier = '<ExperimentTemplateId|AccountId>'
AND region = 'us-east-1';

Permissions

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

Create

fis:CreateTargetAccountConfiguration

Read

fis:GetTargetAccountConfiguration

Update

fis:UpdateTargetAccountConfiguration

Delete

fis:DeleteTargetAccountConfiguration

List

fis:ListTargetAccountConfigurations