Укажите организационную единицу, используя aws cloudformation create-stack-instance - PullRequest
0 голосов
/ 20 марта 2019

Я пытаюсь добавить экземпляры в StackSet, указав ou.Это возможно с помощью консоли, но, похоже, не могу найти способ сделать это с помощью 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}]

...