diff --git a/examples/data-sources/biganimal_csp_tag/data-source.tf b/examples/data-sources/biganimal_csp_tag/data-source.tf index 1b28d9c7..e75848f0 100644 --- a/examples/data-sources/biganimal_csp_tag/data-source.tf +++ b/examples/data-sources/biganimal_csp_tag/data-source.tf @@ -8,8 +8,8 @@ terraform { } data "biganimal_csp_tag" "this" { - project_id = "ex-project-id" - cloud_provider_id = "ex-cloud-provider-id" + project_id = "ex-project-id" # ex: "prj_12345" + cloud_provider_id = "ex-cloud-provider-id" # ex: "aws" } output "csp_tags" { diff --git a/examples/data-sources/biganimal_csp_tag/import.sh b/examples/resources/biganimal_csp_tag/import.sh similarity index 100% rename from examples/data-sources/biganimal_csp_tag/import.sh rename to examples/resources/biganimal_csp_tag/import.sh diff --git a/examples/resources/biganimal_csp_tag/resource.tf b/examples/resources/biganimal_csp_tag/resource.tf index ac62fa38..9b3c9bce 100644 --- a/examples/resources/biganimal_csp_tag/resource.tf +++ b/examples/resources/biganimal_csp_tag/resource.tf @@ -12,36 +12,36 @@ terraform { } resource "biganimal_csp_tag" "this" { - project_id = - cloud_provider_id = #ex cloud-provider-id values ["bah:aws", "bah:azure", "bah:gcp", "aws", "azure", "gcp"] - + project_id = "ex-project-id" # ex: "prj_12345" + cloud_provider_id = "ex-cloud-provider-id" # ex cloud-provider-id values ["bah:aws", "bah:azure", "bah:gcp", "aws", "azure", "gcp"] + add_tags = [ #{ - # csp_tag_key = - # csp_tag_value = + # csp_tag_key = # ex: "key" + # csp_tag_value = # ex: "value" #}, #{ - # csp_tag_key = - # csp_tag_value = + # csp_tag_key = + # csp_tag_value = #}, ] - + delete_tags = [ - #, - #, + #, # ex: "id" + #, ] - + edit_tags = [ #{ - # csp_tag_id = - # csp_tag_key = - # csp_tag_value = + # csp_tag_id = # ex: "id" + # csp_tag_key = # ex: "key" + # csp_tag_value = # ex: "value" # status = "OK" #}, #{ - # csp_tag_id = - # csp_tag_key = - # csp_tag_value = + # csp_tag_id = + # csp_tag_key = + # csp_tag_value = # status = "OK" #}, ] diff --git a/pkg/provider/resource_csp_tag.go b/pkg/provider/resource_csp_tag.go index 2ba40987..4c2f8c40 100644 --- a/pkg/provider/resource_csp_tag.go +++ b/pkg/provider/resource_csp_tag.go @@ -298,7 +298,6 @@ func (tr *cSPTagResource) Delete(ctx context.Context, req resource.DeleteRequest "Delete operation is not supported for CSP Tag resource", "Please delete csp tags using an update operation on the field 'delete_tags'", ) - return } func (tr *cSPTagResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) {