aliyun / terraform-provider-alicloud

Terraform AliCloud provider
https://www.terraform.io/docs/providers/alicloud/
Mozilla Public License 2.0
584 stars 548 forks source link

DescribeDomainRecordInfo fails although it works from CLI #1699

Open Ghost---Shadow opened 4 years ago

Ghost---Shadow commented 4 years ago
Terraform v0.12.9
+ provider.alicloud v1.57.0
+ provider.local v1.3.0
+ provider.template v2.1.2

Please apply the same fix as this ticket https://github.com/terraform-providers/terraform-provider-alicloud/issues/1618

But for

Error: [ERROR] terraform-provider-alicloud/alicloud/resource_alicloud_dns_record.go:154:
[ERROR] terraform-provider-alicloud/alicloud/service_alicloud_dns.go:80: Resource xxx DescribeDomainRecordInfo Failed!!! [SDK alibaba-cloud-sdk-go ERROR]:
SDK.ServerError
ErrorCode: IncorrectDomainUser
Recommend: 
RequestId: xxx
Message: The domain name belongs to other users. Transfer the domain name to the current user and then try the binding and setting actions.
xiaozhu36 commented 4 years ago

Hi @Ghost---Shadow It seems like the domain does not belong to you. Can you check it by the web console?

Ghost---Shadow commented 4 years ago

The domain belongs to the RAM role I am assuming. Just like ticket #1618 the provider does not assume the role correctly.

Ghost---Shadow commented 4 years ago

These are the CLI commands that works correctly.

aliyun alidns DescribeDomains
aliyun alidns DescribeDomainRecords --DomainName xxx
aliyun alidns DescribeDomainRecordInfo --RecordId xxx