diff --git a/sysdig/resource_sysdig_secure_organization.go b/sysdig/resource_sysdig_secure_organization.go index 158df8022..dfb1fa8f4 100644 --- a/sysdig/resource_sysdig_secure_organization.go +++ b/sysdig/resource_sysdig_secure_organization.go @@ -8,7 +8,6 @@ import ( cloudauth "github.com/draios/terraform-provider-sysdig/sysdig/internal/client/v2/cloudauth/go" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) func resourceSysdigSecureOrganization() *schema.Resource { @@ -38,11 +37,6 @@ func resourceSysdigSecureOrganization() *schema.Resource { Type: schema.TypeString, Required: true, }, - SchemaCloudProviderType: { - Type: schema.TypeString, - Required: true, - ValidateFunc: validation.StringInSlice([]string{cloudauth.Provider_PROVIDER_AWS.String(), cloudauth.Provider_PROVIDER_GCP.String(), cloudauth.Provider_PROVIDER_AZURE.String()}, false), - }, }, } } @@ -122,7 +116,6 @@ func secureOrganizationFromResourceData(data *schema.ResourceData) v2.Organizati return v2.OrganizationSecure{ CloudOrganization: cloudauth.CloudOrganization{ ManagementAccountId: data.Get(SchemaManagementAccountId).(string), - Provider: cloudauth.Provider(cloudauth.Provider_value[data.Get(SchemaCloudProviderType).(string)]), }, } } @@ -133,11 +126,6 @@ func secureOrganizationToResourceData(data *schema.ResourceData, org *v2.Organiz return err } - err = data.Set(SchemaCloudProviderType, org.Provider) - if err != nil { - return err - } - err = data.Set(SchemaIDKey, org.Id) if err != nil { return err diff --git a/sysdig/resource_sysdig_secure_organization_test.go b/sysdig/resource_sysdig_secure_organization_test.go index a422e2224..4314e400e 100644 --- a/sysdig/resource_sysdig_secure_organization_test.go +++ b/sysdig/resource_sysdig_secure_organization_test.go @@ -49,7 +49,6 @@ resource "sysdig_secure_cloud_auth_account" "sample" { } resource "sysdig_secure_organization" "sample" { management_account_id = sysdig_secure_cloud_auth_account.sample.id - provider_type = "PROVIDER_GCP" } `, accountID) }