-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
New resource aws_quicksight_template #30453
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Thank you for your contribution! 🚀 Please note that the Remove any changes to the |
Thank you for your contribution! 🚀 Please note that typically Go dependency changes are handled in this repository by dependabot or the maintainers. This is to prevent pull request merge conflicts and further delay reviews of contributions. Remove any changes to the Additional details:
|
@jar-b Hi, I started working on this resource, but to avoid double work, could you please tell me if you are already implementing it? |
Hey @comtef 👋 - thanks for opening this! I assigned myself to the corresponding issue for our internal planning, but have not started any work yet. I'll assign myself as reviewer here and wait until you're ready to move out of draft. Thanks! Edit: Also, apologies for the errant automated comments above. We're working through some recent changes to our github actions workflow. |
8675b57
to
f0291f0
Compare
1fc4920
to
fd63614
Compare
2797719
to
98b922e
Compare
@jar-b Ready for review, this is a huge one 😱 . |
Thanks for the heads up @comtef, and appreciate all your effort! Planning to dig into this next week 👍 |
Started looking into this today, overall its in great shape just a lot of schema to dig through 😅 . I did want to ask about definitionResp, err := conn.DescribeTemplateDefinitionWithContext(ctx, &quicksight.DescribeTemplateDefinitionInput{
AwsAccountId: aws.String(awsAccountId),
TemplateId: aws.String(templateId),
})
if err != nil {
return diag.Errorf("describing QuickSight Template (%s) Definition: %s", d.Id(), err)
}
// TODO: implement flattener
if err := d.Set("definition", quicksightschema.FlattenDefinition(definitionResp.Definition)); err != nil {
return diag.Errorf("setting definition: %s", err)
} Was this something that you already investigated and found issues with? Or was it omitted for now due to the scope of the corresponding flattener functions? If its the latter, I'd be happy to help out with rounding out and testing this portion of the resource, just let me know! |
No issue, I noticed this API to get a full description of the resource but the scope was already wide so I decided to implement it partially. The read operation can indeed be completed with this API. We can implement the remaining flatteners if needed but it's going to be a lot of code again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
$ make testacc PKG=quicksight TESTS=TestAccQuickSightTemplate_
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/quicksight/... -v -count 1 -parallel 20 -run='TestAccQuickSightTemplate_' -timeout 180m
? github.com/hashicorp/terraform-provider-aws/internal/service/quicksight/schema [no test files]
--- PASS: TestAccQuickSightTemplate_disappears (33.61s)
--- PASS: TestAccQuickSightTemplate_BarChart (36.68s)
--- PASS: TestAccQuickSightTemplate_basic (37.21s)
--- PASS: TestAccQuickSightTemplate_TemplateSourceEntity (39.70s)
--- PASS: TestAccQuickSightTemplate_Table (58.76s)
--- PASS: TestAccQuickSightTemplate_tags (81.93s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/quicksight 85.197s
$ make testacc PKG=quicksight TESTS=TestAccQuickSightDataSet_
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/quicksight/... -v -count 1 -parallel 20 -run='TestAccQuickSightDataSet_' -timeout 180m
? github.com/hashicorp/terraform-provider-aws/internal/service/quicksight/schema [no test files]
--- PASS: TestAccQuickSightDataSet_disappears (34.05s)
--- PASS: TestAccQuickSightDataSet_dataSetUsageConfiguration (37.30s)
--- PASS: TestAccQuickSightDataSet_rowLevelPermissionTagConfiguration (38.45s)
--- PASS: TestAccQuickSightDataSet_columnGroups (38.49s)
--- PASS: TestAccQuickSightDataSet_columnLevelPermissionRules (38.55s)
--- PASS: TestAccQuickSightDataSet_basic (38.60s)
--- PASS: TestAccQuickSightDataSet_fieldFolders (38.64s)
--- PASS: TestAccQuickSightDataSet_logicalTableMap (60.78s)
--- PASS: TestAccQuickSightDataSet_tags (75.10s)
--- PASS: TestAccQuickSightDataSet_permissions (80.24s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/quicksight 83.401s
$ make testacc PKG=quicksight TESTS=TestAccQuickSightDataSource_
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/quicksight/... -v -count 1 -parallel 20 -run='TestAccQuickSightDataSource_' -timeout 180m
? github.com/hashicorp/terraform-provider-aws/internal/service/quicksight/schema [no test files]
--- PASS: TestAccQuickSightDataSource_disappears (22.25s)
--- PASS: TestAccQuickSightDataSource_basic (26.12s)
--- PASS: TestAccQuickSightDataSource_tags (57.51s)
--- PASS: TestAccQuickSightDataSource_permissions (61.55s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/quicksight 64.693s
Thanks for your contribution, @comtef. 🥇 This was a huge resource! In case you're interested in future contributions, a form to join our contributors Slack channel is available here. Thanks again! |
This functionality has been released in v4.67.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
QuickSight Template resource with source entity and definition support.
Source entity is the simpliest way to create a template but we can also use
definition
to configure a detailed implementation of a template.All kind of visuals are supported. The Terraform documentation is not exhaustive, links to AWS API Documentation are provided for details.
I had to fix an issue on the dataset resource : all attributes should be added to the request for updates, otherwise, only the modified attributes are applied and all other configuration is lost (it does a PUT and not a PATCH). I updated a test to validate expected behaviour.
I splitted configuration accross several files to ease readbility and mainteance, is it the recommended approach?
Relations
Relates #10990
Closes #11834
References
Output from Acceptance Testing