我正在尝试通过指定 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}]