I am working on the migration of Quicksight assets from DEV to PROD to create the analysis, dataset , dashboard in the target account (prod) taking assets from the dev account using CLOUDFORMATION.
I have been successful in doing the same, and then incorporating terraform to run the pipeline that upon execution, uploads the Cloudformation template , creates the stack and deploys my assets in the pROD. It is Successful!!
However, I am not able to Provide Access Permission to Multiple users at the same time through CloudFormation.
We have a template in json where we have to provide permission from our DEV to the destination account below as you can see
[
{
"Principal": "arn:aws:iam::target_Account_ID:root",
"Actions": [
"quicksight:UpdateTemplatePermissions",
"quicksight:DescribeTemplate"
]
}
]
However, the quicksight user name which has been created via terraform , is unable to see the assets, even though the cloudformation stack is created and successful.
Is there a way, where we can work on the permission part, if multiple users can be given permissions at the same time then the resources might show up for everyone in prod after deployment. Please let me know.
For example in the above code, if we can put “,user2,user3,user4” instead of root etc. something like below?
“Principal”: “arn:aws:iam::target_Account_ID:user1,user2,user3”,
Thank you so much.
Appreciate your help in this.