Service Catalog - Stack set constraint - adding accounts

0

I have a Product with a Stack set constraint.
I initially had one account set on that
I provisioned this product and this resulted in a stackset deployment to the remote account - worked fine

What I then want to do is UPDATE that provisioned product with ADDITIONAL accounts via Stacksets
So I added a new Account to the original Stack set constraint for that product (So now 2 accounts in the list)

However when I UPDATE the provisioned product it failed, it seemed on the second stack deploy to the additional account.

So - is it possible to UPDATE a stackset based product in this way? If not, how to change the list of accounts on a constraint (or wherever) or how to configure a product(s) to be able to do that?

Many thanks for any assistance

Edited by: jomu on Apr 29, 2021 1:06 AM

jomu
已提问 3 年前390 查看次数
2 回答
0

This isn't currently available through the Console, but the Service Catalog update-provisioned-products CLI has an option in the provisioning-preferences called StackSetOperationType, which allows you to instruct the system whether you are updating the ProvisionedProduct ("UPDATE") or creating/deleting StackInstances ("CREATE" and "DELETE" respectively). After adding the new regions/accounts to the Stack Set Constraint, you can use update-provisioned-product with the create option, and the system will create new stacks in the regions/accounts you provide. You can find more details at https://docs.aws.amazon.com/cli/latest/reference/servicecatalog/update-provisioned-product.html.

For example:
aws servicecatalog update-provisioned-product --provisioned-product-id pp-xxxxxxxxxxxxx --product-id prod-xxxxxxxxxxxxx --provisioning-artifact-id pa-xxxxxxxxxxxxx --provisioning-preferences StackSetAccounts=123456789012,098765432109,StackSetRegions=us-west-2,us-east-2,StackSetOperationType=CREATE

AWS
awsnils
已回答 3 年前
0

OK thanks

jomu
已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则