Customer reported on a call that they use a delegated admin account for StackSets and our current implementation does not support it:
"We use a delegated admin account for stacksets, the following would need to be added to your stack as an option to support: CallAs: DELEGATED_ADMIN otherwise you will get stack failures"
Customer also noted our implementation is "shell games" - a Stack that calls a StackSet (accurate observation of our architecture).
Our CloudFormation template uses a nested structure:
Outer Stack -> ChariotStackSet -> TemplateBody -> Member Account Roles
When deploying from a delegated admin account with SERVICEMANAGED permission model, AWS requires CallAs: DELEGATEDADMIN parameter. Without it, deployment fails with:
Error: "You must be the management account or delegated admin account of an organization before operating a SERVICE_MANAGED stack set."
File: modules/chariot/backend/pkg/handler/handlers/account/cloud/templates/cloudformation.yaml
Add parameter and property - CallAsMode parameter with SELF/DELEGATED_ADMIN values, and CallAs: !Ref CallAsMode in ChariotStackSet properties.
File: modules/chariot/backend/pkg/handler/handlers/account/cloud/templates/aws.tf.tmpl
Add callas variable and property to BOTH awscloudformationstackset AND awscloudformationstacksetinstance (common mistake to forget the instance resource).
File: modules/chariot/backend/pkg/handler/handlers/account/cloud/cloud.go
Add CallAs field to CloudInitializeRequest and CallAsParameter to TemplateData structs.
File: modules/chariot/backend/pkg/handler/handlers/account/cloud/aws_methods.go
Populate CallAsParameter in PopulateTemplateData method.
File: modules/chariot/backend/pkg/handler/handlers/account/cloud/templates_test.go
Add test cases for delegated admin mode.
CallAs Values:
Prerequisites for Customer:
AWS Documentation:
Terraform Provider: Minimum v5.47.0 (fixes from issues #32536, #23378)
Please authenticate to join the conversation.
Planned
Feature
About 1 month ago
Linear
Get notified by email when there are changes.
Planned
Feature
About 1 month ago
Linear
Get notified by email when there are changes.