@@ -205,7 +205,7 @@ func resourceTencentCloudMariadbHourDbInstanceCreate(d *schema.ResourceData, met
205205 if tags := helper .GetTags (d , "tags" ); len (tags ) > 0 {
206206 tagService := svctag .NewTagService (meta .(tccommon.ProviderMeta ).GetAPIV3Conn ())
207207 region := meta .(tccommon.ProviderMeta ).GetAPIV3Conn ().Region
208- resourceName := fmt .Sprintf ("qcs::mariadb:%s:uin/:mariadb-hour- instance/%s" , region , instanceId )
208+ resourceName := fmt .Sprintf ("qcs::mariadb:%s:uin/:instance/%s" , region , instanceId )
209209 if err = tagService .ModifyTags (ctx , resourceName , tags , nil ); err != nil {
210210 return err
211211 }
@@ -282,7 +282,7 @@ func resourceTencentCloudMariadbHourDbInstanceRead(d *schema.ResourceData, meta
282282
283283 tcClient := meta .(tccommon.ProviderMeta ).GetAPIV3Conn ()
284284 tagService := svctag .NewTagService (tcClient )
285- tags , err := tagService .DescribeResourceTags (ctx , "mariadb" , "mariadb-hour- instance" , tcClient .Region , instanceId )
285+ tags , err := tagService .DescribeResourceTags (ctx , "mariadb" , "instance" , tcClient .Region , instanceId )
286286 if err != nil {
287287 return err
288288 }
@@ -360,7 +360,7 @@ func resourceTencentCloudMariadbHourDbInstanceUpdate(d *schema.ResourceData, met
360360 tagService := svctag .NewTagService (tcClient )
361361 oldTags , newTags := d .GetChange ("tags" )
362362 replaceTags , deleteTags := svctag .DiffTags (oldTags .(map [string ]interface {}), newTags .(map [string ]interface {}))
363- resourceName := tccommon .BuildTagResourceName ("mariadb" , "mariadb-hour- instance" , tcClient .Region , d .Id ())
363+ resourceName := tccommon .BuildTagResourceName ("mariadb" , "instance" , tcClient .Region , d .Id ())
364364 if err := tagService .ModifyTags (ctx , resourceName , replaceTags , deleteTags ); err != nil {
365365 return err
366366 }
0 commit comments