diff --git a/cmd/tftemplate/resource.go.tmpl b/cmd/tftemplate/resource.go.tmpl index 28c096eecb..a0bf06f08b 100644 --- a/cmd/tftemplate/resource.go.tmpl +++ b/cmd/tftemplate/resource.go.tmpl @@ -12,6 +12,8 @@ import ( func Resource{{ .Resource }}() *schema.Resource { return &schema.Resource{ +EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, CreateContext: Resource{{ .Resource }}Create, ReadContext: Resource{{ .Resource }}Read, UpdateContext: Resource{{ .Resource }}Update, diff --git a/internal/acctest/acctest.go b/internal/acctest/acctest.go index d7a051dacc..1e29c73173 100644 --- a/internal/acctest/acctest.go +++ b/internal/acctest/acctest.go @@ -54,7 +54,7 @@ func NewTestTools(t *testing.T) *TestTools { T: t, Meta: m, ProviderFactories: map[string]func() (*schema.Provider, error){ - "scaleway": func() (*schema.Provider, error) { + "registry.terraform.io/scaleway/scaleway": func() (*schema.Provider, error) { return provider.Provider(&provider.Config{Meta: m})(), nil }, }, diff --git a/internal/services/account/project.go b/internal/services/account/project.go index 9e5d91ce3d..5b741f5424 100644 --- a/internal/services/account/project.go +++ b/internal/services/account/project.go @@ -15,10 +15,12 @@ import ( func ResourceProject() *schema.Resource { return &schema.Resource{ - CreateContext: resourceAccountProjectCreate, - ReadContext: resourceAccountProjectRead, - UpdateContext: resourceAccountProjectUpdate, - DeleteContext: resourceAccountProjectDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceAccountProjectCreate, + ReadContext: resourceAccountProjectRead, + UpdateContext: resourceAccountProjectUpdate, + DeleteContext: resourceAccountProjectDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/applesilicon/server.go b/internal/services/applesilicon/server.go index 846708ab78..5eca451b87 100644 --- a/internal/services/applesilicon/server.go +++ b/internal/services/applesilicon/server.go @@ -19,10 +19,12 @@ import ( func ResourceServer() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceAppleSiliconServerCreate, - ReadContext: ResourceAppleSiliconServerRead, - UpdateContext: ResourceAppleSiliconServerUpdate, - DeleteContext: ResourceAppleSiliconServerDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceAppleSiliconServerCreate, + ReadContext: ResourceAppleSiliconServerRead, + UpdateContext: ResourceAppleSiliconServerUpdate, + DeleteContext: ResourceAppleSiliconServerDelete, Timeouts: &schema.ResourceTimeout{ Create: schema.DefaultTimeout(defaultAppleSiliconServerTimeout), Default: schema.DefaultTimeout(defaultAppleSiliconServerTimeout), diff --git a/internal/services/az/availability_zones_data_source.go b/internal/services/az/availability_zones_data_source.go index adcc0868d4..8f3184e33e 100644 --- a/internal/services/az/availability_zones_data_source.go +++ b/internal/services/az/availability_zones_data_source.go @@ -14,7 +14,9 @@ import ( func DataSourceAvailabilityZones() *schema.Resource { return &schema.Resource{ - ReadWithoutTimeout: dataSourceAvailabilityZonesRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadWithoutTimeout: dataSourceAvailabilityZonesRead, Timeouts: &schema.ResourceTimeout{ Read: schema.DefaultTimeout(20 * time.Minute), diff --git a/internal/services/baremetal/easy_partitioning_data_source.go b/internal/services/baremetal/easy_partitioning_data_source.go index fda4ce6a39..6d90b4f0fb 100644 --- a/internal/services/baremetal/easy_partitioning_data_source.go +++ b/internal/services/baremetal/easy_partitioning_data_source.go @@ -21,7 +21,9 @@ const ( func DataEasyPartitioning() *schema.Resource { return &schema.Resource{ - ReadContext: dataEasyPartitioningRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: dataEasyPartitioningRead, Schema: map[string]*schema.Schema{ "offer_id": { Type: schema.TypeString, diff --git a/internal/services/baremetal/offer_data_source.go b/internal/services/baremetal/offer_data_source.go index b5493986d8..667d17769c 100644 --- a/internal/services/baremetal/offer_data_source.go +++ b/internal/services/baremetal/offer_data_source.go @@ -15,7 +15,9 @@ import ( func DataSourceOffer() *schema.Resource { return &schema.Resource{ - ReadContext: dataSourceOfferRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: dataSourceOfferRead, Schema: map[string]*schema.Schema{ "name": { diff --git a/internal/services/baremetal/option_data_source.go b/internal/services/baremetal/option_data_source.go index 66f4dda27d..20f32289b5 100644 --- a/internal/services/baremetal/option_data_source.go +++ b/internal/services/baremetal/option_data_source.go @@ -15,7 +15,9 @@ import ( func DataSourceOption() *schema.Resource { return &schema.Resource{ - ReadContext: dataSourceOptionRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: dataSourceOptionRead, Schema: map[string]*schema.Schema{ "name": { Type: schema.TypeString, diff --git a/internal/services/baremetal/os_data_source.go b/internal/services/baremetal/os_data_source.go index 7f5d7b21f2..1233e9dab8 100644 --- a/internal/services/baremetal/os_data_source.go +++ b/internal/services/baremetal/os_data_source.go @@ -15,7 +15,9 @@ import ( func DataSourceOS() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceOSRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceOSRead, Schema: map[string]*schema.Schema{ "name": { Type: schema.TypeString, diff --git a/internal/services/baremetal/server.go b/internal/services/baremetal/server.go index 04c86b193d..bd1c479576 100644 --- a/internal/services/baremetal/server.go +++ b/internal/services/baremetal/server.go @@ -29,10 +29,12 @@ import ( func ResourceServer() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceServerCreate, - ReadContext: ResourceServerRead, - UpdateContext: ResourceServerUpdate, - DeleteContext: ResourceServerDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceServerCreate, + ReadContext: ResourceServerRead, + UpdateContext: ResourceServerUpdate, + DeleteContext: ResourceServerDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, @@ -301,6 +303,8 @@ If this behaviour is wanted, please set 'reinstall_on_ssh_key_changes' argument func ResourceServerIP() *schema.Resource { return &schema.Resource{ + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, Schema: map[string]*schema.Schema{ "id": { Type: schema.TypeString, diff --git a/internal/services/billing/consumption_data_source.go b/internal/services/billing/consumption_data_source.go index c0d7dc5560..4975348c1e 100644 --- a/internal/services/billing/consumption_data_source.go +++ b/internal/services/billing/consumption_data_source.go @@ -15,7 +15,9 @@ import ( func DataSourceConsumptions() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceBillingConsumptionsRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceBillingConsumptionsRead, Schema: map[string]*schema.Schema{ "organization_id": account.OrganizationIDSchema(), "project_id": account.ProjectIDSchema(), diff --git a/internal/services/billing/invoices_data_source.go b/internal/services/billing/invoices_data_source.go index c935c99638..d63a27e037 100644 --- a/internal/services/billing/invoices_data_source.go +++ b/internal/services/billing/invoices_data_source.go @@ -16,7 +16,9 @@ import ( func DataSourceInvoices() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceBillingInvoicesRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceBillingInvoicesRead, Schema: map[string]*schema.Schema{ "started_after": { Type: schema.TypeString, diff --git a/internal/services/block/snapshot.go b/internal/services/block/snapshot.go index a9e9027033..fd48f63733 100644 --- a/internal/services/block/snapshot.go +++ b/internal/services/block/snapshot.go @@ -19,10 +19,12 @@ import ( func ResourceSnapshot() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceBlockSnapshotCreate, - ReadContext: ResourceBlockSnapshotRead, - UpdateContext: ResourceBlockSnapshotUpdate, - DeleteContext: ResourceBlockSnapshotDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceBlockSnapshotCreate, + ReadContext: ResourceBlockSnapshotRead, + UpdateContext: ResourceBlockSnapshotUpdate, + DeleteContext: ResourceBlockSnapshotDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/block/volume.go b/internal/services/block/volume.go index eba7260f87..df4d1cc6c5 100644 --- a/internal/services/block/volume.go +++ b/internal/services/block/volume.go @@ -19,10 +19,12 @@ import ( func ResourceVolume() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceBlockVolumeCreate, - ReadContext: ResourceBlockVolumeRead, - UpdateContext: ResourceBlockVolumeUpdate, - DeleteContext: ResourceBlockVolumeDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceBlockVolumeCreate, + ReadContext: ResourceBlockVolumeRead, + UpdateContext: ResourceBlockVolumeUpdate, + DeleteContext: ResourceBlockVolumeDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/cockpit/alert_manager.go b/internal/services/cockpit/alert_manager.go index 00c7601a24..8d3f72fd1e 100644 --- a/internal/services/cockpit/alert_manager.go +++ b/internal/services/cockpit/alert_manager.go @@ -16,10 +16,12 @@ import ( func ResourceCockpitAlertManager() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceCockpitAlertManagerCreate, - ReadContext: ResourceCockpitAlertManagerRead, - UpdateContext: ResourceCockpitAlertManagerUpdate, - DeleteContext: ResourceCockpitAlertManagerDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceCockpitAlertManagerCreate, + ReadContext: ResourceCockpitAlertManagerRead, + UpdateContext: ResourceCockpitAlertManagerUpdate, + DeleteContext: ResourceCockpitAlertManagerDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/cockpit/cockpit.go b/internal/services/cockpit/cockpit.go index 7090fbdb74..b31850ffd7 100644 --- a/internal/services/cockpit/cockpit.go +++ b/internal/services/cockpit/cockpit.go @@ -12,10 +12,12 @@ import ( func ResourceCockpit() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceCockpitCreate, - ReadContext: ResourceCockpitRead, - UpdateContext: ResourceCockpitUpdate, - DeleteContext: ResourceCockpitDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceCockpitCreate, + ReadContext: ResourceCockpitRead, + UpdateContext: ResourceCockpitUpdate, + DeleteContext: ResourceCockpitDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/cockpit/grafana_user.go b/internal/services/cockpit/grafana_user.go index 257cebec79..531d38c362 100644 --- a/internal/services/cockpit/grafana_user.go +++ b/internal/services/cockpit/grafana_user.go @@ -17,9 +17,11 @@ import ( func ResourceCockpitGrafanaUser() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceCockpitGrafanaUserCreate, - ReadContext: ResourceCockpitGrafanaUserRead, - DeleteContext: ResourceCockpitGrafanaUserDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceCockpitGrafanaUserCreate, + ReadContext: ResourceCockpitGrafanaUserRead, + DeleteContext: ResourceCockpitGrafanaUserDelete, Timeouts: &schema.ResourceTimeout{ Create: schema.DefaultTimeout(DefaultCockpitTimeout), Read: schema.DefaultTimeout(DefaultCockpitTimeout), diff --git a/internal/services/cockpit/source.go b/internal/services/cockpit/source.go index d81cc5c85f..6a909c807e 100644 --- a/internal/services/cockpit/source.go +++ b/internal/services/cockpit/source.go @@ -17,10 +17,12 @@ import ( func ResourceCockpitSource() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceCockpitSourceCreate, - ReadContext: ResourceCockpitSourceRead, - UpdateContext: ResourceCockpitSourceUpdate, - DeleteContext: ResourceCockpitSourceDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceCockpitSourceCreate, + ReadContext: ResourceCockpitSourceRead, + UpdateContext: ResourceCockpitSourceUpdate, + DeleteContext: ResourceCockpitSourceDelete, Timeouts: &schema.ResourceTimeout{ Create: schema.DefaultTimeout(DefaultCockpitTimeout), Read: schema.DefaultTimeout(DefaultCockpitTimeout), diff --git a/internal/services/cockpit/source_data_source.go b/internal/services/cockpit/source_data_source.go index a482abd26f..cc961f0d87 100644 --- a/internal/services/cockpit/source_data_source.go +++ b/internal/services/cockpit/source_data_source.go @@ -15,7 +15,9 @@ import ( func DataSourceCockpitSource() *schema.Resource { return &schema.Resource{ - ReadContext: dataSourceCockpitSourceRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: dataSourceCockpitSourceRead, Schema: map[string]*schema.Schema{ "id": { Type: schema.TypeString, diff --git a/internal/services/cockpit/token.go b/internal/services/cockpit/token.go index 43d8e2271f..669a49ba6d 100644 --- a/internal/services/cockpit/token.go +++ b/internal/services/cockpit/token.go @@ -16,9 +16,11 @@ import ( func ResourceToken() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceCockpitTokenCreate, - ReadContext: ResourceCockpitTokenRead, - DeleteContext: ResourceCockpitTokenDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceCockpitTokenCreate, + ReadContext: ResourceCockpitTokenRead, + DeleteContext: ResourceCockpitTokenDelete, Timeouts: &schema.ResourceTimeout{ Create: schema.DefaultTimeout(DefaultCockpitTimeout), Read: schema.DefaultTimeout(DefaultCockpitTimeout), @@ -72,6 +74,8 @@ func ResourceToken() *schema.Resource { func resourceCockpitTokenScopes() *schema.Resource { return &schema.Resource{ + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, Schema: map[string]*schema.Schema{ "query_metrics": { Type: schema.TypeBool, diff --git a/internal/services/container/container.go b/internal/services/container/container.go index 2d69f6238f..0fbe147e5b 100644 --- a/internal/services/container/container.go +++ b/internal/services/container/container.go @@ -22,10 +22,12 @@ const ( func ResourceContainer() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceContainerCreate, - ReadContext: ResourceContainerRead, - UpdateContext: ResourceContainerUpdate, - DeleteContext: ResourceContainerDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceContainerCreate, + ReadContext: ResourceContainerRead, + UpdateContext: ResourceContainerUpdate, + DeleteContext: ResourceContainerDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/container/cron.go b/internal/services/container/cron.go index 016ab6a131..85739a9b91 100644 --- a/internal/services/container/cron.go +++ b/internal/services/container/cron.go @@ -18,10 +18,12 @@ import ( func ResourceCron() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceContainerCronCreate, - ReadContext: ResourceContainerCronRead, - UpdateContext: ResourceContainerCronUpdate, - DeleteContext: ResourceContainerCronDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceContainerCronCreate, + ReadContext: ResourceContainerCronRead, + UpdateContext: ResourceContainerCronUpdate, + DeleteContext: ResourceContainerCronDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/container/domain.go b/internal/services/container/domain.go index 86139bd170..2f0bedbb83 100644 --- a/internal/services/container/domain.go +++ b/internal/services/container/domain.go @@ -17,9 +17,11 @@ import ( func ResourceDomain() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceContainerDomainCreate, - ReadContext: ResourceContainerDomainRead, - DeleteContext: ResourceContainerDomainDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceContainerDomainCreate, + ReadContext: ResourceContainerDomainRead, + DeleteContext: ResourceContainerDomainDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/container/namespace.go b/internal/services/container/namespace.go index 4358db6751..4f0d1f48ba 100644 --- a/internal/services/container/namespace.go +++ b/internal/services/container/namespace.go @@ -19,10 +19,12 @@ import ( func ResourceNamespace() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceContainerNamespaceCreate, - ReadContext: ResourceContainerNamespaceRead, - UpdateContext: ResourceContainerNamespaceUpdate, - DeleteContext: ResourceContainerNamespaceDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceContainerNamespaceCreate, + ReadContext: ResourceContainerNamespaceRead, + UpdateContext: ResourceContainerNamespaceUpdate, + DeleteContext: ResourceContainerNamespaceDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/container/token.go b/internal/services/container/token.go index 3b4c7bc784..cec9e7afaf 100644 --- a/internal/services/container/token.go +++ b/internal/services/container/token.go @@ -18,9 +18,11 @@ import ( func ResourceToken() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceContainerTokenCreate, - ReadContext: ResourceContainerTokenRead, - DeleteContext: ResourceContainerTokenDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceContainerTokenCreate, + ReadContext: ResourceContainerTokenRead, + DeleteContext: ResourceContainerTokenDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/container/trigger.go b/internal/services/container/trigger.go index d34bece313..a05891b383 100644 --- a/internal/services/container/trigger.go +++ b/internal/services/container/trigger.go @@ -19,10 +19,12 @@ import ( func ResourceTrigger() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceContainerTriggerCreate, - ReadContext: ResourceContainerTriggerRead, - UpdateContext: ResourceContainerTriggerUpdate, - DeleteContext: ResourceContainerTriggerDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceContainerTriggerCreate, + ReadContext: ResourceContainerTriggerRead, + UpdateContext: ResourceContainerTriggerUpdate, + DeleteContext: ResourceContainerTriggerDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/domain/record.go b/internal/services/domain/record.go index 623a709c92..5786994d8d 100644 --- a/internal/services/domain/record.go +++ b/internal/services/domain/record.go @@ -34,10 +34,12 @@ var changeKeys = []string{ func ResourceRecord() *schema.Resource { return &schema.Resource{ - CreateContext: resourceRecordCreate, - ReadContext: resourceDomainRecordRead, - UpdateContext: resourceDomainRecordUpdate, - DeleteContext: resourceDomainRecordDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceRecordCreate, + ReadContext: resourceDomainRecordRead, + UpdateContext: resourceDomainRecordUpdate, + DeleteContext: resourceDomainRecordDelete, Timeouts: &schema.ResourceTimeout{ Create: schema.DefaultTimeout(defaultDomainRecordTimeout), Read: schema.DefaultTimeout(defaultDomainRecordTimeout), diff --git a/internal/services/domain/registration.go b/internal/services/domain/registration.go index 039812a06c..663163110f 100644 --- a/internal/services/domain/registration.go +++ b/internal/services/domain/registration.go @@ -17,10 +17,12 @@ import ( func ResourceRegistration() *schema.Resource { return &schema.Resource{ - CreateContext: resourceRegistrationCreate, - ReadContext: resourceRegistrationsRead, - UpdateContext: resourceRegistrationUpdate, - DeleteContext: resourceRegistrationDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceRegistrationCreate, + ReadContext: resourceRegistrationsRead, + UpdateContext: resourceRegistrationUpdate, + DeleteContext: resourceRegistrationDelete, Timeouts: &schema.ResourceTimeout{ Create: schema.DefaultTimeout(defaultDomainRegistrationTimeout), Read: schema.DefaultTimeout(defaultDomainRegistrationTimeout), diff --git a/internal/services/domain/zone.go b/internal/services/domain/zone.go index 9ce854463b..54a60ccafa 100644 --- a/internal/services/domain/zone.go +++ b/internal/services/domain/zone.go @@ -16,10 +16,12 @@ import ( func ResourceZone() *schema.Resource { return &schema.Resource{ - CreateContext: resourceDomainZoneCreate, - ReadContext: resourceDomainZoneRead, - UpdateContext: resourceZoneUpdate, - DeleteContext: resourceZoneDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceDomainZoneCreate, + ReadContext: resourceDomainZoneRead, + UpdateContext: resourceZoneUpdate, + DeleteContext: resourceZoneDelete, Timeouts: &schema.ResourceTimeout{ Default: schema.DefaultTimeout(defaultDomainZoneTimeout), }, diff --git a/internal/services/edgeservices/backend_stage.go b/internal/services/edgeservices/backend_stage.go index 7976de0f5f..9488772bd8 100644 --- a/internal/services/edgeservices/backend_stage.go +++ b/internal/services/edgeservices/backend_stage.go @@ -15,10 +15,12 @@ import ( func ResourceBackendStage() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceBackendStageCreate, - ReadContext: ResourceBackendStageRead, - UpdateContext: ResourceBackendStageUpdate, - DeleteContext: ResourceBackendStageDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceBackendStageCreate, + ReadContext: ResourceBackendStageRead, + UpdateContext: ResourceBackendStageUpdate, + DeleteContext: ResourceBackendStageDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/edgeservices/cache_stage.go b/internal/services/edgeservices/cache_stage.go index 14c90137a8..db39df5670 100644 --- a/internal/services/edgeservices/cache_stage.go +++ b/internal/services/edgeservices/cache_stage.go @@ -14,10 +14,12 @@ import ( func ResourceCacheStage() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceCacheStageCreate, - ReadContext: ResourceCacheStageRead, - UpdateContext: ResourceCacheStageUpdate, - DeleteContext: ResourceCacheStageDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceCacheStageCreate, + ReadContext: ResourceCacheStageRead, + UpdateContext: ResourceCacheStageUpdate, + DeleteContext: ResourceCacheStageDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/edgeservices/dns_stage.go b/internal/services/edgeservices/dns_stage.go index b3017837ba..13fb964f91 100644 --- a/internal/services/edgeservices/dns_stage.go +++ b/internal/services/edgeservices/dns_stage.go @@ -14,10 +14,12 @@ import ( func ResourceDNSStage() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceDNSStageCreate, - ReadContext: ResourceDNSStageRead, - UpdateContext: ResourceDNSStageUpdate, - DeleteContext: ResourceDNSStageDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceDNSStageCreate, + ReadContext: ResourceDNSStageRead, + UpdateContext: ResourceDNSStageUpdate, + DeleteContext: ResourceDNSStageDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/edgeservices/head_stage.go b/internal/services/edgeservices/head_stage.go index 5464727d30..dcc7ace403 100644 --- a/internal/services/edgeservices/head_stage.go +++ b/internal/services/edgeservices/head_stage.go @@ -12,10 +12,12 @@ import ( func ResourceHeadStage() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceHeadStageCreate, - ReadContext: ResourceHeadStageRead, - UpdateContext: ResourceHeadStageUpdate, - DeleteContext: ResourceHeadStageDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceHeadStageCreate, + ReadContext: ResourceHeadStageRead, + UpdateContext: ResourceHeadStageUpdate, + DeleteContext: ResourceHeadStageDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/edgeservices/pipeline.go b/internal/services/edgeservices/pipeline.go index 358a207d75..0d6fb5b70b 100644 --- a/internal/services/edgeservices/pipeline.go +++ b/internal/services/edgeservices/pipeline.go @@ -14,10 +14,12 @@ import ( func ResourcePipeline() *schema.Resource { return &schema.Resource{ - CreateContext: ResourcePipelineCreate, - ReadContext: ResourcePipelineRead, - UpdateContext: ResourcePipelineUpdate, - DeleteContext: ResourcePipelineDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourcePipelineCreate, + ReadContext: ResourcePipelineRead, + UpdateContext: ResourcePipelineUpdate, + DeleteContext: ResourcePipelineDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/edgeservices/plan.go b/internal/services/edgeservices/plan.go index f529f66715..aa0cc4f859 100644 --- a/internal/services/edgeservices/plan.go +++ b/internal/services/edgeservices/plan.go @@ -15,10 +15,12 @@ import ( func ResourcePlan() *schema.Resource { return &schema.Resource{ - CreateContext: ResourcePlanCreate, - ReadContext: ResourcePlanRead, - UpdateContext: ResourcePlanUpdate, - DeleteContext: ResourcePlanDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourcePlanCreate, + ReadContext: ResourcePlanRead, + UpdateContext: ResourcePlanUpdate, + DeleteContext: ResourcePlanDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/edgeservices/route_stage.go b/internal/services/edgeservices/route_stage.go index ad9b5d4d46..94e18f23f1 100644 --- a/internal/services/edgeservices/route_stage.go +++ b/internal/services/edgeservices/route_stage.go @@ -15,10 +15,12 @@ import ( func ResourceRouteStage() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceRouteStageCreate, - ReadContext: ResourceRouteStageRead, - UpdateContext: ResourceRouteStageUpdate, - DeleteContext: ResourceRouteStageDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceRouteStageCreate, + ReadContext: ResourceRouteStageRead, + UpdateContext: ResourceRouteStageUpdate, + DeleteContext: ResourceRouteStageDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/edgeservices/tls_stage.go b/internal/services/edgeservices/tls_stage.go index c317263b13..5587d1da9e 100644 --- a/internal/services/edgeservices/tls_stage.go +++ b/internal/services/edgeservices/tls_stage.go @@ -15,10 +15,12 @@ import ( func ResourceTLSStage() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceTLSStageCreate, - ReadContext: ResourceTLSStageRead, - UpdateContext: ResourceTLSStageUpdate, - DeleteContext: ResourceTLSStageDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceTLSStageCreate, + ReadContext: ResourceTLSStageRead, + UpdateContext: ResourceTLSStageUpdate, + DeleteContext: ResourceTLSStageDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/edgeservices/waf_stage.go b/internal/services/edgeservices/waf_stage.go index 7af4b0ebce..2bfc103c7e 100644 --- a/internal/services/edgeservices/waf_stage.go +++ b/internal/services/edgeservices/waf_stage.go @@ -14,10 +14,12 @@ import ( func ResourceWAFStage() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceWAFStageCreate, - ReadContext: ResourceWAFStageRead, - UpdateContext: ResourceWAFStageUpdate, - DeleteContext: ResourceWAFStageDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceWAFStageCreate, + ReadContext: ResourceWAFStageRead, + UpdateContext: ResourceWAFStageUpdate, + DeleteContext: ResourceWAFStageDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/flexibleip/data_source_flexible_ips.go b/internal/services/flexibleip/data_source_flexible_ips.go index fc133c16f7..155b7be97e 100644 --- a/internal/services/flexibleip/data_source_flexible_ips.go +++ b/internal/services/flexibleip/data_source_flexible_ips.go @@ -15,7 +15,9 @@ import ( func DataSourceFlexibleIPs() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceFlexibleIPsRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceFlexibleIPsRead, Schema: map[string]*schema.Schema{ "server_ids": { Type: schema.TypeList, diff --git a/internal/services/flexibleip/ip.go b/internal/services/flexibleip/ip.go index cfa754743b..875adb298a 100644 --- a/internal/services/flexibleip/ip.go +++ b/internal/services/flexibleip/ip.go @@ -17,10 +17,12 @@ import ( func ResourceIP() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceFlexibleIPCreate, - ReadContext: ResourceFlexibleIPRead, - UpdateContext: ResourceFlexibleIPUpdate, - DeleteContext: ResourceFlexibleIPDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceFlexibleIPCreate, + ReadContext: ResourceFlexibleIPRead, + UpdateContext: ResourceFlexibleIPUpdate, + DeleteContext: ResourceFlexibleIPDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/flexibleip/mac_address.go b/internal/services/flexibleip/mac_address.go index 446b533f09..4f45edaa0b 100644 --- a/internal/services/flexibleip/mac_address.go +++ b/internal/services/flexibleip/mac_address.go @@ -17,10 +17,12 @@ import ( func ResourceMACAddress() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceFlexibleIPMACCreate, - ReadContext: ResourceFlexibleIPMACRead, - UpdateContext: ResourceFlexibleIPMACUpdate, - DeleteContext: ResourceFlexibleIPMACDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceFlexibleIPMACCreate, + ReadContext: ResourceFlexibleIPMACRead, + UpdateContext: ResourceFlexibleIPMACUpdate, + DeleteContext: ResourceFlexibleIPMACDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/function/cron.go b/internal/services/function/cron.go index e881e12b5f..7a53f8e51c 100644 --- a/internal/services/function/cron.go +++ b/internal/services/function/cron.go @@ -17,10 +17,12 @@ import ( func ResourceCron() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceFunctionCronCreate, - ReadContext: ResourceFunctionCronRead, - UpdateContext: ResourceFunctionCronUpdate, - DeleteContext: ResourceFunctionCronDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceFunctionCronCreate, + ReadContext: ResourceFunctionCronRead, + UpdateContext: ResourceFunctionCronUpdate, + DeleteContext: ResourceFunctionCronDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/function/domain.go b/internal/services/function/domain.go index f71b412c7a..a9c70521b4 100644 --- a/internal/services/function/domain.go +++ b/internal/services/function/domain.go @@ -16,9 +16,11 @@ import ( func ResourceDomain() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceFunctionDomainCreate, - ReadContext: ResourceFunctionDomainRead, - DeleteContext: ResourceFunctionDomainDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceFunctionDomainCreate, + ReadContext: ResourceFunctionDomainRead, + DeleteContext: ResourceFunctionDomainDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/function/function.go b/internal/services/function/function.go index 2c1260b08b..d4e25ce703 100644 --- a/internal/services/function/function.go +++ b/internal/services/function/function.go @@ -22,10 +22,12 @@ import ( func ResourceFunction() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceFunctionCreate, - ReadContext: ResourceFunctionRead, - UpdateContext: ResourceFunctionUpdate, - DeleteContext: ResourceFunctionDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceFunctionCreate, + ReadContext: ResourceFunctionRead, + UpdateContext: ResourceFunctionUpdate, + DeleteContext: ResourceFunctionDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/function/namespace.go b/internal/services/function/namespace.go index 43c8cdeba6..a8bae18b34 100644 --- a/internal/services/function/namespace.go +++ b/internal/services/function/namespace.go @@ -17,10 +17,12 @@ import ( func ResourceNamespace() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceFunctionNamespaceCreate, - ReadContext: ResourceFunctionNamespaceRead, - UpdateContext: ResourceFunctionNamespaceUpdate, - DeleteContext: ResourceFunctionNamespaceDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceFunctionNamespaceCreate, + ReadContext: ResourceFunctionNamespaceRead, + UpdateContext: ResourceFunctionNamespaceUpdate, + DeleteContext: ResourceFunctionNamespaceDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/function/token.go b/internal/services/function/token.go index 1e563947d0..f119dab7f2 100644 --- a/internal/services/function/token.go +++ b/internal/services/function/token.go @@ -20,9 +20,11 @@ import ( func ResourceToken() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceFunctionTokenCreate, - ReadContext: ResourceFunctionTokenRead, - DeleteContext: ResourceFunctionTokenDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceFunctionTokenCreate, + ReadContext: ResourceFunctionTokenRead, + DeleteContext: ResourceFunctionTokenDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/function/trigger.go b/internal/services/function/trigger.go index e418feafda..49e1dac9df 100644 --- a/internal/services/function/trigger.go +++ b/internal/services/function/trigger.go @@ -19,10 +19,12 @@ import ( func ResourceTrigger() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceFunctionTriggerCreate, - ReadContext: ResourceFunctionTriggerRead, - UpdateContext: ResourceFunctionTriggerUpdate, - DeleteContext: ResourceFunctionTriggerDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceFunctionTriggerCreate, + ReadContext: ResourceFunctionTriggerRead, + UpdateContext: ResourceFunctionTriggerUpdate, + DeleteContext: ResourceFunctionTriggerDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/iam/api_key.go b/internal/services/iam/api_key.go index f2791a77f7..f1722e18ad 100644 --- a/internal/services/iam/api_key.go +++ b/internal/services/iam/api_key.go @@ -16,10 +16,12 @@ import ( func ResourceAPIKey() *schema.Resource { return &schema.Resource{ - CreateContext: resourceIamAPIKeyCreate, - ReadContext: resourceIamAPIKeyRead, - UpdateContext: resourceIamAPIKeyUpdate, - DeleteContext: resourceIamAPIKeyDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceIamAPIKeyCreate, + ReadContext: resourceIamAPIKeyRead, + UpdateContext: resourceIamAPIKeyUpdate, + DeleteContext: resourceIamAPIKeyDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/iam/application.go b/internal/services/iam/application.go index 068030ffb9..ec3d9ad09b 100644 --- a/internal/services/iam/application.go +++ b/internal/services/iam/application.go @@ -14,10 +14,12 @@ import ( func ResourceApplication() *schema.Resource { return &schema.Resource{ - CreateContext: resourceIamApplicationCreate, - ReadContext: resourceIamApplicationRead, - UpdateContext: resourceIamApplicationUpdate, - DeleteContext: resourceIamApplicationDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceIamApplicationCreate, + ReadContext: resourceIamApplicationRead, + UpdateContext: resourceIamApplicationUpdate, + DeleteContext: resourceIamApplicationDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/iam/group.go b/internal/services/iam/group.go index 8ff3c3968c..a6dae4eff6 100644 --- a/internal/services/iam/group.go +++ b/internal/services/iam/group.go @@ -15,10 +15,12 @@ import ( func ResourceGroup() *schema.Resource { return &schema.Resource{ - CreateContext: resourceIamGroupCreate, - ReadContext: resourceIamGroupRead, - UpdateContext: resourceIamGroupUpdate, - DeleteContext: resourceIamGroupDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceIamGroupCreate, + ReadContext: resourceIamGroupRead, + UpdateContext: resourceIamGroupUpdate, + DeleteContext: resourceIamGroupDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/iam/group_membership.go b/internal/services/iam/group_membership.go index e3458dc407..2fc7f61367 100644 --- a/internal/services/iam/group_membership.go +++ b/internal/services/iam/group_membership.go @@ -15,9 +15,11 @@ import ( func ResourceGroupMembership() *schema.Resource { return &schema.Resource{ - CreateContext: resourceIamGroupMembershipCreate, - ReadContext: resourceIamGroupMembershipRead, - DeleteContext: resourceIamGroupMembershipDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceIamGroupMembershipCreate, + ReadContext: resourceIamGroupMembershipRead, + DeleteContext: resourceIamGroupMembershipDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/iam/policy.go b/internal/services/iam/policy.go index 473d21dd06..fd2e2e3a3c 100644 --- a/internal/services/iam/policy.go +++ b/internal/services/iam/policy.go @@ -16,10 +16,12 @@ import ( func ResourcePolicy() *schema.Resource { return &schema.Resource{ - CreateContext: resourceIamPolicyCreate, - ReadContext: resourceIamPolicyRead, - UpdateContext: resourceIamPolicyUpdate, - DeleteContext: resourceIamPolicyDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceIamPolicyCreate, + ReadContext: resourceIamPolicyRead, + UpdateContext: resourceIamPolicyUpdate, + DeleteContext: resourceIamPolicyDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/iam/ssh_key.go b/internal/services/iam/ssh_key.go index d39e2c978a..fc321f74f8 100644 --- a/internal/services/iam/ssh_key.go +++ b/internal/services/iam/ssh_key.go @@ -17,10 +17,12 @@ import ( func ResourceSSKKey() *schema.Resource { return &schema.Resource{ - CreateContext: resourceIamSSKKeyCreate, - ReadContext: resourceIamSSHKeyRead, - UpdateContext: resourceIamSSKKeyUpdate, - DeleteContext: resourceIamSSKKeyDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceIamSSKKeyCreate, + ReadContext: resourceIamSSHKeyRead, + UpdateContext: resourceIamSSKKeyUpdate, + DeleteContext: resourceIamSSKKeyDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/iam/user.go b/internal/services/iam/user.go index bbbe11068b..6ab63edb3f 100644 --- a/internal/services/iam/user.go +++ b/internal/services/iam/user.go @@ -17,10 +17,12 @@ var descParameterIgnoredForGuest = " (this parameter is ignored in case of guest func ResourceUser() *schema.Resource { return &schema.Resource{ - CreateContext: resourceIamUserCreate, - ReadContext: resourceIamUserRead, - UpdateContext: resourceIamUserUpdate, - DeleteContext: resourceIamUserDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceIamUserCreate, + ReadContext: resourceIamUserRead, + UpdateContext: resourceIamUserUpdate, + DeleteContext: resourceIamUserDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/iam/user_data_source.go b/internal/services/iam/user_data_source.go index 8e744a73a7..cf30ef8b5c 100644 --- a/internal/services/iam/user_data_source.go +++ b/internal/services/iam/user_data_source.go @@ -15,7 +15,9 @@ import ( func DataSourceUser() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceIamUserRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceIamUserRead, Schema: map[string]*schema.Schema{ "user_id": { Type: schema.TypeString, diff --git a/internal/services/inference/deployment.go b/internal/services/inference/deployment.go index 2413722ed3..fb3c3f8874 100644 --- a/internal/services/inference/deployment.go +++ b/internal/services/inference/deployment.go @@ -18,10 +18,12 @@ import ( func ResourceDeployment() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceDeploymentCreate, - ReadContext: ResourceDeploymentRead, - UpdateContext: ResourceDeploymentUpdate, - DeleteContext: ResourceDeploymentDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceDeploymentCreate, + ReadContext: ResourceDeploymentRead, + UpdateContext: ResourceDeploymentUpdate, + DeleteContext: ResourceDeploymentDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/inference/model.go b/internal/services/inference/model.go index a0371d660c..caf102848a 100644 --- a/internal/services/inference/model.go +++ b/internal/services/inference/model.go @@ -16,9 +16,11 @@ import ( func ResourceModel() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceModelCreate, - ReadContext: ResourceModelRead, - DeleteContext: ResourceModelDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceModelCreate, + ReadContext: ResourceModelRead, + DeleteContext: ResourceModelDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/instance/image.go b/internal/services/instance/image.go index 11bd3283e4..0bbdc0de86 100644 --- a/internal/services/instance/image.go +++ b/internal/services/instance/image.go @@ -21,10 +21,12 @@ import ( func ResourceImage() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceInstanceImageCreate, - ReadContext: ResourceInstanceImageRead, - UpdateContext: ResourceInstanceImageUpdate, - DeleteContext: ResourceInstanceImageDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceInstanceImageCreate, + ReadContext: ResourceInstanceImageRead, + UpdateContext: ResourceInstanceImageUpdate, + DeleteContext: ResourceInstanceImageDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/instance/image_data_source.go b/internal/services/instance/image_data_source.go index 56560d25bf..27cbcec16b 100644 --- a/internal/services/instance/image_data_source.go +++ b/internal/services/instance/image_data_source.go @@ -17,7 +17,9 @@ import ( func DataSourceImage() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceInstanceImageRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceInstanceImageRead, Schema: map[string]*schema.Schema{ "name": { diff --git a/internal/services/instance/ip.go b/internal/services/instance/ip.go index 66c7a6a7f9..4409912332 100644 --- a/internal/services/instance/ip.go +++ b/internal/services/instance/ip.go @@ -16,10 +16,12 @@ import ( func ResourceIP() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceInstanceIPCreate, - ReadContext: ResourceInstanceIPRead, - UpdateContext: ResourceInstanceIPUpdate, - DeleteContext: ResourceInstanceIPDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceInstanceIPCreate, + ReadContext: ResourceInstanceIPRead, + UpdateContext: ResourceInstanceIPUpdate, + DeleteContext: ResourceInstanceIPDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/instance/ip_reverse_dns.go b/internal/services/instance/ip_reverse_dns.go index 100cfc0b22..def815c37a 100644 --- a/internal/services/instance/ip_reverse_dns.go +++ b/internal/services/instance/ip_reverse_dns.go @@ -17,10 +17,12 @@ import ( func ResourceIPReverseDNS() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceInstanceIPReverseDNSCreate, - ReadContext: ResourceInstanceIPReverseDNSRead, - UpdateContext: ResourceInstanceIPReverseDNSUpdate, - DeleteContext: ResourceInstanceIPReverseDNSDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceInstanceIPReverseDNSCreate, + ReadContext: ResourceInstanceIPReverseDNSRead, + UpdateContext: ResourceInstanceIPReverseDNSUpdate, + DeleteContext: ResourceInstanceIPReverseDNSDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/instance/placement_group.go b/internal/services/instance/placement_group.go index 91cf80a98e..1a4eb74ded 100644 --- a/internal/services/instance/placement_group.go +++ b/internal/services/instance/placement_group.go @@ -16,10 +16,12 @@ import ( func ResourcePlacementGroup() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceInstancePlacementGroupCreate, - ReadContext: ResourceInstancePlacementGroupRead, - UpdateContext: ResourceInstancePlacementGroupUpdate, - DeleteContext: ResourceInstancePlacementGroupDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceInstancePlacementGroupCreate, + ReadContext: ResourceInstancePlacementGroupRead, + UpdateContext: ResourceInstancePlacementGroupUpdate, + DeleteContext: ResourceInstancePlacementGroupDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/instance/private_nic.go b/internal/services/instance/private_nic.go index 8f2062b649..ff905a5a06 100644 --- a/internal/services/instance/private_nic.go +++ b/internal/services/instance/private_nic.go @@ -22,10 +22,12 @@ import ( func ResourcePrivateNIC() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceInstancePrivateNICCreate, - ReadContext: ResourceInstancePrivateNICRead, - UpdateContext: ResourceInstancePrivateNICUpdate, - DeleteContext: ResourceInstancePrivateNICDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceInstancePrivateNICCreate, + ReadContext: ResourceInstancePrivateNICRead, + UpdateContext: ResourceInstancePrivateNICUpdate, + DeleteContext: ResourceInstancePrivateNICDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/instance/security_group.go b/internal/services/instance/security_group.go index de07572ac2..30f45789b8 100644 --- a/internal/services/instance/security_group.go +++ b/internal/services/instance/security_group.go @@ -20,10 +20,12 @@ import ( func ResourceSecurityGroup() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceInstanceSecurityGroupCreate, - ReadContext: ResourceInstanceSecurityGroupRead, - UpdateContext: ResourceInstanceSecurityGroupUpdate, - DeleteContext: ResourceInstanceSecurityGroupDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceInstanceSecurityGroupCreate, + ReadContext: ResourceInstanceSecurityGroupRead, + UpdateContext: ResourceInstanceSecurityGroupUpdate, + DeleteContext: ResourceInstanceSecurityGroupDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, @@ -381,6 +383,8 @@ func ResourceInstanceSecurityGroupDelete(ctx context.Context, d *schema.Resource // securityGroupRuleSchema returns schema for inbound/outbound rule in security group func securityGroupRuleSchema() *schema.Resource { return &schema.Resource{ + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, Schema: map[string]*schema.Schema{ "action": { Type: schema.TypeString, diff --git a/internal/services/instance/security_group_rules.go b/internal/services/instance/security_group_rules.go index 7d6d9b0c98..f9298d88c2 100644 --- a/internal/services/instance/security_group_rules.go +++ b/internal/services/instance/security_group_rules.go @@ -10,10 +10,12 @@ import ( func ResourceSecurityGroupRules() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceInstanceSecurityGroupRulesCreate, - ReadContext: ResourceInstanceSecurityGroupRulesRead, - UpdateContext: ResourceInstanceSecurityGroupRulesUpdate, - DeleteContext: ResourceInstanceSecurityGroupRulesDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceInstanceSecurityGroupRulesCreate, + ReadContext: ResourceInstanceSecurityGroupRulesRead, + UpdateContext: ResourceInstanceSecurityGroupRulesUpdate, + DeleteContext: ResourceInstanceSecurityGroupRulesDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/instance/server.go b/internal/services/instance/server.go index 15261e2dd6..9e6666e814 100644 --- a/internal/services/instance/server.go +++ b/internal/services/instance/server.go @@ -40,10 +40,12 @@ import ( func ResourceServer() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceInstanceServerCreate, - ReadContext: ResourceInstanceServerRead, - UpdateContext: ResourceInstanceServerUpdate, - DeleteContext: ResourceInstanceServerDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceInstanceServerCreate, + ReadContext: ResourceInstanceServerRead, + UpdateContext: ResourceInstanceServerUpdate, + DeleteContext: ResourceInstanceServerDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/instance/servers_data_source.go b/internal/services/instance/servers_data_source.go index 19767e5ee5..82e8d1d8ff 100644 --- a/internal/services/instance/servers_data_source.go +++ b/internal/services/instance/servers_data_source.go @@ -16,7 +16,9 @@ import ( func DataSourceServers() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceInstanceServersRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceInstanceServersRead, Schema: map[string]*schema.Schema{ "name": { Type: schema.TypeString, diff --git a/internal/services/instance/snapshot.go b/internal/services/instance/snapshot.go index 2cc5eb74e2..bd384c1339 100644 --- a/internal/services/instance/snapshot.go +++ b/internal/services/instance/snapshot.go @@ -22,10 +22,12 @@ import ( func ResourceSnapshot() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceInstanceSnapshotCreate, - ReadContext: ResourceInstanceSnapshotRead, - UpdateContext: ResourceInstanceSnapshotUpdate, - DeleteContext: ResourceInstanceSnapshotDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceInstanceSnapshotCreate, + ReadContext: ResourceInstanceSnapshotRead, + UpdateContext: ResourceInstanceSnapshotUpdate, + DeleteContext: ResourceInstanceSnapshotDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/instance/user_data.go b/internal/services/instance/user_data.go index 4078e3d4d8..466601cfa8 100644 --- a/internal/services/instance/user_data.go +++ b/internal/services/instance/user_data.go @@ -18,10 +18,12 @@ import ( func ResourceUserData() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceInstanceUserDataCreate, - ReadContext: ResourceInstanceUserDataRead, - UpdateContext: ResourceInstanceUserDataUpdate, - DeleteContext: ResourceInstanceUserDataDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceInstanceUserDataCreate, + ReadContext: ResourceInstanceUserDataRead, + UpdateContext: ResourceInstanceUserDataUpdate, + DeleteContext: ResourceInstanceUserDataDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/instance/volume.go b/internal/services/instance/volume.go index 9de1c7c645..97c6e0b61d 100644 --- a/internal/services/instance/volume.go +++ b/internal/services/instance/volume.go @@ -22,10 +22,12 @@ import ( func ResourceVolume() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceInstanceVolumeCreate, - ReadContext: ResourceInstanceVolumeRead, - UpdateContext: ResourceInstanceVolumeUpdate, - DeleteContext: ResourceInstanceVolumeDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceInstanceVolumeCreate, + ReadContext: ResourceInstanceVolumeRead, + UpdateContext: ResourceInstanceVolumeUpdate, + DeleteContext: ResourceInstanceVolumeDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/iot/device.go b/internal/services/iot/device.go index 8a241d4704..7d642868e5 100644 --- a/internal/services/iot/device.go +++ b/internal/services/iot/device.go @@ -24,10 +24,12 @@ const ( func ResourceDevice() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceIotDeviceCreate, - ReadContext: ResourceIotDeviceRead, - UpdateContext: ResourceIotDeviceUpdate, - DeleteContext: ResourceIotDeviceDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceIotDeviceCreate, + ReadContext: ResourceIotDeviceRead, + UpdateContext: ResourceIotDeviceUpdate, + DeleteContext: ResourceIotDeviceDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/iot/hub.go b/internal/services/iot/hub.go index 4711dfb32f..a2f1db4ae9 100644 --- a/internal/services/iot/hub.go +++ b/internal/services/iot/hub.go @@ -19,10 +19,12 @@ import ( func ResourceHub() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceIotHubCreate, - ReadContext: ResourceIotHubRead, - UpdateContext: ResourceIotHubUpdate, - DeleteContext: ResourceIotHubDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceIotHubCreate, + ReadContext: ResourceIotHubRead, + UpdateContext: ResourceIotHubUpdate, + DeleteContext: ResourceIotHubDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/iot/network.go b/internal/services/iot/network.go index eb171e4205..81966b08de 100644 --- a/internal/services/iot/network.go +++ b/internal/services/iot/network.go @@ -19,9 +19,11 @@ import ( func ResourceNetwork() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceIotNetworkCreate, - ReadContext: ResourceIotNetworkRead, - DeleteContext: ResourceIotNetworkDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceIotNetworkCreate, + ReadContext: ResourceIotNetworkRead, + DeleteContext: ResourceIotNetworkDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/iot/routes.go b/internal/services/iot/routes.go index 6c761bd83e..e3158921ff 100644 --- a/internal/services/iot/routes.go +++ b/internal/services/iot/routes.go @@ -19,9 +19,11 @@ import ( func ResourceRoute() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceIotRouteCreate, - ReadContext: ResourceIotRouteRead, - DeleteContext: ResourceIotRouteDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceIotRouteCreate, + ReadContext: ResourceIotRouteRead, + DeleteContext: ResourceIotRouteDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/ipam/ip.go b/internal/services/ipam/ip.go index ba638699cc..f92aa7c556 100644 --- a/internal/services/ipam/ip.go +++ b/internal/services/ipam/ip.go @@ -22,10 +22,12 @@ import ( func ResourceIP() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceIPAMIPCreate, - ReadContext: ResourceIPAMIPRead, - UpdateContext: ResourceIPAMIPUpdate, - DeleteContext: ResourceIPAMIPDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceIPAMIPCreate, + ReadContext: ResourceIPAMIPRead, + UpdateContext: ResourceIPAMIPUpdate, + DeleteContext: ResourceIPAMIPDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/ipam/ip_data_source.go b/internal/services/ipam/ip_data_source.go index 73fc734576..952fce1ae9 100644 --- a/internal/services/ipam/ip_data_source.go +++ b/internal/services/ipam/ip_data_source.go @@ -20,7 +20,9 @@ import ( func DataSourceIP() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceIPAMIPRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceIPAMIPRead, Schema: map[string]*schema.Schema{ // Input "ipam_ip_id": { diff --git a/internal/services/ipam/ip_reverse_dns.go b/internal/services/ipam/ip_reverse_dns.go index 27412aa17e..6985d3529d 100644 --- a/internal/services/ipam/ip_reverse_dns.go +++ b/internal/services/ipam/ip_reverse_dns.go @@ -17,10 +17,12 @@ import ( func ResourceIPReverseDNS() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceIPAMIPReverseDNSCreate, - ReadContext: ResourceIPAMIPReverseDNSRead, - UpdateContext: ResourceIPAMIPReverseDNSUpdate, - DeleteContext: ResourceIPAMIPReverseDNSDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceIPAMIPReverseDNSCreate, + ReadContext: ResourceIPAMIPReverseDNSRead, + UpdateContext: ResourceIPAMIPReverseDNSUpdate, + DeleteContext: ResourceIPAMIPReverseDNSDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/ipam/ips_data_source.go b/internal/services/ipam/ips_data_source.go index e62a5d5eaa..6c4a85c0e5 100644 --- a/internal/services/ipam/ips_data_source.go +++ b/internal/services/ipam/ips_data_source.go @@ -16,7 +16,9 @@ import ( func DataSourceIPs() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceIPAMIPsRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceIPAMIPsRead, Schema: map[string]*schema.Schema{ "private_network_id": { Type: schema.TypeString, diff --git a/internal/services/jobs/jobs.go b/internal/services/jobs/jobs.go index 07fa4dba13..109eafd585 100644 --- a/internal/services/jobs/jobs.go +++ b/internal/services/jobs/jobs.go @@ -21,10 +21,12 @@ import ( func ResourceDefinition() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceJobDefinitionCreate, - ReadContext: ResourceJobDefinitionRead, - UpdateContext: ResourceJobDefinitionUpdate, - DeleteContext: ResourceJobDefinitionDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceJobDefinitionCreate, + ReadContext: ResourceJobDefinitionRead, + UpdateContext: ResourceJobDefinitionUpdate, + DeleteContext: ResourceJobDefinitionDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/k8s/acl.go b/internal/services/k8s/acl.go index dfafd168da..8030ca6f59 100644 --- a/internal/services/k8s/acl.go +++ b/internal/services/k8s/acl.go @@ -19,10 +19,12 @@ import ( func ResourceACL() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceACLCreate, - ReadContext: ResourceACLRead, - UpdateContext: ResourceACLUpdate, - DeleteContext: ResourceACLDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceACLCreate, + ReadContext: ResourceACLRead, + UpdateContext: ResourceACLUpdate, + DeleteContext: ResourceACLDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/k8s/cluster.go b/internal/services/k8s/cluster.go index b9f88cb74f..9b03259fee 100644 --- a/internal/services/k8s/cluster.go +++ b/internal/services/k8s/cluster.go @@ -25,10 +25,12 @@ import ( func ResourceCluster() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceK8SClusterCreate, - ReadContext: ResourceK8SClusterRead, - UpdateContext: ResourceK8SClusterUpdate, - DeleteContext: ResourceK8SClusterDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceK8SClusterCreate, + ReadContext: ResourceK8SClusterRead, + UpdateContext: ResourceK8SClusterUpdate, + DeleteContext: ResourceK8SClusterDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, @@ -899,6 +901,8 @@ func ResourceK8SClusterDelete(ctx context.Context, d *schema.ResourceData, m int func autoscalerConfigSchema() *schema.Resource { return &schema.Resource{ + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, Schema: map[string]*schema.Schema{ "disable_scale_down": { Type: schema.TypeBool, @@ -968,6 +972,8 @@ func autoscalerConfigSchema() *schema.Resource { func openIDConnectConfigSchema() *schema.Resource { return &schema.Resource{ + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, Schema: map[string]*schema.Schema{ "issuer_url": { Type: schema.TypeString, diff --git a/internal/services/k8s/k8s_version_data_source.go b/internal/services/k8s/k8s_version_data_source.go index 802f33b022..edd51deb06 100644 --- a/internal/services/k8s/k8s_version_data_source.go +++ b/internal/services/k8s/k8s_version_data_source.go @@ -14,7 +14,9 @@ import ( func DataSourceVersion() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceK8SVersionRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceK8SVersionRead, Schema: map[string]*schema.Schema{ "name": { Type: schema.TypeString, diff --git a/internal/services/k8s/pool.go b/internal/services/k8s/pool.go index a8e6c846b9..08be5e89e1 100644 --- a/internal/services/k8s/pool.go +++ b/internal/services/k8s/pool.go @@ -21,11 +21,13 @@ import ( func ResourcePool() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceK8SPoolCreate, - ReadContext: ResourceK8SPoolRead, - UpdateContext: ResourceK8SPoolUpdate, - DeleteContext: ResourceK8SPoolDelete, - CustomizeDiff: ResourceK8SPoolCustomDiff, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceK8SPoolCreate, + ReadContext: ResourceK8SPoolRead, + UpdateContext: ResourceK8SPoolUpdate, + DeleteContext: ResourceK8SPoolDelete, + CustomizeDiff: ResourceK8SPoolCustomDiff, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/lb/acl.go b/internal/services/lb/acl.go index 0203afcd13..3ae05b4db8 100644 --- a/internal/services/lb/acl.go +++ b/internal/services/lb/acl.go @@ -16,10 +16,12 @@ import ( func ResourceACL() *schema.Resource { return &schema.Resource{ - CreateContext: resourceLbACLCreate, - ReadContext: resourceLbACLRead, - UpdateContext: resourceLbACLUpdate, - DeleteContext: resourceLbACLDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceLbACLCreate, + ReadContext: resourceLbACLRead, + UpdateContext: resourceLbACLUpdate, + DeleteContext: resourceLbACLDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/lb/acls_data_source.go b/internal/services/lb/acls_data_source.go index bbb8a2d640..926cf67daf 100644 --- a/internal/services/lb/acls_data_source.go +++ b/internal/services/lb/acls_data_source.go @@ -14,7 +14,9 @@ import ( func DataSourceACLs() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceLbACLsRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceLbACLsRead, Schema: map[string]*schema.Schema{ "frontend_id": { Type: schema.TypeString, diff --git a/internal/services/lb/backend.go b/internal/services/lb/backend.go index 2c5dc3eebc..8c65ddc462 100644 --- a/internal/services/lb/backend.go +++ b/internal/services/lb/backend.go @@ -21,10 +21,12 @@ import ( func ResourceBackend() *schema.Resource { return &schema.Resource{ - CreateContext: resourceLbBackendCreate, - ReadContext: resourceLbBackendRead, - UpdateContext: resourceLbBackendUpdate, - DeleteContext: resourceLbBackendDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceLbBackendCreate, + ReadContext: resourceLbBackendRead, + UpdateContext: resourceLbBackendUpdate, + DeleteContext: resourceLbBackendDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/lb/backends_data_source.go b/internal/services/lb/backends_data_source.go index 7cc30ce104..53cd089d54 100644 --- a/internal/services/lb/backends_data_source.go +++ b/internal/services/lb/backends_data_source.go @@ -14,7 +14,9 @@ import ( func DataSourceBackends() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceLbBackendsRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceLbBackendsRead, Schema: map[string]*schema.Schema{ "lb_id": { Type: schema.TypeString, diff --git a/internal/services/lb/certificate.go b/internal/services/lb/certificate.go index 3203940c97..f8b0706777 100644 --- a/internal/services/lb/certificate.go +++ b/internal/services/lb/certificate.go @@ -16,11 +16,13 @@ import ( func ResourceCertificate() *schema.Resource { return &schema.Resource{ - CreateContext: resourceLbCertificateCreate, - ReadContext: resourceLbCertificateRead, - UpdateContext: resourceLbCertificateUpdate, - DeleteContext: resourceLbCertificateDelete, - SchemaVersion: 1, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceLbCertificateCreate, + ReadContext: resourceLbCertificateRead, + UpdateContext: resourceLbCertificateUpdate, + DeleteContext: resourceLbCertificateDelete, + SchemaVersion: 1, Timeouts: &schema.ResourceTimeout{ Create: schema.DefaultTimeout(defaultLbLbTimeout), Read: schema.DefaultTimeout(defaultLbLbTimeout), diff --git a/internal/services/lb/data_source_lb_frontends.go b/internal/services/lb/data_source_lb_frontends.go index 3b08f7f289..19480c3232 100644 --- a/internal/services/lb/data_source_lb_frontends.go +++ b/internal/services/lb/data_source_lb_frontends.go @@ -14,7 +14,9 @@ import ( func DataSourceFrontends() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceLbFrontendsRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceLbFrontendsRead, Schema: map[string]*schema.Schema{ "lb_id": { Type: schema.TypeString, diff --git a/internal/services/lb/frontend.go b/internal/services/lb/frontend.go index d55c03e022..7be11f8bf1 100644 --- a/internal/services/lb/frontend.go +++ b/internal/services/lb/frontend.go @@ -21,10 +21,12 @@ import ( func ResourceFrontend() *schema.Resource { return &schema.Resource{ - CreateContext: resourceLbFrontendCreate, - ReadContext: resourceLbFrontendRead, - UpdateContext: resourceLbFrontendUpdate, - DeleteContext: resourceLbFrontendDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceLbFrontendCreate, + ReadContext: resourceLbFrontendRead, + UpdateContext: resourceLbFrontendUpdate, + DeleteContext: resourceLbFrontendDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/lb/ip.go b/internal/services/lb/ip.go index 7d8bd57c72..f1f400d797 100644 --- a/internal/services/lb/ip.go +++ b/internal/services/lb/ip.go @@ -18,10 +18,12 @@ import ( func ResourceIP() *schema.Resource { return &schema.Resource{ - CreateContext: resourceLbIPCreate, - ReadContext: resourceLbIPRead, - UpdateContext: resourceLbIPUpdate, - DeleteContext: resourceLbIPDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceLbIPCreate, + ReadContext: resourceLbIPRead, + UpdateContext: resourceLbIPUpdate, + DeleteContext: resourceLbIPDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/lb/ips_data_source.go b/internal/services/lb/ips_data_source.go index 4d900a5f7c..9bc07aa831 100644 --- a/internal/services/lb/ips_data_source.go +++ b/internal/services/lb/ips_data_source.go @@ -15,7 +15,9 @@ import ( func DataSourceIPs() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceLbIPsRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceLbIPsRead, Schema: map[string]*schema.Schema{ "ip_cidr_range": { Type: schema.TypeString, diff --git a/internal/services/lb/lb.go b/internal/services/lb/lb.go index ccbe5b94e8..05276cdbfa 100644 --- a/internal/services/lb/lb.go +++ b/internal/services/lb/lb.go @@ -32,10 +32,12 @@ const ( func ResourceLb() *schema.Resource { return &schema.Resource{ - CreateContext: resourceLbCreate, - ReadContext: resourceLbRead, - UpdateContext: resourceLbUpdate, - DeleteContext: resourceLbDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceLbCreate, + ReadContext: resourceLbRead, + UpdateContext: resourceLbUpdate, + DeleteContext: resourceLbDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/lb/lbs_data_source.go b/internal/services/lb/lbs_data_source.go index ccce7fe064..d99270ead7 100644 --- a/internal/services/lb/lbs_data_source.go +++ b/internal/services/lb/lbs_data_source.go @@ -14,7 +14,9 @@ import ( func DataSourceLbs() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceLbsRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceLbsRead, Schema: map[string]*schema.Schema{ "name": { Type: schema.TypeString, diff --git a/internal/services/lb/route.go b/internal/services/lb/route.go index 3025ee0dfe..4b7ae1718e 100644 --- a/internal/services/lb/route.go +++ b/internal/services/lb/route.go @@ -15,10 +15,12 @@ import ( func ResourceRoute() *schema.Resource { return &schema.Resource{ - CreateContext: resourceLbRouteCreate, - ReadContext: resourceLbRouteRead, - UpdateContext: resourceLbRouteUpdate, - DeleteContext: resourceLbRouteDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceLbRouteCreate, + ReadContext: resourceLbRouteRead, + UpdateContext: resourceLbRouteUpdate, + DeleteContext: resourceLbRouteDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/lb/routes_data_source.go b/internal/services/lb/routes_data_source.go index e7e03a02db..2c95c92d18 100644 --- a/internal/services/lb/routes_data_source.go +++ b/internal/services/lb/routes_data_source.go @@ -14,7 +14,9 @@ import ( func DataSourceRoutes() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceLbRoutesRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceLbRoutesRead, Schema: map[string]*schema.Schema{ "frontend_id": { Type: schema.TypeString, diff --git a/internal/services/marketplace/image_data_source.go b/internal/services/marketplace/image_data_source.go index eef6fd8fb2..1cd7494db2 100644 --- a/internal/services/marketplace/image_data_source.go +++ b/internal/services/marketplace/image_data_source.go @@ -14,7 +14,9 @@ import ( func DataSourceImage() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceMarketplaceImageRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceMarketplaceImageRead, Schema: map[string]*schema.Schema{ "label": { Type: schema.TypeString, diff --git a/internal/services/mnq/helpers_mnq_state.go b/internal/services/mnq/helpers_mnq_state.go index 5fa1a05568..0fb6bb84ba 100644 --- a/internal/services/mnq/helpers_mnq_state.go +++ b/internal/services/mnq/helpers_mnq_state.go @@ -11,6 +11,8 @@ import ( func resourceMNQSQSQueueResourceV0() *schema.Resource { return &schema.Resource{ + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, Schema: map[string]*schema.Schema{ "name": { Type: schema.TypeString, diff --git a/internal/services/mnq/nats_account.go b/internal/services/mnq/nats_account.go index d6111ff83c..cbd183956c 100644 --- a/internal/services/mnq/nats_account.go +++ b/internal/services/mnq/nats_account.go @@ -15,10 +15,12 @@ import ( func ResourceNatsAccount() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceMNQNatsAccountCreate, - ReadContext: ResourceMNQNatsAccountRead, - UpdateContext: ResourceMNQNatsAccountUpdate, - DeleteContext: ResourceMNQNatsAccountDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceMNQNatsAccountCreate, + ReadContext: ResourceMNQNatsAccountRead, + UpdateContext: ResourceMNQNatsAccountUpdate, + DeleteContext: ResourceMNQNatsAccountDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/mnq/nats_credentials.go b/internal/services/mnq/nats_credentials.go index 51be2ed5b1..21476a8254 100644 --- a/internal/services/mnq/nats_credentials.go +++ b/internal/services/mnq/nats_credentials.go @@ -16,9 +16,11 @@ import ( func ResourceNatsCredentials() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceMNQNatsCredentialsCreate, - ReadContext: ResourceMNQNatsCredentialsRead, - DeleteContext: ResourceMNQNatsCredentialsDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceMNQNatsCredentialsCreate, + ReadContext: ResourceMNQNatsCredentialsRead, + DeleteContext: ResourceMNQNatsCredentialsDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/mnq/sns.go b/internal/services/mnq/sns.go index ecb6cde9f3..22efc85b27 100644 --- a/internal/services/mnq/sns.go +++ b/internal/services/mnq/sns.go @@ -13,9 +13,11 @@ import ( func ResourceSNS() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceMNQSNSCreate, - ReadContext: ResourceMNQSNSRead, - DeleteContext: ResourceMNQSNSDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceMNQSNSCreate, + ReadContext: ResourceMNQSNSRead, + DeleteContext: ResourceMNQSNSDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/mnq/sns_credentials.go b/internal/services/mnq/sns_credentials.go index bd1286f6ad..ac30191641 100644 --- a/internal/services/mnq/sns_credentials.go +++ b/internal/services/mnq/sns_credentials.go @@ -15,10 +15,12 @@ import ( func ResourceSNSCredentials() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceMNQSNSCredentialsCreate, - ReadContext: ResourceMNQSNSCredentialsRead, - UpdateContext: ResourceMNQSNSCredentialsUpdate, - DeleteContext: ResourceMNQSNSCredentialsDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceMNQSNSCredentialsCreate, + ReadContext: ResourceMNQSNSCredentialsRead, + UpdateContext: ResourceMNQSNSCredentialsUpdate, + DeleteContext: ResourceMNQSNSCredentialsDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/mnq/sns_topic.go b/internal/services/mnq/sns_topic.go index dc58ec9ed5..89ee1c2ed6 100644 --- a/internal/services/mnq/sns_topic.go +++ b/internal/services/mnq/sns_topic.go @@ -16,10 +16,12 @@ import ( func ResourceSNSTopic() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceMNQSNSTopicCreate, - ReadContext: ResourceMNQSNSTopicRead, - UpdateContext: ResourceMNQSNSTopicUpdate, - DeleteContext: ResourceMNQSNSTopicDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceMNQSNSTopicCreate, + ReadContext: ResourceMNQSNSTopicRead, + UpdateContext: ResourceMNQSNSTopicUpdate, + DeleteContext: ResourceMNQSNSTopicDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/mnq/sns_topic_subscription.go b/internal/services/mnq/sns_topic_subscription.go index ce6e259a5c..46a6bfc695 100644 --- a/internal/services/mnq/sns_topic_subscription.go +++ b/internal/services/mnq/sns_topic_subscription.go @@ -18,9 +18,11 @@ import ( func ResourceSNSTopicSubscription() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceMNQSNSTopicSubscriptionCreate, - ReadContext: ResourceMNQSNSTopicSubscriptionRead, - DeleteContext: ResourceMNQSNSTopicSubscriptionDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceMNQSNSTopicSubscriptionCreate, + ReadContext: ResourceMNQSNSTopicSubscriptionRead, + DeleteContext: ResourceMNQSNSTopicSubscriptionDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/mnq/sqs.go b/internal/services/mnq/sqs.go index b0eeaf0ca4..cbdddd40d8 100644 --- a/internal/services/mnq/sqs.go +++ b/internal/services/mnq/sqs.go @@ -13,9 +13,11 @@ import ( func ResourceSQS() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceMNQSQSCreate, - ReadContext: ResourceMNQSQSRead, - DeleteContext: ResourceMNQSQSDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceMNQSQSCreate, + ReadContext: ResourceMNQSQSRead, + DeleteContext: ResourceMNQSQSDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/mnq/sqs_credentials.go b/internal/services/mnq/sqs_credentials.go index 7fb871b693..818c643ea9 100644 --- a/internal/services/mnq/sqs_credentials.go +++ b/internal/services/mnq/sqs_credentials.go @@ -15,10 +15,12 @@ import ( func ResourceSQSCredentials() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceMNQSQSCredentialsCreate, - ReadContext: ResourceMNQSQSCredentialsRead, - UpdateContext: ResourceMNQSQSCredentialsUpdate, - DeleteContext: ResourceMNQSQSCredentialsDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceMNQSQSCredentialsCreate, + ReadContext: ResourceMNQSQSCredentialsRead, + UpdateContext: ResourceMNQSQSCredentialsUpdate, + DeleteContext: ResourceMNQSQSCredentialsDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/mnq/sqs_queue.go b/internal/services/mnq/sqs_queue.go index 0ee1048a2a..7d1850ed3d 100644 --- a/internal/services/mnq/sqs_queue.go +++ b/internal/services/mnq/sqs_queue.go @@ -19,10 +19,12 @@ import ( func ResourceSQSQueue() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceMNQSQSQueueCreate, - ReadContext: ResourceMNQSQSQueueRead, - UpdateContext: ResourceMNQSQSQueueUpdate, - DeleteContext: ResourceMNQSQSQueueDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceMNQSQSQueueCreate, + ReadContext: ResourceMNQSQSQueueRead, + UpdateContext: ResourceMNQSQSQueueUpdate, + DeleteContext: ResourceMNQSQSQueueDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/mongodb/instance.go b/internal/services/mongodb/instance.go index a6b2907165..2b022e259c 100644 --- a/internal/services/mongodb/instance.go +++ b/internal/services/mongodb/instance.go @@ -22,10 +22,12 @@ import ( func ResourceInstance() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceInstanceCreate, - ReadContext: ResourceInstanceRead, - UpdateContext: ResourceInstanceUpdate, - DeleteContext: ResourceInstanceDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceInstanceCreate, + ReadContext: ResourceInstanceRead, + UpdateContext: ResourceInstanceUpdate, + DeleteContext: ResourceInstanceDelete, Timeouts: &schema.ResourceTimeout{ Create: schema.DefaultTimeout(defaultMongodbInstanceTimeout), Update: schema.DefaultTimeout(defaultMongodbInstanceTimeout), diff --git a/internal/services/mongodb/snapshot.go b/internal/services/mongodb/snapshot.go index ef29e21169..d6820fe573 100644 --- a/internal/services/mongodb/snapshot.go +++ b/internal/services/mongodb/snapshot.go @@ -17,10 +17,12 @@ import ( func ResourceSnapshot() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceSnapshotCreate, - ReadContext: ResourceSnapshotRead, - UpdateContext: ResourceSnapshotUpdate, - DeleteContext: ResourceSnapshotDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceSnapshotCreate, + ReadContext: ResourceSnapshotRead, + UpdateContext: ResourceSnapshotUpdate, + DeleteContext: ResourceSnapshotDelete, Timeouts: &schema.ResourceTimeout{ Create: schema.DefaultTimeout(defaultMongodbSnapshotTimeout), Update: schema.DefaultTimeout(defaultMongodbSnapshotTimeout), diff --git a/internal/services/object/bucket.go b/internal/services/object/bucket.go index eaf90a01f9..63ea58eeb5 100644 --- a/internal/services/object/bucket.go +++ b/internal/services/object/bucket.go @@ -21,10 +21,12 @@ import ( func ResourceBucket() *schema.Resource { return &schema.Resource{ - CreateContext: resourceObjectBucketCreate, - ReadContext: resourceObjectBucketRead, - UpdateContext: resourceObjectBucketUpdate, - DeleteContext: resourceObjectBucketDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceObjectBucketCreate, + ReadContext: resourceObjectBucketRead, + UpdateContext: resourceObjectBucketUpdate, + DeleteContext: resourceObjectBucketDelete, Timeouts: &schema.ResourceTimeout{ Default: schema.DefaultTimeout(defaultObjectBucketTimeout), }, diff --git a/internal/services/object/bucket_acl.go b/internal/services/object/bucket_acl.go index 22ae460198..e87f2aa35c 100644 --- a/internal/services/object/bucket_acl.go +++ b/internal/services/object/bucket_acl.go @@ -27,10 +27,12 @@ const ( func ResourceBucketACL() *schema.Resource { return &schema.Resource{ - CreateContext: resourceBucketACLCreate, - ReadContext: resourceBucketACLRead, - UpdateContext: resourceBucketACLUpdate, - DeleteContext: resourceBucketACLDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceBucketACLCreate, + ReadContext: resourceBucketACLRead, + UpdateContext: resourceBucketACLUpdate, + DeleteContext: resourceBucketACLDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/object/bucket_lock_configuration.go b/internal/services/object/bucket_lock_configuration.go index 0ac755491c..cbddbd8972 100644 --- a/internal/services/object/bucket_lock_configuration.go +++ b/internal/services/object/bucket_lock_configuration.go @@ -19,10 +19,12 @@ import ( func ResourceLockConfiguration() *schema.Resource { return &schema.Resource{ - CreateContext: resourceObjectLockConfigurationCreate, - ReadContext: resourceObjectLockConfigurationRead, - UpdateContext: resourceObjectLockConfigurationUpdate, - DeleteContext: resourceObjectLockConfigurationDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceObjectLockConfigurationCreate, + ReadContext: resourceObjectLockConfigurationRead, + UpdateContext: resourceObjectLockConfigurationUpdate, + DeleteContext: resourceObjectLockConfigurationDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/object/bucket_policy.go b/internal/services/object/bucket_policy.go index e8c844de3a..dc93f22de4 100644 --- a/internal/services/object/bucket_policy.go +++ b/internal/services/object/bucket_policy.go @@ -21,10 +21,12 @@ import ( func ResourceBucketPolicy() *schema.Resource { return &schema.Resource{ - CreateContext: resourceObjectBucketPolicyCreate, - ReadContext: resourceObjectBucketPolicyRead, - UpdateContext: resourceObjectBucketPolicyCreate, - DeleteContext: resourceObjectBucketPolicyDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceObjectBucketPolicyCreate, + ReadContext: resourceObjectBucketPolicyRead, + UpdateContext: resourceObjectBucketPolicyCreate, + DeleteContext: resourceObjectBucketPolicyDelete, Timeouts: &schema.ResourceTimeout{ Default: schema.DefaultTimeout(defaultObjectBucketTimeout), }, diff --git a/internal/services/object/bucket_website_configuration.go b/internal/services/object/bucket_website_configuration.go index af0e64a74e..fe059475ba 100644 --- a/internal/services/object/bucket_website_configuration.go +++ b/internal/services/object/bucket_website_configuration.go @@ -19,10 +19,12 @@ import ( func ResourceBucketWebsiteConfiguration() *schema.Resource { return &schema.Resource{ - CreateContext: resourceBucketWebsiteConfigurationCreate, - ReadContext: resourceBucketWebsiteConfigurationRead, - UpdateContext: resourceBucketWebsiteConfigurationUpdate, - DeleteContext: resourceBucketWebsiteConfigurationDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceBucketWebsiteConfigurationCreate, + ReadContext: resourceBucketWebsiteConfigurationRead, + UpdateContext: resourceBucketWebsiteConfigurationUpdate, + DeleteContext: resourceBucketWebsiteConfigurationDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/object/object.go b/internal/services/object/object.go index c1e7893952..38f21bcc52 100644 --- a/internal/services/object/object.go +++ b/internal/services/object/object.go @@ -25,10 +25,12 @@ import ( func ResourceObject() *schema.Resource { return &schema.Resource{ - CreateContext: resourceObjectCreate, - ReadContext: resourceObjectRead, - UpdateContext: resourceObjectUpdate, - DeleteContext: resourceObjectDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceObjectCreate, + ReadContext: resourceObjectRead, + UpdateContext: resourceObjectUpdate, + DeleteContext: resourceObjectDelete, Timeouts: &schema.ResourceTimeout{ Default: schema.DefaultTimeout(defaultObjectBucketTimeout), Create: schema.DefaultTimeout(defaultObjectBucketTimeout), diff --git a/internal/services/rdb/acl.go b/internal/services/rdb/acl.go index 9de1cf84e7..652bb14da0 100644 --- a/internal/services/rdb/acl.go +++ b/internal/services/rdb/acl.go @@ -23,10 +23,12 @@ import ( func ResourceACL() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceACLCreate, - ReadContext: ResourceRdbACLRead, - UpdateContext: ResourceACLUpdate, - DeleteContext: ResourceACLDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceACLCreate, + ReadContext: ResourceRdbACLRead, + UpdateContext: ResourceACLUpdate, + DeleteContext: ResourceACLDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/rdb/database.go b/internal/services/rdb/database.go index a2652832f8..1b25d713a9 100644 --- a/internal/services/rdb/database.go +++ b/internal/services/rdb/database.go @@ -20,9 +20,11 @@ import ( func ResourceDatabase() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceRdbDatabaseCreate, - ReadContext: ResourceRdbDatabaseRead, - DeleteContext: ResourceRdbDatabaseDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceRdbDatabaseCreate, + ReadContext: ResourceRdbDatabaseRead, + DeleteContext: ResourceRdbDatabaseDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/rdb/database_backup.go b/internal/services/rdb/database_backup.go index 216fe27a79..254ffafc0b 100644 --- a/internal/services/rdb/database_backup.go +++ b/internal/services/rdb/database_backup.go @@ -18,10 +18,12 @@ import ( func ResourceDatabaseBackup() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceRdbDatabaseBackupCreate, - ReadContext: ResourceRdbDatabaseBackupRead, - UpdateContext: ResourceRdbDatabaseBackupUpdate, - DeleteContext: ResourceRdbDatabaseBackupDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceRdbDatabaseBackupCreate, + ReadContext: ResourceRdbDatabaseBackupRead, + UpdateContext: ResourceRdbDatabaseBackupUpdate, + DeleteContext: ResourceRdbDatabaseBackupDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/rdb/instance.go b/internal/services/rdb/instance.go index 0d1f9793f4..fec4f9e31d 100644 --- a/internal/services/rdb/instance.go +++ b/internal/services/rdb/instance.go @@ -27,10 +27,12 @@ import ( func ResourceInstance() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceRdbInstanceCreate, - ReadContext: ResourceRdbInstanceRead, - UpdateContext: ResourceRdbInstanceUpdate, - DeleteContext: ResourceRdbInstanceDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceRdbInstanceCreate, + ReadContext: ResourceRdbInstanceRead, + UpdateContext: ResourceRdbInstanceUpdate, + DeleteContext: ResourceRdbInstanceDelete, Timeouts: &schema.ResourceTimeout{ Create: schema.DefaultTimeout(defaultInstanceTimeout), Read: schema.DefaultTimeout(defaultInstanceTimeout), diff --git a/internal/services/rdb/privilege.go b/internal/services/rdb/privilege.go index e7f35adb22..b08110eb68 100644 --- a/internal/services/rdb/privilege.go +++ b/internal/services/rdb/privilege.go @@ -19,10 +19,12 @@ import ( func ResourcePrivilege() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceRdbPrivilegeCreate, - ReadContext: ResourceRdbPrivilegeRead, - DeleteContext: ResourceRdbPrivilegeDelete, - UpdateContext: ResourceRdbPrivilegeUpdate, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceRdbPrivilegeCreate, + ReadContext: ResourceRdbPrivilegeRead, + DeleteContext: ResourceRdbPrivilegeDelete, + UpdateContext: ResourceRdbPrivilegeUpdate, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/rdb/read_replica.go b/internal/services/rdb/read_replica.go index 9bbb62f6a9..f17e35b916 100644 --- a/internal/services/rdb/read_replica.go +++ b/internal/services/rdb/read_replica.go @@ -21,10 +21,12 @@ import ( func ResourceReadReplica() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceRdbReadReplicaCreate, - ReadContext: ResourceRdbReadReplicaRead, - UpdateContext: ResourceRdbReadReplicaUpdate, - DeleteContext: ResourceRdbReadReplicaDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceRdbReadReplicaCreate, + ReadContext: ResourceRdbReadReplicaRead, + UpdateContext: ResourceRdbReadReplicaUpdate, + DeleteContext: ResourceRdbReadReplicaDelete, Timeouts: &schema.ResourceTimeout{ Create: schema.DefaultTimeout(defaultInstanceTimeout), Read: schema.DefaultTimeout(defaultInstanceTimeout), diff --git a/internal/services/rdb/snapshots.go b/internal/services/rdb/snapshots.go index 26b03b026c..621f2b24c4 100644 --- a/internal/services/rdb/snapshots.go +++ b/internal/services/rdb/snapshots.go @@ -17,10 +17,12 @@ import ( func ResourceSnapshot() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceRdbSnapshotCreate, - ReadContext: ResourceRdbSnapshotRead, - UpdateContext: ResourceRdbSnapshotUpdate, - DeleteContext: ResourceRdbSnapshotDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceRdbSnapshotCreate, + ReadContext: ResourceRdbSnapshotRead, + UpdateContext: ResourceRdbSnapshotUpdate, + DeleteContext: ResourceRdbSnapshotDelete, Timeouts: &schema.ResourceTimeout{ Create: schema.DefaultTimeout(defaultInstanceTimeout), Read: schema.DefaultTimeout(defaultInstanceTimeout), diff --git a/internal/services/rdb/user.go b/internal/services/rdb/user.go index 5588df48bf..31648d1b68 100644 --- a/internal/services/rdb/user.go +++ b/internal/services/rdb/user.go @@ -21,10 +21,12 @@ import ( func ResourceUser() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceUserCreate, - ReadContext: ResourceUserRead, - UpdateContext: ResourceUserUpdate, - DeleteContext: ResourceUserDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceUserCreate, + ReadContext: ResourceUserRead, + UpdateContext: ResourceUserUpdate, + DeleteContext: ResourceUserDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/redis/cluster.go b/internal/services/redis/cluster.go index 1a373876a1..0aefa5e1c4 100644 --- a/internal/services/redis/cluster.go +++ b/internal/services/redis/cluster.go @@ -28,10 +28,12 @@ import ( func ResourceCluster() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceClusterCreate, - ReadContext: ResourceClusterRead, - UpdateContext: ResourceClusterUpdate, - DeleteContext: ResourceClusterDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceClusterCreate, + ReadContext: ResourceClusterRead, + UpdateContext: ResourceClusterUpdate, + DeleteContext: ResourceClusterDelete, Timeouts: &schema.ResourceTimeout{ Create: schema.DefaultTimeout(defaultRedisClusterTimeout), Update: schema.DefaultTimeout(defaultRedisClusterTimeout), diff --git a/internal/services/registry/image_data_source.go b/internal/services/registry/image_data_source.go index bcc91eff5d..0aa7b03fdb 100644 --- a/internal/services/registry/image_data_source.go +++ b/internal/services/registry/image_data_source.go @@ -17,7 +17,9 @@ import ( func DataSourceImage() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceRegistryImageRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceRegistryImageRead, Schema: map[string]*schema.Schema{ "name": { diff --git a/internal/services/registry/namespace.go b/internal/services/registry/namespace.go index e297ffae88..62200c54a9 100644 --- a/internal/services/registry/namespace.go +++ b/internal/services/registry/namespace.go @@ -15,10 +15,12 @@ import ( func ResourceNamespace() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceNamespaceCreate, - ReadContext: ResourceNamespaceRead, - UpdateContext: ResourceNamespaceUpdate, - DeleteContext: ResourceNamespaceDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceNamespaceCreate, + ReadContext: ResourceNamespaceRead, + UpdateContext: ResourceNamespaceUpdate, + DeleteContext: ResourceNamespaceDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/registry/tag_data_source.go b/internal/services/registry/tag_data_source.go index 3f3bd7d684..d45b4a4542 100644 --- a/internal/services/registry/tag_data_source.go +++ b/internal/services/registry/tag_data_source.go @@ -17,7 +17,9 @@ import ( func DataSourceImageTag() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceImageTagRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceImageTagRead, Schema: map[string]*schema.Schema{ "tag_id": { diff --git a/internal/services/scwconfig/scw_config_data_source.go b/internal/services/scwconfig/scw_config_data_source.go index a25e3fe7a4..d23f82698a 100644 --- a/internal/services/scwconfig/scw_config_data_source.go +++ b/internal/services/scwconfig/scw_config_data_source.go @@ -10,7 +10,9 @@ import ( func DataSourceConfig() *schema.Resource { return &schema.Resource{ - ReadContext: dataSourceConfigRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: dataSourceConfigRead, Schema: map[string]*schema.Schema{ "project_id": { Type: schema.TypeString, diff --git a/internal/services/sdb/database.go b/internal/services/sdb/database.go index 0655e5422e..4121cb00ca 100644 --- a/internal/services/sdb/database.go +++ b/internal/services/sdb/database.go @@ -15,10 +15,12 @@ import ( func ResourceDatabase() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceDatabaseCreate, - ReadContext: ResourceDatabaseRead, - UpdateContext: ResourceDatabaseUpdate, - DeleteContext: ResourceDatabaseDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceDatabaseCreate, + ReadContext: ResourceDatabaseRead, + UpdateContext: ResourceDatabaseUpdate, + DeleteContext: ResourceDatabaseDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/secret/secret.go b/internal/services/secret/secret.go index 1230e1b35e..15a4e20a02 100644 --- a/internal/services/secret/secret.go +++ b/internal/services/secret/secret.go @@ -19,10 +19,12 @@ import ( func ResourceSecret() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceSecretCreate, - ReadContext: ResourceSecretRead, - UpdateContext: ResourceSecretUpdate, - DeleteContext: ResourceSecretDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceSecretCreate, + ReadContext: ResourceSecretRead, + UpdateContext: ResourceSecretUpdate, + DeleteContext: ResourceSecretDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/secret/version.go b/internal/services/secret/version.go index 4e7df0fd0e..037c71e4da 100644 --- a/internal/services/secret/version.go +++ b/internal/services/secret/version.go @@ -18,10 +18,12 @@ import ( func ResourceVersion() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceVersionCreate, - ReadContext: ResourceVersionRead, - UpdateContext: ResourceVersionUpdate, - DeleteContext: ResourceVersionDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceVersionCreate, + ReadContext: ResourceVersionRead, + UpdateContext: ResourceVersionUpdate, + DeleteContext: ResourceVersionDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/tem/blockedlist.go b/internal/services/tem/blockedlist.go index 0da0fef3ae..1a2ee72eca 100644 --- a/internal/services/tem/blockedlist.go +++ b/internal/services/tem/blockedlist.go @@ -16,9 +16,11 @@ import ( func ResourceBlockedList() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceBlockedListCreate, - ReadContext: ResourceBlockedListRead, - DeleteContext: ResourceBlockedListDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceBlockedListCreate, + ReadContext: ResourceBlockedListRead, + DeleteContext: ResourceBlockedListDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/tem/domain.go b/internal/services/tem/domain.go index 9473e6adfa..6a108d1d2b 100644 --- a/internal/services/tem/domain.go +++ b/internal/services/tem/domain.go @@ -17,10 +17,12 @@ import ( func ResourceDomain() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceDomainCreate, - ReadContext: ResourceDomainRead, - UpdateContext: ResourceDomainUpdate, - DeleteContext: ResourceDomainDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceDomainCreate, + ReadContext: ResourceDomainRead, + UpdateContext: ResourceDomainUpdate, + DeleteContext: ResourceDomainDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/tem/domain_validation.go b/internal/services/tem/domain_validation.go index b25302927a..55a06a6aa3 100644 --- a/internal/services/tem/domain_validation.go +++ b/internal/services/tem/domain_validation.go @@ -17,9 +17,11 @@ import ( func ResourceDomainValidation() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceDomainValidationCreate, - ReadContext: ResourceDomainValidationRead, - DeleteContext: ResourceDomainValidationDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceDomainValidationCreate, + ReadContext: ResourceDomainValidationRead, + DeleteContext: ResourceDomainValidationDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/tem/offer_subscription_data_source.go b/internal/services/tem/offer_subscription_data_source.go index 2eaf552ff1..896bd28274 100644 --- a/internal/services/tem/offer_subscription_data_source.go +++ b/internal/services/tem/offer_subscription_data_source.go @@ -15,7 +15,9 @@ import ( func DataSourceOfferSubscription() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceOfferSubscriptionRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceOfferSubscriptionRead, Schema: map[string]*schema.Schema{ "region": regional.Schema(), "project_id": account.ProjectIDSchema(), diff --git a/internal/services/tem/webhook.go b/internal/services/tem/webhook.go index 4150eb1d2c..b426c31530 100644 --- a/internal/services/tem/webhook.go +++ b/internal/services/tem/webhook.go @@ -16,10 +16,12 @@ import ( func ResourceWebhook() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceWebhookCreate, - ReadContext: ResourceWebhookRead, - UpdateContext: ResourceWebhookUpdate, - DeleteContext: ResourceWebhookDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceWebhookCreate, + ReadContext: ResourceWebhookRead, + UpdateContext: ResourceWebhookUpdate, + DeleteContext: ResourceWebhookDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/vpc/acl.go b/internal/services/vpc/acl.go index 25c220b642..e611e33d4a 100644 --- a/internal/services/vpc/acl.go +++ b/internal/services/vpc/acl.go @@ -15,10 +15,12 @@ import ( func ResourceACL() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceVPCACLCreate, - ReadContext: ResourceVPCACLRead, - UpdateContext: ResourceVPCACLUpdate, - DeleteContext: ResourceVPCACLDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceVPCACLCreate, + ReadContext: ResourceVPCACLRead, + UpdateContext: ResourceVPCACLUpdate, + DeleteContext: ResourceVPCACLDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/vpc/private_network.go b/internal/services/vpc/private_network.go index b4b3e7dfe9..b7eda8cc4e 100644 --- a/internal/services/vpc/private_network.go +++ b/internal/services/vpc/private_network.go @@ -20,10 +20,12 @@ import ( func ResourcePrivateNetwork() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceVPCPrivateNetworkCreate, - ReadContext: ResourceVPCPrivateNetworkRead, - UpdateContext: ResourceVPCPrivateNetworkUpdate, - DeleteContext: ResourceVPCPrivateNetworkDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceVPCPrivateNetworkCreate, + ReadContext: ResourceVPCPrivateNetworkRead, + UpdateContext: ResourceVPCPrivateNetworkUpdate, + DeleteContext: ResourceVPCPrivateNetworkDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/vpc/route.go b/internal/services/vpc/route.go index 342ee1b494..99a3cfaeec 100644 --- a/internal/services/vpc/route.go +++ b/internal/services/vpc/route.go @@ -16,10 +16,12 @@ import ( func ResourceRoute() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceRouteCreate, - ReadContext: ResourceRouteRead, - UpdateContext: ResourceRouteUpdate, - DeleteContext: ResourceRouteDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceRouteCreate, + ReadContext: ResourceRouteRead, + UpdateContext: ResourceRouteUpdate, + DeleteContext: ResourceRouteDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/vpc/routes_data_source.go b/internal/services/vpc/routes_data_source.go index 7d789eede9..07f55e93d6 100644 --- a/internal/services/vpc/routes_data_source.go +++ b/internal/services/vpc/routes_data_source.go @@ -15,7 +15,9 @@ import ( func DataSourceRoutes() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceRoutesRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceRoutesRead, Schema: map[string]*schema.Schema{ "vpc_id": { Type: schema.TypeString, diff --git a/internal/services/vpc/vpc.go b/internal/services/vpc/vpc.go index 2b98fdb89f..52c7e8044b 100644 --- a/internal/services/vpc/vpc.go +++ b/internal/services/vpc/vpc.go @@ -16,10 +16,12 @@ import ( func ResourceVPC() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceVPCCreate, - ReadContext: ResourceVPCRead, - UpdateContext: ResourceVPCUpdate, - DeleteContext: ResourceVPCDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceVPCCreate, + ReadContext: ResourceVPCRead, + UpdateContext: ResourceVPCUpdate, + DeleteContext: ResourceVPCDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/vpc/vpcs_data_source.go b/internal/services/vpc/vpcs_data_source.go index a886ec42f3..4879a77f1b 100644 --- a/internal/services/vpc/vpcs_data_source.go +++ b/internal/services/vpc/vpcs_data_source.go @@ -14,7 +14,9 @@ import ( func DataSourceVPCs() *schema.Resource { return &schema.Resource{ - ReadContext: DataSourceVPCsRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: DataSourceVPCsRead, Schema: map[string]*schema.Schema{ "name": { Type: schema.TypeString, diff --git a/internal/services/vpcgw/dhcp.go b/internal/services/vpcgw/dhcp.go index d9ef1c40ea..9019be6d0a 100644 --- a/internal/services/vpcgw/dhcp.go +++ b/internal/services/vpcgw/dhcp.go @@ -18,10 +18,12 @@ import ( func ResourceDHCP() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceVPCPublicGatewayDHCPCreate, - ReadContext: ResourceVPCPublicGatewayDHCPRead, - UpdateContext: ResourceVPCPublicGatewayDHCPUpdate, - DeleteContext: ResourceVPCPublicGatewayDHCPDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceVPCPublicGatewayDHCPCreate, + ReadContext: ResourceVPCPublicGatewayDHCPRead, + UpdateContext: ResourceVPCPublicGatewayDHCPUpdate, + DeleteContext: ResourceVPCPublicGatewayDHCPDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/vpcgw/dhcp_reservation.go b/internal/services/vpcgw/dhcp_reservation.go index 905e825860..c04d0847eb 100644 --- a/internal/services/vpcgw/dhcp_reservation.go +++ b/internal/services/vpcgw/dhcp_reservation.go @@ -19,10 +19,12 @@ import ( func ResourceDHCPReservation() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceVPCPublicGatewayDHCPCReservationCreate, - ReadContext: ResourceVPCPublicGatewayDHCPReservationRead, - UpdateContext: ResourceVPCPublicGatewayDHCPReservationUpdate, - DeleteContext: ResourceVPCPublicGatewayDHCPReservationDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceVPCPublicGatewayDHCPCReservationCreate, + ReadContext: ResourceVPCPublicGatewayDHCPReservationRead, + UpdateContext: ResourceVPCPublicGatewayDHCPReservationUpdate, + DeleteContext: ResourceVPCPublicGatewayDHCPReservationDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/vpcgw/ip.go b/internal/services/vpcgw/ip.go index 8e7513b07b..b53b72d4c8 100644 --- a/internal/services/vpcgw/ip.go +++ b/internal/services/vpcgw/ip.go @@ -16,10 +16,12 @@ import ( func ResourceIP() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceIPCreate, - ReadContext: ResourceIPRead, - UpdateContext: ResourceVPCPublicGatewayIPUpdate, - DeleteContext: ResourceVPCPublicGatewayIPDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceIPCreate, + ReadContext: ResourceIPRead, + UpdateContext: ResourceVPCPublicGatewayIPUpdate, + DeleteContext: ResourceVPCPublicGatewayIPDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/vpcgw/ip_reverse.go b/internal/services/vpcgw/ip_reverse.go index f9a857e738..80a9049b81 100644 --- a/internal/services/vpcgw/ip_reverse.go +++ b/internal/services/vpcgw/ip_reverse.go @@ -17,10 +17,12 @@ import ( func ResourceIPReverseDNS() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceVPCPublicGatewayIPReverseDNSCreate, - ReadContext: ResourceVPCPublicGatewayIPReverseDNSRead, - UpdateContext: ResourceVPCPublicGatewayIPReverseDNSUpdate, - DeleteContext: ResourceVPCPublicGatewayIPReverseDNSDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceVPCPublicGatewayIPReverseDNSCreate, + ReadContext: ResourceVPCPublicGatewayIPReverseDNSRead, + UpdateContext: ResourceVPCPublicGatewayIPReverseDNSUpdate, + DeleteContext: ResourceVPCPublicGatewayIPReverseDNSDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/vpcgw/network.go b/internal/services/vpcgw/network.go index 485ad80e37..b9513dd511 100644 --- a/internal/services/vpcgw/network.go +++ b/internal/services/vpcgw/network.go @@ -21,10 +21,12 @@ import ( func ResourceNetwork() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceVPCGatewayNetworkCreate, - ReadContext: ResourceVPCGatewayNetworkRead, - UpdateContext: ResourceVPCGatewayNetworkUpdate, - DeleteContext: ResourceVPCGatewayNetworkDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceVPCGatewayNetworkCreate, + ReadContext: ResourceVPCGatewayNetworkRead, + UpdateContext: ResourceVPCGatewayNetworkUpdate, + DeleteContext: ResourceVPCGatewayNetworkDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/vpcgw/pat_rule.go b/internal/services/vpcgw/pat_rule.go index 3ab9e6238f..b4093309a2 100644 --- a/internal/services/vpcgw/pat_rule.go +++ b/internal/services/vpcgw/pat_rule.go @@ -20,10 +20,12 @@ import ( func ResourcePATRule() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceVPCPublicGatewayPATRuleCreate, - ReadContext: ResourceVPCPublicGatewayPATRuleRead, - UpdateContext: ResourceVPCPublicGatewayPATRuleUpdate, - DeleteContext: ResourceVPCPublicGatewayPATRuleDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceVPCPublicGatewayPATRuleCreate, + ReadContext: ResourceVPCPublicGatewayPATRuleRead, + UpdateContext: ResourceVPCPublicGatewayPATRuleUpdate, + DeleteContext: ResourceVPCPublicGatewayPATRuleDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/vpcgw/public_gateway.go b/internal/services/vpcgw/public_gateway.go index c8739a929a..1731df5b4f 100644 --- a/internal/services/vpcgw/public_gateway.go +++ b/internal/services/vpcgw/public_gateway.go @@ -18,10 +18,12 @@ import ( func ResourcePublicGateway() *schema.Resource { return &schema.Resource{ - CreateContext: ResourceVPCPublicGatewayCreate, - ReadContext: ResourceVPCPublicGatewayRead, - UpdateContext: ResourceVPCPublicGatewayUpdate, - DeleteContext: ResourceVPCPublicGatewayDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: ResourceVPCPublicGatewayCreate, + ReadContext: ResourceVPCPublicGatewayRead, + UpdateContext: ResourceVPCPublicGatewayUpdate, + DeleteContext: ResourceVPCPublicGatewayDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, }, diff --git a/internal/services/webhosting/offer_data_source.go b/internal/services/webhosting/offer_data_source.go index 5160d0f6f5..e2cb520d1a 100644 --- a/internal/services/webhosting/offer_data_source.go +++ b/internal/services/webhosting/offer_data_source.go @@ -16,7 +16,9 @@ import ( func DataSourceOffer() *schema.Resource { return &schema.Resource{ - ReadContext: dataSourceOfferRead, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + ReadContext: dataSourceOfferRead, Schema: map[string]*schema.Schema{ "name": { Type: schema.TypeString, diff --git a/internal/services/webhosting/webhosting.go b/internal/services/webhosting/webhosting.go index 838beb01f5..bac43da402 100644 --- a/internal/services/webhosting/webhosting.go +++ b/internal/services/webhosting/webhosting.go @@ -16,10 +16,12 @@ import ( func ResourceWebhosting() *schema.Resource { return &schema.Resource{ - CreateContext: resourceWebhostingCreate, - ReadContext: resourceWebhostingRead, - UpdateContext: resourceWebhostingUpdate, - DeleteContext: resourceHostingDelete, + EnableLegacyTypeSystemApplyErrors: true, + EnableLegacyTypeSystemPlanErrors: true, + CreateContext: resourceWebhostingCreate, + ReadContext: resourceWebhostingRead, + UpdateContext: resourceWebhostingUpdate, + DeleteContext: resourceHostingDelete, Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, },