1 個回答
- 最新
- 最多得票
- 最多評論
2
Hello.
Try adding "OrganizationalUnitIds" to "DeploymentTargets" as shown below.
I think the error will disappear if you add the ID of the organizational unit where the stack set will be deployed.
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-deploymenttargets.html#cfn-cloudformation-stackset-deploymenttargets-organizationalunitids
TestingStackSet20240413:
Type: AWS::CloudFormation::StackSet
DependsOn: [TestingOUAccount20240413]
Properties:
StackSetName: TestingOUAccount20240413
TemplateURL: StackSetTemplate.yaml
Parameters:
- {ParameterKey: BucketName, ParameterValue: TestingBucketName}
# Tags: #[Array of Tag]
Capabilities: #[Array of String]
- CAPABILITY_NAMED_IAM
PermissionModel: SERVICE_MANAGED #Allowed Values[SERVICE_MANAGED | SELF_MANAGED]
StackInstancesGroup: #[Array of StackInstances]
- Regions: #[Array of String]
- us-east-1
DeploymentTargets:
Accounts: #[Array of String]
- !GetAtt TestingOUAccount20240413.AccountId #!RefTestingOUAccount20240411
OrganizationalUnitIds:
- "OU-ID" # add
ParameterOverrides: #[Array of Parameter]
- {ParameterKey: BucketName, ParameterValue: TestingBucketName,}
相關內容
- 已提問 1 年前
- AWS 官方已更新 3 年前
- AWS 官方已更新 2 年前