1

我正在尝试通过指定 ou 将实例添加到 StackSet。使用控制台可以做到这一点,但似乎找不到使用 cli 的方法。当我使用 ou 代码时,出现错误:

aws cloudformation create-stack-instances --stack-set-name test-stack --accounts "ou-1234-asdfsfsdf" --regions '["eu-west-1"]' --operation-preferences FailureToleranceCount=0,MaxConcurrentCount=1

An error occurred (ValidationError) when calling the CreateStackInstances operation: 1 validation error detected: Value '[ou-1234-asdfsfsdf]' at 'accounts' failed to satisfy constraint: Member must satisfy constraint: [Member must satisfy regular expression pattern: [0-9]{12}]

4

1 回答 1

0

使用--deployment-targets OrganizationalUnitIds=string结构而不是在帐户中指定 OU

https://docs.aws.amazon.com/cli/latest/reference/cloudformation/create-stack-instances.html

于 2021-05-18T16:53:31.153 回答