CloudFormation Quick Sight Dashboard is failed to create

Hi,
I am trying to create a Quick Sight dashboard with CloudFormation.
I created a total of 3 and 2 are created without any issues yet one dashboard failed to create.
Here is the CF code to create the dashboard which can’t not be created.

QSBuildDashBoardS3: 
  Type: AWS::Quick Sight::Dashboard   
  Properties:    
    AwsAccountId: !Ref AWS::AccountId
    DashboardId: !Join
      - '_'
      - - !Ref NamingPrefix
        - 's3'
        - 'dashboard'
    Name: !Join
      - '_'
      - - !Ref NamingPrefix
        - 's3'
        - 'dashboard'
    SourceEntity: 
      SourceTemplate: 
        Arn : !GetAtt QSBuildAnalysisTemplateS3.Arn
        DataSetReferences:
          - DataSetArn: !GetAtt QSBuildDataSetS3.Arn
            DataSetPlaceholder: "quicksight-placeholder"
    Permissions:
      - Principal: !Join
        - ''
        - - 'arn:aws:quicksight:'
          - !Ref AWS::Region
          - ':'
          - !Ref AWS::AccountId
          - ':'
          - 'user/default/'
          - !Ref Quick SightUser
        Actions:
          - 'quicksight:DescribeDashboard'
          - 'quicksight:QueryDashboard'
          - 'quicksight:ListDashboardVersions'

And the error message shows as following: Invalid template resource property ‘QSBuildDashBoardS3’

Source Template does have quicksight:DescribeTemplate permission as well. Please advise what I should check further.

Please add this to your Permissions actions.

Permissions:
- Principal: !Join
- ‘’
- - ‘arn:aws:quicksight:’
- !Ref AWS::Region
- ‘:’
- !Ref AWS::AccountId
- ‘:’
- ‘user/default/’
- !Ref Quick SightUser
Actions:
- ‘quicksight:DescribeDashboard’
- ‘quicksight:QueryDashboard’
- ‘quicksight:ListDashboardVersions’
- ‘quicksight:DescribeTemplate’

1 Like