Creating stack set constraints
AWS CloudFormation StackSets enable users to create and deploy products across multiple accounts and Regions.
To apply a stack set constraint to a Service Catalog product
-
As a catalog admin in Service Catalog, choose the portfolio that contains the product.
-
Expand Constraints and choose Add constraints.
-
Choose the product from Product and set Constraint type to Stack Set. Choose Continue.
-
On the StackSet constraint page, enter a description.
-
Choose the account(s) in which you want to create products.
-
Choose the Region(s) in which you want to deploy products. Products deploy in these Regions in the order you specify.
-
Choose the following:
AWSCloudFormationStackSetAdministrationRole
to manage your target accounts.AWSCloudFormationStackSetExecutionRole
for the role the Administrator will assume. -
Choose Submit.
Note
The available template for baseline permissions creates the permissions as well as the outputs needed for stack set constraints.
Example stack set outputs
SCStackSetAdministratorRoleARN arn:aws:iam::123456789123:role/AWSCloudFormationStackSetAdministrationRole SCIAMStackSetExecutionRoleName AWSCloudFormationStackSetExecutionRole SCIAMAdminRoleARN arn:aws:iam::123456789123:role/AWSCloudFormationStackSetAdministrationRole
The AWS Service Catalog products can have either a set set or a launch constraint, but not both.