Allow specifying fields which API doesn't expose during import #16494
Labels
cli
enhancement
import
Importing resources
providers/protocol
Potentially affecting the Providers Protocol and SDKs
As described in hashicorp/terraform-provider-aws#1807
It's currently non-intuitive/tricky to import resources which have fields that were passed as part of creation, but
Read
API doesn't expose the field anymore, so it's impossible for Terraform to reconstruct the full state.One possible solution would be to either read those fields from the config (we AFAIK already read the provider config during imports) and copy values to state or let the user specify them as CLI flags, e.g.
I'm creating the issue here in core as it's IMO a provider-wide problem impacting any resource which has create-only fields which API doesn't expose.
The text was updated successfully, but these errors were encountered: