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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南