Comments (3)
Thanks for the report @whiskykilo. Could you share an example of this behavior? The following config is working as expected for me.
variable "do_token" {}
provider "digitalocean" {
token = "${var.do_token}"
}
resource "digitalocean_domain" "foo" {
name = "exampledomain.org"
ip_address = "127.0.0.1"
}
resource "digitalocean_record" "subdomain" {
type = "A"
domain = "${digitalocean_domain.foo.name}"
name = "www"
value = "127.0.1.1"
}
If I remove the digitalocean_record
resource, it is successfully deleted from DigitalOcean.
from terraform-provider-digitalocean.
@andrewsomething The more I'm digging into the issue, the more I'm thinking it's related to my GitLab cache for the build pipeline. I'm using GL to manage my .tf file for my domain and then run tf plan/tf apply accordingly. It appears my .terraform
and .
caches aren't working properly, so the state file is lost. I will continue to troubleshoot then report back with the full config later today.
from terraform-provider-digitalocean.
Sounds like that might be a good use case for Terraform remote states. The S3 backend works with DigitalOcean Spaces. See: https://www.terraform.io/docs/backends/types/s3.html
DO Example:
terraform {
backend "s3" {
bucket = "my-bucket-01"
key = "terraform-state"
region = "us-east-1"
endpoint = "nyc3.digitaloceanspaces.com"
access_key = "MYKEY"
secret_key = "MYSECRET"
acl = "private"
skip_get_ec2_platforms = true
skip_region_validation = true
skip_credentials_validation = true
skip_requesting_account_id = true
skip_metadata_api_check = true
}
}
from terraform-provider-digitalocean.
Related Issues (20)
- Add droplet monitor alert for cloud-init completion
- digitalocean_spaces_bucket_cors_configuration: Updating allowed origins has no effect HOT 4
- Add optional "signature" field for `digitalocean_custom_image` resources
- Missing registry_credentials in digitalocean_app.service.image for registry_type = "GHCR" HOT 4
- feature: resource for firewall rule
- digitalocean_cdn custom domain certificate fails "invalid certificate issued by Cloudflare origin CA" HOT 1
- Add Postgres database attributes HOT 2
- digitalocean_spaces_bucket_cors_configuration: Does not allow to order CORS rules
- `digitalocean_project` created on failure, absent from TF state HOT 2
- App Platform image credentials set as required HOT 3
- Dedicated egress IP addresses support for App platform
- digitalocean_spaces_bucket NoSuchBucket while creating bucket HOT 3
- digitalocean_kubernetes_cluster. to support database operator HOT 2
- Consider adding GPG key to OpenTofu registry for the digitalocean provider HOT 2
- Support for database fork
- digitalocean_firewall blocks all ports
- digitalocean_ssh_key race condition (roduced an unexpected new value: Root object was present, but now absent) HOT 1
- digitalocean_database_cluster password is always empty HOT 5
- functions: feature: add resource, and data source for functions and namespaces
- Add OpenSearch Documentation
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-digitalocean.