-
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
[Enhancement]: aws_grafana_workspace_api_key recreation after expire #27043
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Has anyone found a workaround for this? I had hoped that appending |
Using |
+1 – really needed feature @chriselion do you have any working sample code? :) |
@dnaprawa-capgemini Sorry, I missed the notification for this. Here's what worked for me
|
I can confirm that |
Is the functionality supported by the official resource? The keys still expire and it doesn't regenerate. |
I used the key rotation mechanism suggested above, the problem is that the provider depends on the key:
So, when I
But the
Is this happening to anyone else or am i missing something? |
You have a syntax error.
|
Thanks for the quick response. The name of the resource is
so it's key.key because I need the |
It seems someone else also has this issue (in the comments section): https://devopstar.com/2023/02/25/automatic-api-key-rotation-for-amazon-managed-grafana/ The author suggests as a possible solution to move the key generation into a separate terraform module and pass that to the provider:
I'll give this a try. |
Description
In #25286 new
aws_grafana_workspace_api_key
resource was created to automate API Key receive. But I have a questions about module usage. Afterseconds_to_live
API key expires but resourceaws_grafana_workspace_api_key
will not be recreated automatically. So you have to manually recreate this resource to keep this API Key valid, right?Is there any mechanics to recreate resource automatically? Current behavior makes any automation really hard.
Affected Resource(s) and/or Data Source(s)
aws_grafana_workspace_api_key
Potential Terraform Configuration
No response
References
No response
Would you like to implement a fix?
No response
The text was updated successfully, but these errors were encountered: