-
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
resource aws_iam_access_key doesn't support import #17288
Comments
Hi @cedricbastin 👋 Thank you for raising this. We can certainly add import support for the resource. Please note though, that the IAM API does not provide a method for fetching the secret, so imported resources cannot provide that that information. Imported resources will however be able to perform |
Reference: #17288 Output from acceptance testing: ``` --- PASS: TestAccAWSAccessKey_encrypted (12.92s) --- PASS: TestAccAWSAccessKey_basic (12.92s) --- PASS: TestAccAWSAccessKey_inactive (19.64s) ```
@bflad Thanks for getting back to me and for clarifying this, I was also wondering about this! 👍 |
@cedricbastin not with the Terraform AWS Provider itself -- its primary function is to map AWS APIs onto Terraform resources. This is typically a space for Policy as Code/Configuration tooling such as Sentinel, Open Policy Agent, etc. which can provide informational, warning, or failure information based on Terraform configuration or state. |
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
Make it possible to import AWS IAM Access Keys that were manually via the AWS Console. It should be possible to run
terraform import aws_iam_access_key.my_access_key <Access Key ID>
and bring them under Terraform management.Currently this is not supported and results in the error message:
resource aws_iam_access_key doesn't support import
.Affected Resource
aws_iam_access_key
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: