Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(postgresql): [118168928] resource tencentcloud_postgresql_readonly_instance support tags params #2691

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

SevenEarth
Copy link
Collaborator

No description provided.

@SevenEarth SevenEarth changed the title fix(postgresql): [] resource tencentcloud_postgresql_readonly_instance support tags params fix(postgresql): [118168928] resource tencentcloud_postgresql_readonly_instance support tags params Jun 25, 2024
@SevenEarth SevenEarth added the run check run check label Jun 25, 2024
@SevenEarth SevenEarth added run check run check and removed run check run check labels Jun 25, 2024
@SevenEarth SevenEarth added run check run check and removed run check run check labels Jun 26, 2024
//},
"tags": {
Type: schema.TypeMap,
Optional: true,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里最好加上Computed

client := meta.(tccommon.ProviderMeta).GetAPIV3Conn()
tagService := svctag.NewTagService(client)
region := client.Region
tags, err := tagService.DescribeResourceTags(ctx, "postgres", "DBInstanceId", region, d.Id())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这儿可能会带来一个问题,当前账号没有这个接口的权限,read就会报错了,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run check run check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants