Skip to content

Commit

Permalink
add resource of dws
Browse files Browse the repository at this point in the history
  • Loading branch information
zengchen1024 committed Dec 29, 2018
1 parent d196df3 commit 605d5d4
Show file tree
Hide file tree
Showing 9 changed files with 1,161 additions and 3 deletions.
10 changes: 10 additions & 0 deletions huaweicloud/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,3 +500,13 @@ func (c *Config) dcsV1Client(region string) (*golangsdk.ServiceClient, error) {
Availability: c.getHwEndpointType(),
})
}

func (c *Config) sdkClient(region, serviceType string) (*golangsdk.ServiceClient, error) {
return huaweisdk.NewSDKClient(
c.HwClient,
golangsdk.EndpointOpts{
Region: c.determineRegion(region),
Availability: c.getHwEndpointType(),
},
serviceType)
}
1 change: 1 addition & 0 deletions huaweicloud/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ func Provider() terraform.ResourceProvider {
"huaweicloud_vbs_backup_v2": resourceVBSBackupV2(),
"huaweicloud_cts_tracker_v1": resourceCTSTrackerV1(),
"huaweicloud_maas_task_v1": resourceMaasTaskV1(),
"huaweicloud_dws_cluster": resourceDwsCluster(),
},

ConfigureFunc: configureProvider,
Expand Down
Loading

0 comments on commit 605d5d4

Please sign in to comment.