【问题标题】:Specify organization unit using aws cloudformation create-stack-instances使用 aws cloudformation create-stack-instances 指定组织单位
【发布时间】:2019-03-20 12:32:45
【问题描述】:

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

【问题讨论】:

    标签: amazon-web-services amazon-cloudformation aws-organizations


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2020-07-07
      • 2020-07-11
      • 2022-11-16
      • 1970-01-01
      • 2019-04-05
      • 2021-10-31
      • 2018-06-30
      • 2021-09-29
      • 2017-03-22
      相关资源
      最近更新 更多