-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Extend Secrets Manager Rotation Configuration #22969
Comments
Also wondering whether we should add 'RotateImmediately' so you can change the configuration without invoking a rotation straight away? |
I will pick this one up if no one objects. I've made most of the changes locally already. |
I have hit a bit of a roadblock on this and I think it is related to this part of the AWS API:
My problem is basically that if I supply a schedule_expression as part of my configuration the create function performs a read at the end and I then have both the schedule_expression and automatically_after_days properties present in my resource. The test plan then thinks it did not complete successfully. This output from the test probably illustrates it best:
|
Is there any update on this please? I would really like to use a cron expression in Terraform for aws_secretsmanager_secret_rotation resource. Thanks |
Are there any updates on this issue? We would also really like to use a cron expression for the secrets rotation. Thanks! |
Any updates on this issue/PR? could really use this feature :) |
Adding my name to the list of people who would really benefit from this. |
This seems to be a duplicate of #28016 |
Closed via #30425. |
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. |
Community Note
Description
Presently the provider only supports configuring secrets rotation by using rotation_rules/automatically_after_days. In the AWS API it is also possible to set a Schedule Expression which is either a cron expression or a rate expression (e.g. rate(30 days). The new Duration attribute that has been added recently to the rotation configuration only works with a schedule expression.
The schedule_expression and automatically_after_days configurations are mutually exclusive.
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: