You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
everything works as expected - stack instances are created in every account within the specified OU. Now if I want to include other accounts, as described here, I update that to the following lines:
We seem to be getting a very similar error to this with SERVICE_MANAGED - we set accountFilterType in cdk to UNION, when it deploys with any value with the Cloudformation where we include both Accounts and OrganizationUnits, we get the error :
Resource handler returned message: "Invalid request provided: AccountFilterType should be specified when both OrganizationalUnitIds and Accounts are provided" even though it exists in our template or should default to Union - AccountFilterType with UNION does not seem to be working properly
This issue prevents usage of a mixture of organizational unit ID's and account ID's in stack sets with the cdk-stacksets library. I have opened an AWS support case for this as well, as it seems it hasn't been addressed since the near 3 years it was created.
When defining an
AWS::CloudFormation::StackSet
resource with aPermissionModel
ofSERVICE_MANAGED
and the followingStackInstancesGroup
:everything works as expected - stack instances are created in every account within the specified OU. Now if I want to include other accounts, as described here, I update that to the following lines:
But that throws an error that UNION is not a valid
AccountFilterType
, even though there's documentation (and raw API calls) supporting otherwiseThe text was updated successfully, but these errors were encountered: