Hi,
I am trying to write CloudFormation code to update the existing QuickSight analysis template’s permission. I used AWS::QuickSight::Template resource and ResourcePermission property to work on it. But I found that it creates a new template instead of updating existing templates.
Is there any way to update an existing template with CloudFormation?
Resources:
##Grant Template Permssion
TemplatePermissionRI:
Type: AWS::QuickSight::Template
Properties:
AwsAccountId: !Ref AWS::AccountId
TemplateId: "csm_ri_template"
ResourcePermission:
Actions:
- 'quicksight:UpdateTemplatePermissions'
- 'quicksight:DescribeTemplate'
Principal:
AWS: !Sub arn:aws:iam::${AWSAccount}:root