From ea6dc11b60800227015ba0b19eb5b4c443154c3d Mon Sep 17 00:00:00 2001 From: Dana Fallon <8871189+danafallon@users.noreply.github.com> Date: Fri, 26 Jul 2024 17:32:18 -0700 Subject: [PATCH] Make importing work again --- examples/deployments/main.tf | 8 ++++---- internal/provider/destination_resource.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/deployments/main.tf b/examples/deployments/main.tf index 1ed4c6c..317d02d 100644 --- a/examples/deployments/main.tf +++ b/examples/deployments/main.tf @@ -10,10 +10,10 @@ provider "artie" { endpoint = "http://0.0.0.0:8000" } -# import { -# to = artie_destination.bigquery -# id = "fa7d4efc-3957-41e5-b29c-66e2d49bffde" -# } +import { + to = artie_destination.bigquery + id = "fa7d4efc-3957-41e5-b29c-66e2d49bffde" +} resource "artie_destination" "bigquery" { name = "BigQuery" diff --git a/internal/provider/destination_resource.go b/internal/provider/destination_resource.go index bfde201..be4f3f2 100644 --- a/internal/provider/destination_resource.go +++ b/internal/provider/destination_resource.go @@ -46,7 +46,7 @@ func (r *DestinationResource) Schema(ctx context.Context, req resource.SchemaReq "ssh_tunnel_uuid": schema.StringAttribute{Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}}, "name": schema.StringAttribute{Required: true}, "label": schema.StringAttribute{Optional: true}, - "last_updated_at": schema.StringAttribute{Computed: true}, + "last_updated_at": schema.StringAttribute{Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}}, "config": schema.SingleNestedAttribute{ Required: true, Attributes: map[string]schema.Attribute{