TargetAccountConfiguration
Source:
src/AWS/FIS/TargetAccountConfiguration.ts
A target account configuration for a multi-account AWS Fault Injection Service (FIS) experiment template — registers an AWS account (and the IAM role FIS assumes there) as a target of the experiment, so a single experiment can inject faults into resources across accounts.
The parent ExperimentTemplate must declare
experimentOptions: { accountTargeting: "multi-account" }.
Registering Target Accounts
Section titled “Registering Target Accounts”import * as AWS from "alchemy/AWS";
const template = yield* AWS.FIS.ExperimentTemplate("CrossAccount", { roleArn: orchestratorRole.roleArn, experimentOptions: { accountTargeting: "multi-account" }, actions: { Wait: { actionId: "aws:fis:wait", parameters: { duration: "PT1M" } }, },});
const target = yield* AWS.FIS.TargetAccountConfiguration("WorkloadAccount", { experimentTemplateId: template.id, accountId: "111122223333", roleArn: "arn:aws:iam::111122223333:role/FisTargetRole", description: "the workload account faults are injected into",});