Comments (4)
Looked at this today and found the following:
This line is where the issue happens:
terraform-provider-namecheap/namecheap/namecheap_domain_record.go
Lines 193 to 196 in 46977b8
It calls the GetList
endpoint which calls ParseDomain
The ParseDomain
then throws an error
Based on logs from an import maybe the "domain" var passed to the API needs to be explicitly cast to a string. When import was originally implemented it used a different endpoint that as of 5 months ago runs the same ParseDomain
2021-12-27T07:25:24.598-0500 [TRACE] vertex "namecheap_domain_records.test (import id \"test.domain\")": visit complete
from terraform-provider-namecheap.
Hi!
Thanks for identifying the issue and PR! I'll take a look at it as soon as possible. But likely it's gonna happen somewhere next week or so...
from terraform-provider-namecheap.
This was fixed in v2.1.0
from terraform-provider-namecheap.
A bit late on the response, but I wanted to confirm that the fixed import functionality works very well, pulling in state for all the records in a domain declared in the HCL. This allowed me to easily flesh out HCL that matched the domain's config based on plan differences. My domain configs weren't huge, but they were big enough that I wanted to codify them in case of loss, and this made that possible with confidence. You folks have my sincere thanks.
from terraform-provider-namecheap.
Related Issues (20)
- [ATTENTION] Complete project refactoring HOT 22
- NameCheap Whitelisted IPs HOT 5
- Domain name not found with FreeDNS domain HOT 10
- Allow IPs for Terraform Cloud HOT 10
- OVERWRITE Mode does not warn about removing manual records HOT 1
- Whitelist IPs for known CICD providers HOT 5
- Terraform import record with nameservers incorrectly setting mode to "IMPORT" HOT 2
- Nameserver array missing trailing dot HOT 2
- User not found HOT 1
- FreeDNS subdomain records are all incorrectly going to the root domain HOT 1
- Provider warning for missing api_key, api_user, and user_name even when using NAMECHEAP_* environment variables HOT 1
- Error if CAA 'iodef' record defined HOT 5
- Ability to update the domain contact record information HOT 1
- Namecheap Provider not using provided API Credentials on initialization in .tf file HOT 1
- Feature request: `namecheap_nameserver` resource to register new nameservers HOT 3
- Support for dnssec HOT 5
- Add support for email redirect rules HOT 1
- unable to create sample dns record. HOT 1
- VPS support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-namecheap.