cloudformation-coverage-roadmap icon indicating copy to clipboard operation
cloudformation-coverage-roadmap copied to clipboard

Allow CodePipeline to deploy SERVICE_MANAGED StackSets in non-root accounts via Delegated Administrator

Open farrantch opened this issue 3 years ago • 18 comments

Allow CodePipeline to deploy SERVICE_MANAGED StackSets in non-root accounts via Delegated Administrator

Scope of request

CloudFormation recently added support do deploy StackSets via Delegated Administrator. However when deploying via CodePipeline, the following error is given (despite having already delegated access):

An API call to CloudFormation.CreateStackSet returned a ValidationError error: You must be the master or delegated admin account of an organization before operating a SERVICE_MANAGED stack set

This prevents us from managing our organization's StackSets from a non-root account.

Expected behavior

CodePipeline is successfully able to deploy a SERVICE_MANAGED StackSet from a non-root account.

Helpful Links

CodePipeline StackSet deployment documentation: https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-StackSets.html#action-reference-StackSet

CloudFormation Delegated Administrator announcement: https://aws.amazon.com/blogs/mt/cloudformation-stacksets-delegated-administration/

Categories

Management - CloudFormation StackSets Developer Tools - CodePipeline

farrantch avatar Mar 01 '21 15:03 farrantch

Maybe related to #799

jfoy avatar Apr 13 '21 23:04 jfoy

Has anyone verified if #799 being implemented has also enabled this functionality?

PCIS-Paul avatar May 20 '21 21:05 PCIS-Paul

This one needs to be re-opened, as #799 did not address the issue.

cdsnaps avatar Jun 09 '21 20:06 cdsnaps

Our organization is more than interested by this functionality. We are managing more than 500 accounts and we have to deploy different resources in different OUs. And we do not want to automate that work directly in the organization account.

laurentleonard avatar Jun 11 '21 06:06 laurentleonard

I got around this with:

   stackSetName: `cdkCodeBuildTest`,
        permissionModel: 'SERVICE_MANAGED',
        callAs: 'DELEGATED_ADMIN',

Also bumping the permissions of the execution role running this stack in.

dannyburke1 avatar Jun 17 '21 09:06 dannyburke1

@dannyburke1 are you saying the CallAs configuration parameter is accepted in the CodePipeline Cloudformation StackSet deploy action type? It is not in the docs. Or are you referring to the CallAs attribute added to the StackSet cloudformation resource, which was the resolution of #799 ?

PCIS-Paul avatar Jun 17 '21 20:06 PCIS-Paul

@PCIS-Paul its the CDK CloudFormation StackSet resource. I don't think you can use the action type in CDK yet.

dannyburke1 avatar Jun 17 '21 20:06 dannyburke1

Hi, at our company we are interested in this issue. Please, provide support in CodePipeline for StackSet execution in delegated administration accounts

afllanos avatar Jun 18 '21 22:06 afllanos

Very interested in status of this. Would like to set up pipelines to push StackSets to OUs without developing in root/org account.

bpal410 avatar Nov 16 '21 00:11 bpal410

Any updates on this issue? Showstopper for us

akshay0808 avatar Apr 01 '22 05:04 akshay0808

Is this being worked on at the moment?

niklas-palm avatar Jul 27 '22 13:07 niklas-palm

BUMP! any update @brianterry? My workaround is to wrap the stackset definition in a cloudformation template and then use the cloudformation deploy action instead.

cmaxwellau avatar Oct 30 '22 10:10 cmaxwellau

PLEASE, PLEASE, PLEASE fix this issue.

ronan-cunningham avatar Mar 20 '23 21:03 ronan-cunningham

It's frustrating that this issue is still not fixed. It's been two years

nojokebucko avatar Jul 07 '23 20:07 nojokebucko

I am experiencing this issue as well. Requiring customers to deploy stack sets via Code Pipeline from the management account is poor form, and does not follow a well-architected solution in my opinion. As the last person mentioned, this is still an issue and it has now been almost 2.5 years. I even opened a new support case today to discuss this issue.
At this point, can we get any commitment that this critical item will be prioritized and resolved soon?

bsnyder74 avatar Nov 10 '23 00:11 bsnyder74

Still no update on this?

ronan-cunningham avatar Apr 27 '24 15:04 ronan-cunningham

Any update on this? Needing to get the pipeline to deploy a CF stack which then deploys the StackSets shouldn't be necessary, and it's bad practice to deploy more than necessary directly in the organisation account.

mdgm88 avatar Apr 29 '24 05:04 mdgm88