-
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
Terraform Feature Request for AWS Provider - Allow iam_access_key resource to output the keypair age #17294
Comments
Reference: #17294 Output from acceptance testing: ``` --- PASS: TestAccAWSAccessKey_basic (9.80s) --- PASS: TestAccAWSAccessKey_encrypted (10.33s) --- PASS: TestAccAWSAccessKey_inactive (16.93s) ```
Hi @jd4883 👋 Thank you for raising this. Adding a
The Terraform AWS Provider maintainers are not able to provide too much guidance here since that is outside our general scope, however you may want to check out the |
This has been released in version 3.27.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 for triage. Thanks! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Description
I am developing a terraform based IAM keypair rotation framework for my organization. I found that the boto3 calls to the AWS API provide a few more details than the terraform state tracks for an aws_iam_access_key resource block. My automation framework will be using terraform with the aws and vault.
The current aws_iam_access_key resource block does not have matching functionality to the AWS API. Using the API, it is possible to get the age of an IAM access key, which for the purpose of creating tooling to rotate these, is a must. Since terraform supports creation / destruction of these via a resource block, it would be really awesome if we can get outputs that match the AWS API capabilities.
It would be awesome if there were more native terraform features related to key rotation here as well, but the main part I see as a barrier to moving forward with my project. The intended goal is to be able to use the keypair age against a user defined variable to determine when the key should be rotated (my exact technical implementation here is still to be determined). Any additional features / adjustments that could allow for easier key rotation automation would be appreciated but are not strictly what this feature request is intended for.
New or Affected Resource(s)
Potential Terraform Configuration
Example state file entry for a keypair with redacted sensitive details:
References
The text was updated successfully, but these errors were encountered: