hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.83k stars 9.18k forks source link

[Enhancement]: Amazon Managed Grafana new licensing model #38535

Closed carlosrodgut closed 3 months ago

carlosrodgut commented 3 months ago

Description

With the 10.4 version release for AWS Managed Grafana, a new licensing model was introduced and deprecated the MarketPlace solution model.

ENTERPRISE type requires a GrafanaToken parameter. https://github.com/aws/aws-sdk-go-v2/blob/main/service/grafana/api_op_AssociateLicense.go

module.managed_grafana.aws_grafana_license_association.this[0]: Creating...
╷
│ Error: creating Grafana License Association: ValidationException: Passed in token cannot be null or empty. Please register for support with GrafanaLabs at https://grafana.com/partners/amg/support/register to receive a GrafanaToken
│ {
│   RespMetadata: {
│     StatusCode: 400,
│     RequestID: "80af8d9a-b37a-4ccd-8bb4-3f21c93d77ce"
│   },
│   Message_: "Passed in token cannot be null or empty. Please register for support with GrafanaLabs at https://grafana.com/partners/amg/support/register to receive a GrafanaToken"
│ }
│
│   with module.managed_grafana.aws_grafana_license_association.this[0],

ENTERPRISE_FREE_TRIAL has been deprecated and is no longer offered.

module.managed_grafana.aws_grafana_license_association.this[0]: Creating...
╷
│ Error: creating Grafana License Association: ValidationException: ENTERPRISE_FREE_TRIAL has been deprecated and is no longer offered
│ {
│   RespMetadata: {
│     StatusCode: 400,
│     RequestID: "0d2dd40f-69dc-4c93-b236-497505251928"
│   },
│   Message_: "ENTERPRISE_FREE_TRIAL has been deprecated and is no longer offered"
│ }
│
│   with module.managed_grafana.aws_grafana_license_association.this[0],

https://docs.aws.amazon.com/grafana/latest/userguide/upgrade-to-enterprise-plugins.html#AMG-workspace-register-enterprise

You only need to register your Grafana Labs account token one time per region. If your account was previously linked (for example, when upgrading a different workspace in the region to access Enterprise plugins), you are not prompted to link again.

Affected Resource(s) and/or Data Source(s)

aws_grafana_license_association

Potential Terraform Configuration

resource "aws_grafana_license_association" "example" {
  license_type  = "ENTERPRISE"
  grafana_token = "abcde123-12ab-ab12-1ab2-12345678abcd"
  workspace_id  = aws_grafana_workspace.example.id
}

References

Would you like to implement a fix?

Yes

github-actions[bot] commented 3 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

github-actions[bot] commented 3 months ago

[!WARNING] This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

github-actions[bot] commented 3 months ago

This functionality has been released in v5.62.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!

github-actions[bot] commented 2 months ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.