Comments (6)
I started trying to try to fix this on my own and submit a PR, but I'm running in to some trouble. Following the instructions in the README, I get the following error on the make build
step:
go: git.apache.org/[email protected]: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in <HOME>/bld/go/pkg/mod/cache/vcs/83dba939f95a790e497d565fc4418400145a1a514f955fa052f662d56e920c3e: exit status 128:
fatal: unable to access 'https://git.apache.org/thrift.git/': Failed to connect to git.apache.org port 443: Operation timed out
not sure how deep in the dependency chain this is coming from and not a seasoned go-lang dev to immediate dive further into this.
In the meantime, this is the diff I think needs to change to resolve the issue I reported:
diff --git a/mongodbatlas/resource_mongodbatlas_project_ip_whitelist.go b/mongodbatlas/resource_mongodbatlas_project_ip_whitelist.go
index 56c91e7..d7d0dab 100644
--- a/mongodbatlas/resource_mongodbatlas_project_ip_whitelist.go
+++ b/mongodbatlas/resource_mongodbatlas_project_ip_whitelist.go
@@ -181,6 +181,11 @@ func resourceMongoDBAtlasProjectIPWhitelistImportState(d *schema.ResourceData, m
}))
if err := d.Set("whitelist", flattenProjectIPWhitelist(whitelist)); err != nil {
+ log.Printf("[WARN] Error setting whitelist for (%s): %s", d.Id(), err)
+ return []*schema.ResourceData{d}, err
+ }
+
+ if err := d.Set("project_id", d.Id()); err != nil {
log.Printf("[WARN] Error setting project_id for (%s): %s", d.Id(), err)
return []*schema.ResourceData{d}, err
}
This is essentially mimicking what was done here for mongodbatlas_cluster
cheers.
from terraform-provider-mongodbatlas.
Hello, @dlethin thank you so much for your review 👍 , let us check to resolve the issue.
from terraform-provider-mongodbatlas.
Yeah! your changes are right, now you can test it on pr #23, thank you!
If you have any comments or another issue just let us know.
from terraform-provider-mongodbatlas.
Thanks for the quick response.
I'm not sure how to test it though, as I was running into problems building the plugin locally as mentioned above. Maybe I just don't have my go-lang environment set up correctly..
from terraform-provider-mongodbatlas.
Don't worry the changes are now in master, you could clone the repository and test it directly once you have the repository downloaded just make the following command inside of the folder:
$ go build
This will generate a binary program that it is the plugin that you could use with terraform directly, move this binary in your terraform project folder.
from terraform-provider-mongodbatlas.
I built it locally and confirmed it works for my project.
I did discover another problem where adding an additional whitelist ip entry then wants to destroy and rebuild the resource rather than incrementally changing which is not ideal as there will be a moment of time where existing atlas clients might get shut out until their whitelist entries are added again, but I can track a separate issue for that.
Thanks for sharing this plugin. Cheers.
from terraform-provider-mongodbatlas.
Related Issues (20)
- [Bug]: backup_compliance_policy resource missing required attribute HOT 3
- [Bug]: Provider produces inconsistent result after importing encryption_at_rest HOT 4
- [Bug]: <oplog_min_retention_hours is not expected here> HOT 1
- [Bug]: Changing Scope block in the databaseuser resource results in a replacement HOT 8
- Serverless aws_vpc_endpoint creation fails HOT 3
- Error creating user (mongodbatlas_database_user) HOT 2
- CANNOT_DISABLE_PIT_WITH_BACKUP_COMPLIANCE_POLICY HOT 5
- [Bug]: Undocumented behaviour privatelink_endpoint / circle dependency HOT 6
- [Bug]: Can't setup privatelink_endpoint_service_data_federation_online_archive region or VPC Endpoint DNS Name for AWS HOT 13
- [Bug]: Unable to create billing alert configuration. HOT 3
- [Feature]: unable to setup log forwarding to S3 HOT 2
- [Bug]: missing data source for app_id & service_id HOT 2
- [Bug]: Many provider crashes when running from GitLab CI pipeline HOT 6
- [Feature]: Add resources to automatically create mongodbatlas_event_trigger resource HOT 2
- What will happen to the password field when DB user is imported? HOT 4
- [Feature]: Add resources to create function HOT 3
- [Bug]: Impossible to create a database scope (database watch against) in mongodbatlas_event_trigger HOT 4
- [Bug]: mongodbatlas_privatelink_endpoint_service for GCP - Provider produced inconsistent final plan HOT 12
- [Bug] mongodbatlas_custom_db_role created with the wrong permissions HOT 5
- [Feature]: mongodbatlas_event_trigger does not support Database operations HOT 4
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-mongodbatlas.