-
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
[Bug]: AWS Provider is using a legacy Terraform SDK. #37724
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
The plan produced is still usable. But the warning message is muddling up any attempts to debug other issues. |
AWS has announced an end of service for the SDK v1 for Go. Looking through the code, I see a number of places where it is using the AWS SDK v1 Doing the following github search returns '1.5k files' Doing the same search for v2
returns 2k results. So it looks like it's a little bit more than 50% converted. |
Hey @Jeff-Lowrey 👋 Thank you for taking the time to raise this! Migrating the provider over to use Terraform Provider Framework over the older Terraform SDK version(s) is something that we'll absolutely be doing. Since October of last year, we've required that all new resources and data sources use AWS Go SDK v2 and Terraform Plugin Framework to help ease this transition when the time comes. For now, we're prioritizing migrating off of AWS Go SDK v1 given the deadlines that you mentioned. Once we've completed that migration, we'll likely start looking into the framework migration. I can't speak to exactly what that timeline looks like just yet, but it's definitely something we're aware of. With that in mind, I'm going to close this issue, but thank you again for taking the time to bring this up! I'd recommend tracking either of the linked issues for future updates. |
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. |
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. |
Terraform Core Version
1.8.4
AWS Provider Version
5.51.1
Affected Resource(s)
All AWS provider resources.
I say this because there are a large number of issues for specific resources that mention this similar issue.
I can't state that it actually affects every AWS provider resource, since I haven't, and can't test them.
But it should be occurring in a single place in the code - the part where the provider builds requests to the Terraform SDK.
Expected Behavior
There should not be any [WARN] messages in the terraform debug log regarding the AWS Provider using a legacy SDK
Actual Behavior
Terraform plan debug log includes the following:
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Values and variable names are redacted in some cases.
Steps to Reproduce
set the environment variable TF_LOG to DEBUG (in powershell on windows this is
$env:TF_LOG="DEBUG"
, on Unix this would beexport TF_LOG="DEBUG"
. There are also ways to add this environment variable to the terraform command, but that's extra work for each terraform command.Run
terraform plan 2>tf_plan_debug.txt
(or whatever name you want to use.Debug Output
This is an example for an AWS EC2 instance using the aws_instance terraform object.
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: