Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: AWS Quicksight Analysis and Dashboard creation failure issue #37036

Open
Nitin9574 opened this issue Apr 22, 2024 · 1 comment
Open

[Bug]: AWS Quicksight Analysis and Dashboard creation failure issue #37036

Nitin9574 opened this issue Apr 22, 2024 · 1 comment
Labels
bug Addresses a defect in current functionality. service/quicksight Issues and PRs that pertain to the quicksight service.

Comments

@Nitin9574
Copy link

Nitin9574 commented Apr 22, 2024

Terraform Core Version

1.7.5

AWS Provider Version

5.46.0

Affected Resource(s)

aws_quicksight_analysis, aws_quicksight_dashboard

Expected Behavior

Create Analysis inventory and Dashboard inventory without error.

Actual Behavior

Terraform fails by throwing following error. But the dashboards are getting created successfully when checked on the console. Also terraform fails on "terraform plan".
Also the analysis and dashboard is created successfully when using aws cli.

Relevant Error/Panic Output Snippet

Plan: 1 to add, 0 to change, 0 to destroy.

│ Error: setting definition: Invalid address to set: []string{"definition", "0", "sheets", "6", "visuals", "2", "line_chart_visual", "0", "chart_configuration", "0", "primary_y_axis_display_options", "0", "missing_data_configurations"}



PS D:\DevOps\2108>

Terraform Configuration Files

resource "aws_quicksight_dashboard" "inventory" {
  aws_account_id      = "xxxxxxxxxxxx"
  dashboard_id        = "inventory_test" 
  name                     = "inventory_test" 
  version_description = "version1"
  source_entity {
    source_template {
      arn = "arn:aws:quicksight:us-east-2:xxxxxxxxxxxx:template/inventory_template_v2"
      data_set_references {
        data_set_arn         = "arn:aws:quicksight:us-east-2:xxxxxxxxxxxx:dataset/inventory_sqs_view_dev"
        data_set_placeholder = "inventory_sqs_view"
      }
      data_set_references {
        data_set_arn         = "arn:aws:quicksight:us-east-2:xxxxxxxxxxxx:dataset/inventory_ami_view_dev"
        data_set_placeholder = "inventory_ami_view"
      }
      data_set_references {
        data_set_arn         = "arn:aws:quicksight:us-east-2:xxxxxxxxxxxx:dataset/inventory_dynamodb_view_dev"
        data_set_placeholder = "inventory_dynamodb_view"	
      }
      data_set_references {
        data_set_arn         = "arn:aws:quicksight:us-east-2:xxxxxxxxxxxx:dataset/inventory_eni_view_dev"
        data_set_placeholder = "inventory_eni_view"	
      }
      data_set_references {
        data_set_arn         = "arn:aws:quicksight:us-east-2:xxxxxxxxxxxx:dataset/inventory_firehose_view_dev"
        data_set_placeholder = "inventory_firehose_view"	
      }
      data_set_references {
        data_set_arn         = "arn:aws:quicksight:us-east-2:xxxxxxxxxxxx:dataset/inventory_iam_policy_view_dev"
        data_set_placeholder = "inventory_iam_policy_view"	
      }
      data_set_references {
        data_set_arn         = "arn:aws:quicksight:us-east-2:xxxxxxxxxxxx:dataset/inventory_iam_profile_view_dev"
        data_set_placeholder = "inventory_iam_profile_view"	
      }
      data_set_references {
        data_set_arn         = "arn:aws:quicksight:us-east-2:xxxxxxxxxxxx:dataset/inventory_iam_role_view_dev"
        data_set_placeholder = "inventory_iam_role_view"	
      }
      data_set_references {
        data_set_arn         = "arn:aws:quicksight:us-east-2:xxxxxxxxxxxx:dataset/inventory_iam_user_view_dev"
        data_set_placeholder = "inventory_iam_user_view"	
      }
      data_set_references {
        data_set_arn         = "arn:aws:quicksight:us-east-2:xxxxxxxxxxxx:dataset/inventory_internetgateway_view_dev"
        data_set_placeholder = "inventory_internetgateway_view"	
      }
      data_set_references {
        data_set_arn         = "arn:aws:quicksight:us-east-2:xxxxxxxxxxxx:dataset/inventory_lambda_view_dev"
        data_set_placeholder = "inventory_lambda_view"	
      }
      data_set_references {
        data_set_arn         = "arn:aws:quicksight:us-east-2:xxxxxxxxxxxx:dataset/inventory_nacl_view_dev"
        data_set_placeholder = "inventory_nacl_view"	
      }
      data_set_references {
        data_set_arn         = "arn:aws:quicksight:us-east-2:xxxxxxxxxxxx:dataset/inventory_redshift_view_dev"
        data_set_placeholder = "inventory_redshift_view"	
      }
      data_set_references {
        data_set_arn         = "arn:aws:quicksight:us-east-2:xxxxxxxxxxxx:dataset/inventory_security_group_view_dev"
        data_set_placeholder = "inventory_security_group_view"	
      }
      data_set_references {
        data_set_arn         = "arn:aws:quicksight:us-east-2:xxxxxxxxxxxx:dataset/inventory_sns_view_dev"
        data_set_placeholder = "inventory_sns_view"	
      }
      data_set_references {
        data_set_arn         = "arn:aws:quicksight:us-east-2:xxxxxxxxxxxx:dataset/inventory_subnet_view_dev"
        data_set_placeholder = "inventory_subnet_view"	
      }
      data_set_references {
        data_set_arn         = "arn:aws:quicksight:us-east-2:xxxxxxxxxxxx:dataset/inventory_summary_view_dev"
        data_set_placeholder = "inventory_summary_view"	
      }
      data_set_references {
        data_set_arn         = "arn:aws:quicksight:us-east-2:xxxxxxxxxxxx:dataset/inventory_ec2_view_dev"
        data_set_placeholder = "inventory_ec2_view"	
      }
      data_set_references {
        data_set_arn         = "arn:aws:quicksight:us-east-2:xxxxxxxxxxxx:dataset/inventory_vpc_view_dev"
        data_set_placeholder = "inventory_vpc_view"	
      }
    }
  }
  permissions {
    actions = [
				        "quicksight:ListDashboardVersions",
                "quicksight:UpdateDashboardPermissions",
                "quicksight:QueryDashboard",
                "quicksight:UpdateDashboard",
                "quicksight:DeleteDashboard",
                "quicksight:DescribeDashboardPermissions",
                "quicksight:UpdateDashboardPublishedVersion",
                "quicksight:DescribeDashboard"
    ]
    principal = "arn:aws:quicksight:us-east-1:xxxxxxxxxxxx:user/default/AWSReservedSSO_PowerUserAccess_xxxxxxxxxxxxxxxx/xxxx.xxxxx@xxxxxxxxxxx.xxx"
  }
} 

Steps to Reproduce

terraform init
terraform plan

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@Nitin9574 Nitin9574 added the bug Addresses a defect in current functionality. label Apr 22, 2024
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/quicksight Issues and PRs that pertain to the quicksight service. label Apr 22, 2024
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Apr 22, 2024
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. service/quicksight Issues and PRs that pertain to the quicksight service.
Projects
None yet
Development

No branches or pull requests

2 participants