CCE: AWS Organization Onboarding Fails with SNS:Publish AuthorizationError on OrganizationDeploymentStartedHook and CCE Portal is Stuck
Symptom
When attempting to onboard an AWS Organization to Connect Cloud Environments (CCE) via CloudFormation, the deployment fails and enters a ROLLBACK_FAILED state on the custom resource OrganizationDeploymentStartedHook.
The CloudFormation stack events display the following error:
"Received response status [FAILED] from custom resource. Message returned: An error occurred (AuthorizationError) when calling the Publish operation: User: arn:aws:sts::<Account-ID>:assumed-role/cyberark-onboarding-CrossRegionLambdaRole-.../cyberark-onboarding-CrossRegionLambda-... is not authorized to perform: SNS:Publish on resource: arn:aws:sns:us-east-1:871697792279:add-organization-org-start-us-east-1 because no resource-based policy allows the SNS:Publish action"
Following this failure:
* In the CCE portal, the onboarding card remains stuck in a failed state and cannot be deleted, cancelled, or reset directly through the user interface.
* The portal may display a warning: *"The CCE service role for this organization may have been deleted."*
* Manually recreating the requested cross-account IAM role in AWS and clicking **Resolve** does not clear the error or resume onboarding.
Environment
26.9 Secure Infrastructure Access (formerly DPA) Cloud Onboarding
-
Idira Connect Cloud Environments (CCE) / Setup space
-
AWS Organization onboarding via CloudFormation
-
AWS Organizations Management Account
Cause
During setup, AWS runs a script that tries to message Idira to confirm that deployment has started. Idira blocked this message (AuthorizationError) for one of these reasons:
-
Wrong Region: The stack was deployed in a different region (like
us-west-2), but that region was not selected under Advanced options in the Idira portal before downloading the template. -
Session Expired: Too much time passed between downloading the template from the portal and running it in AWS.
-
Wrong Account: The template was run in an AWS member account instead of the main AWS Organizations Management (Payer) account.
Why the portal gets stuck:
Because Idira never received the initial start message, the setup failed halfway through. This leaves an incomplete record in the Idira backend that cannot self-heal, reset, or be deleted from the portal screen.
Resolution
o fix this issue, you must clear the broken setup in AWS, have Idira Support clear the stuck screen in the portal, and then run the setup again.
Step 1: Clean up AWS
-
Go to the AWS CloudFormation console in the region where you tried to deploy the script.
-
Select the stuck
cyberark-onboardingstack and click Delete. -
AWS will show an error saying a resource failed to delete. Check the box to Retain the
OrganizationDeploymentStartedHookresource, and then finish deleting the stack. -
Check that no old Idira IAM roles or stacksets are left behind.
Step 2: Clear the Idira Portal Because the portal screen is stuck, Idira Support must delete the broken record from the backend database.
-
Open a Support case and provide your Tenant URL and the exact AWS Organization ID (for example,
o-*****). -
Ask Support to clear or purge this AWS Organization ID from the backend so you can start over.
Step 3: Re-add the Organization Once Support confirms the broken record is deleted, you can start fresh:
-
In the Idira portal, go to Connect cloud environments > AWS environment > Add organization.
-
Enter your AWS details.
-
Important: If you want to deploy in a region other than
us-east-1, you must click Advanced options and select your region before you download the script. -
Download the script and deploy it in your AWS Management Account right away so the session does not time out.