Skip to content

Commit

Permalink
Merge pull request #215 from asvinours/feat/aws-organization
Browse files Browse the repository at this point in the history
feat: Allow deploying stack-set to organizational units
  • Loading branch information
ericzbeard authored Dec 5, 2023
2 parents 82d0829 + a4f1b1a commit 8aa9334
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/cmd/stackset/stackset_deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,9 @@ func createStackSetName(args []string) string {
// Validate if we have enough configuration data to create/update stack set instances
func isInstanceConfigDataValid(c *cfn.StackSetInstancesConfig) bool {
if c != nil &&
c.Accounts != nil && len(c.Accounts) > 0 &&
c.Regions != nil && len(c.Regions) > 0 {
c.Regions != nil && len(c.Regions) > 0 &&
((c.Accounts != nil && len(c.Accounts) > 0) ||
(c.DeploymentTargets != nil && c.DeploymentTargets.OrganizationalUnitIds != nil && len(c.DeploymentTargets.OrganizationalUnitIds) > 0)) {
config.Debugf("ConfigData is valid\n")
return true
} else {
Expand Down

0 comments on commit 8aa9334

Please sign in to comment.