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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠