-
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
Documentation: aws_default_subnet lacks import instructions #17475
Comments
@ianwestcott Thanks for raising this issue. terraform-provider-aws/aws/resource_aws_default_subnet.go Lines 58 to 80 in 9c9de45
This may change when we implement full lifecycle functionality for default subnets: #4957. |
@ewbankkit thanks for clarifying that. The auto-import functionality was unclear to me, because when I ran
Given that the resource already existed, my next recourse was to try importing it, and that worked despite the lack of documentation. Is it expected behavior for Terraform to show |
Yes, that is "expected". Terraform core knows only that a resource is to be created, not that the resource doesn't actually create anything at AWS but instead adopts the resource into management. The practitioner documentation comment we have is Can you think of a better way of capturing the behavior? |
@ewbankkit I think that's a good start, but I would want to see a note added to clarify that the adoption happens at the |
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
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
aws_default_subnet
Issue Description
The documentation for the
aws_default_subnet
resource lacks an "Import" section. I was able to import a default subnet by mimicking the instructions for importing a regular subnet, so it is possible. This functionality should be documented.I was unable to find the source code for the AWS provider documentation, but if it's possible for me to contribute this improvement myself, please point me in the right direction. Thanks!
The text was updated successfully, but these errors were encountered: