url stringlengths 82 85 | repository_url stringclasses 1
value | labels_url stringlengths 96 99 | comments_url stringlengths 91 94 | events_url stringlengths 89 92 | html_url stringlengths 70 75 | id int64 235M 2.26B | node_id stringlengths 18 32 | number int64 1 1.15k | title stringlengths 3 148 | user dict | labels listlengths 0 4 | state stringclasses 2
values | locked bool 2
classes | assignee dict | assignees listlengths 0 1 | milestone null | comments listlengths 0 25 | created_at timestamp[s] | updated_at timestamp[s] | closed_at timestamp[s] | author_association stringclasses 3
values | active_lock_reason stringclasses 2
values | body stringlengths 0 33.9k ⌀ | reactions dict | timeline_url stringlengths 91 94 | performed_via_github_app null | state_reason stringclasses 3
values | draft bool 2
classes | pull_request dict | is_pull_request bool 2
classes |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/831 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/831/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/831/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/831/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/831 | 1,248,509,510 | PR_kwDOBZHfyM44d11I | 831 | apps: Support functions components. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-05-25T18:25:47 | 2022-05-25T19:53:33 | 2022-05-25T19:53:32 | MEMBER | null | This PR adds support functions components to the app resource and data source.
The new acceptance test creates an app with a functions component and then updates it by adding a CORs configuration. The update was triggering an infinite loop as the in-progress deployment completes before we poll the app to find it. I've fixed this with an approach like what we are now doing in doctl (https://github.com/digitalocean/doctl/pull/1143). I've left comments around why this fix is not ideal, but after conversations with the Apps team for the doctl issue, it is currently the best solution. Unfortunately, it actually looks like we missed reviewing a PR attempting to fix this (https://github.com/digitalocean/terraform-provider-digitalocean/pull/818) previously.
```
$ make testacc TESTARGS='-run=TestAccDigitalOceanApp -count=1'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test $(go list ./... |grep -v 'vendor') -v -run=TestAccDigitalOceanApp -count=1 -timeout 120m
? github.com/digitalocean/terraform-provider-digitalocean [no test files]
=== RUN TestAccDigitalOceanApp_importBasic
=== PAUSE TestAccDigitalOceanApp_importBasic
=== RUN TestAccDigitalOceanApp_Image
=== PAUSE TestAccDigitalOceanApp_Image
=== RUN TestAccDigitalOceanApp_Basic
=== PAUSE TestAccDigitalOceanApp_Basic
=== RUN TestAccDigitalOceanApp_Job
=== PAUSE TestAccDigitalOceanApp_Job
=== RUN TestAccDigitalOceanApp_StaticSite
=== PAUSE TestAccDigitalOceanApp_StaticSite
=== RUN TestAccDigitalOceanApp_InternalPort
=== PAUSE TestAccDigitalOceanApp_InternalPort
=== RUN TestAccDigitalOceanApp_Envs
=== PAUSE TestAccDigitalOceanApp_Envs
=== RUN TestAccDigitalOceanApp_Worker
=== PAUSE TestAccDigitalOceanApp_Worker
=== RUN TestAccDigitalOceanApp_Function
=== PAUSE TestAccDigitalOceanApp_Function
=== RUN TestAccDigitalOceanApp_Domain
=== PAUSE TestAccDigitalOceanApp_Domain
=== RUN TestAccDigitalOceanApp_DomainsDeprecation
=== PAUSE TestAccDigitalOceanApp_DomainsDeprecation
=== RUN TestAccDigitalOceanApp_CORS
=== PAUSE TestAccDigitalOceanApp_CORS
=== RUN TestAccDigitalOceanApp_TimeoutConfig
=== PAUSE TestAccDigitalOceanApp_TimeoutConfig
=== CONT TestAccDigitalOceanApp_importBasic
=== CONT TestAccDigitalOceanApp_Worker
=== CONT TestAccDigitalOceanApp_TimeoutConfig
=== CONT TestAccDigitalOceanApp_Domain
=== CONT TestAccDigitalOceanApp_StaticSite
=== CONT TestAccDigitalOceanApp_InternalPort
=== CONT TestAccDigitalOceanApp_DomainsDeprecation
=== CONT TestAccDigitalOceanApp_Envs
--- PASS: TestAccDigitalOceanApp_TimeoutConfig (33.34s)
=== CONT TestAccDigitalOceanApp_Function
--- PASS: TestAccDigitalOceanApp_importBasic (146.01s)
=== CONT TestAccDigitalOceanApp_CORS
--- PASS: TestAccDigitalOceanApp_Domain (152.35s)
=== CONT TestAccDigitalOceanApp_Basic
--- PASS: TestAccDigitalOceanApp_Function (160.97s)
=== CONT TestAccDigitalOceanApp_Job
--- PASS: TestAccDigitalOceanApp_DomainsDeprecation (267.98s)
=== CONT TestAccDigitalOceanApp_Image
--- PASS: TestAccDigitalOceanApp_Image (26.90s)
--- PASS: TestAccDigitalOceanApp_CORS (219.79s)
--- PASS: TestAccDigitalOceanApp_Worker (450.08s)
--- PASS: TestAccDigitalOceanApp_StaticSite (497.34s)
--- PASS: TestAccDigitalOceanApp_InternalPort (595.99s)
--- PASS: TestAccDigitalOceanApp_Job (417.60s)
--- PASS: TestAccDigitalOceanApp_Envs (877.86s)
--- PASS: TestAccDigitalOceanApp_Basic (1010.22s)
PASS
ok github.com/digitalocean/terraform-provider-digitalocean/digitalocean 1162.585s
testing: warning: no tests to run
PASS
ok github.com/digitalocean/terraform-provider-digitalocean/internal/datalist 0.002s [no tests to run]
testing: warning: no tests to run
PASS
ok github.com/digitalocean/terraform-provider-digitalocean/internal/mutexkv 0.001s [no tests to run]
``` | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/831/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/831/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/831",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/831",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/831.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/831.patch",
"merged_at": "2022-05-25T19:53:32"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/830 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/830/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/830/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/830/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/830 | 1,245,460,668 | PR_kwDOBZHfyM44TwGO | 830 | Add reserved IP related resources and data source | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-05-23T16:57:22 | 2022-06-15T22:10:44 | 2022-06-15T22:10:44 | MEMBER | null | This PR renames the existing floating IP resources and data source to use the new, upcoming reserved IP branding.
```
$ TF_ACC=1 go test -v --run 'Reserved|Floating' ./...
? github.com/digitalocean/terraform-provider-digitalocean [no test files]
=== RUN TestAccDataSourceDigitalOceanFloatingIp_Basic
=== PAUSE TestAccDataSourceDigitalOceanFloatingIp_Basic
=== RUN TestAccDataSourceDigitalOceanReservedIP_Basic
=== PAUSE TestAccDataSourceDigitalOceanReservedIP_Basic
=== RUN TestAccDataSourceDigitalOceanReservedIP_FindsFloatingIP
=== PAUSE TestAccDataSourceDigitalOceanReservedIP_FindsFloatingIP
=== RUN TestAccDigitalOceanFloatingIPAssignment_importBasic
=== PAUSE TestAccDigitalOceanFloatingIPAssignment_importBasic
=== RUN TestAccDigitalOceanFloatingIP_importBasicRegion
=== PAUSE TestAccDigitalOceanFloatingIP_importBasicRegion
=== RUN TestAccDigitalOceanFloatingIP_importBasicDroplet
=== PAUSE TestAccDigitalOceanFloatingIP_importBasicDroplet
=== RUN TestAccDigitalOceanReservedIP_importBasicRegion
=== PAUSE TestAccDigitalOceanReservedIP_importBasicRegion
=== RUN TestAccDigitalOceanReservedIP_importBasicDroplet
=== PAUSE TestAccDigitalOceanReservedIP_importBasicDroplet
=== RUN TestAccDigitalOceanFloatingIPAssignment
=== PAUSE TestAccDigitalOceanFloatingIPAssignment
=== RUN TestAccDigitalOceanFloatingIPAssignment_createBeforeDestroy
=== PAUSE TestAccDigitalOceanFloatingIPAssignment_createBeforeDestroy
=== RUN TestAccDigitalOceanFloatingIP_Region
=== PAUSE TestAccDigitalOceanFloatingIP_Region
=== RUN TestAccDigitalOceanFloatingIP_Droplet
=== PAUSE TestAccDigitalOceanFloatingIP_Droplet
=== RUN TestAccDigitalOceanReservedIPAssignment
=== PAUSE TestAccDigitalOceanReservedIPAssignment
=== RUN TestAccDigitalOceanReservedIPAssignment_createBeforeDestroy
=== PAUSE TestAccDigitalOceanReservedIPAssignment_createBeforeDestroy
=== RUN TestAccDigitalOceanReservedIP_Region
=== PAUSE TestAccDigitalOceanReservedIP_Region
=== RUN TestAccDigitalOceanReservedIP_Droplet
=== PAUSE TestAccDigitalOceanReservedIP_Droplet
=== CONT TestAccDataSourceDigitalOceanFloatingIp_Basic
=== CONT TestAccDigitalOceanReservedIP_Droplet
=== CONT TestAccDigitalOceanReservedIP_Region
=== CONT TestAccDigitalOceanReservedIPAssignment_createBeforeDestroy
=== CONT TestAccDigitalOceanReservedIPAssignment
=== CONT TestAccDigitalOceanFloatingIP_Droplet
=== CONT TestAccDigitalOceanReservedIP_importBasicRegion
=== CONT TestAccDigitalOceanFloatingIP_Region
--- PASS: TestAccDigitalOceanReservedIP_Region (5.93s)
=== CONT TestAccDigitalOceanFloatingIP_importBasicDroplet
--- PASS: TestAccDigitalOceanFloatingIP_Region (7.72s)
=== CONT TestAccDigitalOceanFloatingIP_importBasicRegion
--- PASS: TestAccDigitalOceanReservedIP_importBasicRegion (9.20s)
=== CONT TestAccDigitalOceanFloatingIPAssignment_importBasic
--- PASS: TestAccDataSourceDigitalOceanFloatingIp_Basic (9.28s)
=== CONT TestAccDataSourceDigitalOceanReservedIP_FindsFloatingIP
--- PASS: TestAccDigitalOceanFloatingIP_importBasicRegion (7.69s)
=== CONT TestAccDataSourceDigitalOceanReservedIP_Basic
--- PASS: TestAccDataSourceDigitalOceanReservedIP_FindsFloatingIP (7.12s)
=== CONT TestAccDigitalOceanFloatingIPAssignment_createBeforeDestroy
--- PASS: TestAccDataSourceDigitalOceanReservedIP_Basic (13.84s)
=== CONT TestAccDigitalOceanFloatingIPAssignment
--- PASS: TestAccDigitalOceanFloatingIP_importBasicDroplet (82.37s)
=== CONT TestAccDigitalOceanReservedIP_importBasicDroplet
--- PASS: TestAccDigitalOceanFloatingIPAssignment_importBasic (103.50s)
--- PASS: TestAccDigitalOceanReservedIPAssignment (133.51s)
--- PASS: TestAccDigitalOceanFloatingIP_Droplet (145.38s)
--- PASS: TestAccDigitalOceanReservedIP_Droplet (150.73s)
--- PASS: TestAccDigitalOceanFloatingIPAssignment (137.28s)
--- PASS: TestAccDigitalOceanReservedIP_importBasicDroplet (94.00s)
--- PASS: TestAccDigitalOceanFloatingIPAssignment_createBeforeDestroy (190.16s)
--- PASS: TestAccDigitalOceanReservedIPAssignment_createBeforeDestroy (319.98s)
PASS
ok github.com/digitalocean/terraform-provider-digitalocean/digitalocean 320.018s
testing: warning: no tests to run
PASS
ok github.com/digitalocean/terraform-provider-digitalocean/internal/datalist (cached) [no tests to run]
testing: warning: no tests to run
PASS
ok github.com/digitalocean/terraform-provider-digitalocean/internal/mutexkv (cached) [no tests to run]
``` | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/830/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/830/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/830",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/830",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/830.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/830.patch",
"merged_at": "2022-06-15T22:10:43"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/829 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/829/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/829/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/829/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/829 | 1,238,568,939 | I_kwDOBZHfyM5J0w_r | 829 | Digital Ocean Container Registry - Region argument not allowed | {
"login": "Quixotical",
"id": 5377317,
"node_id": "MDQ6VXNlcjUzNzczMTc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5377317?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Quixotical",
"html_url": "https://github.com/Quixotical",
"followers_url": "https://api.github.com/users/Quixotical/followers",
"following_url": "https://api.github.com/users/Quixotical/following{/other_user}",
"gists_url": "https://api.github.com/users/Quixotical/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Quixotical/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Quixotical/subscriptions",
"organizations_url": "https://api.github.com/users/Quixotical/orgs",
"repos_url": "https://api.github.com/users/Quixotical/repos",
"events_url": "https://api.github.com/users/Quixotical/events{/privacy}",
"received_events_url": "https://api.github.com/users/Quixotical/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [
"> + provider registry.terraform.io/digitalocean/digitalocean v2.15.0\r\n\r\nHi @Quixotical Looks like you need to update your version of the DigitalOcean provider. This is fairly new functionality that was added in v2.19.0.\r\n\r\nhttps://github.com/digitalocean/terraform-provider-digitalocean/releases/tag/v2.19.0... | 2022-05-17T12:30:04 | 2022-05-17T14:16:43 | 2022-05-17T14:16:43 | NONE | null | <!-- Thank you for opening an issue. Please note that we try to keep the issue
tracker reserved for bug reports and feature requests. For general usage
questions, please see:
https://github.com/digitalocean/terraform-provider-digitalocean/discussions
**NOTE: Before submitting a bug**
There are cases where the provider receives HTTP Service Error (500 level HTTP
statuses) responses from the DigitalOcean API. There are some cases where the
provider might handle these and retry. If the problem persists, it's best to
contact [DigitalOcean support](https://cloudsupport.digitalocean.com/) -->
# Bug Report
<!-- Include as much of the following details with your bug report: -->
---
## Describe the bug
When I select the region to build my DO container registry in, i receive an error stating that `region` is not an expected argument
and according to the documentation:
```[region](https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/container_registry#region) - (Optional) The slug identifier of for region where registry data will be stored. When not provided, a region will be selected automatically.```
The expectation is that I can choose the region where I will be creating my registry.
### Affected Resource(s)
digitalocean_container_registry
### Expected Behavior
I can choose the region to create my resource in
### Actual Behavior
Receive the following error (repeating for simplicity sake)
```
Error: Unsupported argument
on kubernetes/container_registry.tf line 4, in resource "digitalocean_container_registry" "my_registry":
4: region = "nyc3"
An argument named "region" is not expected here.
```
### Steps to Reproduce
1. `terraform validate`
**Terraform Configuration Files**
```
resource "digitalocean_container_registry" "my_registry" {
name = "my-registry"
subscription_tier_slug = "starter"
region = "nyc3"
}
```
**Expected behavior**
I am on the latest version
```
Terraform v1.1.9
on linux_amd64
+ provider registry.terraform.io/digitalocean/digitalocean v2.15.0
+ provider registry.terraform.io/hashicorp/helm v2.5.1
+ provider registry.terraform.io/hashicorp/null v3.1.1
```
**Debug Output**
I pasted the error above
**Panic Output**
n/a
## Additional context
**Important Factoids**
**References**
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/829/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/829/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/828 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/828/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/828/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/828/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/828 | 1,236,808,306 | I_kwDOBZHfyM5JuDJy | 828 | Add timeout configuration for digitalocean_droplet resource | {
"login": "dfradejas",
"id": 38228474,
"node_id": "MDQ6VXNlcjM4MjI4NDc0",
"avatar_url": "https://avatars.githubusercontent.com/u/38228474?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dfradejas",
"html_url": "https://github.com/dfradejas",
"followers_url": "https://api.github.com/users/dfradejas/followers",
"following_url": "https://api.github.com/users/dfradejas/following{/other_user}",
"gists_url": "https://api.github.com/users/dfradejas/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dfradejas/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dfradejas/subscriptions",
"organizations_url": "https://api.github.com/users/dfradejas/orgs",
"repos_url": "https://api.github.com/users/dfradejas/repos",
"events_url": "https://api.github.com/users/dfradejas/events{/privacy}",
"received_events_url": "https://api.github.com/users/dfradejas/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326613,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTM=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/enhancement-provider",
"name": "enhancement-provider",
"color": "d4c5f9",
"default": false,
"description": ""
}
] | closed | false | null | [] | null | [
"I have proposed #839 as a possible solution but am very open to feedback on choices made. ",
"Hi, \r\n\r\nI'm trying to create the resource with timeout configuration, but it is not doing anything, the default timeout (1h) is still present, i can't configure it to, for example, 2 hours.\r\n\r\nI am writting this... | 2022-05-16T08:30:43 | 2023-03-13T16:29:57 | 2022-09-07T21:08:46 | NONE | null | Hi,
When you create a big droplet from a snapshot in Digitalocean, it usually spends more than 1 hour creating this droplet. When you do it with terraform, the provider throws a timeout error because default timeout is 1 hour in the provider.
Could be possible to add timeouts block configuration to digitalocean_droplet resources?
Regards,
Daniel.
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/828/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/828/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/827 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/827/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/827/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/827/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/827 | 1,235,570,598 | I_kwDOBZHfyM5JpU-m | 827 | Receiving "invalid droplet size" when attempting to create a Kubernetes cluster | {
"login": "anthonator",
"id": 420061,
"node_id": "MDQ6VXNlcjQyMDA2MQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/420061?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/anthonator",
"html_url": "https://github.com/anthonator",
"followers_url": "https://api.github.com/users/anthonator/followers",
"following_url": "https://api.github.com/users/anthonator/following{/other_user}",
"gists_url": "https://api.github.com/users/anthonator/gists{/gist_id}",
"starred_url": "https://api.github.com/users/anthonator/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/anthonator/subscriptions",
"organizations_url": "https://api.github.com/users/anthonator/orgs",
"repos_url": "https://api.github.com/users/anthonator/repos",
"events_url": "https://api.github.com/users/anthonator/events{/privacy}",
"received_events_url": "https://api.github.com/users/anthonator/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [
"Looks like we were using a droplet size slug that isn't available when creating a Kubernetes cluster. Closing since this was our fault."
] | 2022-05-13T18:44:45 | 2022-05-13T19:21:12 | 2022-05-13T19:21:12 | NONE | null | <!-- Thank you for opening an issue. Please note that we try to keep the issue
tracker reserved for bug reports and feature requests. For general usage
questions, please see:
https://github.com/digitalocean/terraform-provider-digitalocean/discussions
**NOTE: Before submitting a bug**
There are cases where the provider receives HTTP Service Error (500 level HTTP
statuses) responses from the DigitalOcean API. There are some cases where the
provider might handle these and retry. If the problem persists, it's best to
contact [DigitalOcean support](https://cloudsupport.digitalocean.com/) -->
# Bug Report
<!-- Include as much of the following details with your bug report: -->
---
## Describe the bug
When creating a Kubernetes cluster with resource "digitalocean_kubernetes_cluster" we always receive the error:
```
Error: Error creating Kubernetes cluster: POST https://api.digitalocean.com/v2/kubernetes/clusters: 422 (request "4055f8b8-f247-4a3e-8ba2-ca099866e657") validation error: worker_node_pool_specs[0].invalid droplet size
│
│ with digitalocean_kubernetes_cluster.cluster,
│ on root.tf line 1, in resource "digitalocean_kubernetes_cluster" "cluster":
│ 1: resource "digitalocean_kubernetes_cluster" "cluster" {
```
We use slugs provided by the `doctl compute size list` command. We've tried various slugs and they all have resulted in the error above.
### Affected Resource(s)
<!-- Please list the resources, for example:
- digitalocean_kubernetes_cluster
- digitalocean_kubernetes_node_pool
If this issue appears to affect multiple resources, it may be an issue with
Terraform's core, so please mention this. -->
### Expected Behavior
<!-- What should have happened? -->
Kubernetes cluster is created successfully.
### Actual Behavior
<!-- What actually happened? -->
We receive the following error.
```
Error: Error creating Kubernetes cluster: POST https://api.digitalocean.com/v2/kubernetes/clusters: 422 (request "4055f8b8-f247-4a3e-8ba2-ca099866e657") validation error: worker_node_pool_specs[0].invalid droplet size
│
│ with digitalocean_kubernetes_cluster.cluster,
│ on root.tf line 1, in resource "digitalocean_kubernetes_cluster" "cluster":
│ 1: resource "digitalocean_kubernetes_cluster" "cluster" {
```
### Steps to Reproduce
<!-- Please list the steps required to reproduce the issue, for example:
1. `terraform apply` -->
```
terraform apply -var env=staging -var token=<token>
```
**Terraform Configuration Files**
```
resource "digitalocean_kubernetes_cluster" "cluster" {
name = "k8s-${var.env}"
node_pool {
name = var.env
node_count = 1
size = "s-1vcpu-1gb"
}
region = "nyc3"
version = "1.22.8-do.1"
}
provider "digitalocean" {
token = var.token
}
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.19"
}
}
}
variable "env" {
type = string
nullable = false
validation {
condition = var.env == "production" || var.env == "staging"
error_message = "Can be \"production\" or \"staging\"."
}
}
variable "token" {
type = string
nullable = false
sensitive = true
}
```
**Expected behavior**
<!-- Run `terraform -v` to show the version. If you are not running the latest
version of Terraform, please upgrade because your issue may have already been
fixed. -->
```
terraform -v
Terraform v1.1.9
on darwin_amd64
+ provider registry.terraform.io/digitalocean/digitalocean v2.19.0
```
`terraform apply` works without error and a Kubernetes cluster is created in our DigitalOcean account.
**Debug Output**
```
2022-05-13T14:38:05.290-0400 [INFO] Terraform version: 1.1.9
2022-05-13T14:38:05.290-0400 [INFO] Go runtime version: go1.17.2
2022-05-13T14:38:05.290-0400 [INFO] CLI args: []string{"terraform", "apply", "-var", "env=staging", "-auto-approve", "-var", "token=80f15fbef3c5d57fbd17c5112df1a30f57dec937b31c56d6718c9ef9c34c2d99"}
2022-05-13T14:38:05.290-0400 [DEBUG] Attempting to open CLI config file: /Users/tyranthosaur/.terraformrc
2022-05-13T14:38:05.290-0400 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2022-05-13T14:38:05.290-0400 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2022-05-13T14:38:05.290-0400 [DEBUG] ignoring non-existing provider search directory /Users/tyranthosaur/.terraform.d/plugins
2022-05-13T14:38:05.290-0400 [DEBUG] ignoring non-existing provider search directory /Users/tyranthosaur/Library/Application Support/io.terraform/plugins
2022-05-13T14:38:05.290-0400 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2022-05-13T14:38:05.291-0400 [INFO] CLI command args: []string{"apply", "-var", "env=staging", "-auto-approve", "-var", "token=80f15fbef3c5d57fbd17c5112df1a30f57dec937b31c56d6718c9ef9c34c2d99"}
2022-05-13T14:38:05.292-0400 [DEBUG] New state was assigned lineage "75b5846f-99ef-a9da-3539-6250f3891b53"
2022-05-13T14:38:05.353-0400 [DEBUG] checking for provisioner in "."
2022-05-13T14:38:05.355-0400 [DEBUG] checking for provisioner in "/usr/local/bin"
2022-05-13T14:38:05.355-0400 [INFO] backend/local: starting Apply operation
2022-05-13T14:38:05.358-0400 [DEBUG] created provider logger: level=debug
2022-05-13T14:38:05.358-0400 [INFO] provider: configuring client automatic mTLS
2022-05-13T14:38:05.367-0400 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.19.0/darwin_amd64/terraform-provider-digitalocean_v2.19.0 args=[.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.19.0/darwin_amd64/terraform-provider-digitalocean_v2.19.0]
2022-05-13T14:38:05.370-0400 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.19.0/darwin_amd64/terraform-provider-digitalocean_v2.19.0 pid=21890
2022-05-13T14:38:05.370-0400 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.19.0/darwin_amd64/terraform-provider-digitalocean_v2.19.0
2022-05-13T14:38:05.384-0400 [INFO] provider.terraform-provider-digitalocean_v2.19.0: configuring server automatic mTLS: timestamp=2022-05-13T14:38:05.383-0400
2022-05-13T14:38:05.417-0400 [DEBUG] provider.terraform-provider-digitalocean_v2.19.0: plugin address: address=/var/folders/n9/35t6vrf11bj7ygl9gzmdvfp40000gn/T/plugin133259481 network=unix timestamp=2022-05-13T14:38:05.417-0400
2022-05-13T14:38:05.417-0400 [DEBUG] provider: using plugin: version=5
2022-05-13T14:38:05.453-0400 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-05-13T14:38:05.455-0400 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.19.0/darwin_amd64/terraform-provider-digitalocean_v2.19.0 pid=21890
2022-05-13T14:38:05.455-0400 [DEBUG] provider: plugin exited
2022-05-13T14:38:05.455-0400 [DEBUG] Building and walking validate graph
2022-05-13T14:38:05.455-0400 [DEBUG] ProviderTransformer: "digitalocean_kubernetes_cluster.cluster" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/digitalocean/digitalocean"]
2022-05-13T14:38:05.455-0400 [DEBUG] ReferenceTransformer: "var.token" references: []
2022-05-13T14:38:05.455-0400 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/digitalocean/digitalocean\"]" references: [var.token]
2022-05-13T14:38:05.455-0400 [DEBUG] ReferenceTransformer: "digitalocean_kubernetes_cluster.cluster" references: [var.env var.env]
2022-05-13T14:38:05.455-0400 [DEBUG] ReferenceTransformer: "var.env" references: []
2022-05-13T14:38:05.455-0400 [DEBUG] Starting graph walk: walkValidate
2022-05-13T14:38:05.456-0400 [DEBUG] created provider logger: level=debug
2022-05-13T14:38:05.456-0400 [INFO] provider: configuring client automatic mTLS
2022-05-13T14:38:05.465-0400 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.19.0/darwin_amd64/terraform-provider-digitalocean_v2.19.0 args=[.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.19.0/darwin_amd64/terraform-provider-digitalocean_v2.19.0]
2022-05-13T14:38:05.467-0400 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.19.0/darwin_amd64/terraform-provider-digitalocean_v2.19.0 pid=21891
2022-05-13T14:38:05.467-0400 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.19.0/darwin_amd64/terraform-provider-digitalocean_v2.19.0
2022-05-13T14:38:05.480-0400 [INFO] provider.terraform-provider-digitalocean_v2.19.0: configuring server automatic mTLS: timestamp=2022-05-13T14:38:05.480-0400
2022-05-13T14:38:05.514-0400 [DEBUG] provider: using plugin: version=5
2022-05-13T14:38:05.514-0400 [DEBUG] provider.terraform-provider-digitalocean_v2.19.0: plugin address: address=/var/folders/n9/35t6vrf11bj7ygl9gzmdvfp40000gn/T/plugin814112438 network=unix timestamp=2022-05-13T14:38:05.514-0400
2022-05-13T14:38:05.556-0400 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-05-13T14:38:05.557-0400 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.19.0/darwin_amd64/terraform-provider-digitalocean_v2.19.0 pid=21891
2022-05-13T14:38:05.557-0400 [DEBUG] provider: plugin exited
2022-05-13T14:38:05.557-0400 [INFO] backend/local: apply calling Plan
2022-05-13T14:38:05.557-0400 [DEBUG] Building and walking plan graph for NormalMode
2022-05-13T14:38:05.557-0400 [DEBUG] ProviderTransformer: "digitalocean_kubernetes_cluster.cluster (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/digitalocean/digitalocean"]
2022-05-13T14:38:05.558-0400 [DEBUG] ReferenceTransformer: "digitalocean_kubernetes_cluster.cluster (expand)" references: [var.env var.env]
2022-05-13T14:38:05.558-0400 [DEBUG] ReferenceTransformer: "var.env" references: []
2022-05-13T14:38:05.558-0400 [DEBUG] ReferenceTransformer: "var.token" references: []
2022-05-13T14:38:05.558-0400 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/digitalocean/digitalocean\"]" references: [var.token]
2022-05-13T14:38:05.558-0400 [DEBUG] Starting graph walk: walkPlan
2022-05-13T14:38:05.558-0400 [DEBUG] created provider logger: level=debug
2022-05-13T14:38:05.558-0400 [INFO] provider: configuring client automatic mTLS
2022-05-13T14:38:05.567-0400 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.19.0/darwin_amd64/terraform-provider-digitalocean_v2.19.0 args=[.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.19.0/darwin_amd64/terraform-provider-digitalocean_v2.19.0]
2022-05-13T14:38:05.569-0400 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.19.0/darwin_amd64/terraform-provider-digitalocean_v2.19.0 pid=21892
2022-05-13T14:38:05.569-0400 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.19.0/darwin_amd64/terraform-provider-digitalocean_v2.19.0
2022-05-13T14:38:05.582-0400 [INFO] provider.terraform-provider-digitalocean_v2.19.0: configuring server automatic mTLS: timestamp=2022-05-13T14:38:05.582-0400
2022-05-13T14:38:05.616-0400 [DEBUG] provider.terraform-provider-digitalocean_v2.19.0: plugin address: address=/var/folders/n9/35t6vrf11bj7ygl9gzmdvfp40000gn/T/plugin164536331 network=unix timestamp=2022-05-13T14:38:05.616-0400
2022-05-13T14:38:05.616-0400 [DEBUG] provider: using plugin: version=5
2022-05-13T14:38:05.656-0400 [WARN] ValidateProviderConfig from "provider[\"registry.terraform.io/digitalocean/digitalocean\"]" changed the config value, but that value is unused
2022-05-13T14:38:05.657-0400 [INFO] provider.terraform-provider-digitalocean_v2.19.0: 2022/05/13 14:38:05 [INFO] DigitalOcean Client configured for URL: https://api.digitalocean.com: timestamp=2022-05-13T14:38:05.657-0400
2022-05-13T14:38:05.657-0400 [DEBUG] Resource instance state not found for node "digitalocean_kubernetes_cluster.cluster", instance digitalocean_kubernetes_cluster.cluster
2022-05-13T14:38:05.657-0400 [INFO] ReferenceTransformer: reference not found: "var.env"
2022-05-13T14:38:05.657-0400 [INFO] ReferenceTransformer: reference not found: "var.env"
2022-05-13T14:38:05.657-0400 [DEBUG] ReferenceTransformer: "digitalocean_kubernetes_cluster.cluster" references: []
2022-05-13T14:38:05.658-0400 [DEBUG] refresh: digitalocean_kubernetes_cluster.cluster: no state, so not refreshing
2022-05-13T14:38:05.662-0400 [WARN] Provider "registry.terraform.io/digitalocean/digitalocean" produced an invalid plan for digitalocean_kubernetes_cluster.cluster, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
- .surge_upgrade: planned value cty.True for a non-computed attribute
- .ha: planned value cty.False for a non-computed attribute
- .maintenance_policy: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
- .node_pool[0].auto_scale: planned value cty.False for a non-computed attribute
2022-05-13T14:38:05.662-0400 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-05-13T14:38:05.664-0400 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.19.0/darwin_amd64/terraform-provider-digitalocean_v2.19.0 pid=21892
2022-05-13T14:38:05.664-0400 [DEBUG] provider: plugin exited
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# digitalocean_kubernetes_cluster.cluster will be created
+ resource "digitalocean_kubernetes_cluster" "cluster" {
+ cluster_subnet = (known after apply)
+ created_at = (known after apply)
+ endpoint = (known after apply)
+ ha = false
+ id = (known after apply)
+ ipv4_address = (known after apply)
+ kube_config = (sensitive value)
+ name = "k8s-staging"
+ region = "nyc3"
+ service_subnet = (known after apply)
+ status = (known after apply)
+ surge_upgrade = true
+ updated_at = (known after apply)
+ urn = (known after apply)
+ version = "1.22.8-do.1"
+ vpc_uuid = (known after apply)
+ maintenance_policy {
+ day = (known after apply)
+ duration = (known after apply)
+ start_time = (known after apply)
}
+ node_pool {
+ actual_node_count = (known after apply)
+ auto_scale = false
+ id = (known after apply)
+ name = "staging"
+ node_count = 1
+ nodes = (known after apply)
+ size = "s-1vcpu-1gb"
}
}
Plan: 1 to add, 0 to change, 0 to destroy.
2022-05-13T14:38:05.665-0400 [INFO] backend/local: apply calling Apply
2022-05-13T14:38:05.665-0400 [DEBUG] Building and walking apply graph for NormalMode plan
2022-05-13T14:38:05.665-0400 [DEBUG] Resource state not found for node "digitalocean_kubernetes_cluster.cluster", instance digitalocean_kubernetes_cluster.cluster
2022-05-13T14:38:05.665-0400 [DEBUG] ProviderTransformer: "digitalocean_kubernetes_cluster.cluster" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/digitalocean/digitalocean"]
2022-05-13T14:38:05.665-0400 [DEBUG] ProviderTransformer: "digitalocean_kubernetes_cluster.cluster (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/digitalocean/digitalocean"]
2022-05-13T14:38:05.665-0400 [DEBUG] ReferenceTransformer: "digitalocean_kubernetes_cluster.cluster (expand)" references: []
2022-05-13T14:38:05.665-0400 [DEBUG] ReferenceTransformer: "var.env" references: []
2022-05-13T14:38:05.665-0400 [DEBUG] ReferenceTransformer: "var.token" references: []
2022-05-13T14:38:05.665-0400 [DEBUG] ReferenceTransformer: "digitalocean_kubernetes_cluster.cluster" references: [var.env var.env]
2022-05-13T14:38:05.665-0400 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/digitalocean/digitalocean\"]" references: [var.token]
2022-05-13T14:38:05.666-0400 [DEBUG] Starting graph walk: walkApply
2022-05-13T14:38:05.666-0400 [DEBUG] created provider logger: level=debug
2022-05-13T14:38:05.666-0400 [INFO] provider: configuring client automatic mTLS
2022-05-13T14:38:05.675-0400 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.19.0/darwin_amd64/terraform-provider-digitalocean_v2.19.0 args=[.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.19.0/darwin_amd64/terraform-provider-digitalocean_v2.19.0]
2022-05-13T14:38:05.677-0400 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.19.0/darwin_amd64/terraform-provider-digitalocean_v2.19.0 pid=21893
2022-05-13T14:38:05.677-0400 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.19.0/darwin_amd64/terraform-provider-digitalocean_v2.19.0
2022-05-13T14:38:05.690-0400 [INFO] provider.terraform-provider-digitalocean_v2.19.0: configuring server automatic mTLS: timestamp=2022-05-13T14:38:05.690-0400
2022-05-13T14:38:05.725-0400 [DEBUG] provider: using plugin: version=5
2022-05-13T14:38:05.725-0400 [DEBUG] provider.terraform-provider-digitalocean_v2.19.0: plugin address: address=/var/folders/n9/35t6vrf11bj7ygl9gzmdvfp40000gn/T/plugin571029728 network=unix timestamp=2022-05-13T14:38:05.724-0400
2022-05-13T14:38:05.765-0400 [WARN] ValidateProviderConfig from "provider[\"registry.terraform.io/digitalocean/digitalocean\"]" changed the config value, but that value is unused
2022-05-13T14:38:05.766-0400 [INFO] provider.terraform-provider-digitalocean_v2.19.0: 2022/05/13 14:38:05 [INFO] DigitalOcean Client configured for URL: https://api.digitalocean.com: timestamp=2022-05-13T14:38:05.766-0400
2022-05-13T14:38:05.770-0400 [WARN] Provider "registry.terraform.io/digitalocean/digitalocean" produced an invalid plan for digitalocean_kubernetes_cluster.cluster, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
- .ha: planned value cty.False for a non-computed attribute
- .surge_upgrade: planned value cty.True for a non-computed attribute
- .maintenance_policy: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
- .node_pool[0].auto_scale: planned value cty.False for a non-computed attribute
digitalocean_kubernetes_cluster.cluster: Creating...
2022-05-13T14:38:05.770-0400 [INFO] Starting apply for digitalocean_kubernetes_cluster.cluster
2022-05-13T14:38:05.771-0400 [DEBUG] digitalocean_kubernetes_cluster.cluster: applying the planned Create change
2022-05-13T14:38:05.772-0400 [INFO] provider.terraform-provider-digitalocean_v2.19.0: 2022/05/13 14:38:05 [DEBUG] setting computed for "kube_config" from ComputedKeys: timestamp=2022-05-13T14:38:05.771-0400
2022-05-13T14:38:05.772-0400 [INFO] provider.terraform-provider-digitalocean_v2.19.0: 2022/05/13 14:38:05 [DEBUG] setting computed for "maintenance_policy" from ComputedKeys: timestamp=2022-05-13T14:38:05.772-0400
2022-05-13T14:38:05.772-0400 [INFO] provider.terraform-provider-digitalocean_v2.19.0: 2022/05/13 14:38:05 [DEBUG] setting computed for "node_pool.0.nodes" from ComputedKeys: timestamp=2022-05-13T14:38:05.772-0400
2022-05-13T14:38:05.772-0400 [INFO] provider.terraform-provider-digitalocean_v2.19.0: 2022/05/13 14:38:05 [DEBUG] setting computed for "node_pool.0.nodes" from ComputedKeys: timestamp=2022-05-13T14:38:05.772-0400
2022-05-13T14:38:05.772-0400 [INFO] provider.terraform-provider-digitalocean_v2.19.0: 2022/05/13 14:38:05 [DEBUG] DigitalOcean API Request Details:
---[ REQUEST ]---------------------------------------
POST /v2/kubernetes/clusters HTTP/1.1
Host: api.digitalocean.com
User-Agent: Terraform/1.1.9 godo/1.77.0
Content-Length: 246
Accept: application/json
Content-Type: application/json
Accept-Encoding: gzip
{
"name": "k8s-staging",
"region": "nyc3",
"version": "1.22.8-do.1",
"ha": false,
"node_pools": [
{
"name": "staging",
"size": "s-1vcpu-1gb",
"count": 1,
"tags": [
"terraform:default-node-pool"
]
}
],
"maintenance_policy": null,
"auto_upgrade": false,
"surge_upgrade": true
}
-----------------------------------------------------: timestamp=2022-05-13T14:38:05.772-0400
2022-05-13T14:38:06.749-0400 [INFO] provider.terraform-provider-digitalocean_v2.19.0: 2022/05/13 14:38:06 [DEBUG] DigitalOcean API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 422 Unprocessable Entity
Content-Length: 107
Cf-Cache-Status: DYNAMIC
Cf-Ray: 70ad8258592b86db-ORD
Content-Type: application/json; charset=utf-8
Date: Fri, 13 May 2022 18:38:06 GMT
Expect-Ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Ratelimit-Limit: 5000
Ratelimit-Remaining: 4997
Ratelimit-Reset: 1652469855
Server: cloudflare
Set-Cookie: __cf_bm=OK.bOmOzyqvrd6FGhMhWVhZasNZsWl51wnxmbz0o7v4-1652467086-0-AQMyCsFeUwDALGAeSIrFQ8E23eqQwS21hVO1kzwWOa7oDOBzq+KNzbI4qwY1Icdv6jLIXFdzWvfwi4GldI5F6z2afAa7ZI/M4jNtlZFApe4S; path=/; expires=Fri, 13-May-22 19:08:06 GMT; domain=.digitalocean.com; HttpOnly; Secure; SameSite=None
Vary: Accept-Encoding
X-Gateway: Edge-Gateway
X-Request-Id: 84f42228-541b-439a-8e7d-98696f53a292
X-Response-From: service
{
"id": "unprocessable_entity",
"message": "validation error: worker_node_pool_specs[0].invalid droplet size"
}
-----------------------------------------------------: timestamp=2022-05-13T14:38:06.749-0400
2022-05-13T14:38:06.770-0400 [ERROR] vertex "digitalocean_kubernetes_cluster.cluster" error: Error creating Kubernetes cluster: POST https://api.digitalocean.com/v2/kubernetes/clusters: 422 (request "84f42228-541b-439a-8e7d-98696f53a292") validation error: worker_node_pool_specs[0].invalid droplet size
╷
│ Error: Error creating Kubernetes cluster: POST https://api.digitalocean.com/v2/kubernetes/clusters: 422 (request "84f42228-541b-439a-8e7d-98696f53a292") validation error: worker_node_pool_specs[0].invalid droplet size
│
│ with digitalocean_kubernetes_cluster.cluster,
│ on root.tf line 1, in resource "digitalocean_kubernetes_cluster" "cluster":
│ 1: resource "digitalocean_kubernetes_cluster" "cluster" {
│
╵
2022-05-13T14:38:06.791-0400 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-05-13T14:38:06.793-0400 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.19.0/darwin_amd64/terraform-provider-digitalocean_v2.19.0 pid=21893
2022-05-13T14:38:06.793-0400 [DEBUG] provider: plugin exited
```
**Panic Output**
<!-- If Terraform produced a panic, please provide a link to a GitHub Gist
containing the output of the `crash.log`. -->
## Additional context
<!-- Add any other context about the problem here. -->
**Important Factoids**
<!-- Droplets use custom images or kernels. -->
**References**
<!-- Include links to other GitHub issues (open or closed) or Pull Requests
that relate to this issue. -->
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/827/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/827/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/826 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/826/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/826/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/826/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/826 | 1,222,165,478 | PR_kwDOBZHfyM43IV0Q | 826 | digitalocean_kubernetes_cluster: fix k8s versions in acceptance tests | {
"login": "gizero",
"id": 1544064,
"node_id": "MDQ6VXNlcjE1NDQwNjQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/1544064?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gizero",
"html_url": "https://github.com/gizero",
"followers_url": "https://api.github.com/users/gizero/followers",
"following_url": "https://api.github.com/users/gizero/following{/other_user}",
"gists_url": "https://api.github.com/users/gizero/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gizero/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gizero/subscriptions",
"organizations_url": "https://api.github.com/users/gizero/orgs",
"repos_url": "https://api.github.com/users/gizero/repos",
"events_url": "https://api.github.com/users/gizero/events{/privacy}",
"received_events_url": "https://api.github.com/users/gizero/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"Hey, @gizero - Thanks a ton for this sweet PR! 😄\r\n\r\nWould you please shoot me an email when you get a chance?\r\nmcowley at digitalocean dot com 🎉"
] | 2022-05-01T14:00:12 | 2022-05-11T11:29:31 | 2022-05-05T14:46:20 | CONTRIBUTOR | null | * update k8s versions used for tests
* docs: refresh example with current versions
* rename symbols to avoid mentioning specific versions and ease future tests maintenance
Closes #825 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/826/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/826/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/826",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/826",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/826.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/826.patch",
"merged_at": "2022-05-05T14:46:20"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/825 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/825/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/825/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/825/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/825 | 1,222,164,524 | I_kwDOBZHfyM5I2MAs | 825 | digitalocean_kubernetes_cluster: acceptance tests fail due to retired k8s versions | {
"login": "gizero",
"id": 1544064,
"node_id": "MDQ6VXNlcjE1NDQwNjQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/1544064?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gizero",
"html_url": "https://github.com/gizero",
"followers_url": "https://api.github.com/users/gizero/followers",
"following_url": "https://api.github.com/users/gizero/following{/other_user}",
"gists_url": "https://api.github.com/users/gizero/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gizero/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gizero/subscriptions",
"organizations_url": "https://api.github.com/users/gizero/orgs",
"repos_url": "https://api.github.com/users/gizero/repos",
"events_url": "https://api.github.com/users/gizero/events{/privacy}",
"received_events_url": "https://api.github.com/users/gizero/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [] | 2022-05-01T13:55:50 | 2022-05-05T14:46:20 | 2022-05-05T14:46:20 | CONTRIBUTOR | null | <!-- Thank you for opening an issue. Please note that we try to keep the issue
tracker reserved for bug reports and feature requests. For general usage
questions, please see:
https://github.com/digitalocean/terraform-provider-digitalocean/discussions
**NOTE: Before submitting a bug**
There are cases where the provider receives HTTP Service Error (500 level HTTP
statuses) responses from the DigitalOcean API. There are some cases where the
provider might handle these and retry. If the problem persists, it's best to
contact [DigitalOcean support](https://cloudsupport.digitalocean.com/) -->
# Bug Report
Acceptance tests for resource_digitalocean_kubernetes_cluster do fail beacause they require to create clusters with k8s versions (1.19, 1.20) no more supported on DOKS.
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/825/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/825/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/824 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/824/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/824/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/824/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/824 | 1,221,784,417 | PR_kwDOBZHfyM43HKDQ | 824 | kubernetes: always perform upgrade check. (#823) | {
"login": "macno",
"id": 76600,
"node_id": "MDQ6VXNlcjc2NjAw",
"avatar_url": "https://avatars.githubusercontent.com/u/76600?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/macno",
"html_url": "https://github.com/macno",
"followers_url": "https://api.github.com/users/macno/followers",
"following_url": "https://api.github.com/users/macno/following{/other_user}",
"gists_url": "https://api.github.com/users/macno/gists{/gist_id}",
"starred_url": "https://api.github.com/users/macno/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/macno/subscriptions",
"organizations_url": "https://api.github.com/users/macno/orgs",
"repos_url": "https://api.github.com/users/macno/repos",
"events_url": "https://api.github.com/users/macno/events{/privacy}",
"received_events_url": "https://api.github.com/users/macno/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"Hi @scotchneat just a check to see if everything is ok on my side or you need me to do something else. Thanks!",
"Hey, @macno - Thanks a ton for this sweet PR! 😄\r\n\r\nWould you please shoot me an email when you get a chance?\r\nmcowley at digitalocean dot com 🎉"
] | 2022-04-30T09:14:19 | 2022-06-01T16:07:46 | 2022-05-11T16:07:26 | CONTRIBUTOR | null | version check does not depend on node_pool changes | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/824/reactions",
"total_count": 1,
"+1": 1,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/824/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/824",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/824",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/824.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/824.patch",
"merged_at": "2022-05-11T16:07:26"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/823 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/823/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/823/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/823/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/823 | 1,221,783,511 | I_kwDOBZHfyM5I0u_X | 823 | digitalocean_kubernetes_cluster: does not trigger k8s upgrade on version change | {
"login": "gizero",
"id": 1544064,
"node_id": "MDQ6VXNlcjE1NDQwNjQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/1544064?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gizero",
"html_url": "https://github.com/gizero",
"followers_url": "https://api.github.com/users/gizero/followers",
"following_url": "https://api.github.com/users/gizero/following{/other_user}",
"gists_url": "https://api.github.com/users/gizero/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gizero/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gizero/subscriptions",
"organizations_url": "https://api.github.com/users/gizero/orgs",
"repos_url": "https://api.github.com/users/gizero/repos",
"events_url": "https://api.github.com/users/gizero/events{/privacy}",
"received_events_url": "https://api.github.com/users/gizero/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [
"Looks like it could have been caught already by acceptance test. At least on a local env `TestAccDigitalOceanKubernetesCluster_UpgradeVersion()` fails with:\r\n\r\n```\r\nmake testacc TESTARGS='-run=Kubernetes\r\n-count=1 -parallel=5 -run=TestAccDigitalOceanKubernetesCluster_UpgradeVersion'\r\n==> Checking that co... | 2022-04-30T09:09:27 | 2022-05-11T17:34:39 | 2022-05-11T17:34:39 | CONTRIBUTOR | null | <!-- Thank you for opening an issue. Please note that we try to keep the issue
tracker reserved for bug reports and feature requests. For general usage
questions, please see:
https://github.com/digitalocean/terraform-provider-digitalocean/discussions
**NOTE: Before submitting a bug**
There are cases where the provider receives HTTP Service Error (500 level HTTP
statuses) responses from the DigitalOcean API. There are some cases where the
provider might handle these and retry. If the problem persists, it's best to
contact [DigitalOcean support](https://cloudsupport.digitalocean.com/) -->
# Bug Report
<!-- Include as much of the following details with your bug report: -->
---
## Describe the bug
<!-- A clear and concise description of what the bug is. -->
We have k8s clusters with minor version pinned by terraform and DO automatic patch upgrades enabled.
When we wanted to trigger a k8s minor version upgrade, we noticed that several changes to the minor version in TF manifests did not trigger the cluster upgrade on DO. When that was the case, following `terraform apply` runs reported the change was still unapplied but never triggered the actual upgrade.
After digging a bit, it turned out to be related to the control flow in `resourceDigitalOceanKubernetesClusterUpdate()`, where the execution never even reaches a cluster version check unless changes to the cluster's `node_pool` are detected as well. This does not seem to be the correct behaviour.
This was a bit hard to figure out because we were pretty sure it worked in the past. When it happened to work, it was probably due to those being the first `terraform apply` runs after some automatic patch upgrade was performed by DO, yet triggering a `node_pool` change that required the TF state to be synched.
Is the above analysis correct?
### Affected Resource(s)
- digitalocean_kubernetes_cluster
<!-- Please list the resources, for example:
If this issue appears to affect multiple resources, it may be an issue with
Terraform's core, so please mention this. -->
### Expected Behavior
<!-- What should have happened? -->
A cluster upgrade should be triggered for any version change.
### Actual Behavior
<!-- What actually happened? -->
No upgrade is triggered if there is a version change but no contingent node_pool changes
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/823/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/823/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/822 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/822/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/822/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/822/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/822 | 1,221,244,829 | PR_kwDOBZHfyM43Fe-u | 822 | alerts: Support load balancer alert types. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-04-29T16:48:13 | 2022-05-04T15:10:42 | 2022-05-04T15:10:41 | MEMBER | null | A number of load balancer alert types are now supported by the API. This enables them in Terraform as well. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/822/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/822/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/822",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/822",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/822.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/822.patch",
"merged_at": "2022-05-04T15:10:41"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/821 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/821/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/821/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/821/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/821 | 1,214,817,166 | PR_kwDOBZHfyM42vhr3 | 821 | docs: Note limitations on importing MongoDB users. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-04-25T17:24:54 | 2022-04-25T17:32:31 | 2022-04-25T17:32:31 | MEMBER | null | Document the limitations on importing MongoDB users discussed in https://github.com/digitalocean/terraform-provider-digitalocean/issues/814 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/821/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/821/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/821",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/821",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/821.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/821.patch",
"merged_at": "2022-04-25T17:32:31"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/820 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/820/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/820/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/820/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/820 | 1,214,579,871 | PR_kwDOBZHfyM42uurO | 820 | Switch to retryable http client addresses #546 | {
"login": "tback",
"id": 83432,
"node_id": "MDQ6VXNlcjgzNDMy",
"avatar_url": "https://avatars.githubusercontent.com/u/83432?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tback",
"html_url": "https://github.com/tback",
"followers_url": "https://api.github.com/users/tback/followers",
"following_url": "https://api.github.com/users/tback/following{/other_user}",
"gists_url": "https://api.github.com/users/tback/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tback/subscriptions",
"organizations_url": "https://api.github.com/users/tback/orgs",
"repos_url": "https://api.github.com/users/tback/repos",
"events_url": "https://api.github.com/users/tback/events{/privacy}",
"received_events_url": "https://api.github.com/users/tback/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"Let me know if there is anything I can do to make this any easier on your end.\r\n",
"@tback thank you for your contribution. I can see where this will be useful in many cases. \r\nI'm working on understanding the impact to the behavior of the provider and need to determine if there are any cases where we'd want... | 2022-04-25T14:15:49 | 2022-11-18T08:44:47 | 2022-11-18T08:44:46 | NONE | null | I replaced the default http client with hashicorps retryable httpclient. That client detects and adapts to http status code 429.
This is my first PR in this project. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/820/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/820/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/820",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/820",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/820.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/820.patch",
"merged_at": null
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/819 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/819/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/819/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/819/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/819 | 1,213,674,738 | I_kwDOBZHfyM5IVzTy | 819 | Additional records added to terraform for DNS | {
"login": "userbradley",
"id": 41597815,
"node_id": "MDQ6VXNlcjQxNTk3ODE1",
"avatar_url": "https://avatars.githubusercontent.com/u/41597815?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/userbradley",
"html_url": "https://github.com/userbradley",
"followers_url": "https://api.github.com/users/userbradley/followers",
"following_url": "https://api.github.com/users/userbradley/following{/other_user}",
"gists_url": "https://api.github.com/users/userbradley/gists{/gist_id}",
"starred_url": "https://api.github.com/users/userbradley/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/userbradley/subscriptions",
"organizations_url": "https://api.github.com/users/userbradley/orgs",
"repos_url": "https://api.github.com/users/userbradley/repos",
"events_url": "https://api.github.com/users/userbradley/events{/privacy}",
"received_events_url": "https://api.github.com/users/userbradley/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326613,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTM=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/enhancement-provider",
"name": "enhancement-provider",
"color": "d4c5f9",
"default": false,
"description": ""
}
] | closed | false | null | [] | null | [
"Hi @userbradley! Have you seen the [`digitalocean_record` resource](https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/record)? If I'm reading your request right, it should do what you are looking for. E.g.\r\n\r\n```hcl\r\nresource \"digitalocean_domain\" \"default\" {\r\n n... | 2022-04-24T14:46:41 | 2022-04-25T16:55:32 | 2022-04-25T16:55:31 | NONE | null | ### Is your feature request related to a problem? Please describe.
No, not yet!
### Describe the solution you'd like
Currently when using domains via terraform, I am only able to create A records, no `txt` or anything else
### Describe alternatives you've considered
Using another DNS provicer
### Additional context
I would prefer to have 2 resources, one creating the Zone, and another creating records in that zone
new resource: `digitalocean_domain`
```
resource "digitalocean_domain" "example" {
name = "do.breadinfra.net"
}
```
This will have the outputs of:
* ID
* Creation time
Resource changes: `digitalocean_domain`
```
resource "digitalocean_domain" "webserver" {
name = "webserver"
type = "a/mx/aaaa/txt/etc"
zone_id = digitalocean_domain.example.id
ttl = "100" //seconds
}
```
Either I've missed something but I don't seem to be able to create records other than `A` via terraform
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/819/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/819/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/818 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/818/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/818/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/818/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/818 | 1,211,279,132 | PR_kwDOBZHfyM42kkdT | 818 | Fix loop until timeout when updating App without triggering deployment | {
"login": "rgdcardoso",
"id": 102069793,
"node_id": "U_kgDOBhV2IQ",
"avatar_url": "https://avatars.githubusercontent.com/u/102069793?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rgdcardoso",
"html_url": "https://github.com/rgdcardoso",
"followers_url": "https://api.github.com/users/rgdcardoso/followers",
"following_url": "https://api.github.com/users/rgdcardoso/following{/other_user}",
"gists_url": "https://api.github.com/users/rgdcardoso/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rgdcardoso/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rgdcardoso/subscriptions",
"organizations_url": "https://api.github.com/users/rgdcardoso/orgs",
"repos_url": "https://api.github.com/users/rgdcardoso/repos",
"events_url": "https://api.github.com/users/rgdcardoso/events{/privacy}",
"received_events_url": "https://api.github.com/users/rgdcardoso/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"Hi @rgdcardoso,\r\n\r\nThank you so much for the PR, and sorry for the lack of response. :pray: Unfortunately we somehow missed it. I've fixed this issue as I came across it myself while implementing another feature (https://github.com/digitalocean/terraform-provider-digitalocean/pull/831/commits/d95782344d77a609... | 2022-04-21T16:32:46 | 2022-05-25T19:59:19 | 2022-05-25T19:59:19 | NONE | null | The current DO App update implementation gets stuck in a loop until timeout each time a resource change doesn't trigger an App redeployment (update the App `name`, for instance) or if the deployment is so quick that it finishes before the first App GET is called to fetch the `deploymentID`.
The current PR fixes this issue, ensuring that if there is no `in_progress_deployment` field in the App GET, it cleanly exits the loop. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/818/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/818/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/818",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/818",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/818.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/818.patch",
"merged_at": null
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/817 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/817/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/817/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/817/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/817 | 1,209,371,604 | I_kwDOBZHfyM5IFYvU | 817 | Supports upload file when creating `digitalocean_custom_image` Resources. | {
"login": "VergeDX",
"id": 25173827,
"node_id": "MDQ6VXNlcjI1MTczODI3",
"avatar_url": "https://avatars.githubusercontent.com/u/25173827?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/VergeDX",
"html_url": "https://github.com/VergeDX",
"followers_url": "https://api.github.com/users/VergeDX/followers",
"following_url": "https://api.github.com/users/VergeDX/following{/other_user}",
"gists_url": "https://api.github.com/users/VergeDX/gists{/gist_id}",
"starred_url": "https://api.github.com/users/VergeDX/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/VergeDX/subscriptions",
"organizations_url": "https://api.github.com/users/VergeDX/orgs",
"repos_url": "https://api.github.com/users/VergeDX/repos",
"events_url": "https://api.github.com/users/VergeDX/events{/privacy}",
"received_events_url": "https://api.github.com/users/VergeDX/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326613,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTM=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/enhancement-provider",
"name": "enhancement-provider",
"color": "d4c5f9",
"default": false,
"description": ""
}
] | closed | false | null | [] | null | [
"Hi there, thanks for the write up! We will review and get back to you as soon as we can.",
"Hey @VergeDX! You are correct that the API for custom images only supports importing via a URL. Terraform is limited by that and can not support uploading an image directly. You might want to look into using something lik... | 2022-04-20T08:45:39 | 2022-04-28T01:15:19 | 2022-04-28T01:15:19 | NONE | null | ### Is your feature request related to a problem? Please describe.
I'm using NixOS as deploy, this Linux distribution allow us build work-ready ISO:
[https://nixos.wiki/wiki/Creating_a_NixOS_live_CD](https://nixos.wiki/wiki/Creating_a_NixOS_live_CD)
After build, I got a `nixos.qcow2.gz` file, as Resources `digitalocean_custom_image` in terraform.
But it seems that we can only create custom images through URLs and cannot let terraform to upload local file...
### Describe the solution you'd like
Make a property like `digitalocean` to upload local files.
### Describe alternatives you've considered
Manually uploads the custom images, but that can't be integrated into the CI flow...
### Additional context
I also found the API for custom images, which seems not supports upload locally either...
Maybe this is the source of the problem ( ?
[https://docs.digitalocean.com/reference/api/api-reference/#operation/create_custom_image](https://docs.digitalocean.com/reference/api/api-reference/#operation/create_custom_image)
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/817/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/817/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/816 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/816/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/816/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/816/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/816 | 1,205,172,186 | PR_kwDOBZHfyM42RT0q | 816 | Doc Update: Fix k8's node_pool.tags description | {
"login": "danaelhe",
"id": 42972711,
"node_id": "MDQ6VXNlcjQyOTcyNzEx",
"avatar_url": "https://avatars.githubusercontent.com/u/42972711?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/danaelhe",
"html_url": "https://github.com/danaelhe",
"followers_url": "https://api.github.com/users/danaelhe/followers",
"following_url": "https://api.github.com/users/danaelhe/following{/other_user}",
"gists_url": "https://api.github.com/users/danaelhe/gists{/gist_id}",
"starred_url": "https://api.github.com/users/danaelhe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/danaelhe/subscriptions",
"organizations_url": "https://api.github.com/users/danaelhe/orgs",
"repos_url": "https://api.github.com/users/danaelhe/repos",
"events_url": "https://api.github.com/users/danaelhe/events{/privacy}",
"received_events_url": "https://api.github.com/users/danaelhe/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-04-15T01:55:38 | 2022-04-18T13:59:20 | 2022-04-18T13:59:12 | MEMBER | null | per #815
thanks for the catch @kylepeterdavies | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/816/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/816/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/816",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/816",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/816.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/816.patch",
"merged_at": "2022-04-18T13:59:12"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/815 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/815/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/815/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/815/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/815 | 1,205,153,750 | I_kwDOBZHfyM5H1S_W | 815 | Documentation inconsistent | {
"login": "KylePeterDavies",
"id": 12613678,
"node_id": "MDQ6VXNlcjEyNjEzNjc4",
"avatar_url": "https://avatars.githubusercontent.com/u/12613678?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/KylePeterDavies",
"html_url": "https://github.com/KylePeterDavies",
"followers_url": "https://api.github.com/users/KylePeterDavies/followers",
"following_url": "https://api.github.com/users/KylePeterDavies/following{/other_user}",
"gists_url": "https://api.github.com/users/KylePeterDavies/gists{/gist_id}",
"starred_url": "https://api.github.com/users/KylePeterDavies/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/KylePeterDavies/subscriptions",
"organizations_url": "https://api.github.com/users/KylePeterDavies/orgs",
"repos_url": "https://api.github.com/users/KylePeterDavies/repos",
"events_url": "https://api.github.com/users/KylePeterDavies/events{/privacy}",
"received_events_url": "https://api.github.com/users/KylePeterDavies/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [
"Hi there,\r\n\r\nThank you so much for this write up! I agree, it does appear to be a typo. We will post a PR fix for it soon. Thanks for bringing it to our attention!",
"Closed via https://github.com/digitalocean/terraform-provider-digitalocean/pull/816"
] | 2022-04-15T01:13:27 | 2022-04-26T14:22:48 | 2022-04-26T14:22:47 | NONE | null | If you look at `docs/resources/kubernetes_cluster.md`
`node_pool.tags = A list of tag names to be applied to the Kubernetes cluster.`
versus `docs/data-resources/kubernetes_cluster.md`
`node_pool.tags = list of tag names applied to the node pool.`
I believe that that `docs/resources/kubernetes_cluster.md` should be updated to show that the tags under `node_pool` are for the nodes and not the cluster as there is already a tags input for the cluster. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/815/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/815/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/814 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/814/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/814/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/814/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/814 | 1,203,596,325 | I_kwDOBZHfyM5HvWwl | 814 | Imported MongoDB digitalocean_database_user password not exported | {
"login": "rhpereda",
"id": 10508093,
"node_id": "MDQ6VXNlcjEwNTA4MDkz",
"avatar_url": "https://avatars.githubusercontent.com/u/10508093?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rhpereda",
"html_url": "https://github.com/rhpereda",
"followers_url": "https://api.github.com/users/rhpereda/followers",
"following_url": "https://api.github.com/users/rhpereda/following{/other_user}",
"gists_url": "https://api.github.com/users/rhpereda/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rhpereda/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rhpereda/subscriptions",
"organizations_url": "https://api.github.com/users/rhpereda/orgs",
"repos_url": "https://api.github.com/users/rhpereda/repos",
"events_url": "https://api.github.com/users/rhpereda/events{/privacy}",
"received_events_url": "https://api.github.com/users/rhpereda/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 1049485552,
"node_id": "MDU6TGFiZWwxMDQ5NDg1NTUy",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/do-api",
"name": "do-api",
"color": "0080ff",
"default": false,
"description": "Depends on changes to the DigitalOcean API"
}
] | open | false | null | [] | null | [
"Hi there,\r\n\r\nThank you for this write up. The PRs and Github issue's you included were specific to creating _new_ users. We don't currently support importing already existing users, only creating new ones. We will have to look into documenting this somewhere. Apologies for the inconvenience. ",
"To add a bit... | 2022-04-13T17:37:34 | 2022-08-04T19:15:11 | null | NONE | null | Hi, I'm using the version 2.19.0 and it seems that this issue is back: https://github.com/digitalocean/terraform-provider-digitalocean/pull/697 when importing an already existing user. So far i'm unable to get the password value. Maybe have something to do with this fix: https://github.com/digitalocean/terraform-provider-digitalocean/issues/812.
the resources creation:
```
resource "digitalocean_database_user" "database_user" {
count = var.deployment_environment == "production" ? 1 : 0
cluster_id = digitalocean_database_cluster.mongodb-production[0].id
name = "user-${var.project_name}"
}
```
Snippet of tf state
```
{
"mode": "managed",
"type": "digitalocean_database_user",
"name": "database_user",
"provider": "provider[\"registry.terraform.io/digitalocean/digitalocean\"]",
"instances": [
{
"index_key": 0,
"schema_version": 0,
"attributes": {
"cluster_id": "ae22bd23-d7ac-4b6f-a7d3-826a705e469a",
"id": "ae22bd23-d7ac-4b6f-a7d3-826a705e469a/user/user-xxx",
"mysql_auth_plugin": null,
"name": "user-xxx",
"password": null,
"role": "normal"
},
"sensitive_attributes": [],
"private": "eyJzY2hlbWFfdmVyc2lvbiI6IjAifQ==",
"dependencies": [
"digitalocean_database_cluster.mongodb-production"
]
}
]
}
```
Thanks in advance... | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/814/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/814/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/813 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/813/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/813/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/813/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/813 | 1,203,393,891 | PR_kwDOBZHfyM42LnMy | 813 | go 1.18 | {
"login": "ChiefMateStarbuck",
"id": 23060145,
"node_id": "MDQ6VXNlcjIzMDYwMTQ1",
"avatar_url": "https://avatars.githubusercontent.com/u/23060145?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ChiefMateStarbuck",
"html_url": "https://github.com/ChiefMateStarbuck",
"followers_url": "https://api.github.com/users/ChiefMateStarbuck/followers",
"following_url": "https://api.github.com/users/ChiefMateStarbuck/following{/other_user}",
"gists_url": "https://api.github.com/users/ChiefMateStarbuck/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ChiefMateStarbuck/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ChiefMateStarbuck/subscriptions",
"organizations_url": "https://api.github.com/users/ChiefMateStarbuck/orgs",
"repos_url": "https://api.github.com/users/ChiefMateStarbuck/repos",
"events_url": "https://api.github.com/users/ChiefMateStarbuck/events{/privacy}",
"received_events_url": "https://api.github.com/users/ChiefMateStarbuck/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-04-13T14:36:22 | 2022-04-18T17:39:08 | 2022-04-18T17:39:07 | MEMBER | null | This updates godo to use 1.18 and updates the test matrix
This also runs `go mod tidy` and `go mod vendor` | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/813/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/813/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/813",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/813",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/813.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/813.patch",
"merged_at": "2022-04-18T17:39:07"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/812 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/812/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/812/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/812/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/812 | 1,198,259,055 | I_kwDOBZHfyM5Ha_tv | 812 | digitalocean_database_user password stored in plaintext in state file | {
"login": "anuraags",
"id": 482006,
"node_id": "MDQ6VXNlcjQ4MjAwNg==",
"avatar_url": "https://avatars.githubusercontent.com/u/482006?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/anuraags",
"html_url": "https://github.com/anuraags",
"followers_url": "https://api.github.com/users/anuraags/followers",
"following_url": "https://api.github.com/users/anuraags/following{/other_user}",
"gists_url": "https://api.github.com/users/anuraags/gists{/gist_id}",
"starred_url": "https://api.github.com/users/anuraags/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/anuraags/subscriptions",
"organizations_url": "https://api.github.com/users/anuraags/orgs",
"repos_url": "https://api.github.com/users/anuraags/repos",
"events_url": "https://api.github.com/users/anuraags/events{/privacy}",
"received_events_url": "https://api.github.com/users/anuraags/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [
"I was mistaken about this."
] | 2022-04-09T05:41:25 | 2022-04-09T05:48:01 | 2022-04-09T05:48:01 | NONE | null | <!-- Thank you for opening an issue. Please note that we try to keep the issue
tracker reserved for bug reports and feature requests. For general usage
questions, please see:
https://github.com/digitalocean/terraform-provider-digitalocean/discussions
**NOTE: Before submitting a bug**
There are cases where the provider receives HTTP Service Error (500 level HTTP
statuses) responses from the DigitalOcean API. There are some cases where the
provider might handle these and retry. If the problem persists, it's best to
contact [DigitalOcean support](https://cloudsupport.digitalocean.com/) -->
# Bug Report
<!-- Include as much of the following details with your bug report: -->
---
## Describe the bug
<!-- A clear and concise description of what the bug is. -->
When a digitalocean_database_user resource is declared in the terraform file (I have tested this for mongodb only) the resulting password is being stored in the tfstate file as a plaintext attribute rather than a sensitive attribute. As the tfstate file can be checked into the git repository this is a potential security issue.
### Affected Resource(s)
- digitalocean_database_user
### Expected Behavior
Password is stored under the `sensitive_attributes` field in the tfstate file.
### Actual Behavior
Password is stored under the `attributes` field in the tfstate file.
### Steps to Reproduce
1. Create a digitalocean_database_cluster and digitalocean_database_user resource blocks in the terraform file
2. terraform apply
3. Check resulting tfstate file under the digitalocean_database_user resource
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/812/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/812/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/811 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/811/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/811/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/811/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/811 | 1,197,407,906 | PR_kwDOBZHfyM414Nlz | 811 | Do not change the state of tags and labels when they are not defined | {
"login": "phelipealves",
"id": 2778150,
"node_id": "MDQ6VXNlcjI3NzgxNTA=",
"avatar_url": "https://avatars.githubusercontent.com/u/2778150?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/phelipealves",
"html_url": "https://github.com/phelipealves",
"followers_url": "https://api.github.com/users/phelipealves/followers",
"following_url": "https://api.github.com/users/phelipealves/following{/other_user}",
"gists_url": "https://api.github.com/users/phelipealves/gists{/gist_id}",
"starred_url": "https://api.github.com/users/phelipealves/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phelipealves/subscriptions",
"organizations_url": "https://api.github.com/users/phelipealves/orgs",
"repos_url": "https://api.github.com/users/phelipealves/repos",
"events_url": "https://api.github.com/users/phelipealves/events{/privacy}",
"received_events_url": "https://api.github.com/users/phelipealves/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"hi @andrewsomething yes my goal for this PR is to remove that noise. Thanks for your recommendation. I think this is a better way to check the value.\r\n\r\nI will change and test these changes."
] | 2022-04-08T14:44:17 | 2022-06-07T14:17:16 | 2022-06-07T14:17:16 | NONE | null | We cannot change the state of `tags` and `labels` when they are not defined to kubernetes resources.
When a user create a kubernetes cluster or a pool of nodes without set the `tags` and `lables`, the state of tags and labels of resource will be saved as empty array [] or empty map {}.
But when update another parameters of this resources and the read function runs, the schema will be show that the local state is different, given that in remote api of digitalocean return `null`.
This PR can fix this behavior. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/811/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/811/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/811",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/811",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/811.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/811.patch",
"merged_at": null
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/810 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/810/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/810/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/810/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/810 | 1,196,788,900 | I_kwDOBZHfyM5HVYyk | 810 | labels provided to digitalocean_kubernetes_node_pool do not appear in kubernetes node metadata | {
"login": "mjpitz",
"id": 690578,
"node_id": "MDQ6VXNlcjY5MDU3OA==",
"avatar_url": "https://avatars.githubusercontent.com/u/690578?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mjpitz",
"html_url": "https://github.com/mjpitz",
"followers_url": "https://api.github.com/users/mjpitz/followers",
"following_url": "https://api.github.com/users/mjpitz/following{/other_user}",
"gists_url": "https://api.github.com/users/mjpitz/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mjpitz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mjpitz/subscriptions",
"organizations_url": "https://api.github.com/users/mjpitz/orgs",
"repos_url": "https://api.github.com/users/mjpitz/repos",
"events_url": "https://api.github.com/users/mjpitz/events{/privacy}",
"received_events_url": "https://api.github.com/users/mjpitz/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [
"Hi @mjpitz,\r\n\r\nI was not able to reproduce your issue with a simple config like:\r\n\r\n```hcl\r\nresource \"digitalocean_kubernetes_cluster\" \"foo\" {\r\n name = \"foo\"\r\n region = \"nyc1\"\r\n version = \"1.22.8-do.0\"\r\n\r\n node_pool {\r\n name = \"worker-pool\"\r\n size = \"s-2... | 2022-04-08T03:36:59 | 2022-04-08T23:06:39 | 2022-04-08T23:06:38 | NONE | null | # Bug Report
## Describe the bug
Custom `labels` provided to a `digitalocean_kubernetes_node_pool` do not appear in the metadata of the node returned by the Kubernetes API.
### Affected Resource(s)
- digitalocean_kubernetes_node_pool
- digitalocean_kubernetes_cluster.node_pool (maybe?)
### Expected Behavior
`labels` provided to a `digitalocean_kubernetes_node_pool` should appear in the metadata of the nodes belonging to that pool. Modifications to this should also cause an update.
### Actual Behavior
`labels` are not added to the metadata of the nodes belonging to that pool. Modifying the map does not cause an update.
### Steps to Reproduce
This appears like it may be documented, but unimplemented?
**Terraform Configuration Files**
Most of my Terraform is [here](https://github.com/mjpitz/mjpitz/tree/main/infra/do/mya), but I have a handful of additions that I have yet to commit below.
```terraform
# clusters.tf
locals {
clusters = {for cluster in digitalocean_kubernetes_cluster.clusters : cluster.name => cluster.id}
}
resource "digitalocean_kubernetes_node_pool" "cluster_pools" {
count = length(var.node_pools)
cluster_id = local.clusters[var.node_pools[count.index].cluster]
name = var.node_pools[count.index].name
size = var.node_pools[count.index].node_size
auto_scale = false
node_count = var.node_pools[count.index].node_count
tags = var.node_pools[count.index].node_tags
labels = var.node_pools[count.index].node_labels
}
```
```terraform
# terraform.tfvars
node_pools = [
{
cluster : "mya-nyc",
name : "mya-nyc-email",
node_size : "s-4vcpu-8gb",
node_count : 1,
node_tags: [],
node_labels: {
"node.pitz.tech/role" : "email",
},
tags: [],
},
]
```
**Expected behavior**
I would expect the labels to be added as documented and modifications to trigger updates.
**Debug Output**
Not Applicable.
**Panic Output**
Not Applicable.
## Additional context
- Attempted with several versions of the plugin (including latest).
- I tried scaling the cluster to see if it was a race condition with the API server that happened at the same time (no luck).
**Important Factoids**
Not Applicable.
**References**
Not Applicable. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/810/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/810/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/809 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/809/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/809/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/809/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/809 | 1,194,893,104 | I_kwDOBZHfyM5HOJ8w | 809 | digitalocean_database_firewall: provider produced an invalid new value for .rule | {
"login": "0x62",
"id": 6038417,
"node_id": "MDQ6VXNlcjYwMzg0MTc=",
"avatar_url": "https://avatars.githubusercontent.com/u/6038417?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/0x62",
"html_url": "https://github.com/0x62",
"followers_url": "https://api.github.com/users/0x62/followers",
"following_url": "https://api.github.com/users/0x62/following{/other_user}",
"gists_url": "https://api.github.com/users/0x62/gists{/gist_id}",
"starred_url": "https://api.github.com/users/0x62/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0x62/subscriptions",
"organizations_url": "https://api.github.com/users/0x62/orgs",
"repos_url": "https://api.github.com/users/0x62/repos",
"events_url": "https://api.github.com/users/0x62/events{/privacy}",
"received_events_url": "https://api.github.com/users/0x62/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
},
{
"id": 640744187,
"node_id": "MDU6TGFiZWw2NDA3ND... | closed | false | null | [] | null | [
"Hi @0x62,\r\n\r\nI haven't been able to reproduce this problem and can successfully create dynamic rules.\r\n\r\nOne thing that jumped out to me in your config is `each` being used as the temporary variable. By default, it should match the label for the dynamic bock, in this case `rule`. You can also set something... | 2022-04-06T17:15:52 | 2024-02-13T22:04:41 | 2024-02-13T22:04:41 | NONE | null | # Bug Report
## Describe the bug
Terraform throws an error when trying to create a database firewall with multiple rules:
```
resource "digitalocean_database_firewall" "fw" {
depends_on = [digitalocean_vpc.app_vpc]
cluster_id = digitalocean_database_cluster.app.id
rule {
type = "ip_addr"
value = digitalocean_vpc.app_vpc.ip_range
}
dynamic "rule" {
for_each = toset(var.db_allowed_ips)
content {
type = "ip_addr"
value = each.value
}
}
}
```
Terraform error:
```
│ Error: Provider produced inconsistent final plan
│
│ When expanding the plan for
│ module.public_api.digitalocean_database_firewall.fw to include new values
│ learned so far during apply, provider
│ "registry.terraform.io/digitalocean/digitalocean" produced an invalid new
│ value for .rule: planned set element
│ cty.ObjectVal(map[string]cty.Value{"created_at":cty.UnknownVal(cty.String),
│ "type":cty.StringVal("ip_addr"), "uuid":cty.UnknownVal(cty.String),
│ "value":cty.StringVal("10.10.10.0/20")}) does not correlate with any
│ element in actual.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
```
I've also tried creating multiple firewall resources for the same cluster, but this results in only the last rule being applied.
### Affected Resource(s)
- digitalocean_database_firewall
### Expected Behavior
Firewall is created
### Actual Behavior
Error: Provider produced inconsistent final plan
### Steps to Reproduce
1. `terraform apply`
**Terraform Configuration Files**
```
resource "digitalocean_vpc" "app_vpc" {
name = "${var.env}-vpc"
region = var.srv_region
ip_range = lookup(var.vpc_ip_range, var.env)
}
# Postgres database
resource "digitalocean_database_cluster" "app" {
name = "${var.env}-${var.app_slug}-postgres"
engine = "pg"
version = "12"
size = "db-s-1vcpu-1gb"
region = var.srv_region
private_network_uuid = digitalocean_vpc.app_vpc.id
node_count = 1
}
# Postgres firewall (only allow connection inside VPC)
resource "digitalocean_database_firewall" "fw" {
cluster_id = digitalocean_database_cluster.app.id
rule {
type = "ip_addr"
value = digitalocean_vpc.app_vpc.ip_range
}
dynamic "rule" {
for_each = toset(var.db_allowed_ips)
content {
type = "ip_addr"
value = each.value
}
}
}
```
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/809/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/809/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/808 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/808/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/808/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/808/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/808 | 1,191,083,860 | I_kwDOBZHfyM5G_n9U | 808 | HTTP 500 when re-creating Spaces CDN in new region | {
"login": "c-w",
"id": 1086421,
"node_id": "MDQ6VXNlcjEwODY0MjE=",
"avatar_url": "https://avatars.githubusercontent.com/u/1086421?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/c-w",
"html_url": "https://github.com/c-w",
"followers_url": "https://api.github.com/users/c-w/followers",
"following_url": "https://api.github.com/users/c-w/following{/other_user}",
"gists_url": "https://api.github.com/users/c-w/gists{/gist_id}",
"starred_url": "https://api.github.com/users/c-w/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/c-w/subscriptions",
"organizations_url": "https://api.github.com/users/c-w/orgs",
"repos_url": "https://api.github.com/users/c-w/repos",
"events_url": "https://api.github.com/users/c-w/events{/privacy}",
"received_events_url": "https://api.github.com/users/c-w/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
},
{
"id": 5241933455,
"node_id": "LA_kwDOBZHfyM8AAA... | open | false | {
"login": "danaelhe",
"id": 42972711,
"node_id": "MDQ6VXNlcjQyOTcyNzEx",
"avatar_url": "https://avatars.githubusercontent.com/u/42972711?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/danaelhe",
"html_url": "https://github.com/danaelhe",
"followers_url": "https://api.github.com/users/danaelhe/followers",
"following_url": "https://api.github.com/users/danaelhe/following{/other_user}",
"gists_url": "https://api.github.com/users/danaelhe/gists{/gist_id}",
"starred_url": "https://api.github.com/users/danaelhe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/danaelhe/subscriptions",
"organizations_url": "https://api.github.com/users/danaelhe/orgs",
"repos_url": "https://api.github.com/users/danaelhe/repos",
"events_url": "https://api.github.com/users/danaelhe/events{/privacy}",
"received_events_url": "https://api.github.com/users/danaelhe/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "danaelhe",
"id": 42972711,
"node_id": "MDQ6VXNlcjQyOTcyNzEx",
"avatar_url": "https://avatars.githubusercontent.com/u/42972711?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/danaelhe",
"html_url": "https://github.com/danaelhe",
"followers_url": "https://api.... | null | [] | 2022-04-03T23:46:56 | 2023-03-08T17:53:55 | null | NONE | null | # Bug Report
---
## Describe the bug
It seems to be impossible to create a Spaces CDN for a Spaces Bucket if in the past a bucket with the same name existed in a different region.
### Affected Resource(s)
- digitalocean_spaces_bucket
- digitalocean_cdn
### Expected Behavior
The CDN gets created in the new region.
### Actual Behavior
A HTTP 500 error is returned and no CDN is created.
### Steps to Reproduce
1. `terraform apply -var region=nyc3`
2. `terraform destroy -var region=nyc3`
3. `terraform apply -var region=sfo3`
**Terraform Configuration Files**
```hcl
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "2.19.0"
}
}
}
provider "digitalocean" {
token = "<redacted>"
spaces_access_id = "JPBIROVOMJYDZXSFRED4"
spaces_secret_key = "<redacted>"
}
variable "region" {
type = string
}
resource "digitalocean_spaces_bucket" "s3" {
name = "spcsrgntst"
region = var.region
}
resource "digitalocean_cdn" "s3" {
origin = digitalocean_spaces_bucket.s3.bucket_domain_name
}
```
**Software versions**
As per `terraform version`:
```
Terraform v1.1.7
on linux_amd64
+ provider registry.terraform.io/digitalocean/digitalocean v2.19.0
```
**Debug Output**
1. [terraform apply -var region=nyc3](https://gist.github.com/c-w/10f2363d96de797011b3857ce4f62958)
2. [terraform destroy -var region=nyc3](https://gist.github.com/c-w/7cd41e2672ca9dea2a16e65c60fcb328)
3. [terraform apply -var region=sfo3](https://gist.github.com/c-w/89591788c67eb575fc72a157bf0213c3)
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/808/reactions",
"total_count": 6,
"+1": 6,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/808/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/807 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/807/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/807/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/807/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/807 | 1,190,189,498 | I_kwDOBZHfyM5G8Nm6 | 807 | `digitalocean_app` times out waiting for deployment when deployment has completed successfully | {
"login": "robbles",
"id": 92927,
"node_id": "MDQ6VXNlcjkyOTI3",
"avatar_url": "https://avatars.githubusercontent.com/u/92927?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/robbles",
"html_url": "https://github.com/robbles",
"followers_url": "https://api.github.com/users/robbles/followers",
"following_url": "https://api.github.com/users/robbles/following{/other_user}",
"gists_url": "https://api.github.com/users/robbles/gists{/gist_id}",
"starred_url": "https://api.github.com/users/robbles/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/robbles/subscriptions",
"organizations_url": "https://api.github.com/users/robbles/orgs",
"repos_url": "https://api.github.com/users/robbles/repos",
"events_url": "https://api.github.com/users/robbles/events{/privacy}",
"received_events_url": "https://api.github.com/users/robbles/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [
"Fixed via https://github.com/digitalocean/terraform-provider-digitalocean/pull/831/commits/d95782344d77a609acf036501e9b54bf5b10d1cf in https://github.com/digitalocean/terraform-provider-digitalocean/pull/831"
] | 2022-04-01T19:25:16 | 2022-05-25T19:54:12 | 2022-05-25T19:54:12 | NONE | null | <!-- Thank you for opening an issue. Please note that we try to keep the issue
tracker reserved for bug reports and feature requests. For general usage
questions, please see:
https://github.com/digitalocean/terraform-provider-digitalocean/discussions
**NOTE: Before submitting a bug**
There are cases where the provider receives HTTP Service Error (500 level HTTP
statuses) responses from the DigitalOcean API. There are some cases where the
provider might handle these and retry. If the problem persists, it's best to
contact [DigitalOcean support](https://cloudsupport.digitalocean.com/) -->
# Bug Report
<!-- Include as much of the following details with your bug report: -->
---
## Describe the bug
When making small changes to a `digitalocean_app`, I have seen the provider often get stuck on the `Still modifying...` step up until the create timeout for the resource is hit and I get the following error:
```
Error: timeout waiting for app (...redacted) deployment
```
However, when checking with both the web UI and `doctl`, I can see that the deploy completed successfully.
It looks to me like what might be happening is a race condition inside the code that checks for app deployment status, here:
https://github.com/digitalocean/terraform-provider-digitalocean/blob/v2.18.0/digitalocean/resource_digitalocean_app.go#L182-L190
If the deploy completes very rapidly in between checks for the deployment ID to show up on the app, I think that code will get stuck forever.
I tested by watching the TRACE logs of an apply, and it does look like the `in_progress_deployment` key doesn't show up on the timing out deploys.
### Affected Resource(s)
<!-- Please list the resources, for example:
- digitalocean_droplet
- digitalocean_kubernetes_cluster
If this issue appears to affect multiple resources, it may be an issue with
Terraform's core, so please mention this. -->
- digitalocean_app
### Expected Behavior
<!-- What should have happened? -->
The deploy should have completed and `terraform apply` exited successfully.
### Actual Behavior
<!-- What actually happened? -->
The apply command times out and shows an error.
### Steps to Reproduce
<!-- Please list the steps required to reproduce the issue, for example:
1. `terraform apply` -->
Given that this appears to be a timing bug, my particular config might not reproduce the issue reliably. I was able to trigger pretty often by making changes to the `alert` blocks on a previously deployed app only, and saw it happen only on an app deployed to the TOR region - perhaps because it's closer to me geographically?
<!--
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.-->
**Expected behavior**
<!-- Run `terraform -v` to show the version. If you are not running the latest
version of Terraform, please upgrade because your issue may have already been
fixed. -->
**Debug Output**
<!-- Please provide a link to a GitHub Gist containing the complete debug output:
https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the
debug output in the issue; just paste a link to the Gist. -->
**Panic Output**
<!-- If Terraform produced a panic, please provide a link to a GitHub Gist
containing the output of the `crash.log`. -->
## Additional context
<!-- Add any other context about the problem here. -->
**Important Factoids**
<!-- Droplets use custom images or kernels. -->
**References**
<!-- Include links to other GitHub issues (open or closed) or Pull Requests
that relate to this issue. -->
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/807/reactions",
"total_count": 1,
"+1": 1,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/807/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/806 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/806/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/806/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/806/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/806 | 1,183,965,302 | PR_kwDOBZHfyM41LvKc | 806 | Prep v2.19.0 release. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-03-28T20:39:44 | 2022-03-29T21:18:28 | 2022-03-29T21:18:27 | MEMBER | null | null | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/806/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/806/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/806",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/806",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/806.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/806.patch",
"merged_at": "2022-03-29T21:18:27"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/805 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/805/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/805/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/805/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/805 | 1,181,636,691 | I_kwDOBZHfyM5GblhT | 805 | Error: Failed to query available provider packages | {
"login": "adrianteri",
"id": 10687877,
"node_id": "MDQ6VXNlcjEwNjg3ODc3",
"avatar_url": "https://avatars.githubusercontent.com/u/10687877?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/adrianteri",
"html_url": "https://github.com/adrianteri",
"followers_url": "https://api.github.com/users/adrianteri/followers",
"following_url": "https://api.github.com/users/adrianteri/following{/other_user}",
"gists_url": "https://api.github.com/users/adrianteri/gists{/gist_id}",
"starred_url": "https://api.github.com/users/adrianteri/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/adrianteri/subscriptions",
"organizations_url": "https://api.github.com/users/adrianteri/orgs",
"repos_url": "https://api.github.com/users/adrianteri/repos",
"events_url": "https://api.github.com/users/adrianteri/events{/privacy}",
"received_events_url": "https://api.github.com/users/adrianteri/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [
"Can you share more of your Terraform config? I am not able to reproduce the probably using the `main.tf` provided. \r\n\r\nThe `terraform init` seems to suggest that the DigitalOcean provider is installed:\r\n\r\n```\r\n- Finding digitalocean/digitalocean versions matching \"2.18.0\"...\r\n- Installing digitalocea... | 2022-03-26T09:58:46 | 2022-03-27T09:44:36 | 2022-03-27T09:44:36 | NONE | null | <!-- Thank you for opening an issue. Please note that we try to keep the issue
tracker reserved for bug reports and feature requests. For general usage
questions, please see:
https://github.com/digitalocean/terraform-provider-digitalocean/discussions
**NOTE: Before submitting a bug**
There are cases where the provider receives HTTP Service Error (500 level HTTP
statuses) responses from the DigitalOcean API. There are some cases where the
provider might handle these and retry. If the problem persists, it's best to
contact [DigitalOcean support](https://cloudsupport.digitalocean.com/) -->
# Bug Report
<!-- Include as much of the following details with your bug report: -->
---
## Describe the bug
<!-- A clear and concise description of what the bug is. -->
On **Terraform Init** an error is displayed that terraform cannot find available providers. The **.terraform** dir is created and provider downloaded but any further steps result in errors.
I have followed the latest docs to setup the provider as from https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs
**Terraform Version**:
```Bash output
╰─ terraform --version ─╯
Terraform v1.1.7
on linux_amd64
```
### Affected Resource(s)
<!-- Please list the resources, for example:
- digitalocean_droplet
- digitalocean_kubernetes_cluster
If this issue appears to affect multiple resources, it may be an issue with
Terraform's core, so please mention this. -->
All DigitalOcean Provider resources and data sources.
### Expected Behavior
<!-- What should have happened? -->
Terraform init and other cli commands to return no errors.
### Actual Behavior
<!-- What actually happened? -->
All commands with exception of **fmt** return errors.
### Steps to Reproduce
<!-- Please list the steps required to reproduce the issue, for example:
1. `terraform apply` -->
**Terraform Configuration Files**
<!--
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.-->
Provider Setup section on **main.tf**:
```terraform HCL
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "2.18.0"
}
}
}
variable "do_token" {}
provider "digitalocean" {
# Configuration options
token = var.do_token
}
```
**Expected behavior**
<!-- Run `terraform -v` to show the version. If you are not running the latest
version of Terraform, please upgrade because your issue may have already been
fixed. -->
**Debug Output**
<!-- Please provide a link to a GitHub Gist containing the complete debug output:
https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the
debug output in the issue; just paste a link to the Gist. -->
- **terraform init**:
```terraform output
╰─ terraform init ─╯
Initializing the backend...
Initializing provider plugins...
- Finding latest version of hashicorp/digital...
- Finding digitalocean/digitalocean versions matching "2.18.0"...
- Installing digitalocean/digitalocean v2.18.0...
- Installed digitalocean/digitalocean v2.18.0 (signed by a HashiCorp partner, key ID F82037E524B9C0E8)
Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/cli/plugins/signing.html
╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider hashicorp/digital: provider registry
│ registry.terraform.io does not have a provider named registry.terraform.io/hashicorp/digital
│
│ All modules should specify their required_providers so that external consumers will get the correct
│ providers when using a module. To see which modules are currently depending on hashicorp/digital, run
│ the following command:
│ terraform providers
╵
```
- **terraform validate**:
```terraform output
╰─ terraform validate ─╯
╷
│ Error: Missing required provider
│
│ This configuration requires provider registry.terraform.io/digitalocean/digitalocean, but that provider
│ isn't available. You may be able to install it automatically by running:
│ terraform init
╵
╷
│ Error: Missing required provider
│
│ This configuration requires provider registry.terraform.io/hashicorp/digital, but that provider isn't
│ available. You may be able to install it automatically by running:
│ terraform init
```
- **terraform plan**:
```terraform output
╷
│ Error: Inconsistent dependency lock file
│
│ The following dependency selections recorded in the lock file are inconsistent with the current
│ configuration:
│ - provider registry.terraform.io/digitalocean/digitalocean: required by this configuration but no version is selected
│ - provider registry.terraform.io/hashicorp/digital: required by this configuration but no version is selected
│
│ To make the initial dependency selections that will initialize the dependency lock file, run:
│ terraform init
```
- ** terraform apply**: Same as terraform plan.
**Panic Output**
<!-- If Terraform produced a panic, please provide a link to a GitHub Gist
containing the output of the `crash.log`. -->
## Additional context
<!-- Add any other context about the problem here. -->
**Important Factoids**
<!-- Droplets use custom images or kernels. -->
**References**
<!-- Include links to other GitHub issues (open or closed) or Pull Requests
that relate to this issue. -->
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/805/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/805/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/804 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/804/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/804/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/804/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/804 | 1,181,216,455 | PR_kwDOBZHfyM41Ci8O | 804 | registry: Support providing custom region. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-03-25T19:58:49 | 2022-03-28T20:35:34 | 2022-03-28T20:35:31 | MEMBER | null | Recently, the API grew support for specifying the region for a container registry. This PR brings that to Terraform. It also exposed some additional information about registries (`create_at` and `storage_usage_bytes`).
fixes: #803 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/804/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/804/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/804",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/804",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/804.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/804.patch",
"merged_at": "2022-03-28T20:35:31"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/803 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/803/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/803/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/803/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/803 | 1,180,901,966 | I_kwDOBZHfyM5GYyJO | 803 | digitalocean_container_registry doesn't have datacenter region | {
"login": "jonasdk",
"id": 85319,
"node_id": "MDQ6VXNlcjg1MzE5",
"avatar_url": "https://avatars.githubusercontent.com/u/85319?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jonasdk",
"html_url": "https://github.com/jonasdk",
"followers_url": "https://api.github.com/users/jonasdk/followers",
"following_url": "https://api.github.com/users/jonasdk/following{/other_user}",
"gists_url": "https://api.github.com/users/jonasdk/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jonasdk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jonasdk/subscriptions",
"organizations_url": "https://api.github.com/users/jonasdk/orgs",
"repos_url": "https://api.github.com/users/jonasdk/repos",
"events_url": "https://api.github.com/users/jonasdk/events{/privacy}",
"received_events_url": "https://api.github.com/users/jonasdk/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326613,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTM=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/enhancement-provider",
"name": "enhancement-provider",
"color": "d4c5f9",
"default": false,
"description": ""
}
] | closed | false | null | [] | null | [] | 2022-03-25T15:00:20 | 2022-03-28T20:35:31 | 2022-03-28T20:35:31 | NONE | null | ### Is your feature request related to a problem? Please describe.
I just had a issue where our registry was created in FRA1 while it should have been created in AMS3. I then tried to find where I could change that and it only appears possible within the interface in DO.
### Describe the solution you'd like
Add a option for selecting a region.
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/803/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/803/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/802 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/802/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/802/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/802/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/802 | 1,174,333,998 | I_kwDOBZHfyM5F_uou | 802 | Support App Platform alerts via slack | {
"login": "hstaudacher",
"id": 289648,
"node_id": "MDQ6VXNlcjI4OTY0OA==",
"avatar_url": "https://avatars.githubusercontent.com/u/289648?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hstaudacher",
"html_url": "https://github.com/hstaudacher",
"followers_url": "https://api.github.com/users/hstaudacher/followers",
"following_url": "https://api.github.com/users/hstaudacher/following{/other_user}",
"gists_url": "https://api.github.com/users/hstaudacher/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hstaudacher/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hstaudacher/subscriptions",
"organizations_url": "https://api.github.com/users/hstaudacher/orgs",
"repos_url": "https://api.github.com/users/hstaudacher/repos",
"events_url": "https://api.github.com/users/hstaudacher/events{/privacy}",
"received_events_url": "https://api.github.com/users/hstaudacher/received_events",
"type": "User",
"site_admin": true
} | [
{
"id": 620326613,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTM=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/enhancement-provider",
"name": "enhancement-provider",
"color": "d4c5f9",
"default": false,
"description": ""
}
] | open | false | null | [] | null | [
"Thanks for opening an issue to track this. As mentioned in [the PR adding initial alert support](https://github.com/digitalocean/terraform-provider-digitalocean/pull/797), destinations can not be configured in the [app spec itself](https://docs.digitalocean.com/products/app-platform/references/app-specification-re... | 2022-03-19T19:06:27 | 2024-03-01T00:41:24 | null | NONE | null | ### Is your feature request related to a problem? Please describe.
When configuring an alert within the digitalocean_app spec only an email alert will be configured. It would be nice if one can choose between email/slack as within the do UI.
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/802/reactions",
"total_count": 4,
"+1": 4,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/802/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/801 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/801/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/801/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/801/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/801 | 1,162,947,129 | PR_kwDOBZHfyM40HuOw | 801 | Prep v2.18.0 release. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-03-08T17:49:02 | 2022-03-08T18:00:30 | 2022-03-08T18:00:28 | MEMBER | null | null | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/801/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/801/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/801",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/801",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/801.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/801.patch",
"merged_at": "2022-03-08T18:00:27"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/800 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/800/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/800/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/800/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/800 | 1,160,316,987 | PR_kwDOBZHfyM4z_T92 | 800 | spaces: Implement support for bucket policy | {
"login": "pavelkovar",
"id": 19745438,
"node_id": "MDQ6VXNlcjE5NzQ1NDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/19745438?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pavelkovar",
"html_url": "https://github.com/pavelkovar",
"followers_url": "https://api.github.com/users/pavelkovar/followers",
"following_url": "https://api.github.com/users/pavelkovar/following{/other_user}",
"gists_url": "https://api.github.com/users/pavelkovar/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pavelkovar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pavelkovar/subscriptions",
"organizations_url": "https://api.github.com/users/pavelkovar/orgs",
"repos_url": "https://api.github.com/users/pavelkovar/repos",
"events_url": "https://api.github.com/users/pavelkovar/events{/privacy}",
"received_events_url": "https://api.github.com/users/pavelkovar/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"Hey, @pavelkovar - Thanks a ton for this sweet PR! 😄\r\n\r\nWould you please shoot me an email when you get a chance?\r\nmcowley at digitalocean dot com 🎉"
] | 2022-03-05T11:04:59 | 2022-03-16T14:49:34 | 2022-03-08T17:34:41 | CONTRIBUTOR | null | This PR adds `digitalocean_spaces_bucket_policy` resource, which allows to attach bucket policy to Spaces. It works similar to the [`aws_s3_bucket_policy` resource](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_policy).
This change adds a new dependency on the _hashicorp/awspolicyequivalence_ module that requires update of the _aws/aws-sdk-go_ module. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/800/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/800/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/800",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/800",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/800.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/800.patch",
"merged_at": "2022-03-08T17:34:41"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/799 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/799/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/799/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/799/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/799 | 1,157,123,981 | I_kwDOBZHfyM5E-E-N | 799 | Support creating a connection pool for a replica database | {
"login": "jgrau",
"id": 108088,
"node_id": "MDQ6VXNlcjEwODA4OA==",
"avatar_url": "https://avatars.githubusercontent.com/u/108088?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jgrau",
"html_url": "https://github.com/jgrau",
"followers_url": "https://api.github.com/users/jgrau/followers",
"following_url": "https://api.github.com/users/jgrau/following{/other_user}",
"gists_url": "https://api.github.com/users/jgrau/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jgrau/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jgrau/subscriptions",
"organizations_url": "https://api.github.com/users/jgrau/orgs",
"repos_url": "https://api.github.com/users/jgrau/repos",
"events_url": "https://api.github.com/users/jgrau/events{/privacy}",
"received_events_url": "https://api.github.com/users/jgrau/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326613,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTM=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/enhancement-provider",
"name": "enhancement-provider",
"color": "d4c5f9",
"default": false,
"description": ""
},
{
"id": 1049485552,
... | closed | false | null | [] | null | [
"Hi there,\r\n\r\nThank you for bringing this to our attention. This has been addressed in #921 and will be available in the next release (which we plan to do in the next few days).\r\n\r\nThank you so much for your feedback! Please don't hesitate to reach out again.\r\n\r\nDana"
] | 2022-03-02T12:23:43 | 2023-01-30T20:38:50 | 2023-01-30T20:38:50 | NONE | null | Hi!
I'm not sure this is a bug or a feature request but in order to not be grumpy and demanding I'm calling it a feature request.
I'm trying to create a connection pool for a `digitalocean_database_replica` but terraform returns a 404 error. I'm not sure if this is supposed to work (bug) or never intended to work (feature request).
Given this configuration:
```
resource "digitalocean_database_connection_pool" "landfolk_sandbox_landfolk_sandbox_ro" {
cluster_id = digitalocean_database_replica.landfolk.id
db_name = digitalocean_database_db.sandbox.name
user = digitalocean_database_user.landfolk_sandbox_ro.name
name = "sandbox-sandbox_ro"
mode = "transaction"
size = 10
```
I get this output:
```
Error: Error creating DatabaseConnectionPool: POST https://api.digitalocean.com/v2/databases/adf6100c-d4ab-4e70-ac4c-e7a7fa16a90f/replicas/landfolk-read-replica/pools: 404 (request "6d24dd53-c2fb-4475-9093-f40f62706a47") 404 page not found
```
---
Looking at the digitalocean api documentation it's unclear how to correctly reference the read replica. I would have expected that the read replica has a unique id (that is not in the form of `<parent cluster id>/replicas/<replica name>`.
Looking at the browser console when doing this operation in the digitalocean ui I see this request:
Request URL: https://cloud.digitalocean.com/api/v1/dbaas/clusters/landfolk-read-replica/pools
Request Method: POST
---
Am I holding it wrong or is it correct that creating a connection pool for a replica is not supported in terraform? | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/799/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/799/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/798 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/798/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/798/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/798/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/798 | 1,153,223,951 | PR_kwDOBZHfyM4znq-Y | 798 | Implement support for App Platform log_destinations | {
"login": "jbrunton",
"id": 1276413,
"node_id": "MDQ6VXNlcjEyNzY0MTM=",
"avatar_url": "https://avatars.githubusercontent.com/u/1276413?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jbrunton",
"html_url": "https://github.com/jbrunton",
"followers_url": "https://api.github.com/users/jbrunton/followers",
"following_url": "https://api.github.com/users/jbrunton/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrunton/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jbrunton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrunton/subscriptions",
"organizations_url": "https://api.github.com/users/jbrunton/orgs",
"repos_url": "https://api.github.com/users/jbrunton/repos",
"events_url": "https://api.github.com/users/jbrunton/events{/privacy}",
"received_events_url": "https://api.github.com/users/jbrunton/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"https://github.com/digitalocean/terraform-provider-digitalocean/pull/797 was merged using \"squash and merge.\" Unfortunately that makes the history here a bit messy. A rebase on main (`git pull --rebase origin main`) should clean that up. Sorry for the noise.",
"@andrewsomething Thanks for the review! No worrie... | 2022-02-27T12:00:44 | 2022-03-16T14:48:38 | 2022-03-07T17:12:27 | CONTRIBUTOR | null | Possible PR for #796.
I branched from #797 and this PR uses that as a base branch, so that I could build on the changes by @andrewsomething for alerts. Hence, that should get merged first.
This is my first time contributing to this repo so I'd appreciate a careful review. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/798/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/798/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/798",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/798",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/798.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/798.patch",
"merged_at": "2022-03-07T17:12:27"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/797 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/797/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/797/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/797/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/797 | 1,150,968,659 | PR_kwDOBZHfyM4zfb_F | 797 | apps: Implement support for configuring alert policies. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-02-25T23:34:58 | 2022-02-28T17:16:59 | 2022-02-28T17:15:58 | MEMBER | null | This PR builds on @atombrella's work in https://github.com/digitalocean/terraform-provider-digitalocean/pull/722 to get it over the line. It implement support for configuring alert policies for apps.
As I mentioned in a comment on that PR, the destination for the alerts defaults to the email of the account. Alerts can be updated with additional emails or Slack webhooks, but this is not part of the app spec itself. You need to call a separate endpoint: https://docs.digitalocean.com/reference/api/api-reference/#operation/assign_alert_destinations
This initial work only supports the default destination. We'll need to think through how to properly support addition destinations in Terraform. It might require a separate app alert destinations resource.
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/797/reactions",
"total_count": 1,
"+1": 1,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/797/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/797",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/797",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/797.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/797.patch",
"merged_at": "2022-02-28T17:15:58"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/796 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/796/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/796/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/796/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/796 | 1,148,403,905 | I_kwDOBZHfyM5Ec0DB | 796 | Support for App Platform log_destinations | {
"login": "jbrunton",
"id": 1276413,
"node_id": "MDQ6VXNlcjEyNzY0MTM=",
"avatar_url": "https://avatars.githubusercontent.com/u/1276413?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jbrunton",
"html_url": "https://github.com/jbrunton",
"followers_url": "https://api.github.com/users/jbrunton/followers",
"following_url": "https://api.github.com/users/jbrunton/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrunton/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jbrunton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrunton/subscriptions",
"organizations_url": "https://api.github.com/users/jbrunton/orgs",
"repos_url": "https://api.github.com/users/jbrunton/repos",
"events_url": "https://api.github.com/users/jbrunton/events{/privacy}",
"received_events_url": "https://api.github.com/users/jbrunton/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326613,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTM=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/enhancement-provider",
"name": "enhancement-provider",
"color": "d4c5f9",
"default": false,
"description": ""
}
] | closed | false | null | [] | null | [
"Thanks for raising this @jbrunton. We absolutely want to support App Platform log_destinations here, but we don't have a definite timeline. If you're interested in adding support, let us know. I'd be very happy to answer any questions and review PRs. \r\n\r\nIn https://github.com/digitalocean/terraform-provider-d... | 2022-02-23T17:53:12 | 2022-05-25T19:14:27 | 2022-05-25T19:14:27 | CONTRIBUTOR | null | ### Is your feature request related to a problem? Please describe.
The [App Specification](https://docs.digitalocean.com/products/app-platform/references/app-specification-reference/) includes configuration options for log forwarding. However, based on docs and looking at the code, I don't believe the Terraform provider supports this yet.
### Describe the solution you'd like
Support for `log_destinations` on relevant resources (services, workers, jobs).
### Describe alternatives you've considered
An alternative is to use Terraform to provision the application and then use doctl to update the missing configuration pieces. It would be preferable to have a single definition.
### Additional context
I would also like to see support for alerts, and I note #683 is open for this.
If useful, I'd be happy to submit some PRs to start adding support for alerts and log_destinations if I can figure out how to implement (I haven't dug deep into the code). However, I wanted to first confirm if there are any current plans to update this provider or to keep it in sync with the App Platform spec? | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/796/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/796/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/795 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/795/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/795/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/795/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/795 | 1,145,023,800 | I_kwDOBZHfyM5EP604 | 795 | Allow firwall assigned to the database clusters from apps platform. | {
"login": "debendraoli",
"id": 18165021,
"node_id": "MDQ6VXNlcjE4MTY1MDIx",
"avatar_url": "https://avatars.githubusercontent.com/u/18165021?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/debendraoli",
"html_url": "https://github.com/debendraoli",
"followers_url": "https://api.github.com/users/debendraoli/followers",
"following_url": "https://api.github.com/users/debendraoli/following{/other_user}",
"gists_url": "https://api.github.com/users/debendraoli/gists{/gist_id}",
"starred_url": "https://api.github.com/users/debendraoli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/debendraoli/subscriptions",
"organizations_url": "https://api.github.com/users/debendraoli/orgs",
"repos_url": "https://api.github.com/users/debendraoli/repos",
"events_url": "https://api.github.com/users/debendraoli/events{/privacy}",
"received_events_url": "https://api.github.com/users/debendraoli/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326613,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTM=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/enhancement-provider",
"name": "enhancement-provider",
"color": "d4c5f9",
"default": false,
"description": ""
}
] | closed | false | null | [] | null | [
"For others coming across this issue, while this can't be set in the app spec itself, there is a way to add an app to a database's firewall. The `digitalocean_database_firewall` resource accepts `app` for `type`, e.g.\r\n\r\n```hcl\r\nresource \"digitalocean_database_firewall\" \"app-fw\" {\r\n cluster_id = digit... | 2022-02-20T13:43:25 | 2023-08-21T12:22:07 | 2023-08-21T12:22:07 | NONE | null | ### Is your feature request related to a problem? Please describe.
Cannot use firewall on a database clusters for the apps platform.
### Describe the solution you'd like
Allow assigning firewall to the database firewall from apps.
### Describe alternatives you've considered
From UI we can achive the same result.
### Additional context
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/795/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/795/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/794 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/794/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/794/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/794/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/794 | 1,142,639,288 | I_kwDOBZHfyM5EG0q4 | 794 | DigitalOcean API errors handling | {
"login": "wojtekregis",
"id": 99948256,
"node_id": "U_kgDOBfUW4A",
"avatar_url": "https://avatars.githubusercontent.com/u/99948256?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/wojtekregis",
"html_url": "https://github.com/wojtekregis",
"followers_url": "https://api.github.com/users/wojtekregis/followers",
"following_url": "https://api.github.com/users/wojtekregis/following{/other_user}",
"gists_url": "https://api.github.com/users/wojtekregis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/wojtekregis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wojtekregis/subscriptions",
"organizations_url": "https://api.github.com/users/wojtekregis/orgs",
"repos_url": "https://api.github.com/users/wojtekregis/repos",
"events_url": "https://api.github.com/users/wojtekregis/events{/privacy}",
"received_events_url": "https://api.github.com/users/wojtekregis/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326613,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTM=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/enhancement-provider",
"name": "enhancement-provider",
"color": "d4c5f9",
"default": false,
"description": ""
}
] | open | false | null | [] | null | [
"hi @wojtekregis - apologies, I just recently saw this issue. Do you know if this is still an issue? Is it with a specific request that we could try on our end to replicate? 🙇 ",
"FWIW, I've hit it 5xx errors multiple times today trying to create DB clusters:\r\n\r\n```\r\n digitalocean:index:DatabaseCluster... | 2022-02-18T08:42:14 | 2023-02-01T13:02:44 | null | NONE | null | ### Is your feature request related to a problem? Please describe.
In recent weeks, api.digitalocean.com is rather unstable, often showing Cloudflare's HTML document with **HTTP 504** code. The day before yesterday is was out of service for **several hours**.
I have opened multiple tickets only to be thanked for patience and understanding time and again, and asked to provide more logs despite the problem being reproducible from DigitalOcean's own virtual machines by sending requests to DigitalOcean's API which is proxied by Cloudflare.
I have no reason not to believe DO's support (Team Lead) blaming Cloudflare for this problem but it's been weeks since this statement and the errors are still very much present if not more frequent.
The Terraform provider does not handle HTML pages thrown by api.digitalocean.com well and in most cases such errors result in broken state requiring manual labor. In extreme cases, state using "local" backend was completely gone from ext4 fs.
### Describe the solution you'd like
The provider should be capable of handling API errors or HTML responses in such way that Terraform state stays consistent with already deployed resources.
### Describe alternatives you've considered
I have opened multiple tickets with DigitalOcean regarding API instability and waited close to 4 weeks for a solution.
### Additional context
When Cloudflare is able to connect to DigitalOcean and API responds with **HTTP 500**, state is saved.
```
2022-02-07T11:04:59.525Z [INFO] provider.terraform-provider-digitalocean_v2.16.0: 2022/02/07 11:04:59 [DEBUG] DigitalOcean API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 500 Internal Server Error
Content-Length: 59
Cf-Cache-Status: DYNAMIC
Cf-Ray: xxx-yyy
Content-Type: application/json
Date: Mon, 07 Feb 2022 11:04:59 GMT
Expect-Ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Ratelimit-Limit: 5000
Ratelimit-Remaining: 4412
Ratelimit-Reset: xxx
Server: cloudflare
Set-Cookie: __cf_bm=xxx
X-Gateway: Edge-Gateway
X-Request-Id: xxx
X-Response-From: service
{
"id": "Internal Server Error",
"message": "Server Error"
}
``` | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/794/reactions",
"total_count": 10,
"+1": 10,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/794/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/793 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/793/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/793/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/793/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/793 | 1,140,674,324 | I_kwDOBZHfyM5D_U8U | 793 | digitalocean_firewall resource throws error if dynamic values are used in source_load_balancer_uids array. | {
"login": "lots0logs",
"id": 4675662,
"node_id": "MDQ6VXNlcjQ2NzU2NjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/4675662?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lots0logs",
"html_url": "https://github.com/lots0logs",
"followers_url": "https://api.github.com/users/lots0logs/followers",
"following_url": "https://api.github.com/users/lots0logs/following{/other_user}",
"gists_url": "https://api.github.com/users/lots0logs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lots0logs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lots0logs/subscriptions",
"organizations_url": "https://api.github.com/users/lots0logs/orgs",
"repos_url": "https://api.github.com/users/lots0logs/repos",
"events_url": "https://api.github.com/users/lots0logs/events{/privacy}",
"received_events_url": "https://api.github.com/users/lots0logs/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
},
{
"id": 5241933455,
"node_id": "LA_kwDOBZHfyM8AAA... | open | false | {
"login": "danaelhe",
"id": 42972711,
"node_id": "MDQ6VXNlcjQyOTcyNzEx",
"avatar_url": "https://avatars.githubusercontent.com/u/42972711?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/danaelhe",
"html_url": "https://github.com/danaelhe",
"followers_url": "https://api.github.com/users/danaelhe/followers",
"following_url": "https://api.github.com/users/danaelhe/following{/other_user}",
"gists_url": "https://api.github.com/users/danaelhe/gists{/gist_id}",
"starred_url": "https://api.github.com/users/danaelhe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/danaelhe/subscriptions",
"organizations_url": "https://api.github.com/users/danaelhe/orgs",
"repos_url": "https://api.github.com/users/danaelhe/repos",
"events_url": "https://api.github.com/users/danaelhe/events{/privacy}",
"received_events_url": "https://api.github.com/users/danaelhe/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "danaelhe",
"id": 42972711,
"node_id": "MDQ6VXNlcjQyOTcyNzEx",
"avatar_url": "https://avatars.githubusercontent.com/u/42972711?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/danaelhe",
"html_url": "https://github.com/danaelhe",
"followers_url": "https://api.... | null | [
"Hi there,\r\n\r\nThank you so much for this write up. We will review it and apply changes if necessary as soon as we can."
] | 2022-02-16T23:00:01 | 2023-03-08T17:55:03 | null | NONE | null | # Bug Report
<!-- Include as much of the following details with your bug report: -->
---
## Describe the bug
Using a data source to retrieve the id of loadbalancer and using that id in `source_load_balancer_uids` array results in the following error:
```
Error: Null value found in list
with digitalocean_firewall.firewall
on firewall.tf line 2, in resource "digitalocean_firewall" "firewall":
resource "digitalocean_firewall" "firewall" {
Null values are not allowed for this attribute value.
```
### Affected Resource(s)
- digitalocean_firewall
### Expected Behavior
It should work without error.
### Actual Behavior
It doesn't work.
### Steps to Reproduce
1. `terraform plan`
**Terraform Configuration Files**
```
data "digitalocean_loadbalancer" "lb" {
depends_on = [rancher2_app_v2.ingress_nginx]
name = "cluster--lb"
}
resource "digitalocean_firewall" "firewall" {
name = cluster"
inbound_rule {
protocol = "tcp"
port_range = "1-65535"
source_load_balancer_uids = [
data.digitalocean_loadbalancer.lb.id,
]
}
}
```
**Terraform Version**
```
Terraform v1.1.5
on linux_amd64
+ provider registry.terraform.io/cloudflare/cloudflare v3.9.1
+ provider registry.terraform.io/digitalocean/digitalocean v2.17.1
+ provider registry.terraform.io/hashicorp/kubernetes v2.8.0
+ provider registry.terraform.io/hashicorp/random v3.1.0
+ provider registry.terraform.io/rancher/rancher2 v1.22.2
```
**Debug Output**
That contains information I can't share. FWIW I can see the data source for the load balancer is retrieved without issue and it contains the id in the terraform state.
**Panic Output**
<!-- If Terraform produced a panic, please provide a link to a GitHub Gist
containing the output of the `crash.log`. -->
## Additional context
<!-- Add any other context about the problem here. -->
**Important Factoids**
<!-- Droplets use custom images or kernels. -->
**References**
#96
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/793/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/793/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/792 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/792/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/792/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/792/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/792 | 1,139,903,166 | I_kwDOBZHfyM5D8Yq- | 792 | digitalocean_ssh_keys missing configuration reference | {
"login": "tomjohnburton",
"id": 39559415,
"node_id": "MDQ6VXNlcjM5NTU5NDE1",
"avatar_url": "https://avatars.githubusercontent.com/u/39559415?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tomjohnburton",
"html_url": "https://github.com/tomjohnburton",
"followers_url": "https://api.github.com/users/tomjohnburton/followers",
"following_url": "https://api.github.com/users/tomjohnburton/following{/other_user}",
"gists_url": "https://api.github.com/users/tomjohnburton/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tomjohnburton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tomjohnburton/subscriptions",
"organizations_url": "https://api.github.com/users/tomjohnburton/orgs",
"repos_url": "https://api.github.com/users/tomjohnburton/repos",
"events_url": "https://api.github.com/users/tomjohnburton/events{/privacy}",
"received_events_url": "https://api.github.com/users/tomjohnburton/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
},
{
"id": 620327014,
"node_id": "MDU6TGFiZWw2MjAzMj... | closed | false | null | [] | null | [
"Hi there,\r\n\r\nThank you so much for this write up. We will review it and apply changes if necessary as soon as we can. "
] | 2022-02-16T11:42:06 | 2022-05-25T20:12:34 | 2022-05-25T20:12:34 | NONE | null | The documentation [here](https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/data-sources/ssh_keys) fails to mention how you can utilise the `filter` section. It is missing some references to `values`.
## Suggested changes
Add the following to the documentation
## Example Usage
```
data "digitalocean_ssh_keys" "keys" {
filter {
key = "name"
values = ["key1", "key2"]
}
}
```
## Argument Reference
`filter` supports the following arguments:
* `key` - (Required) Filter the SSH Keys by this key. This may be one of name, public_key, or fingerprint.
* `values` - (Required) List of values of the supplied `key` to filter the SSH Keys by.
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/792/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/792/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/791 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/791/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/791/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/791/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/791 | 1,138,670,211 | PR_kwDOBZHfyM4y24lc | 791 | docs: add default ttl to `digitalocean_record` | {
"login": "unixlab",
"id": 22573746,
"node_id": "MDQ6VXNlcjIyNTczNzQ2",
"avatar_url": "https://avatars.githubusercontent.com/u/22573746?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/unixlab",
"html_url": "https://github.com/unixlab",
"followers_url": "https://api.github.com/users/unixlab/followers",
"following_url": "https://api.github.com/users/unixlab/following{/other_user}",
"gists_url": "https://api.github.com/users/unixlab/gists{/gist_id}",
"starred_url": "https://api.github.com/users/unixlab/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/unixlab/subscriptions",
"organizations_url": "https://api.github.com/users/unixlab/orgs",
"repos_url": "https://api.github.com/users/unixlab/repos",
"events_url": "https://api.github.com/users/unixlab/events{/privacy}",
"received_events_url": "https://api.github.com/users/unixlab/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"I figured this out by letting it run against the API while setting `TF_LOG=trace`:\r\n```\r\n---[ REQUEST ]---------------------------------------\r\nPOST /v2/domains/<redacted my domain>/records HTTP/1.1\r\nHost: api.digitalocean.com\r\nUser-Agent: Terraform/1.1.5 godo/1.69.1\r\nContent-Length: 89\r\nAccept: appl... | 2022-02-15T13:07:41 | 2022-02-23T13:18:02 | 2022-02-17T16:48:53 | CONTRIBUTOR | null | figured it out myself and thought it might be helpful in the docs. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/791/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/791/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/791",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/791",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/791.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/791.patch",
"merged_at": "2022-02-17T16:48:53"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/790 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/790/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/790/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/790/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/790 | 1,137,309,499 | I_kwDOBZHfyM5Dyfc7 | 790 | Changing k8 default node pool autoscaling parameters causes TF to lose all information about resources within the cluster | {
"login": "LaurisJakobsons",
"id": 62705797,
"node_id": "MDQ6VXNlcjYyNzA1Nzk3",
"avatar_url": "https://avatars.githubusercontent.com/u/62705797?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/LaurisJakobsons",
"html_url": "https://github.com/LaurisJakobsons",
"followers_url": "https://api.github.com/users/LaurisJakobsons/followers",
"following_url": "https://api.github.com/users/LaurisJakobsons/following{/other_user}",
"gists_url": "https://api.github.com/users/LaurisJakobsons/gists{/gist_id}",
"starred_url": "https://api.github.com/users/LaurisJakobsons/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LaurisJakobsons/subscriptions",
"organizations_url": "https://api.github.com/users/LaurisJakobsons/orgs",
"repos_url": "https://api.github.com/users/LaurisJakobsons/repos",
"events_url": "https://api.github.com/users/LaurisJakobsons/events{/privacy}",
"received_events_url": "https://api.github.com/users/LaurisJakobsons/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
},
{
"id": 5241933455,
"node_id": "LA_kwDOBZHfyM8AAA... | open | false | null | [] | null | [
"This is related to: https://github.com/digitalocean/terraform-provider-digitalocean/issues/424 because terraform looses provider connection data when you are changing node pool size. The lifecycle will want to remove and create new cluster and though at this point data in `kubernetes` provider retrieved from `digi... | 2022-02-14T13:29:51 | 2023-03-28T00:57:31 | null | NONE | null | # Bug Report
## Describe the bug
Whenever changes are made to the (default) node pool autoscaling parameters within the `digitalocean_kubernetes_cluster` resource, terraform loses all the information about resources that were created within the cluster. This breaks the terraform state to the point where everything needs to be destroyed & re-applied to fix it.
Let's say I've created `digitalocean_kubernetes_cluster` resource and along with that, added several `kubernetes` resources within the same cluster using terraform. If I change the autoscaling parameters of the default node pool within the `digitalocean_kubernetes_cluster` resource, terraform loses all the information about `kubernetes` resources that were created in the cluster and tries to apply them again, resulting in numerous resource "already exists" errors, because they are still present on the cluster, just terraform has lost all the information about them.
(NOTE: Autoscaling changes are applied correctly)
### Affected Resource(s)
- digitalocean_kubernetes_cluster
### Expected Behavior
Node pool autoscaling changes should be applied without causing terraform to lose information about other resources created within the cluster.
### Actual Behavior
All the `kubernetes` resources created within the cluster are lost from terraform state.
### Steps to Reproduce
1. Create a `digitalocean_kubernetes_cluster`
2. Add resources within the cluster using `kubernetes` provider
3. Edit `digitalocean_kubernetes_cluster` node pool autoscaling parameters & apply changes
**Terraform Configuration Files**
```
resource "digitalocean_kubernetes_cluster" "primary" {
name = var.cluster_name
region = var.cluster_region
version = data.digitalocean_kubernetes_versions.current.latest_version
vpc_uuid = digitalocean_vpc.cluster_vpc.id
node_pool {
name = "${var.cluster_name}-node-pool"
size = var.worker_size
auto_scale = true
min_nodes = 1
max_nodes = var.max_worker_count ## Issue occurs when this value is changed and re-applied
tags = [local.cluster_id_tag]
}
}
```
## Additional context
Using `terraform` version 1.1.5, `digitalocean` provider 2.17.1, `kubernetes` provider 2.8.0
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/790/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/790/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/789 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/789/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/789/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/789/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/789 | 1,132,894,796 | PR_kwDOBZHfyM4yieE6 | 789 | load-balancers: support udp as a target and entry protocol | {
"login": "dikshant",
"id": 9084804,
"node_id": "MDQ6VXNlcjkwODQ4MDQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/9084804?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dikshant",
"html_url": "https://github.com/dikshant",
"followers_url": "https://api.github.com/users/dikshant/followers",
"following_url": "https://api.github.com/users/dikshant/following{/other_user}",
"gists_url": "https://api.github.com/users/dikshant/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dikshant/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dikshant/subscriptions",
"organizations_url": "https://api.github.com/users/dikshant/orgs",
"repos_url": "https://api.github.com/users/dikshant/repos",
"events_url": "https://api.github.com/users/dikshant/events{/privacy}",
"received_events_url": "https://api.github.com/users/dikshant/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"Converting to a draft until this is ready to be release to prevent accidental merge"
] | 2022-02-11T17:32:05 | 2022-04-07T16:18:17 | 2022-04-07T16:18:17 | CONTRIBUTOR | null | This adds UDP as a target and entry protocol for DigitalOcean Load Balancers. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/789/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/789/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/789",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/789",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/789.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/789.patch",
"merged_at": "2022-04-07T16:18:17"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/788 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/788/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/788/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/788/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/788 | 1,132,789,093 | PR_kwDOBZHfyM4yiHek | 788 | projects: Environment is optional, don't set default. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-02-11T15:57:30 | 2022-02-11T17:00:31 | 2022-02-11T17:00:28 | MEMBER | null | Setting a default value for an optional filed can create an issue when importing a resource with that field not set. For projects, the environment is optional.
We were missing an import test, but that wouldn't have actually caught this as the resource being imported would have been created by Terraform and thus would have had the default set. :upside_down_face:
Fixes: https://github.com/digitalocean/terraform-provider-digitalocean/issues/787 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/788/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/788/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/788",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/788",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/788.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/788.patch",
"merged_at": "2022-02-11T17:00:28"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/787 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/787/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/787/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/787/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/787 | 1,132,460,375 | I_kwDOBZHfyM5Df_lX | 787 | `digitalocean_project` environment defualts to "Development" if not initially set | {
"login": "c12i",
"id": 49271447,
"node_id": "MDQ6VXNlcjQ5MjcxNDQ3",
"avatar_url": "https://avatars.githubusercontent.com/u/49271447?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/c12i",
"html_url": "https://github.com/c12i",
"followers_url": "https://api.github.com/users/c12i/followers",
"following_url": "https://api.github.com/users/c12i/following{/other_user}",
"gists_url": "https://api.github.com/users/c12i/gists{/gist_id}",
"starred_url": "https://api.github.com/users/c12i/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/c12i/subscriptions",
"organizations_url": "https://api.github.com/users/c12i/orgs",
"repos_url": "https://api.github.com/users/c12i/repos",
"events_url": "https://api.github.com/users/c12i/events{/privacy}",
"received_events_url": "https://api.github.com/users/c12i/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [
"Thanks for the report @collinsmuriuki We've got a fix in https://github.com/digitalocean/terraform-provider-digitalocean/pull/788"
] | 2022-02-11T11:51:57 | 2022-02-11T17:00:28 | 2022-02-11T17:00:28 | NONE | null | I am importing an existing `digitalocean_project` to terraform. On DigitalOcean, the `environment` was not set when initially created. However, once I import and try running `terraform plan` I get this: `+ environment = "Development"`
I omitted the `environment` field after importing the resource, since it was null (not set on DigitalOcean), as well as due to the fact that it's an optional field according the docs.
### Affected Resource(s)
- digitalocean_project
### Expected Behavior
No changes should be detected
### Actual Behavior
A change in `environment` is detected
### Steps to Reproduce
- Create a project on DigitalOcean, set purpose as "Web Application" and do not set the environment
- Create an empty `digitalocean_project` and then import the project to terraform
- Add the required fields to the `digitalocean_project` resource; `name` and `purpose` in this case
- Run `terraform plan`
**Terraform Configuration Files**
```
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.0"
}
}
}
variable "do_token" {
}
provider "digitalocean" {
token = var.do_token
}
```
**Debug Output**
https://gist.github.com/collinsmuriuki/c459254876a678d5ccbff54b08991faa
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/787/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/787/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/786 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/786/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/786/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/786/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/786 | 1,132,048,236 | I_kwDOBZHfyM5Dea9s | 786 | Export endpoint for `digitalocean_spaces_bucket` resource and data source | {
"login": "dro-sh",
"id": 37456151,
"node_id": "MDQ6VXNlcjM3NDU2MTUx",
"avatar_url": "https://avatars.githubusercontent.com/u/37456151?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dro-sh",
"html_url": "https://github.com/dro-sh",
"followers_url": "https://api.github.com/users/dro-sh/followers",
"following_url": "https://api.github.com/users/dro-sh/following{/other_user}",
"gists_url": "https://api.github.com/users/dro-sh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dro-sh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dro-sh/subscriptions",
"organizations_url": "https://api.github.com/users/dro-sh/orgs",
"repos_url": "https://api.github.com/users/dro-sh/repos",
"events_url": "https://api.github.com/users/dro-sh/events{/privacy}",
"received_events_url": "https://api.github.com/users/dro-sh/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326613,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTM=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/enhancement-provider",
"name": "enhancement-provider",
"color": "d4c5f9",
"default": false,
"description": ""
},
{
"id": 919581746,
... | closed | false | {
"login": "selborsolrac",
"id": 3991663,
"node_id": "MDQ6VXNlcjM5OTE2NjM=",
"avatar_url": "https://avatars.githubusercontent.com/u/3991663?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/selborsolrac",
"html_url": "https://github.com/selborsolrac",
"followers_url": "https://api.github.com/users/selborsolrac/followers",
"following_url": "https://api.github.com/users/selborsolrac/following{/other_user}",
"gists_url": "https://api.github.com/users/selborsolrac/gists{/gist_id}",
"starred_url": "https://api.github.com/users/selborsolrac/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/selborsolrac/subscriptions",
"organizations_url": "https://api.github.com/users/selborsolrac/orgs",
"repos_url": "https://api.github.com/users/selborsolrac/repos",
"events_url": "https://api.github.com/users/selborsolrac/events{/privacy}",
"received_events_url": "https://api.github.com/users/selborsolrac/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "selborsolrac",
"id": 3991663,
"node_id": "MDQ6VXNlcjM5OTE2NjM=",
"avatar_url": "https://avatars.githubusercontent.com/u/3991663?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/selborsolrac",
"html_url": "https://github.com/selborsolrac",
"followers_url": "ht... | null | [
"Thanks for the request @dro-sh That does seem like it would be a useful addition. In the mean time, you should be able to infer the endpoint from the region using something like this as a workaround. \r\n\r\n format(\"%s.digitaloceanspaces.com\", digitalocean_spaces_bucket.my-bucket.region)\r\n\r\nhttps://ww... | 2022-02-11T08:18:11 | 2022-10-04T14:42:01 | 2022-10-04T14:42:01 | NONE | null | ### Is your feature request related to a problem? Please describe.
I would like to use `digitalocean_spaces_bucket` data source. I need endpoint for bucket because S3 API requires just endpoint without bucket name. Just `ams3.digitaloceanspaces.com`, not `my-bucket.ams3.digitalocean.com`
### Describe the solution you'd like
Get exported attribute `endpoint` at `digitalocean_spaces_bucket` resource and data source
### Describe alternatives you've considered
<!-- A clear and concise description of any alternative solutions or features you've
considered. -->
### Additional context
As I understand this attribute should be added [there](https://github.com/digitalocean/terraform-provider-digitalocean/blob/885dabcc14b0db27b85e1bbf1350d0f4d7362b86/digitalocean/spaces_buckets.go#L81) and add helper function like `bucketEndpoint(region string)`
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/786/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/786/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/785 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/785/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/785/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/785/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/785 | 1,118,245,718 | PR_kwDOBZHfyM4xx1zJ | 785 | fix: handle optional boolean droplet_agent | {
"login": "Kidsan",
"id": 8798449,
"node_id": "MDQ6VXNlcjg3OTg0NDk=",
"avatar_url": "https://avatars.githubusercontent.com/u/8798449?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Kidsan",
"html_url": "https://github.com/Kidsan",
"followers_url": "https://api.github.com/users/Kidsan/followers",
"following_url": "https://api.github.com/users/Kidsan/following{/other_user}",
"gists_url": "https://api.github.com/users/Kidsan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Kidsan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Kidsan/subscriptions",
"organizations_url": "https://api.github.com/users/Kidsan/orgs",
"repos_url": "https://api.github.com/users/Kidsan/repos",
"events_url": "https://api.github.com/users/Kidsan/events{/privacy}",
"received_events_url": "https://api.github.com/users/Kidsan/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"Hey, @Kidsan - Thanks a ton for this sweet PR! 😄\r\n\r\nWould you please shoot me an email when you get a chance?\r\nmcowley at digitalocean dot com 🎉"
] | 2022-01-29T15:16:22 | 2022-03-16T14:48:01 | 2022-03-08T17:42:28 | CONTRIBUTOR | null | closes #779 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/785/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/785/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/785",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/785",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/785.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/785.patch",
"merged_at": "2022-03-08T17:42:27"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/784 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/784/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/784/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/784/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/784 | 1,117,613,507 | PR_kwDOBZHfyM4xv2vP | 784 | Prep v2.17.1 release. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-01-28T16:41:36 | 2022-01-28T16:44:26 | 2022-01-28T16:44:23 | MEMBER | null | null | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/784/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/784/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/784",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/784",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/784.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/784.patch",
"merged_at": "2022-01-28T16:44:23"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/783 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/783/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/783/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/783/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/783 | 1,116,916,811 | PR_kwDOBZHfyM4xtk7P | 783 | Add MONGODB as a database engine option | {
"login": "cnunciato",
"id": 274700,
"node_id": "MDQ6VXNlcjI3NDcwMA==",
"avatar_url": "https://avatars.githubusercontent.com/u/274700?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cnunciato",
"html_url": "https://github.com/cnunciato",
"followers_url": "https://api.github.com/users/cnunciato/followers",
"following_url": "https://api.github.com/users/cnunciato/following{/other_user}",
"gists_url": "https://api.github.com/users/cnunciato/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cnunciato/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cnunciato/subscriptions",
"organizations_url": "https://api.github.com/users/cnunciato/orgs",
"repos_url": "https://api.github.com/users/cnunciato/repos",
"events_url": "https://api.github.com/users/cnunciato/events{/privacy}",
"received_events_url": "https://api.github.com/users/cnunciato/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"Hey @andrewsomething - any chance of a v2.17.1 for this? ;) We'd love to be able to feature this for a upcoming blog post",
"Thank you for the quick response @andrewsomething! 🍻 ",
"Sure thing @stack72 We got you. https://github.com/digitalocean/terraform-provider-digitalocean/pull/784",
"Hey, @cnunciato - ... | 2022-01-28T01:50:29 | 2022-02-23T13:16:48 | 2022-01-28T15:26:02 | CONTRIBUTOR | null | This change adds `MONGODB` as an `engine` option to the `databases` block of an App spec. It's necessary for anyone wishing to attach an already-existing managed MongoDB cluster to an App Platform app.
From the [DigitalOcean docs](https://docs.digitalocean.com/products/app-platform/#limits):
> App Platform’s engine support for dev databases is currently limited to PostgresSQL, but you can create a PostgresSQL, MySQL, Redis, or MongoDB managed database with DigitalOcean for use in your app.
Here's a working plan file that uses this change to provision a managed MongoDB cluster and then an App Platform app with a named reference (`db`) to it:
```tf
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.0"
}
}
}
variable "do_token" {
type = string
}
provider "digitalocean" {
token = var.do_token
}
resource "digitalocean_database_cluster" "cluster" {
name = "some-cluster"
engine = "mongodb"
version = "4"
size = "db-s-1vcpu-1gb"
region = "sfo3"
node_count = 1
}
resource "digitalocean_app" "app" {
spec {
name = "some-app"
region = "sfo3"
database {
cluster_name = digitalocean_database_cluster.cluster.name
name = "db"
engine = "MONGODB"
production = true
}
}
}
```
```
$ terraform apply
digitalocean_database_cluster.cluster: Creating...
digitalocean_database_cluster.cluster: Still creating... [10s elapsed]
...
digitalocean_database_cluster.cluster: Creation complete after 6m8s [id=ce4e5dd1-0927-4e55-adab-6b03347ac280]
digitalocean_app.app: Creating...
digitalocean_app.app: Still creating... [10s elapsed]
digitalocean_app.app: Creation complete after 33s [id=df979d07-53cc-4697-a782-e5a79a3a7339]
Apply complete! Resources: 2 added, 0 changed, 0 destroyed.
```
<img width="658" alt="image" src="https://user-images.githubusercontent.com/274700/151568011-155a3254-7610-491c-8e44-8a49d197abb9.png">
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/783/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/783/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/783",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/783",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/783.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/783.patch",
"merged_at": "2022-01-28T15:26:02"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/782 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/782/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/782/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/782/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/782 | 1,115,166,450 | I_kwDOBZHfyM5CeBby | 782 | `digitalocean_app` redeploys even though no `env` variables changed | {
"login": "jameyg",
"id": 752314,
"node_id": "MDQ6VXNlcjc1MjMxNA==",
"avatar_url": "https://avatars.githubusercontent.com/u/752314?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jameyg",
"html_url": "https://github.com/jameyg",
"followers_url": "https://api.github.com/users/jameyg/followers",
"following_url": "https://api.github.com/users/jameyg/following{/other_user}",
"gists_url": "https://api.github.com/users/jameyg/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jameyg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jameyg/subscriptions",
"organizations_url": "https://api.github.com/users/jameyg/orgs",
"repos_url": "https://api.github.com/users/jameyg/repos",
"events_url": "https://api.github.com/users/jameyg/events{/privacy}",
"received_events_url": "https://api.github.com/users/jameyg/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5241933455,
"node_id": "LA_kwDOBZHfyM8AAAABOHGOjw",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/Needs%20Investigation",
"name": "Needs Investigation",
"color": "92E756",
"default": false,
"description": ""
}
] | closed | false | null | [] | null | [
"I also ran into this issue. Is there an eta when this can be fixed?",
"Any updates here ?",
"Any new information?\r\nWe are facing this issue and new it solved, please.\r\nThank you",
"Thank you all for bringing this issue to our attention.\r\n@jameyg can you confirm that the env vars with `type = \"SECRET\"... | 2022-01-26T15:41:57 | 2023-09-13T15:55:59 | 2023-09-13T15:55:59 | NONE | null | # Bug Report
## Describe the bug
The `digitalocean_app` resource thinks that the `env` arguments are changing on every Terraform apply. It seems to only happen when the `env` are of type "SECRET" rather than "GENERAL".
### Affected Resource(s)
- digitalocean_app
### Expected Behaviour
It should not redeploy the app.
### Actual Behaviour
It redeployed the app.
### Steps to Reproduce
Once I have the below app deployed to Digital Ocean, if I run `terraform apply` all of the environment variables with the type "SECRET" show as being changed and it forces a rebuild.
**Terraform Configuration Files**
```
resource "digitalocean_app" "app" {
spec {
name = var.project_name
region = var.instance_region
domain {
name = var.api_domain_name
type = "PRIMARY"
zone = "[redacted].com"
}
env {
key = "DJANGO_SETTINGS_MODULE"
value = var.django_settings_module
type = "GENERAL"
}
env {
key = "PYTHONPATH"
value = "./[redacted]"
type = "GENERAL"
}
env {
key = "DATABASE_URL"
value = "$${db.DATABASE_URL}"
scope = "RUN_TIME"
type = "SECRET"
}
env {
key = "DOMAIN_NAME"
value = var.api_domain_name
type = "GENERAL"
}
env {
key = "BUCKET_NAME"
value = digitalocean_spaces_bucket.bucket.name
type = "GENERAL"
}
env {
key = "AWS_S3_ENDPOINT_URL"
value = "https://${var.bucket_region}.digitaloceanspaces.com"
type = "GENERAL"
}
env {
key = "AWS_ACCESS_KEY_ID"
value = var.spaces_access_id
type = "SECRET"
}
env {
key = "AWS_SECRET_ACCESS_KEY"
value = var.spaces_secret_key
type = "SECRET"
}
env {
key = "SENTRY_DSN"
value = var.sentry_dsn
type = "SECRET"
}
service {
name = "api"
environment_slug = "python"
instance_count = 1
instance_size_slug = var.api_instance_size
http_port = 8000
run_command = "gunicorn --worker-tmp-dir /dev/shm [redacted].wsgi"
github {
repo = "[redacted]"
branch = "main"
deploy_on_push = true
}
}
job {
name = "setup"
kind = "POST_DEPLOY"
environment_slug = "python"
instance_count = 1
instance_size_slug = "basic-xxs"
run_command = "python manage.py createcachetable; python manage.py migrate"
github {
repo = "[redacted]"
branch = "main"
deploy_on_push = true
}
}
database {
name = "db"
engine = "PG"
production = var.database_is_production
}
}
}
```
I'm running Terraform v1.1.4 and v2.17.0 of this library.
**References**
This seems to be the same issue:
https://github.com/digitalocean/terraform-provider-digitalocean/issues/514
The two most recent commenters after the issue closed seem to be experiencing a similar issue to me. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/782/reactions",
"total_count": 2,
"+1": 2,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/782/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/781 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/781/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/781/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/781/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/781 | 1,112,835,669 | PR_kwDOBZHfyM4xgWoS | 781 | monitor_alert: Docs update (fixes: #780). | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-01-24T16:01:11 | 2022-01-24T16:23:35 | 2022-01-24T16:23:35 | MEMBER | null | A few small docs updates for the `digitalocean_monitor_alert` resource including making it a bit more prominent that it currently only supports Droplets.
fixes: #780 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/781/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/781/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/781",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/781",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/781.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/781.patch",
"merged_at": "2022-01-24T16:23:35"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/780 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/780/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/780/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/780/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/780 | 1,111,995,341 | I_kwDOBZHfyM5CR7PN | 780 | `digitalocean_monitor_alert` only supports droplet alert types | {
"login": "nth-commit",
"id": 6957926,
"node_id": "MDQ6VXNlcjY5NTc5MjY=",
"avatar_url": "https://avatars.githubusercontent.com/u/6957926?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nth-commit",
"html_url": "https://github.com/nth-commit",
"followers_url": "https://api.github.com/users/nth-commit/followers",
"following_url": "https://api.github.com/users/nth-commit/following{/other_user}",
"gists_url": "https://api.github.com/users/nth-commit/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nth-commit/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nth-commit/subscriptions",
"organizations_url": "https://api.github.com/users/nth-commit/orgs",
"repos_url": "https://api.github.com/users/nth-commit/repos",
"events_url": "https://api.github.com/users/nth-commit/events{/privacy}",
"received_events_url": "https://api.github.com/users/nth-commit/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620327014,
"node_id": "MDU6TGFiZWw2MjAzMjcwMTQ=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/documentation",
"name": "documentation",
"color": "fef2c0",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [
"Hi @nth-commit,\r\n\r\nIt is not an oversight. This is a limitation of the DigitalOcean API. Currently it only supports creating Droplet alerts. \r\n\r\nhttps://docs.digitalocean.com/reference/api/api-reference/#operation/create_alert_policy\r\n\r\nThe Terraform docs correctly list the supported alert types and th... | 2022-01-23T21:48:42 | 2022-01-24T19:38:09 | 2022-01-24T16:23:35 | NONE | null | <!-- Thank you for opening an issue. Please note that we try to keep the issue
tracker reserved for bug reports and feature requests. For general usage
questions, please see:
https://github.com/digitalocean/terraform-provider-digitalocean/discussions
**NOTE: Before submitting a bug**
There are cases where the provider receives HTTP Service Error (500 level HTTP
statuses) responses from the DigitalOcean API. There are some cases where the
provider might handle these and retry. If the problem persists, it's best to
contact [DigitalOcean support](https://cloudsupport.digitalocean.com/) -->
# Bug Report
For the `digitalocean_monitor_alert` resource, the `type` property only allows droplet alerts, e.g. "v1/insights/droplet/load_5"
Managed database alerts are completely unsupported, e.g. alerts of the type "v1/dbaas/alerts/disk_util"
This seems to be a bit of an oversight. I can get alerts of these types via the API, but it's been a real unpleasant time-sink trying to discover why I couldn't create these alerts in terraform.
The docs should be updated to make it clear that only droplet alerts are supported, and then updated again once they are supported.
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/780/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/780/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/779 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/779/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/779/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/779/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/779 | 1,108,411,402 | I_kwDOBZHfyM5CEQQK | 779 | `droplet_agent` is not honored for `digitalocean_droplet` resource | {
"login": "brainplot",
"id": 28014843,
"node_id": "MDQ6VXNlcjI4MDE0ODQz",
"avatar_url": "https://avatars.githubusercontent.com/u/28014843?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/brainplot",
"html_url": "https://github.com/brainplot",
"followers_url": "https://api.github.com/users/brainplot/followers",
"following_url": "https://api.github.com/users/brainplot/following{/other_user}",
"gists_url": "https://api.github.com/users/brainplot/gists{/gist_id}",
"starred_url": "https://api.github.com/users/brainplot/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/brainplot/subscriptions",
"organizations_url": "https://api.github.com/users/brainplot/orgs",
"repos_url": "https://api.github.com/users/brainplot/repos",
"events_url": "https://api.github.com/users/brainplot/events{/privacy}",
"received_events_url": "https://api.github.com/users/brainplot/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [
"This looks like its due to not being able to set a default for the boolean. The boolean can have 3 states, `nil`, `true`, and `false` which each trigger different behaviour. The resource `resource_digitalocean_droplet.go` calls GetOk for the `droplet_agent` field which checks if it exists and that it isn't the zer... | 2022-01-19T18:14:35 | 2022-03-08T17:42:28 | 2022-03-08T17:42:28 | NONE | null | <!-- Thank you for opening an issue. Please note that we try to keep the issue
tracker reserved for bug reports and feature requests. For general usage
questions, please see:
https://github.com/digitalocean/terraform-provider-digitalocean/discussions
**NOTE: Before submitting a bug**
There are cases where the provider receives HTTP Service Error (500 level HTTP
statuses) responses from the DigitalOcean API. There are some cases where the
provider might handle these and retry. If the problem persists, it's best to
contact [DigitalOcean support](https://cloudsupport.digitalocean.com/) -->
# Bug Report
<!-- Include as much of the following details with your bug report: -->
---
## Describe the bug
The Droplet agent seems to be installed regardless of whether or not the [`droplet_agent`](https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/droplet#droplet_agent) argument is set to `true` or `false`.
### Affected Resource(s)
- digitalocean_droplet
### Expected Behavior
Setting `droplet_agent` to `false` should not install the droplet agent at all on the droplet. I expect to SSH into a fresh VM and get a `Unit droplet-agents.service could not be found` error when I run `systemctl status droplet-agent`.
The docs for `droplet_agent` say:
> - `droplet_agent` (Optional) - A boolean indicating whether to install the DigitalOcean agent used for providing access to the Droplet web console in the control panel. By default, the agent is installed on new Droplets but installation errors (i.e. OS not supported) are ignored. To prevent it from being installed, set to `false`. To make installation errors fatal, explicitly set it to `true`.
### Actual Behavior
The Droplet Agent is installed even if the `droplet_agent` argument is set to `false`.
### Steps to Reproduce
I've compiled a minimal reproducible example for this. Here's a Terraform configuration file that deploys a Droplet with `droplet_agent` set to `false` and enables SSH password access for `root`.
```terraform
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.0"
}
}
}
variable "root_pwd" {
type = string
sensitive = true
}
resource "digitalocean_droplet" "bug" {
image = "debian-11-x64"
name = "test-bug"
region = "fra1"
size = "s-1vcpu-1gb"
graceful_shutdown = true
droplet_agent = false
user_data = <<-EOF
#!/bin/sh
printf 'root:${var.root_pwd}' | chpasswd
sed -i -E '/PermitRootLogin[[:space:]]/c\PermitRootLogin yes' /etc/ssh/sshd_config
systemctl reload ssh
EOF
}
output "droplet_ipv4_address" {
value = digitalocean_droplet.bug.ipv4_address
}
```
Then run the following commands.
```sh
terraform apply -auto-approve -var root_pwd='Pa$$w0rd' # or change to another one
```
```sh
ssh root@$(terraform output -raw droplet_ipv4_address)
```
```sh
systemctl status droplet-agent
```
The `droplet-agent` service appears to be up and running, even though `droplet_agent` was set to `false`.
## Terraform Version
```
Terraform v1.1.3
on darwin_arm64
+ provider registry.terraform.io/digitalocean/digitalocean v2.17.0
``` | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/779/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/779/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/778 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/778/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/778/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/778/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/778 | 1,105,642,746 | I_kwDOBZHfyM5B5sT6 | 778 | bug: zombie Kubernetes cluster | {
"login": "bweston92",
"id": 1764057,
"node_id": "MDQ6VXNlcjE3NjQwNTc=",
"avatar_url": "https://avatars.githubusercontent.com/u/1764057?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bweston92",
"html_url": "https://github.com/bweston92",
"followers_url": "https://api.github.com/users/bweston92/followers",
"following_url": "https://api.github.com/users/bweston92/following{/other_user}",
"gists_url": "https://api.github.com/users/bweston92/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bweston92/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bweston92/subscriptions",
"organizations_url": "https://api.github.com/users/bweston92/orgs",
"repos_url": "https://api.github.com/users/bweston92/repos",
"events_url": "https://api.github.com/users/bweston92/events{/privacy}",
"received_events_url": "https://api.github.com/users/bweston92/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
},
{
"id": 5241933455,
"node_id": "LA_kwDOBZHfyM8AAA... | open | false | null | [] | null | [
"Hi @bweston92,\r\n\r\nIt looks like there was an issue with the API while polling for cluster status post-create. You should be able to recover from this by importing the cluster:\r\n\r\n terraform import digitalocean_kubernetes_cluster.<name> <cluster ID>\r\n",
"Hi, thanks for taking the time to reply.\r\n\r... | 2022-01-17T10:04:47 | 2023-03-28T00:58:30 | null | NONE | null | ## Describe the bug
If the Kubernetes cluster fails during creation, further attempts to "apply" changes will fail as the cluster name already exists, but if you do a destroy it doesn't remove the cluster so you're with a zombie cluster.
### Affected Resource(s)
- digitalocean_kubernetes_cluster
### Actual Behavior
During the creation of a Kubernetes cluster it fails for an unknown reason.
```
{"@level":"info","@message":"digitalocean_kubernetes_cluster.cluster: Still creating... [6m40s elapsed]","@module":"terraform.ui","@timestamp":"2022-01-17T09:49:26.752118Z","hook":{"resource":{"addr":"digitalocean_kubernetes_cluster.cluster","module":"","resource":"digitalocean_kubernetes_cluster.cluster","implied_provider":"digitalocean","resource_type":"digitalocean_kubernetes_cluster","resource_name":"cluster","resource_key":null},"action":"create","elapsed_seconds":400},"type":"apply_progress"}
{"@level":"info","@message":"digitalocean_kubernetes_cluster.cluster: Creation errored after 6m42s","@module":"terraform.ui","@timestamp":"2022-01-17T09:49:28.847514Z","hook":{"resource":{"addr":"digitalocean_kubernetes_cluster.cluster","module":"","resource":"digitalocean_kubernetes_cluster.cluster","implied_provider":"digitalocean","resource_type":"digitalocean_kubernetes_cluster","resource_name":"cluster","resource_key":null},"action":"create","elapsed_seconds":402},"type":"apply_errored"}
{"@level":"error","@message":"Error: Error creating Kubernetes cluster: Error trying to read cluster state: GET https://api.digitalocean.com/v2/kubernetes/clusters/6606e3df-7767-4881-8684-2184ac8ad2ee: 500 (request \"3f228c7a-ddee-44b3-8016-481a396ea31a\") Server Error","@module":"terraform.ui","@timestamp":"2022-01-17T09:49:29.003188Z","diagnostic":{"severity":"error","summary":"Error creating Kubernetes cluster: Error trying to read cluster state: GET https://api.digitalocean.com/v2/kubernetes/clusters/6606e3df-7767-4881-8684-2184ac8ad2ee: 500 (request \"3f228c7a-ddee-44b3-8016-481a396ea31a\") Server Error","detail":"","address":"digitalocean_kubernetes_cluster.cluster","range":{"filename":"cluster.tf","start":{"line":1,"column":54,"byte":53},"end":{"line":1,"column":55,"byte":54}},"snippet":{"context":"resource \"digitalocean_kubernetes_cluster\" \"cluster\"","code":"resource \"digitalocean_kubernetes_cluster\" \"cluster\" {","start_line":1,"highlight_start_offset":53,"highlight_end_offset":54,"values":[]}},"type":"diagnostic"}
```
Subsequent attempt at applying the cluster gets a 422.
```
{"@level":"error","@message":"Error: Error creating Kubernetes cluster: POST https://api.digitalocean.com/v2/kubernetes/clusters: 422 (request \"f76a82f0-53a7-4cc7-b048-37ff7a974ca3\") a cluster with this name already exists","@module":"terraform.ui","@timestamp":"2022-01-17T09:54:21.949386Z","diagnostic":{"severity":"error","summary":"Error creating Kubernetes cluster: POST https://api.digitalocean.com/v2/kubernetes/clusters: 422 (request \"f76a82f0-53a7-4cc7-b048-37ff7a974ca3\") a cluster with this name already exists","detail":"","address":"digitalocean_kubernetes_cluster.cluster","range":{"filename":"cluster.tf","start":{"line":1,"column":54,"byte":53},"end":{"line":1,"column":55,"byte":54}},"snippet":{"context":"resource \"digitalocean_kubernetes_cluster\" \"cluster\"","code":"resource \"digitalocean_kubernetes_cluster\" \"cluster\" {","start_line":1,"highlight_start_offset":53,"highlight_end_offset":54,"values":[]}},"type":"diagnostic"}
```
however on a destroy it doesn't remove the cluster.
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/778/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/778/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/777 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/777/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/777/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/777/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/777 | 1,104,131,260 | PR_kwDOBZHfyM4xD4Pn | 777 | Prep v2.17.0 release. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-01-14T21:16:40 | 2022-01-14T21:40:01 | 2022-01-14T21:39:53 | MEMBER | null | null | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/777/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/777/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/777",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/777",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/777.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/777.patch",
"merged_at": "2022-01-14T21:39:53"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/776 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/776/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/776/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/776/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/776 | 1,098,401,945 | PR_kwDOBZHfyM4wwoNW | 776 | droplet: Refactor post-create polling code. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-01-10T21:21:07 | 2022-01-14T21:00:11 | 2022-01-14T21:00:08 | MEMBER | null | This PR refactors the code used to poll a Droplet's status after the request to create it. https://github.com/digitalocean/terraform-provider-digitalocean/pull/767 points out one issue with the existing implementation, but it also exposes another issue with it. So I've taken the opportunity to fix those and make the entire process more efficient.
It now first uses `waitForAction` to ensure that the Droplet create action completes successfully. This allows us to fail fast in the case of a real error instead of continuing to poll the non-existent Droplet. Polling the action endpoint allows for an error to be reported while polling the droplet endpoint just 404s (which we retry on) if the create fails.
The call to `waitForDropletAttribute` checking for the Droplet's `status` attribute to move from `new` to `active` is still made after that. This is possibly unnecessary, but I've kept it to make sure we don't introduce any unexpected behavior changes. (I'm not 100% positive that the action completing is entirely equivalent to the Droplet becoming active.)
It also removes the usage of `resourceDigitalOceanDropletRead` in `dropletStateRefreshFunc` in order to reduce the overall number of API calls made. Currently in `main`, each pass through `newDropletStateRefreshFunc` actually calls `client.Droplets.Get` twice. The final call in `resourceDigitalOceanDropletCreate` to `resourceDigitalOceanDropletRead` is also removed to cut another redundant API call.
So while this now makes calls to both the actions and droplets endpoints to make sure the Droplet has been successfully created, it is still more efficient and reduces the overall number of API call made substantially.
Additionally, there are a number of unrelated fixes to the Droplet acceptance tests so that they all now pass. These failure seem to be the result of moving the tests from using legacy Droplet plans to new ones without updating the expected disk sizes.
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/776/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/776/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/776",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/776",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/776.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/776.patch",
"merged_at": "2022-01-14T21:00:08"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/773 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/773/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/773/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/773/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/773 | 1,097,375,075 | PR_kwDOBZHfyM4wtQr2 | 773 | Fetch loadbalancer resource in datasource by ID | {
"login": "opeco17",
"id": 46510874,
"node_id": "MDQ6VXNlcjQ2NTEwODc0",
"avatar_url": "https://avatars.githubusercontent.com/u/46510874?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/opeco17",
"html_url": "https://github.com/opeco17",
"followers_url": "https://api.github.com/users/opeco17/followers",
"following_url": "https://api.github.com/users/opeco17/following{/other_user}",
"gists_url": "https://api.github.com/users/opeco17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/opeco17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/opeco17/subscriptions",
"organizations_url": "https://api.github.com/users/opeco17/orgs",
"repos_url": "https://api.github.com/users/opeco17/repos",
"events_url": "https://api.github.com/users/opeco17/events{/privacy}",
"received_events_url": "https://api.github.com/users/opeco17/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"Just tried it - works perfectly. Thanks!"
] | 2022-01-10T01:43:16 | 2022-01-11T13:46:22 | 2022-01-10T15:55:50 | CONTRIBUTOR | null | Issue: https://github.com/digitalocean/terraform-provider-digitalocean/issues/772
Currently we can fetch loadbalancer resource in datasource by only its name.
https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/data-sources/loadbalancer
By this update, we will be able to fetch loadbalancer resource by its ID in addition to name like below.
```
data "digitalocean_loadbalancer" "example" {
id = "loadbalancer_id"
}
```
This update is referring to the following droplet datasource.
https://github.com/digitalocean/terraform-provider-digitalocean/blob/main/digitalocean/datasource_digitalocean_droplet.go#L40 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/773/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/773/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/773",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/773",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/773.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/773.patch",
"merged_at": "2022-01-10T15:55:50"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/772 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/772/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/772/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/772/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/772 | 1,096,104,385 | I_kwDOBZHfyM5BVTnB | 772 | create digitalocean_loadbalancer data source from load balancer id | {
"login": "andyli",
"id": 103977,
"node_id": "MDQ6VXNlcjEwMzk3Nw==",
"avatar_url": "https://avatars.githubusercontent.com/u/103977?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andyli",
"html_url": "https://github.com/andyli",
"followers_url": "https://api.github.com/users/andyli/followers",
"following_url": "https://api.github.com/users/andyli/following{/other_user}",
"gists_url": "https://api.github.com/users/andyli/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andyli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andyli/subscriptions",
"organizations_url": "https://api.github.com/users/andyli/orgs",
"repos_url": "https://api.github.com/users/andyli/repos",
"events_url": "https://api.github.com/users/andyli/events{/privacy}",
"received_events_url": "https://api.github.com/users/andyli/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326613,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTM=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/enhancement-provider",
"name": "enhancement-provider",
"color": "d4c5f9",
"default": false,
"description": ""
}
] | closed | false | null | [] | null | [
"I've created the PR (https://github.com/digitalocean/terraform-provider-digitalocean/pull/773) to create loadbalancer datasource by its ID.\r\n\r\nBy this update, we will be able to create loadbalancer datasource by its ID in addition to name like below.\r\n\r\n```\r\ndata \"digitalocean_loadbalancer\" \"example\"... | 2022-01-07T08:41:17 | 2022-01-10T16:32:04 | 2022-01-10T16:32:04 | NONE | null | Right now the [`digitalocean_loadbalancer` data source](https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/data-sources/loadbalancer) use `name` to query load-balancers. I would like to use id to query instead.
The reason I want to do this is that I'm setting up [Accessing pods over a managed load-balancer from inside the cluster](https://github.com/digitalocean/digitalocean-cloud-controller-manager/blob/master/docs/controllers/services/examples/README.md#accessing-pods-over-a-managed-load-balancer-from-inside-the-cluster), in which I need to create a DNS record for the load balancer ip. The ingress-nginx k8s service records the load balancer id in the `kubernetes.digitalocean.com/load-balancer-id` annotation, but there is no record of the load balancer name.
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/772/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/772/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/771 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/771/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/771/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/771/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/771 | 1,093,839,998 | PR_kwDOBZHfyM4wiNsO | 771 | floating_ip_assignment: Properly support importing existing assignments. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-01-04T23:38:20 | 2022-01-05T18:19:29 | 2022-01-05T18:19:26 | MEMBER | null | `floating_ip_assignment` resources currently use [`schema.ImportStatePassthrough`](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-sdk/v2@v2.10.1/helper/schema#ImportStatePassthroughContext) for importing. This is meant for use when an ID-only refresh is possible. It would have never worked for this resource which needs both the floating IP and the Droplet ID.
Fixes: https://github.com/digitalocean/terraform-provider-digitalocean/issues/763 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/771/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/771/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/771",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/771",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/771.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/771.patch",
"merged_at": "2022-01-05T18:19:26"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/770 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/770/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/770/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/770/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/770 | 1,093,790,066 | PR_kwDOBZHfyM4wiDY6 | 770 | docs: Update records examples to use domain id over name. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-01-04T22:04:25 | 2022-01-05T18:25:35 | 2022-01-05T18:25:31 | MEMBER | null | As discussed in https://github.com/digitalocean/terraform-provider-digitalocean/issues/769, using the domain's `id` instead of its `name` can be useful to ensure a record is recreated when a domain is.
Fixes: https://github.com/digitalocean/terraform-provider-digitalocean/issues/769 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/770/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/770/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/770",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/770",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/770.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/770.patch",
"merged_at": "2022-01-05T18:25:31"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/769 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/769/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/769/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/769/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/769 | 1,093,756,603 | I_kwDOBZHfyM5BMWa7 | 769 | Failed to update record when domain gets recreated | {
"login": "JonasTaulien",
"id": 8789042,
"node_id": "MDQ6VXNlcjg3ODkwNDI=",
"avatar_url": "https://avatars.githubusercontent.com/u/8789042?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/JonasTaulien",
"html_url": "https://github.com/JonasTaulien",
"followers_url": "https://api.github.com/users/JonasTaulien/followers",
"following_url": "https://api.github.com/users/JonasTaulien/following{/other_user}",
"gists_url": "https://api.github.com/users/JonasTaulien/gists{/gist_id}",
"starred_url": "https://api.github.com/users/JonasTaulien/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JonasTaulien/subscriptions",
"organizations_url": "https://api.github.com/users/JonasTaulien/orgs",
"repos_url": "https://api.github.com/users/JonasTaulien/repos",
"events_url": "https://api.github.com/users/JonasTaulien/events{/privacy}",
"received_events_url": "https://api.github.com/users/JonasTaulien/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [
"Hi @JonasTaulienSolutions,\r\n\r\nRecords belong to a domain and are deleted when the domain is. So the existing record can not be updated, it must be recreated. Unfortunately, Terraform does not understand that relationship. This is because the `name` of the domain is the only thing creating a dependency between ... | 2022-01-04T21:11:22 | 2022-01-05T07:22:47 | 2022-01-05T07:22:46 | NONE | null | # Bug Report
## Describe the bug
I have three resources configured in my terraform setup. A droplet, that hosts my website, a domain that points to the droplets ipv4-address and a A record "www" that also points to the droplets ipv4-address.
When the droplets gets recreated from Terraform, the domain gets recreated with it, but the A-record does not get deleted and Terraform tries to update its ipv4-address to the ipv4-address of the newly created droplet replacement.
This leads to the following error:
```
...
digitalocean_record.my_record: Modifying... [id=286624857]
│ Error: Failed to update record: PUT https://api.digitalocean.com/v2/domains/example.com/records/286624857: 404 (request "89408e60-6c9a-48db-bbba-b2c34a517470") The resource you were accessing could not be found.
│
│ with digitalocean_record.my_record,
│ on main.tf line 46, in resource "digitalocean_record" "my_record":
│ 46: resource "digitalocean_record" "my_record" {
│
```
### Affected Resource(s)
- digitalocean_droplet
- digitalocean_domain
- digitalocean_record
### Expected Behavior
The record should also get recreated instead of Terraform trying to change it.
### Steps to Reproduce
<!-- Please list the steps required to reproduce the issue, for example:
1. `terraform apply` -->
**Terraform Configuration Files**
```tf
resource "digitalocean_droplet" "my_droplet" {
image = "debian-11-x64"
name = "my_droplet"
region = "fra1"
size = "s-1vcpu-1gb"
backups = true
monitoring = true
user_data = file("cloud-config.yaml")
}
resource "digitalocean_domain" "example_com" {
name = "example.com"
ip_address = digitalocean_droplet.my_droplet.ipv4_address
}
resource "digitalocean_record" "my_record" {
domain = digitalocean_domain.example_com.name
type = "A"
name = "www"
value = digitalocean_droplet.my_droplet.ipv4_address
}
```
**Expected behavior**
Terraform version:
```
Terraform v1.1.2
on darwin_amd64
+ provider registry.terraform.io/digitalocean/digitalocean v2.16.0
+ provider registry.terraform.io/hashicorp/http v2.1.0
```
## Additional context
Result of `terraform plan` was:
```
Terraform will perform the following actions:
# digitalocean_domain.example_com must be replaced
-/+ resource "digitalocean_domain" "example_com" {
~ id = "example.com" -> (known after apply)
~ ip_address = "<previous_ip>" -> (known after apply) # forces replacement
name = "example.com"
~ ttl = 1800 -> (known after apply)
~ urn = "do:domain:example.com" -> (known after apply)
}
# digitalocean_droplet.my_droplet must be replaced
-/+ resource "digitalocean_droplet" "my_droplet" {
~ created_at = "2022-01-04T20:49:45Z" -> (known after apply)
~ disk = 25 -> (known after apply)
~ id = "280664894" -> (known after apply)
~ ipv4_address = "<previous_ip>" -> (known after apply)
~ ipv4_address_private = "<previous_private_ip>" -> (known after apply)
+ ipv6_address = (known after apply)
~ locked = false -> (known after apply)
~ memory = 1024 -> (known after apply)
name = "my_droplet"
~ price_hourly = 0.00744 -> (known after apply)
~ price_monthly = 5 -> (known after apply)
~ private_networking = true -> (known after apply)
~ status = "active" -> (known after apply)
- tags = [] -> null
~ urn = "do:droplet:280664894" -> (known after apply)
~ user_data = "805d32d4bee40778c1b4856da9e0a857481ae89a" -> "eafc8fe6545dce1fc6300ebc4eaf182581de602d" # forces replacement
~ vcpus = 1 -> (known after apply)
~ volume_ids = [] -> (known after apply)
~ vpc_uuid = "c9b6beeb-1953-42d9-ab5e-fe85611efaad" -> (known after apply)
# (8 unchanged attributes hidden)
}
# digitalocean_record.my_record will be updated in-place
~ resource "digitalocean_record" "my_record" {
id = "286624857"
name = "www"
~ value = "<previous_ip>" -> (known after apply)
# (8 unchanged attributes hidden)
}
Plan: 2 to add, 1 to change, 2 to destroy.
```
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/769/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/769/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/768 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/768/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/768/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/768/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/768 | 1,093,478,660 | PR_kwDOBZHfyM4whBrd | 768 | apps: Support preserve_path_prefix | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-01-04T15:42:04 | 2022-01-04T16:09:57 | 2022-01-04T16:09:54 | MEMBER | null | Fixes: https://github.com/digitalocean/terraform-provider-digitalocean/issues/765 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/768/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/768/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/768",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/768",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/768.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/768.patch",
"merged_at": "2022-01-04T16:09:54"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/767 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/767/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/767/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/767/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/767 | 1,091,838,741 | PR_kwDOBZHfyM4wbzFS | 767 | Setting droplet ID after it might be unset | {
"login": "iwankgb",
"id": 939646,
"node_id": "MDQ6VXNlcjkzOTY0Ng==",
"avatar_url": "https://avatars.githubusercontent.com/u/939646?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/iwankgb",
"html_url": "https://github.com/iwankgb",
"followers_url": "https://api.github.com/users/iwankgb/followers",
"following_url": "https://api.github.com/users/iwankgb/following{/other_user}",
"gists_url": "https://api.github.com/users/iwankgb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/iwankgb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/iwankgb/subscriptions",
"organizations_url": "https://api.github.com/users/iwankgb/orgs",
"repos_url": "https://api.github.com/users/iwankgb/repos",
"events_url": "https://api.github.com/users/iwankgb/events{/privacy}",
"received_events_url": "https://api.github.com/users/iwankgb/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"Thank you for this contribution! We will review it as soon as we can.",
"Hi @iwankgb,\r\n\r\nThanks so much for the PR. I'm sorry for the delay in reviewing this. \r\n\r\nThe change itself looks good, but in fixing this bug you've exposed some additional issues with this code path. In some ways the buggy behavio... | 2022-01-01T15:38:14 | 2022-01-10T21:30:26 | 2022-01-10T21:30:26 | CONTRIBUTOR | null | How-to-reproduce:
Execute following snippet:
```terraform
resource "digitalocean_droplet" "this" {
name = "this"
image = "debian-11-x64"
region = "fra1"
size = "s-1vcpu-1gb-amd"
user_data = "🐼" # note content of user_data - it will make droplet creation fail
}
```
`terraform apply` will fail with unexpected error:
```
│ Error: Error waiting for droplet () to become ready: strconv.Atoi: parsing "": invalid syntax
│
│ with digitalocean_droplet.critical-today,
│ on critical-today-droplet.tf line 1, in resource "digitalocean_droplet" "critical-today":
│ 1: resource "digitalocean_droplet" "critical-today" {
│
```
(note missing Droplet ID in the error message above).
What happens is that on 404 error `resourceDigitalOceanDropletRead()` unsets the ID and makes it impossible to execute further retries. After the patch error changes to:
```
│ Error: Error waiting for droplet (280226673) to become ready: couldn't find resource (61 retries)
│
│ with digitalocean_droplet.critical-today,
│ on critical-today-droplet.tf line 1, in resource "digitalocean_droplet" "critical-today":
│ 1: resource "digitalocean_droplet" "critical-today" {
│
```
Note:
1. Present droplet ID.
2. Retry count. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/767/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/767/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/767",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/767",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/767.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/767.patch",
"merged_at": null
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/766 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/766/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/766/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/766/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/766 | 1,091,688,531 | PR_kwDOBZHfyM4wbUM3 | 766 | Fix database cluster documentation | {
"login": "colinwilson",
"id": 12916656,
"node_id": "MDQ6VXNlcjEyOTE2NjU2",
"avatar_url": "https://avatars.githubusercontent.com/u/12916656?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/colinwilson",
"html_url": "https://github.com/colinwilson",
"followers_url": "https://api.github.com/users/colinwilson/followers",
"following_url": "https://api.github.com/users/colinwilson/following{/other_user}",
"gists_url": "https://api.github.com/users/colinwilson/gists{/gist_id}",
"starred_url": "https://api.github.com/users/colinwilson/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/colinwilson/subscriptions",
"organizations_url": "https://api.github.com/users/colinwilson/orgs",
"repos_url": "https://api.github.com/users/colinwilson/repos",
"events_url": "https://api.github.com/users/colinwilson/events{/privacy}",
"received_events_url": "https://api.github.com/users/colinwilson/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"Hey, @colinwilson - Thanks a ton for this sweet PR! 😄\r\n\r\nWould you please shoot me an email when you get a chance?\r\nmcowley at digitalocean dot com 🎉"
] | 2021-12-31T23:35:32 | 2022-01-05T12:53:10 | 2022-01-01T18:25:13 | CONTRIBUTOR | null | Remove an incorrect comment from the `digitalocean_database_cluster` data source example | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/766/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/766/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/766",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/766",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/766.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/766.patch",
"merged_at": "2022-01-01T18:25:13"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/765 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/765/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/765/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/765/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/765 | 1,091,682,777 | I_kwDOBZHfyM5BEcHZ | 765 | preserve_path_prefix is missing | {
"login": "wduncanfraser",
"id": 579945,
"node_id": "MDQ6VXNlcjU3OTk0NQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/579945?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/wduncanfraser",
"html_url": "https://github.com/wduncanfraser",
"followers_url": "https://api.github.com/users/wduncanfraser/followers",
"following_url": "https://api.github.com/users/wduncanfraser/following{/other_user}",
"gists_url": "https://api.github.com/users/wduncanfraser/gists{/gist_id}",
"starred_url": "https://api.github.com/users/wduncanfraser/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wduncanfraser/subscriptions",
"organizations_url": "https://api.github.com/users/wduncanfraser/orgs",
"repos_url": "https://api.github.com/users/wduncanfraser/repos",
"events_url": "https://api.github.com/users/wduncanfraser/events{/privacy}",
"received_events_url": "https://api.github.com/users/wduncanfraser/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [] | 2021-12-31T22:51:24 | 2022-01-04T16:09:54 | 2022-01-04T16:09:54 | NONE | null | # Bug Report
---
## Describe the bug
Terraform version: 1.1.2
Digitalocean version: 2.16.0
### Affected Resource(s)
- digitalocean_app
### Expected Behavior
Proper configuration of resource
### Actual Behavior
```
│ Error: Unsupported argument
│
│ on manager.tf line 65, in resource "digitalocean_app" "example":
│ 65: preserve_path_prefix = true
│
│ An argument named "preserve_path_prefix" is not expected here.
```
### Steps to Reproduce
Attempt to specify preserve_path_prefix in a digitalocean_app route.
**Terraform Configuration Files**
```terraform
resource "digitalocean_app" "example" {
spec {
service {
name = "server"
routes {
path = "/api"
preserve_path_prefix = true
}
}
}
}
```
**References**
Similar to https://github.com/digitalocean/doctl/issues/1064
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/765/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/765/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/764 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/764/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/764/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/764/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/764 | 1,091,008,684 | I_kwDOBZHfyM5BB3is | 764 | cannot be configured within modules using count, for_each or depends_on | {
"login": "lyc0221",
"id": 40416749,
"node_id": "MDQ6VXNlcjQwNDE2NzQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/40416749?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lyc0221",
"html_url": "https://github.com/lyc0221",
"followers_url": "https://api.github.com/users/lyc0221/followers",
"following_url": "https://api.github.com/users/lyc0221/following{/other_user}",
"gists_url": "https://api.github.com/users/lyc0221/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lyc0221/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lyc0221/subscriptions",
"organizations_url": "https://api.github.com/users/lyc0221/orgs",
"repos_url": "https://api.github.com/users/lyc0221/repos",
"events_url": "https://api.github.com/users/lyc0221/events{/privacy}",
"received_events_url": "https://api.github.com/users/lyc0221/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [
"Thank you for the write up. We will look into it as soon as we can. ",
"any update ?",
"Hi @lyc0221,\r\n\r\nIt's hard to give any definite answer without seeing the actual module in use. Though the error message suggests that you have configured the provider inside of the module. This is incompatible with usin... | 2021-12-30T10:17:50 | 2022-05-06T14:07:18 | 2022-02-23T21:22:00 | NONE | null | <!-- Thank you for opening an issue. Please note that we try to keep the issue
tracker reserved for bug reports and feature requests. For general usage
questions, please see:
https://github.com/digitalocean/terraform-provider-digitalocean/discussions
**NOTE: Before submitting a bug**
There are cases where the provider receives HTTP Service Error (500 level HTTP
statuses) responses from the DigitalOcean API. There are some cases where the
provider might handle these and retry. If the problem persists, it's best to
contact [DigitalOcean support](https://cloudsupport.digitalocean.com/) -->
# Bug Report
<!-- Include as much of the following details with your bug report: -->
---
## Describe the bug
<!-- A clear and concise description of what the bug is. -->
terraform version: 1.1.2
digitalocean version: v2.16.0
terraform init
```
╷
│ Error: Module module.droplet contains provider configuration
│
│ Providers cannot be configured within modules using count, for_each or depends_on.
╵
```
https://www.terraform.io/language/meta-arguments/for_each
Version note: for_each was added in Terraform 0.12.6. Module support for for_each was added in Terraform 0.13
### Affected Resource(s)
<!-- Please list the resources, for example:
- digitalocean_droplet
- digitalocean_kubernetes_cluster
If this issue appears to affect multiple resources, it may be an issue with
Terraform's core, so please mention this. -->
- digitalocean_droplet
### Expected Behavior
<!-- What should have happened? -->
### Actual Behavior
<!-- What actually happened? -->
### Steps to Reproduce
<!-- Please list the steps required to reproduce the issue, for example:
1. `terraform apply` -->
**Terraform Configuration Files**
<!--
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.-->
main.tf
```
module "droplet" {
for_each = var.namenumber
source = "../../modules/do-droplet-with-volume"
service = format("%s-%s", var.project, each.key)
environment = var.environment
snapshot = true
region = var.region[each.key]
size = var.size[each.key]
volume = var.volume[each.key]
tags = var.tags[each.key]
namenumber = each.key
user = var.user
token = var.token
}
```
**Expected behavior**
<!-- Run `terraform -v` to show the version. If you are not running the latest
version of Terraform, please upgrade because your issue may have already been
fixed. -->
**Debug Output**
<!-- Please provide a link to a GitHub Gist containing the complete debug output:
https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the
debug output in the issue; just paste a link to the Gist. -->
**Panic Output**
<!-- If Terraform produced a panic, please provide a link to a GitHub Gist
containing the output of the `crash.log`. -->
## Additional context
<!-- Add any other context about the problem here. -->
**Important Factoids**
<!-- Droplets use custom images or kernels. -->
**References**
<!-- Include links to other GitHub issues (open or closed) or Pull Requests
that relate to this issue. -->
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/764/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/764/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/763 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/763/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/763/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/763/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/763 | 1,090,730,921 | I_kwDOBZHfyM5BAzup | 763 | Terraform floating IP assignment import leads to crash | {
"login": "SamWhited",
"id": 512573,
"node_id": "MDQ6VXNlcjUxMjU3Mw==",
"avatar_url": "https://avatars.githubusercontent.com/u/512573?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SamWhited",
"html_url": "https://github.com/SamWhited",
"followers_url": "https://api.github.com/users/SamWhited/followers",
"following_url": "https://api.github.com/users/SamWhited/following{/other_user}",
"gists_url": "https://api.github.com/users/SamWhited/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SamWhited/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SamWhited/subscriptions",
"organizations_url": "https://api.github.com/users/SamWhited/orgs",
"repos_url": "https://api.github.com/users/SamWhited/repos",
"events_url": "https://api.github.com/users/SamWhited/events{/privacy}",
"received_events_url": "https://api.github.com/users/SamWhited/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [
"Thank you for the write up! We will look into it as soon as we can.",
"Hi @SamWhited,\r\n\r\nUnfortunately, it looks like support for importing existing floating IP assignments was never properly implemented. That's likely why the docs do not mention it. I've added support in https://github.com/digitalocean/terr... | 2021-12-29T20:19:55 | 2022-01-05T18:19:26 | 2022-01-05T18:19:26 | NONE | null | # Bug Report
While trying to do an import of a digitalocean_floating_ip_assignment (that somehow didn't get updated in the state after the `terraform apply` that created the assignment, which might be another bug but I don't have any information or any indication of why this happened), Terraform crashed. The import was likely incorrect, but the docs don't mention what information is needed so I tried this.
```
$ terraform import module.prod.digitalocean_floating_ip_assignment.gitea "167.99.22.167"
module.prod.digitalocean_floating_ip_assignment.gitea: Importing from ID "167.99.22.167"...
module.prod.digitalocean_floating_ip_assignment.gitea: Import prepared!
Prepared digitalocean_floating_ip_assignment for import
module.prod.digitalocean_floating_ip_assignment.gitea: Refreshing state... [id=167.99.22.167]
╷
│ Error: Request cancelled
│
│ The plugin.(*GRPCProvider).ReadResource request was cancelled.
╵
Stack trace from the terraform-provider-digitalocean_v2.16.0 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xe359ab]
goroutine 38 [running]:
github.com/digitalocean/terraform-provider-digitalocean/digitalocean.resourceDigitalOceanFloatingIpAssignmentRead(0x1247538, 0xc0004a68a0, 0xc0005e4b80, 0xf6ab40, 0xc00056bc80, 0xc000694280, 0xc000693908, 0x40e0f8)
github.com/digitalocean/terraform-provider-digitalocean/digitalocean/resource_digitalocean_floating_ip_assignment.go:77 +0x2ab
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0xc0002f0700, 0x12474c8, 0xc000053fc0, 0xc0005e4b80, 0xf6ab40, 0xc00056bc80, 0x0, 0x0, 0x0)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.7.0/helper/schema/resource.go:347 +0x17f
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc0002f0700, 0x12474c8, 0xc000053fc0, 0xc0004b84d0, 0xf6ab40, 0xc00056bc80, 0xc00069c1f0, 0x0, 0x0, 0x0)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.7.0/helper/schema/resource.go:624 +0x1cb
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadResource(0xc00000c048, 0x12474c8, 0xc000053fc0, 0xc0004be000, 0xc000053fc0, 0x40b965, 0x1011ee0)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.7.0/helper/schema/grpc_provider.go:575 +0x43b
github.com/hashicorp/terraform-plugin-go/tfprotov5/server.(*server).ReadResource(0xc0005a8f60, 0x1247570, 0xc000053fc0, 0xc0004a6480, 0xc0005a8f60, 0xc0004ba300, 0xc0004b2ba0)
github.com/hashicorp/terraform-plugin-go@v0.3.0/tfprotov5/server/server.go:298 +0x105
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadResource_Handler(0x1053dc0, 0xc0005a8f60, 0x1247570, 0xc0004ba300, 0xc0004a6420, 0x0, 0x1247570, 0xc0004ba300, 0xc000048230, 0x70)
github.com/hashicorp/terraform-plugin-go@v0.3.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:344 +0x214
google.golang.org/grpc.(*Server).processUnaryRPC(0xc00034e000, 0x1250d18, 0xc00048af00, 0xc000170d00, 0xc0003c4450, 0x17e8bf0, 0x0, 0x0, 0x0)
google.golang.org/grpc@v1.32.0/server.go:1194 +0x52b
google.golang.org/grpc.(*Server).handleStream(0xc00034e000, 0x1250d18, 0xc00048af00, 0xc000170d00, 0x0)
google.golang.org/grpc@v1.32.0/server.go:1517 +0xd0c
google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc00049c160, 0xc00034e000, 0x1250d18, 0xc00048af00, 0xc000170d00)
google.golang.org/grpc@v1.32.0/server.go:859 +0xab
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/grpc@v1.32.0/server.go:857 +0x1fd
Error: The terraform-provider-digitalocean_v2.16.0 plugin crashed!
This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.
```
### Affected Resource(s)
- digitalocean_floating_ip_assignment
**Terraform Configuration Files**
I am unsure what parts are helpful and can't create a MWE, so here is the upstream repo with all the files: https://codeberg.org/codeforge.coop/codeforge-ops/src/branch/main/deploy
```
$ terraform -v
Terraform v1.1.2
on linux_amd64
+ provider registry.terraform.io/digitalocean/digitalocean v2.16.0
+ provider registry.terraform.io/hashicorp/local v2.1.0
+ provider registry.terraform.io/hashicorp/null v3.1.0
+ provider registry.terraform.io/hashicorp/random v3.1.0
+ provider registry.terraform.io/hashicorp/tls v3.1.0
```
**Debug Output**
https://gist.github.com/SamWhited/1b719664a6246aeb987fd0ca85690542
**Panic Output**
No `crash.log` file anywhere that I could find (`find / -name 'crash.log' 2>/dev/null`).
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/763/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/763/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/762 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/762/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/762/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/762/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/762 | 1,090,262,203 | I_kwDOBZHfyM5A_BS7 | 762 | CA Attribute Reference, digitalocean_database_cluster | {
"login": "tfolbrecht",
"id": 6099765,
"node_id": "MDQ6VXNlcjYwOTk3NjU=",
"avatar_url": "https://avatars.githubusercontent.com/u/6099765?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tfolbrecht",
"html_url": "https://github.com/tfolbrecht",
"followers_url": "https://api.github.com/users/tfolbrecht/followers",
"following_url": "https://api.github.com/users/tfolbrecht/following{/other_user}",
"gists_url": "https://api.github.com/users/tfolbrecht/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tfolbrecht/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tfolbrecht/subscriptions",
"organizations_url": "https://api.github.com/users/tfolbrecht/orgs",
"repos_url": "https://api.github.com/users/tfolbrecht/repos",
"events_url": "https://api.github.com/users/tfolbrecht/events{/privacy}",
"received_events_url": "https://api.github.com/users/tfolbrecht/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326613,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTM=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/enhancement-provider",
"name": "enhancement-provider",
"color": "d4c5f9",
"default": false,
"description": ""
}
] | closed | false | null | [] | null | [
"If anyone is searching, here's the shell script I'm using\r\n\r\n```curl -X GET \\\r\n -H \"Content-Type: application/json\" \\\r\n -H \"Authorization: Bearer $dotoken\" \\\r\n \"https://api.digitalocean.com/v2/databases/${DATABASE_ID_FROM_TF}/ca\" | jq -r -c .ca.certificate | base64 --decode > ca-certificate.... | 2021-12-29T04:31:35 | 2022-01-03T20:24:32 | 2022-01-03T16:44:50 | NONE | null | ### Is your feature request related to a problem? Please describe.
Currently using a local-exec to grab the CA for a db cluster with [the api](https://api.digitalocean.com/v2/databases/{database_cluster_uuid}/ca)
Would be nice to add ca to the Attributes Reference.
### Describe the solution you'd like
Add ca to the digitalocean_database_cluster Attributes Reference
### Describe alternatives you've considered
A little extra clicking in the gui 😉
### Additional context
Just a nice quality of life update. Would make my tf a little nicer looking
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/762/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/762/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/761 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/761/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/761/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/761/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/761 | 1,088,772,113 | PR_kwDOBZHfyM4wR-Io | 761 | Fixed issue about database cluster | {
"login": "opeco17",
"id": 46510874,
"node_id": "MDQ6VXNlcjQ2NTEwODc0",
"avatar_url": "https://avatars.githubusercontent.com/u/46510874?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/opeco17",
"html_url": "https://github.com/opeco17",
"followers_url": "https://api.github.com/users/opeco17/followers",
"following_url": "https://api.github.com/users/opeco17/following{/other_user}",
"gists_url": "https://api.github.com/users/opeco17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/opeco17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/opeco17/subscriptions",
"organizations_url": "https://api.github.com/users/opeco17/orgs",
"repos_url": "https://api.github.com/users/opeco17/repos",
"events_url": "https://api.github.com/users/opeco17/events{/privacy}",
"received_events_url": "https://api.github.com/users/opeco17/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"Thank you so much for the contribution! We will review the PR and leave comments as soon as we can.",
"Sure!\nThank you for reviewing!",
"Hey, @opeco17 - Thanks a ton for this sweet PR! 😄\r\n\r\nWould you please shoot me an email when you get a chance?\r\nmcowley at digitalocean dot com 🎉"
] | 2021-12-26T13:29:28 | 2022-01-05T12:52:46 | 2022-01-03T16:27:02 | CONTRIBUTOR | null | After calling the following POST endpoint to create database cluster, database cluster should be created and calling GET endpoint should be succeeded
https://github.com/digitalocean/terraform-provider-digitalocean/blob/v2.14.0/digitalocean/resource_digitalocean_database_cluster.go#L248
But, according to #728, 404 error occurs occasionally when calling GET endpoint in the following line
https://github.com/digitalocean/terraform-provider-digitalocean/blob/v2.14.0/digitalocean/resource_digitalocean_database_cluster.go#L483
This PR is the workaround for this issue | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/761/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/761/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/761",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/761",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/761.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/761.patch",
"merged_at": "2022-01-03T16:27:02"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/760 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/760/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/760/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/760/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/760 | 1,083,650,387 | PR_kwDOBZHfyM4wBhqz | 760 | Update to v2.10.1 of the terraform-plugin-sdk. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2021-12-17T22:14:53 | 2021-12-17T22:51:23 | 2021-12-17T22:51:20 | MEMBER | null | The initial impetuous for this upgrade is to resolve the acceptance test errors seen in recent runs:
unsupported state format version: expected ["0.1" "0.2"], got "1.0"
https://github.com/digitalocean/terraform-provider-digitalocean/runs/4563291901?check_suite_focus=true#step:4:973
The newer SDK version pulls in the version of `github.com/hashicorp/terraform-json` needed to resolve this (https://github.com/hashicorp/terraform-plugin-sdk/issues/821.
Changes: https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md#2101-december-17-2021 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/760/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/760/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/760",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/760",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/760.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/760.patch",
"merged_at": "2021-12-17T22:51:20"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/759 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/759/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/759/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/759/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/759 | 1,083,605,348 | PR_kwDOBZHfyM4wBYMe | 759 | Makefile: Only run sweep against the digitalocean package. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2021-12-17T20:47:57 | 2021-12-17T20:50:07 | 2021-12-17T20:50:04 | MEMBER | null | The other packages don't import `github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource`, so that leads to failures when the sweeper is ran. E.g.
https://github.com/digitalocean/terraform-provider-digitalocean/runs/4565075328?check_suite_focus=true#step:4:205 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/759/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/759/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/759",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/759",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/759.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/759.patch",
"merged_at": "2021-12-17T20:50:04"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/758 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/758/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/758/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/758/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/758 | 1,078,146,983 | I_kwDOBZHfyM5AQzen | 758 | vultr can't create a instance | {
"login": "lyc0221",
"id": 40416749,
"node_id": "MDQ6VXNlcjQwNDE2NzQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/40416749?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lyc0221",
"html_url": "https://github.com/lyc0221",
"followers_url": "https://api.github.com/users/lyc0221/followers",
"following_url": "https://api.github.com/users/lyc0221/following{/other_user}",
"gists_url": "https://api.github.com/users/lyc0221/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lyc0221/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lyc0221/subscriptions",
"organizations_url": "https://api.github.com/users/lyc0221/orgs",
"repos_url": "https://api.github.com/users/lyc0221/repos",
"events_url": "https://api.github.com/users/lyc0221/events{/privacy}",
"received_events_url": "https://api.github.com/users/lyc0221/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [
"Sounds like you are trying to report an issue to Vultr. This is the repository of the DigitalOcean Terraform provider. Looks like this is probably the correct place:\r\n\r\nhttps://github.com/vultr/terraform-provider-vultr"
] | 2021-12-13T06:45:24 | 2021-12-13T15:09:01 | 2021-12-13T15:09:01 | NONE | null | <!-- Thank you for opening an issue. Please note that we try to keep the issue
tracker reserved for bug reports and feature requests. For general usage
questions, please see:
https://github.com/digitalocean/terraform-provider-digitalocean/discussions
**NOTE: Before submitting a bug**
There are cases where the provider receives HTTP Service Error (500 level HTTP
statuses) responses from the DigitalOcean API. There are some cases where the
provider might handle these and retry. If the problem persists, it's best to
contact [DigitalOcean support](https://cloudsupport.digitalocean.com/) -->
# Bug Report
<!-- Include as much of the following details with your bug report: -->
---
## Describe the bug
<!-- A clear and concise description of what the bug is. -->
terraform version: `1.0.11`
`terraform plan` can't get the `data.vultr_plan.this`, it was ok last month.
### Affected Resource(s)
<!-- Please list the resources, for example:
- digitalocean_droplet
- digitalocean_kubernetes_cluster
If this issue appears to affect multiple resources, it may be an issue with
Terraform's core, so please mention this. -->
vultr_instance
### Expected Behavior
<!-- What should have happened? -->
### Actual Behavior
<!-- What actually happened? -->
### Steps to Reproduce
<!-- Please list the steps required to reproduce the issue, for example:
1. `terraform apply` -->
**Terraform Configuration Files**
<!--
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.-->
data.tf
```
data "vultr_os" "this" {
filter {
name = "name"
values = ["Ubuntu 20.04 x64"]
}
}
data "vultr_plan" "this" {
filter {
name = "id"
values = ["vc2-1c-2gb"]
}
}
```
main.tf
```
module "vultr" {
source = "../../modules/vultr-instance"
namenumber = var.namenumber
user = var.user
service = var.service
environment = var.environment
region = var.region
os_id = data.vultr_os.this.id
plan = data.vultr_plan.this.id
firewall_group_id = module.vultr_fw.this_firewall_id
}
```
**Expected behavior**
<!-- Run `terraform -v` to show the version. If you are not running the latest
version of Terraform, please upgrade because your issue may have already been
fixed. -->
**Debug Output**
<!-- Please provide a link to a GitHub Gist containing the complete debug output:
https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the
debug output in the issue; just paste a link to the Gist. -->
**Panic Output**
<!-- If Terraform produced a panic, please provide a link to a GitHub Gist
containing the output of the `crash.log`. -->
```
Error: Error getting plans: json: cannot unmarshal number 7.5 into Go struct field Plan.plans.monthly_cost of type int
with data.vultr_plan.this,
on data.tf line 8, in data "vultr_plan" "this":
8: data "vultr_plan" "this" {
```
## Additional context
<!-- Add any other context about the problem here. -->
**Important Factoids**
<!-- Droplets use custom images or kernels. -->
**References**
<!-- Include links to other GitHub issues (open or closed) or Pull Requests
that relate to this issue. -->
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/758/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/758/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/757 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/757/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/757/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/757/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/757 | 1,077,547,793 | I_kwDOBZHfyM5AOhMR | 757 | Allow primary database user creation | {
"login": "brizzbuzz",
"id": 5607577,
"node_id": "MDQ6VXNlcjU2MDc1Nzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5607577?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/brizzbuzz",
"html_url": "https://github.com/brizzbuzz",
"followers_url": "https://api.github.com/users/brizzbuzz/followers",
"following_url": "https://api.github.com/users/brizzbuzz/following{/other_user}",
"gists_url": "https://api.github.com/users/brizzbuzz/gists{/gist_id}",
"starred_url": "https://api.github.com/users/brizzbuzz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/brizzbuzz/subscriptions",
"organizations_url": "https://api.github.com/users/brizzbuzz/orgs",
"repos_url": "https://api.github.com/users/brizzbuzz/repos",
"events_url": "https://api.github.com/users/brizzbuzz/events{/privacy}",
"received_events_url": "https://api.github.com/users/brizzbuzz/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326613,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTM=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/enhancement-provider",
"name": "enhancement-provider",
"color": "d4c5f9",
"default": false,
"description": ""
},
{
"id": 1049485552,
... | open | false | null | [] | null | [
"Hi @unredundant,\r\n\r\nUnfortunately, this is currently a limitation of the DigitalOcean database offering as a whole, not just the Terraform provider. I'll pass your feedback on to the DBaaS team. \r\n\r\nThanks for the feedback!",
"Ah I see... I'll defer to you then on whether this issue should remain open :... | 2021-12-11T14:09:13 | 2021-12-13T23:17:26 | null | NONE | null | ### Is your feature request related to a problem? Please describe.
<!-- A clear and concise description of what the problem is. -->
I am reading through [this](https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/database_user) documentation which state
```
Any new users created will always have normal role, only the default user that comes with database cluster creation has primary role. Additional permissions must be managed manually.
```
This feels very restrictive, and I think there should at least be the ability for users to opt-in to creating `primary` users in an automated fashion.
### Describe the solution you'd like
<!-- A clear and concise description of what you want to happen. -->
I think there should be a field `primary` that defaults to `false` but that when set to true will give terraform the ability to create a primary user.
The reason for this is that certain software requires the ability to set up its own databases. I am testing out deploying [Backstage](https://backstage.io) via the app platform and it requires exactly this, the ability to create its own databases and tables to manage its extensible plugin ecosystem.
Now, rather than being able to manage the entire thing via terraform, I am going to need to create my database, figure out a secure key store mechanism for my `doadmin` creds, and then inject those credentials into the exact same terraform so I can deploy my app. Which is a bummer.
### Describe alternatives you've considered
<!-- A clear and concise description of any alternative solutions or features you've
considered. -->
Guess I kinda covered this above.
### Additional context
<!-- Add any other context or screenshots about the feature request here.
Include links to other
[Issues](https://github.com/digitalocean/terraform-provider-digitalocean/issues)
or
[Discussions](https://github.com/digitalocean/terraform-provider-digitalocean/discussions) -->
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/757/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/757/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/756 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/756/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/756/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/756/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/756 | 1,076,495,249 | I_kwDOBZHfyM5AKgOR | 756 | digitalocean droplet can't be created with a snapshot | {
"login": "lyc0221",
"id": 40416749,
"node_id": "MDQ6VXNlcjQwNDE2NzQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/40416749?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lyc0221",
"html_url": "https://github.com/lyc0221",
"followers_url": "https://api.github.com/users/lyc0221/followers",
"following_url": "https://api.github.com/users/lyc0221/following{/other_user}",
"gists_url": "https://api.github.com/users/lyc0221/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lyc0221/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lyc0221/subscriptions",
"organizations_url": "https://api.github.com/users/lyc0221/orgs",
"repos_url": "https://api.github.com/users/lyc0221/repos",
"events_url": "https://api.github.com/users/lyc0221/events{/privacy}",
"received_events_url": "https://api.github.com/users/lyc0221/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [
"Hi @lyc0221,\r\n\r\nThe error in the API response is \"Unable to authenticate you.\" That would suggest that the API token you are using is either not being set correctly or is invalid. With out sharing the token itself, can you share how you are passing it through to the provider?\r\n\r\n```\r\n ---[ RESPONSE ]--... | 2021-12-10T06:38:10 | 2021-12-15T04:18:05 | 2021-12-15T04:18:05 | NONE | null | <!-- Thank you for opening an issue. Please note that we try to keep the issue
tracker reserved for bug reports and feature requests. For general usage
questions, please see:
https://github.com/digitalocean/terraform-provider-digitalocean/discussions
**NOTE: Before submitting a bug**
There are cases where the provider receives HTTP Service Error (500 level HTTP
statuses) responses from the DigitalOcean API. There are some cases where the
provider might handle these and retry. If the problem persists, it's best to
contact [DigitalOcean support](https://cloudsupport.digitalocean.com/) -->
# Bug Report
<!-- Include as much of the following details with your bug report: -->
---
## Describe the bug
<!-- A clear and concise description of what the bug is. -->
terraform version: 1.0.11
I can't create a droplet with a snapshot.
But I can get the image from the API
```
curl -X GET \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
"https://api.digitalocean.com/v2/images?page=1&per_page=1&private=true"
{"images":[{"id":97477575,"name":"init-base-template","distribution":"Ubuntu","slug":null,"public":false,"regions":["sgp1","nyc3"],"created_at":"2021-12-10T04:25:20Z","min_disk_size":25,"type":"snapshot","size_gigabytes":2.12,"description":null,"tags":[],"status":"available","error_message":""}],"links":{},"meta":{"total":1}}
```
### Affected Resource(s)
<!-- Please list the resources, for example:
- digitalocean_droplet
- digitalocean_kubernetes_cluster
If this issue appears to affect multiple resources, it may be an issue with
Terraform's core, so please mention this. -->
digitalocean_droplet
### Expected Behavior
<!-- What should have happened? -->
### Actual Behavior
<!-- What actually happened? -->
### Steps to Reproduce
<!-- Please list the steps required to reproduce the issue, for example:
1. `terraform apply` -->
**Terraform Configuration Files**
<!--
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.-->
data.tf
```
data "digitalocean_image" "base_snapshot" {
name = "init-base-template"
}
```
main.tf
```
module "droplet" {
source = "../../modules/do-droplet12"
service = var.service
environment = var.environment
image = data.digitalocean_image.base_snapshot.id
region = "nyc3"
size = "s-1vcpu-2gb"
tags = ["fw-icmp-ssh", "fw-prod"]
namenumber = var.namenumber
user = var.user
token = var.digitalocean_token
}
```
**Expected behavior**
<!-- Run `terraform -v` to show the version. If you are not running the latest
version of Terraform, please upgrade because your issue may have already been
fixed. -->
**Debug Output**
<!-- Please provide a link to a GitHub Gist containing the complete debug output:
https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the
debug output in the issue; just paste a link to the Gist. -->
```
2021-12-10T14:28:13.333+0800 [TRACE] Executing graph transform *terraform.OrphanResourceInstanceCountTransformer
2021-12-10T14:28:13.333+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: 2021/12/10 14:28:13 [INFO] DigitalOcean Client configured for URL: https://api.digitalocean.com
2021-12-10T14:28:13.333+0800 [TRACE] Completed graph transform *terraform.OrphanResourceInstanceCountTransformer (no changes)
2021-12-10T14:28:13.333+0800 [TRACE] Executing graph transform *terraform.AttachStateTransformer
2021-12-10T14:28:13.333+0800 [TRACE] vertex "provider[\"registry.terraform.io/digitalocean/digitalocean\"]": visit complete
2021-12-10T14:28:13.333+0800 [TRACE] vertex "data.digitalocean_image.base_snapshot (expand)": starting visit (*terraform.nodeExpandPlannableResource)
2021-12-10T14:28:13.333+0800 [TRACE] vertex "data.digitalocean_image.base_snapshot (expand)": expanding dynamic subgraph
2021-12-10T14:28:13.333+0800 [DEBUG] Resource instance state not found for node "module.droplet.data.template_file.userdata", instance module.droplet.data.template_file.userdata
2021-12-10T14:28:13.333+0800 [TRACE] Completed graph transform *terraform.AttachStateTransformer (no changes)
2021-12-10T14:28:13.333+0800 [TRACE] Executing graph transform *terraform.TargetsTransformer
2021-12-10T14:28:13.333+0800 [TRACE] Completed graph transform *terraform.TargetsTransformer (no changes)
2021-12-10T14:28:13.333+0800 [TRACE] Executing graph transform *terraform.ReferenceTransformer
2021-12-10T14:28:13.335+0800 [DEBUG] ReferenceTransformer: "module.droplet.data.template_file.userdata" references: []
2021-12-10T14:28:13.335+0800 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2021-12-10T14:28:13.335+0800 [TRACE] Executing graph transform *terraform.RootTransformer
2021-12-10T14:28:13.335+0800 [TRACE] Completed graph transform *terraform.RootTransformer (no changes)
2021-12-10T14:28:13.335+0800 [TRACE] vertex "module.droplet.data.template_file.userdata": entering dynamic subgraph
2021-12-10T14:28:13.335+0800 [TRACE] vertex "module.droplet.data.template_file.userdata": starting visit (*terraform.NodePlannableResourceInstance)
2021-12-10T14:28:13.335+0800 [TRACE] readResourceInstanceState: reading state for module.droplet.data.template_file.userdata
2021-12-10T14:28:13.335+0800 [TRACE] readResourceInstanceState: no state present for module.droplet.data.template_file.userdata
2021-12-10T14:28:13.335+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to prevRunState for module.droplet.data.template_file.userdata
2021-12-10T14:28:13.335+0800 [TRACE] vertex "data.digitalocean_image.base_snapshot (expand)": entering dynamic subgraph
2021-12-10T14:28:13.335+0800 [TRACE] vertex "data.digitalocean_image.base_snapshot": starting visit (*terraform.NodePlannableResource)
2021-12-10T14:28:13.335+0800 [TRACE] vertex "data.digitalocean_image.base_snapshot": expanding dynamic subgraph
2021-12-10T14:28:13.335+0800 [TRACE] Executing graph transform *terraform.ResourceCountTransformer
2021-12-10T14:28:13.336+0800 [TRACE] ResourceCountTransformer: adding data.digitalocean_image.base_snapshot as *terraform.NodePlannableResourceInstance
2021-12-10T14:28:13.336+0800 [TRACE] Completed graph transform *terraform.ResourceCountTransformer with new graph:
data.digitalocean_image.base_snapshot - *terraform.NodePlannableResourceInstance
------
2021-12-10T14:28:13.336+0800 [TRACE] Executing graph transform *terraform.OrphanResourceInstanceCountTransformer
2021-12-10T14:28:13.336+0800 [TRACE] Completed graph transform *terraform.OrphanResourceInstanceCountTransformer (no changes)
2021-12-10T14:28:13.336+0800 [TRACE] Executing graph transform *terraform.AttachStateTransformer
2021-12-10T14:28:13.336+0800 [DEBUG] Resource instance state not found for node "data.digitalocean_image.base_snapshot", instance data.digitalocean_image.base_snapshot
2021-12-10T14:28:13.336+0800 [TRACE] Completed graph transform *terraform.AttachStateTransformer (no changes)
2021-12-10T14:28:13.336+0800 [TRACE] Executing graph transform *terraform.TargetsTransformer
2021-12-10T14:28:13.336+0800 [TRACE] Completed graph transform *terraform.TargetsTransformer (no changes)
2021-12-10T14:28:13.336+0800 [TRACE] Executing graph transform *terraform.ReferenceTransformer
2021-12-10T14:28:13.336+0800 [TRACE] states.SyncState: pruning module.droplet because it is empty
2021-12-10T14:28:13.336+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: removing state object for module.droplet.data.template_file.userdata
2021-12-10T14:28:13.336+0800 [DEBUG] ReferenceTransformer: "data.digitalocean_image.base_snapshot" references: []
2021-12-10T14:28:13.336+0800 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2021-12-10T14:28:13.336+0800 [TRACE] Executing graph transform *terraform.RootTransformer
2021-12-10T14:28:13.336+0800 [TRACE] Completed graph transform *terraform.RootTransformer (no changes)
2021-12-10T14:28:13.336+0800 [TRACE] vertex "data.digitalocean_image.base_snapshot": entering dynamic subgraph
2021-12-10T14:28:13.336+0800 [TRACE] vertex "data.digitalocean_image.base_snapshot": starting visit (*terraform.NodePlannableResourceInstance)
2021-12-10T14:28:13.336+0800 [TRACE] readResourceInstanceState: reading state for data.digitalocean_image.base_snapshot
2021-12-10T14:28:13.336+0800 [TRACE] readResourceInstanceState: no state present for data.digitalocean_image.base_snapshot
2021-12-10T14:28:13.337+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to prevRunState for data.digitalocean_image.base_snapshot
2021-12-10T14:28:13.337+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: removing state object for data.digitalocean_image.base_snapshot
2021-12-10T14:28:13.337+0800 [TRACE] readDataSource: Re-validating config for data.digitalocean_image.base_snapshot
2021-12-10T14:28:13.337+0800 [TRACE] GRPCProvider: ValidateDataResourceConfig
2021-12-10T14:28:13.337+0800 [TRACE] readDataSource: Re-validating config for module.droplet.data.template_file.userdata
2021-12-10T14:28:13.337+0800 [TRACE] GRPCProvider: ValidateDataResourceConfig
2021-12-10T14:28:13.338+0800 [TRACE] readDataSource: data.digitalocean_image.base_snapshot configuration is complete, so reading from provider
2021-12-10T14:28:13.338+0800 [TRACE] GRPCProvider: ReadDataSource
2021-12-10T14:28:13.339+0800 [TRACE] readDataSource: module.droplet.data.template_file.userdata configuration is complete, so reading from provider
2021-12-10T14:28:13.339+0800 [TRACE] GRPCProvider: ReadDataSource
2021-12-10T14:28:13.346+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: 2021/12/10 14:28:13 [DEBUG] DigitalOcean API Request Details:
2021-12-10T14:28:13.350+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: ---[ REQUEST ]---------------------------------------
2021-12-10T14:28:13.350+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: GET /v2/images?page=1&per_page=200&private=true HTTP/1.1
2021-12-10T14:28:13.350+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: Host: api.digitalocean.com
2021-12-10T14:28:13.351+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: User-Agent: Terraform/1.0.11 godo/1.57.0
2021-12-10T14:28:13.351+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: Accept: application/json
2021-12-10T14:28:13.351+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: Accept-Encoding: gzip
2021-12-10T14:28:13.351+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1:
2021-12-10T14:28:13.351+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1:
2021-12-10T14:28:13.351+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: -----------------------------------------------------
2021-12-10T14:28:13.355+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to refreshState for module.droplet.data.template_file.userdata
2021-12-10T14:28:13.355+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: writing state object for module.droplet.data.template_file.userdata
2021-12-10T14:28:13.355+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to workingState for module.droplet.data.template_file.userdata
2021-12-10T14:28:13.355+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: writing state object for module.droplet.data.template_file.userdata
2021-12-10T14:28:13.356+0800 [TRACE] vertex "module.droplet.data.template_file.userdata": visit complete
2021-12-10T14:28:13.356+0800 [TRACE] vertex "module.droplet.data.template_file.userdata": dynamic subgraph completed successfully
2021-12-10T14:28:13.356+0800 [TRACE] vertex "module.droplet.data.template_file.userdata": visit complete
2021-12-10T14:28:13.356+0800 [TRACE] vertex "module.droplet.data.template_file.userdata (expand)": dynamic subgraph completed successfully
2021-12-10T14:28:13.356+0800 [TRACE] vertex "module.droplet.data.template_file.userdata (expand)": visit complete
2021-12-10T14:28:13.356+0800 [TRACE] vertex "provider[\"registry.terraform.io/hashicorp/template\"] (close)": starting visit (*terraform.graphNodeCloseProvider)
2021-12-10T14:28:13.356+0800 [TRACE] GRPCProvider: Close
2021-12-10T14:28:13.359+0800 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/template/2.2.0/darwin_amd64/terraform-provider-template_v2.2.0_x4 pid=34248
2021-12-10T14:28:13.359+0800 [DEBUG] provider: plugin exited
2021-12-10T14:28:13.359+0800 [TRACE] vertex "provider[\"registry.terraform.io/hashicorp/template\"] (close)": visit complete
2021-12-10T14:28:13.361+0800 [TRACE] GRPCProvider: ValidateProviderConfig
2021-12-10T14:28:13.370+0800 [WARN] ValidateProviderConfig from "module.droplet.provider[\"registry.terraform.io/digitalocean/digitalocean\"]" changed the config value, but that value is unused
2021-12-10T14:28:13.371+0800 [TRACE] GRPCProvider: ConfigureProvider
2021-12-10T14:28:13.371+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: 2021/12/10 14:28:13 [INFO] DigitalOcean Client configured for URL: https://api.digitalocean.com
2021-12-10T14:28:13.371+0800 [TRACE] vertex "module.droplet.provider[\"registry.terraform.io/digitalocean/digitalocean\"]": visit complete
2021-12-10T14:28:13.372+0800 [TRACE] vertex "module.droplet.digitalocean_tag.common (expand)": starting visit (*terraform.nodeExpandPlannableResource)
2021-12-10T14:28:13.372+0800 [TRACE] vertex "module.droplet.digitalocean_tag.common (expand)": expanding dynamic subgraph
2021-12-10T14:28:13.372+0800 [TRACE] vertex "module.droplet.digitalocean_tag.common (expand)": entering dynamic subgraph
2021-12-10T14:28:13.372+0800 [TRACE] vertex "module.droplet.digitalocean_tag.this (expand)": starting visit (*terraform.nodeExpandPlannableResource)
2021-12-10T14:28:13.372+0800 [TRACE] vertex "module.droplet.digitalocean_tag.this (expand)": expanding dynamic subgraph
2021-12-10T14:28:13.372+0800 [TRACE] vertex "module.droplet.digitalocean_tag.this (expand)": entering dynamic subgraph
2021-12-10T14:28:13.372+0800 [TRACE] vertex "module.droplet.digitalocean_tag.this": starting visit (*terraform.NodePlannableResource)
2021-12-10T14:28:13.372+0800 [TRACE] vertex "module.droplet.digitalocean_tag.this": expanding dynamic subgraph
2021-12-10T14:28:13.372+0800 [TRACE] vertex "module.droplet.digitalocean_tag.common": starting visit (*terraform.NodePlannableResource)
2021-12-10T14:28:13.372+0800 [TRACE] Executing graph transform *terraform.ResourceCountTransformer
2021-12-10T14:28:13.372+0800 [TRACE] ResourceCountTransformer: adding module.droplet.digitalocean_tag.this as *terraform.NodePlannableResourceInstance
2021-12-10T14:28:13.372+0800 [TRACE] Completed graph transform *terraform.ResourceCountTransformer with new graph:
module.droplet.digitalocean_tag.this - *terraform.NodePlannableResourceInstance
------
2021-12-10T14:28:13.372+0800 [TRACE] Executing graph transform *terraform.OrphanResourceInstanceCountTransformer
2021-12-10T14:28:13.372+0800 [TRACE] Completed graph transform *terraform.OrphanResourceInstanceCountTransformer (no changes)
2021-12-10T14:28:13.372+0800 [TRACE] Executing graph transform *terraform.AttachStateTransformer
2021-12-10T14:28:13.372+0800 [DEBUG] Resource instance state not found for node "module.droplet.digitalocean_tag.this", instance module.droplet.digitalocean_tag.this
2021-12-10T14:28:13.372+0800 [TRACE] Completed graph transform *terraform.AttachStateTransformer (no changes)
2021-12-10T14:28:13.372+0800 [TRACE] Executing graph transform *terraform.TargetsTransformer
2021-12-10T14:28:13.373+0800 [TRACE] Completed graph transform *terraform.TargetsTransformer (no changes)
2021-12-10T14:28:13.373+0800 [TRACE] Executing graph transform *terraform.ReferenceTransformer
2021-12-10T14:28:13.373+0800 [INFO] ReferenceTransformer: reference not found: "var.service"
2021-12-10T14:28:13.373+0800 [INFO] ReferenceTransformer: reference not found: "var.service"
2021-12-10T14:28:13.373+0800 [INFO] ReferenceTransformer: reference not found: "var.environment"
2021-12-10T14:28:13.373+0800 [INFO] ReferenceTransformer: reference not found: "var.project"
2021-12-10T14:28:13.373+0800 [DEBUG] ReferenceTransformer: "module.droplet.digitalocean_tag.this" references: []
2021-12-10T14:28:13.373+0800 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2021-12-10T14:28:13.373+0800 [TRACE] Executing graph transform *terraform.RootTransformer
2021-12-10T14:28:13.373+0800 [TRACE] Completed graph transform *terraform.RootTransformer (no changes)
2021-12-10T14:28:13.373+0800 [TRACE] vertex "module.droplet.digitalocean_tag.this": entering dynamic subgraph
2021-12-10T14:28:13.373+0800 [TRACE] vertex "module.droplet.digitalocean_tag.common": expanding dynamic subgraph
2021-12-10T14:28:13.373+0800 [TRACE] Executing graph transform *terraform.ResourceCountTransformer
2021-12-10T14:28:13.373+0800 [TRACE] vertex "module.droplet.digitalocean_tag.this": starting visit (*terraform.NodePlannableResourceInstance)
2021-12-10T14:28:13.373+0800 [TRACE] ResourceCountTransformer: adding module.droplet.digitalocean_tag.common as *terraform.NodePlannableResourceInstance
2021-12-10T14:28:13.373+0800 [TRACE] Completed graph transform *terraform.ResourceCountTransformer with new graph:
module.droplet.digitalocean_tag.common - *terraform.NodePlannableResourceInstance
------
2021-12-10T14:28:13.373+0800 [TRACE] Executing graph transform *terraform.OrphanResourceInstanceCountTransformer
2021-12-10T14:28:13.373+0800 [TRACE] Completed graph transform *terraform.OrphanResourceInstanceCountTransformer (no changes)
2021-12-10T14:28:13.374+0800 [TRACE] Executing graph transform *terraform.AttachStateTransformer
2021-12-10T14:28:13.374+0800 [DEBUG] Resource instance state not found for node "module.droplet.digitalocean_tag.common", instance module.droplet.digitalocean_tag.common
2021-12-10T14:28:13.374+0800 [TRACE] readResourceInstanceState: reading state for module.droplet.digitalocean_tag.this
2021-12-10T14:28:13.374+0800 [TRACE] Completed graph transform *terraform.AttachStateTransformer (no changes)
2021-12-10T14:28:13.374+0800 [TRACE] Executing graph transform *terraform.TargetsTransformer
2021-12-10T14:28:13.374+0800 [TRACE] Completed graph transform *terraform.TargetsTransformer (no changes)
2021-12-10T14:28:13.374+0800 [TRACE] Executing graph transform *terraform.ReferenceTransformer
2021-12-10T14:28:13.374+0800 [DEBUG] ReferenceTransformer: "module.droplet.digitalocean_tag.common" references: []
2021-12-10T14:28:13.374+0800 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2021-12-10T14:28:13.374+0800 [TRACE] Executing graph transform *terraform.RootTransformer
2021-12-10T14:28:13.374+0800 [TRACE] Completed graph transform *terraform.RootTransformer (no changes)
2021-12-10T14:28:13.374+0800 [TRACE] vertex "module.droplet.digitalocean_tag.common": entering dynamic subgraph
2021-12-10T14:28:13.374+0800 [TRACE] vertex "module.droplet.digitalocean_tag.common": starting visit (*terraform.NodePlannableResourceInstance)
2021-12-10T14:28:13.374+0800 [TRACE] readResourceInstanceState: no state present for module.droplet.digitalocean_tag.this
2021-12-10T14:28:13.374+0800 [TRACE] readResourceInstanceState: reading state for module.droplet.digitalocean_tag.common
2021-12-10T14:28:13.374+0800 [TRACE] readResourceInstanceState: no state present for module.droplet.digitalocean_tag.common
2021-12-10T14:28:13.374+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to prevRunState for module.droplet.digitalocean_tag.common
2021-12-10T14:28:13.374+0800 [TRACE] states.SyncState: pruning module.droplet because it is empty
2021-12-10T14:28:13.374+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: removing state object for module.droplet.digitalocean_tag.common
2021-12-10T14:28:13.374+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to refreshState for module.droplet.digitalocean_tag.common
2021-12-10T14:28:13.374+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: removing state object for module.droplet.digitalocean_tag.common
2021-12-10T14:28:13.374+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to prevRunState for module.droplet.digitalocean_tag.this
2021-12-10T14:28:13.374+0800 [TRACE] states.SyncState: pruning module.droplet because it is empty
2021-12-10T14:28:13.375+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: removing state object for module.droplet.digitalocean_tag.this
2021-12-10T14:28:13.375+0800 [TRACE] NodeAbstractResourceInstance.refresh for module.droplet.digitalocean_tag.common
2021-12-10T14:28:13.375+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to refreshState for module.droplet.digitalocean_tag.this
2021-12-10T14:28:13.375+0800 [DEBUG] refresh: module.droplet.digitalocean_tag.common: no state, so not refreshing
2021-12-10T14:28:13.375+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to refreshState for module.droplet.digitalocean_tag.common
2021-12-10T14:28:13.375+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: removing state object for module.droplet.digitalocean_tag.common
2021-12-10T14:28:13.375+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: removing state object for module.droplet.digitalocean_tag.this
2021-12-10T14:28:13.375+0800 [TRACE] NodeAbstractResourceInstance.refresh for module.droplet.digitalocean_tag.this
2021-12-10T14:28:13.375+0800 [DEBUG] refresh: module.droplet.digitalocean_tag.this: no state, so not refreshing
2021-12-10T14:28:13.375+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to refreshState for module.droplet.digitalocean_tag.this
2021-12-10T14:28:13.375+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: removing state object for module.droplet.digitalocean_tag.this
2021-12-10T14:28:13.375+0800 [TRACE] Re-validating config for "module.droplet.digitalocean_tag.common"
2021-12-10T14:28:13.375+0800 [TRACE] GRPCProvider: ValidateResourceConfig
2021-12-10T14:28:13.376+0800 [TRACE] Re-validating config for "module.droplet.digitalocean_tag.this"
2021-12-10T14:28:13.377+0800 [TRACE] GRPCProvider: ValidateResourceConfig
2021-12-10T14:28:13.377+0800 [TRACE] GRPCProvider: PlanResourceChange
2021-12-10T14:28:13.378+0800 [TRACE] GRPCProvider: PlanResourceChange
2021-12-10T14:28:13.382+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to workingState for module.droplet.digitalocean_tag.common
2021-12-10T14:28:13.382+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: writing state object for module.droplet.digitalocean_tag.common
2021-12-10T14:28:13.382+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState to workingState for module.droplet.digitalocean_tag.this
2021-12-10T14:28:13.382+0800 [TRACE] NodeAbstractResouceInstance.writeResourceInstanceState: writing state object for module.droplet.digitalocean_tag.this
2021-12-10T14:28:13.382+0800 [TRACE] writeChange: recorded Create change for module.droplet.digitalocean_tag.common
2021-12-10T14:28:13.382+0800 [TRACE] vertex "module.droplet.digitalocean_tag.common": visit complete
2021-12-10T14:28:13.382+0800 [TRACE] vertex "module.droplet.digitalocean_tag.common": dynamic subgraph completed successfully
2021-12-10T14:28:13.382+0800 [TRACE] vertex "module.droplet.digitalocean_tag.common": visit complete
2021-12-10T14:28:13.382+0800 [TRACE] writeChange: recorded Create change for module.droplet.digitalocean_tag.this
2021-12-10T14:28:13.382+0800 [TRACE] vertex "module.droplet.digitalocean_tag.this": visit complete
2021-12-10T14:28:13.382+0800 [TRACE] vertex "module.droplet.digitalocean_tag.this": dynamic subgraph completed successfully
2021-12-10T14:28:13.383+0800 [TRACE] vertex "module.droplet.digitalocean_tag.this": visit complete
2021-12-10T14:28:13.383+0800 [TRACE] vertex "module.droplet.digitalocean_tag.this (expand)": dynamic subgraph completed successfully
2021-12-10T14:28:13.383+0800 [TRACE] vertex "module.droplet.digitalocean_tag.this (expand)": visit complete
2021-12-10T14:28:13.383+0800 [TRACE] vertex "module.droplet.output.tag (expand)": starting visit (*terraform.nodeExpandOutput)
2021-12-10T14:28:13.383+0800 [TRACE] vertex "module.droplet.output.tag (expand)": expanding dynamic subgraph
2021-12-10T14:28:13.383+0800 [TRACE] Expanding output: adding module.droplet.output.tag as *terraform.NodeApplyableOutput
2021-12-10T14:28:13.383+0800 [TRACE] vertex "module.droplet.output.tag (expand)": entering dynamic subgraph
2021-12-10T14:28:13.383+0800 [TRACE] vertex "module.droplet.output.tag": starting visit (*terraform.NodeApplyableOutput)
2021-12-10T14:28:13.383+0800 [TRACE] vertex "module.droplet.digitalocean_tag.common (expand)": dynamic subgraph completed successfully
2021-12-10T14:28:13.383+0800 [TRACE] vertex "module.droplet.digitalocean_tag.common (expand)": visit complete
2021-12-10T14:28:13.384+0800 [TRACE] setValue: Saving Create change for module.droplet.output.tag in changeset
2021-12-10T14:28:13.384+0800 [TRACE] setValue: Saving value for module.droplet.output.tag in state
2021-12-10T14:28:13.384+0800 [TRACE] setValue: Saving Create change for module.droplet.output.tag in changeset
2021-12-10T14:28:13.384+0800 [TRACE] setValue: Saving value for module.droplet.output.tag in state
2021-12-10T14:28:13.384+0800 [TRACE] vertex "module.droplet.output.tag": visit complete
2021-12-10T14:28:13.384+0800 [TRACE] vertex "module.droplet.output.tag (expand)": dynamic subgraph completed successfully
2021-12-10T14:28:13.384+0800 [TRACE] vertex "module.droplet.output.tag (expand)": visit complete
2021-12-10T14:28:14.445+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: 2021/12/10 14:28:14 [DEBUG] DigitalOcean API Response Details:
2021-12-10T14:28:14.445+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: ---[ RESPONSE ]--------------------------------------
2021-12-10T14:28:14.445+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: HTTP/2.0 401 Unauthorized
2021-12-10T14:28:14.445+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: Content-Length: 65
2021-12-10T14:28:14.445+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: Cf-Cache-Status: DYNAMIC
2021-12-10T14:28:14.445+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: Cf-Ray: 6bb46992f91223f8-HKG
2021-12-10T14:28:14.445+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: Content-Type: application/json
2021-12-10T14:28:14.445+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: Date: Fri, 10 Dec 2021 06:28:19 GMT
2021-12-10T14:28:14.445+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: Expect-Ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
2021-12-10T14:28:14.445+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: Server: cloudflare
2021-12-10T14:28:14.445+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: Set-Cookie: __cf_bm=O7BZn9F1DcwsptR1K8CL.IimdYXPGZLw_BCdq4p2V34-1639117699-0-AYQNwGMD8FdXvy/Wqtb1ZJ4pjIPw66cg12dacFl0JHm8BdOFHYeHdFNYHQ9M7+MnnY7YfjQybi29eh9z9I4UpwGL89SiBOqhvcW/2b8dROG6; path=/; expires=Fri, 10-Dec-21 06:58:19 GMT; domain=.digitalocean.com; HttpOnly; Secure; SameSite=None
2021-12-10T14:28:14.445+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: X-Gateway: Edge-Gateway
2021-12-10T14:28:14.445+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: X-Request-Id: 805d3afe-2082-4ce3-abd1-849e64743d6d
2021-12-10T14:28:14.445+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: X-Response-From: Edge-Gateway
2021-12-10T14:28:14.446+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1:
2021-12-10T14:28:14.446+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: {
2021-12-10T14:28:14.446+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: "id": "unauthorized",
2021-12-10T14:28:14.446+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: "message": "Unable to authenticate you."
2021-12-10T14:28:14.446+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: }
2021-12-10T14:28:14.446+0800 [DEBUG] provider.terraform-provider-digitalocean_v2.5.1: -----------------------------------------------------
2021-12-10T14:28:14.448+0800 [TRACE] vertex "data.digitalocean_image.base_snapshot": visit complete
2021-12-10T14:28:14.448+0800 [TRACE] vertex "data.digitalocean_image.base_snapshot": dynamic subgraph encountered errors: Error retrieving images: GET https://api.digitalocean.com/v2/images?page=1&per_page=200&private=true: 401 Unable to authenticate you.
2021-12-10T14:28:14.448+0800 [TRACE] vertex "data.digitalocean_image.base_snapshot": visit complete
2021-12-10T14:28:14.448+0800 [TRACE] vertex "data.digitalocean_image.base_snapshot (expand)": dynamic subgraph encountered errors: Error retrieving images: GET https://api.digitalocean.com/v2/images?page=1&per_page=200&private=true: 401 Unable to authenticate you.
2021-12-10T14:28:14.448+0800 [TRACE] vertex "data.digitalocean_image.base_snapshot (expand)": visit complete
2021-12-10T14:28:14.448+0800 [TRACE] dag/walk: upstream of "provider[\"registry.terraform.io/digitalocean/digitalocean\"] (close)" errored, so skipping
2021-12-10T14:28:14.448+0800 [TRACE] dag/walk: upstream of "module.droplet.var.image (expand)" errored, so skipping
2021-12-10T14:28:14.448+0800 [TRACE] dag/walk: upstream of "module.droplet.digitalocean_droplet.this (expand)" errored, so skipping
2021-12-10T14:28:14.448+0800 [TRACE] dag/walk: upstream of "module.droplet.local.this_name (expand)" errored, so skipping
2021-12-10T14:28:14.448+0800 [TRACE] dag/walk: upstream of "module.droplet.output.hostname (expand)" errored, so skipping
2021-12-10T14:28:14.448+0800 [TRACE] dag/walk: upstream of "module.droplet.null_resource.provisioning (expand)" errored, so skipping
2021-12-10T14:28:14.449+0800 [TRACE] dag/walk: upstream of "provider[\"registry.terraform.io/hashicorp/null\"] (close)" errored, so skipping
2021-12-10T14:28:14.449+0800 [TRACE] dag/walk: upstream of "module.droplet.provider[\"registry.terraform.io/digitalocean/digitalocean\"] (close)" errored, so skipping
2021-12-10T14:28:14.449+0800 [TRACE] dag/walk: upstream of "module.droplet.output.servers (expand)" errored, so skipping
2021-12-10T14:28:14.449+0800 [TRACE] dag/walk: upstream of "output.servers" errored, so skipping
2021-12-10T14:28:14.449+0800 [TRACE] dag/walk: upstream of "module.droplet.local.this_ipv4_address_private (expand)" errored, so skipping
2021-12-10T14:28:14.449+0800 [TRACE] dag/walk: upstream of "module.droplet.output.private_ip (expand)" errored, so skipping
2021-12-10T14:28:14.449+0800 [TRACE] dag/walk: upstream of "module.droplet.local.this_region (expand)" errored, so skipping
2021-12-10T14:28:14.449+0800 [TRACE] dag/walk: upstream of "module.droplet.output.region (expand)" errored, so skipping
2021-12-10T14:28:14.449+0800 [TRACE] dag/walk: upstream of "module.droplet.local.this_ipv4_address (expand)" errored, so skipping
2021-12-10T14:28:14.449+0800 [TRACE] dag/walk: upstream of "module.droplet.output.public_ip (expand)" errored, so skipping
2021-12-10T14:28:14.449+0800 [TRACE] dag/walk: upstream of "module.droplet.output.list_public_ip (expand)" errored, so skipping
2021-12-10T14:28:14.449+0800 [TRACE] dag/walk: upstream of "output.public_ip" errored, so skipping
2021-12-10T14:28:14.449+0800 [TRACE] dag/walk: upstream of "module.droplet.local.this_ipv6_address (expand)" errored, so skipping
2021-12-10T14:28:14.449+0800 [TRACE] dag/walk: upstream of "module.droplet.output.public_ipv6 (expand)" errored, so skipping
2021-12-10T14:28:14.449+0800 [TRACE] dag/walk: upstream of "module.droplet.local.this_id (expand)" errored, so skipping
2021-12-10T14:28:14.450+0800 [TRACE] dag/walk: upstream of "module.droplet.output.id (expand)" errored, so skipping
2021-12-10T14:28:14.450+0800 [TRACE] dag/walk: upstream of "module.droplet.output.list_public_ipv6 (expand)" errored, so skipping
2021-12-10T14:28:14.451+0800 [TRACE] dag/walk: upstream of "output.public_ipv6" errored, so skipping
2021-12-10T14:28:14.451+0800 [TRACE] dag/walk: upstream of "module.droplet (close)" errored, so skipping
2021-12-10T14:28:14.451+0800 [TRACE] dag/walk: upstream of "meta.count-boundary (EachMode fixup)" errored, so skipping
2021-12-10T14:28:14.451+0800 [TRACE] dag/walk: upstream of "root" errored, so skipping
2021-12-10T14:28:14.451+0800 [INFO] backend/local: plan operation completed
╷
```
**Panic Output**
<!-- If Terraform produced a panic, please provide a link to a GitHub Gist
containing the output of the `crash.log`. -->
terraform plan
```
Error: Error retrieving images: GET https://api.digitalocean.com/v2/images?page=1&per_page=200&private=true: 401 Unable to authenticate you.
with data.digitalocean_image.base_snapshot,
on data.tf line 1, in data "digitalocean_image" "base_snapshot":
1: data "digitalocean_image" "base_snapshot" {
```
## Additional context
<!-- Add any other context about the problem here. -->
**Important Factoids**
<!-- Droplets use custom images or kernels. -->
**References**
<!-- Include links to other GitHub issues (open or closed) or Pull Requests
that relate to this issue. -->
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/756/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/756/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/755 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/755/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/755/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/755/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/755 | 1,073,758,602 | PR_kwDOBZHfyM4vhWdC | 755 | Sort imports with goimports. Introduce lint in GitHub workflows. | {
"login": "atombrella",
"id": 6141390,
"node_id": "MDQ6VXNlcjYxNDEzOTA=",
"avatar_url": "https://avatars.githubusercontent.com/u/6141390?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/atombrella",
"html_url": "https://github.com/atombrella",
"followers_url": "https://api.github.com/users/atombrella/followers",
"following_url": "https://api.github.com/users/atombrella/following{/other_user}",
"gists_url": "https://api.github.com/users/atombrella/gists{/gist_id}",
"starred_url": "https://api.github.com/users/atombrella/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/atombrella/subscriptions",
"organizations_url": "https://api.github.com/users/atombrella/orgs",
"repos_url": "https://api.github.com/users/atombrella/repos",
"events_url": "https://api.github.com/users/atombrella/events{/privacy}",
"received_events_url": "https://api.github.com/users/atombrella/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"@danaelhe @andrewsomething @scotchneat https://golangci-lint.run/usage/configuration/ contains documentation about the linting tool. Maybe you can use my PR as a start to configure what's useful and less useful to include.",
"@danaelhe @andrewsomething @scotchneat Should I close this, or can you have a look at i... | 2021-12-07T21:11:59 | 2022-08-06T05:54:50 | 2022-08-04T20:56:12 | CONTRIBUTOR | null | "Stolen" from https://github.com/hashicorp/terraform-provider-azurerm/blob/main/.golangci.yml and https://github.com/hashicorp/terraform-provider-azurerm/tree/main/scripts I introduced linting to check for import sorts in the code. I disabled a great deal of the linters, but IMO it's good to have linting in a code-base. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/755/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/755/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/755",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/755",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/755.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/755.patch",
"merged_at": "2022-08-04T20:56:11"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/754 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/754/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/754/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/754/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/754 | 1,072,313,751 | I_kwDOBZHfyM4_6jWX | 754 | feat(kubernetes): get internal api server ip address | {
"login": "bweston92",
"id": 1764057,
"node_id": "MDQ6VXNlcjE3NjQwNTc=",
"avatar_url": "https://avatars.githubusercontent.com/u/1764057?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bweston92",
"html_url": "https://github.com/bweston92",
"followers_url": "https://api.github.com/users/bweston92/followers",
"following_url": "https://api.github.com/users/bweston92/following{/other_user}",
"gists_url": "https://api.github.com/users/bweston92/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bweston92/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bweston92/subscriptions",
"organizations_url": "https://api.github.com/users/bweston92/orgs",
"repos_url": "https://api.github.com/users/bweston92/repos",
"events_url": "https://api.github.com/users/bweston92/events{/privacy}",
"received_events_url": "https://api.github.com/users/bweston92/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326613,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTM=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/enhancement-provider",
"name": "enhancement-provider",
"color": "d4c5f9",
"default": false,
"description": ""
}
] | closed | false | null | [] | null | [
"I just figured out I can get this from the `kubernetes` service in the `default` namespace."
] | 2021-12-06T15:56:51 | 2021-12-06T16:19:38 | 2021-12-06T16:19:38 | NONE | null | ### Is your feature request related to a problem? Please describe.
When I use the Kubernetes API server to review a token, in this case I have configured the Vault Kubernetes auth backend to use the public ip address of my Kubernetes API server I also provided the CA file provided by the outputs.
However the API server isn't valid (no subject) for the public ip address.
So I get an error like:
```
2021-12-06T15:44:23.152Z [ERROR] auth.kubernetes.auth_kubernetes_aeea3f17: login unauthorized due to: Post "https://139.59.190.169:443/apis/authentication.k8s.io/v1/tokenreviews": x509: certificate is valid for 10.245.0.1, 127.0.0.1, not 139.59.190.169
```
### Describe the solution you'd like
Provide the internal API server IP address or provide some guarantee that it is the first ip address in the cluster subnet.
### Describe alternatives you've considered
I am unable to find another way of getting the API server address.
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/754/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/754/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/753 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/753/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/753/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/753/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/753 | 1,067,724,082 | PR_kwDOBZHfyM4vNqYv | 753 | Update domains sweeper | {
"login": "scotchneat",
"id": 8887224,
"node_id": "MDQ6VXNlcjg4ODcyMjQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/8887224?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/scotchneat",
"html_url": "https://github.com/scotchneat",
"followers_url": "https://api.github.com/users/scotchneat/followers",
"following_url": "https://api.github.com/users/scotchneat/following{/other_user}",
"gists_url": "https://api.github.com/users/scotchneat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/scotchneat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scotchneat/subscriptions",
"organizations_url": "https://api.github.com/users/scotchneat/orgs",
"repos_url": "https://api.github.com/users/scotchneat/repos",
"events_url": "https://api.github.com/users/scotchneat/events{/privacy}",
"received_events_url": "https://api.github.com/users/scotchneat/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2021-11-30T22:12:21 | 2021-12-17T17:11:19 | 2021-12-17T17:11:19 | CONTRIBUTOR | null | I noticed domain resources aren't getting cleaned up after acceptance tests but it's difficult to identify which tests aren't properly cleaning up after themselves.
This change includes a few things to help diagnose as well clean up:
1. Update the domains resource sweeper to use match resources with the common `testNamePrefix` (a const value set in the [digitalocean/provider_test.go#L17](https://github.com/digitalocean/terraform-provider-digitalocean/blob/main/digitalocean/provider_test.go#L17))
2. Update the names used for domains in tests to call `randomTestName()` (which uses the above common prefix)
3. Extended `randomTestName()` to allow a list of strings that will get concatenated with `-` (and will replace spaces with `_`).
* **_I'm curious what thoughts there are on this_**. I made the function variadic so existing calls don't fail. However, I know some resources have a relatively short name length limit and this could cause issues if misused.
4. Lastly, I added a job to the acceptance test workflows to call `make sweep`. This will allow the resources to be cleaned up after every acceptance test run regardless of the tests handling clean up properly, and help reduce future errors due to resource limits being reached.
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/753/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/753/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/753",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/753",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/753.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/753.patch",
"merged_at": "2021-12-17T17:11:19"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/752 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/752/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/752/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/752/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/752 | 1,067,044,882 | I_kwDOBZHfyM4_mdAS | 752 | spaces lifecycle policy not working as expected | {
"login": "volleynator",
"id": 81929202,
"node_id": "MDQ6VXNlcjgxOTI5MjAy",
"avatar_url": "https://avatars.githubusercontent.com/u/81929202?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/volleynator",
"html_url": "https://github.com/volleynator",
"followers_url": "https://api.github.com/users/volleynator/followers",
"following_url": "https://api.github.com/users/volleynator/following{/other_user}",
"gists_url": "https://api.github.com/users/volleynator/gists{/gist_id}",
"starred_url": "https://api.github.com/users/volleynator/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/volleynator/subscriptions",
"organizations_url": "https://api.github.com/users/volleynator/orgs",
"repos_url": "https://api.github.com/users/volleynator/repos",
"events_url": "https://api.github.com/users/volleynator/events{/privacy}",
"received_events_url": "https://api.github.com/users/volleynator/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | open | false | null | [] | null | [
"I confirm this issue! same behavior",
"Can you open a DigitalOcean support ticket so the team can take a closer look? If `s3cmd getlifecycle` is returning the lifecycle rule as defined in Terraform, that suggests that Terraform is working as expected and the issue is on the backend.",
"> Can you open a Digital... | 2021-11-30T10:13:28 | 2023-08-01T05:09:13 | null | NONE | null | # Bug Report
## Describe the bug
I try to set up lifecycle policy which should expire and delete files after one day. The rule is applied according to s3cmd, however, files are not deleted, they remain inside the space.
### Affected Resource(s)
- digitalocean_spaces_bucket
### Expected Behavior
Files should be deleted after one day
### Actual Behavior
Files remain inside the bucked
### Steps to Reproduce
1. `terraform apply` -->
**Terraform Configuration Files**
```
resource "digitalocean_spaces_bucket" "postgres-backup-s3-bucket" {
name = "backup-space"
region = "fra1"
lifecycle_rule {
id = "lifecycle-rule"
enabled = true
expiration {
days = 1
}
}
}
```
**Expected behavior**
```
Terraform v1.0.10
on linux_amd64
+ provider registry.terraform.io/digitalocean/digitalocean v2.14.0
+ provider registry.terraform.io/gavinbunney/kubectl v1.10.0
+ provider registry.terraform.io/hashicorp/helm v1.3.2
+ provider registry.terraform.io/hashicorp/kubernetes v1.13.4
+ provider registry.terraform.io/hashicorp/template v2.2.0
+ provider registry.terraform.io/kreuzwerker/docker v2.11.0
+ provider registry.terraform.io/loafoe/htpasswd v0.9.1
Your version of Terraform is out of date! The latest version
is 1.0.11. You can update by downloading from https://www.terraform.io/downloads.html
```
## Additional context
s3cmd output of `s3cmd getlifecycle`
```xml
<?xml version="1.0" ?>
<LifecycleConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Rule>
<ID>lifecycle-rule</ID>
<Prefix/>
<Status>Enabled</Status>
<Expiration>
<Days>1</Days>
</Expiration>
</Rule>
</LifecycleConfiguration>
```
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/752/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/752/timeline | null | reopened | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/751 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/751/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/751/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/751/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/751 | 1,063,877,345 | I_kwDOBZHfyM4_aXrh | 751 | recreates Kubernetes cluster every time | {
"login": "bweston92",
"id": 1764057,
"node_id": "MDQ6VXNlcjE3NjQwNTc=",
"avatar_url": "https://avatars.githubusercontent.com/u/1764057?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bweston92",
"html_url": "https://github.com/bweston92",
"followers_url": "https://api.github.com/users/bweston92/followers",
"following_url": "https://api.github.com/users/bweston92/following{/other_user}",
"gists_url": "https://api.github.com/users/bweston92/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bweston92/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bweston92/subscriptions",
"organizations_url": "https://api.github.com/users/bweston92/orgs",
"repos_url": "https://api.github.com/users/bweston92/repos",
"events_url": "https://api.github.com/users/bweston92/events{/privacy}",
"received_events_url": "https://api.github.com/users/bweston92/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [
"I see in the interface `k8s` and `k8s:<uuid here>` on the Kubernetes cluster, is this the problem?",
"Even if I add a tag to the MongoDB cluster it still wants to recreate. Any ideas?",
"Hi @bweston92,\r\n\r\nI copied your config and was able to reproduce the behavior. When a plan suggests recreating a resour... | 2021-11-25T19:23:06 | 2021-11-29T15:22:45 | 2021-11-29T15:22:45 | NONE | null | # Bug Report
---
## Describe the bug
### Affected Resource(s)
- digitalocean_database_cluster
- digitalocean_kubernetes_cluster
### Expected Behavior
Once created resources using `terraform apply`, without modifying any inputs or code, the plan when running again should say nothing.
### Actual Behavior
It always wants to recreate, it says the tags do not match.
### Steps to Reproduce
1. `terraform apply`
2. repeat step 1 continiously
**Terraform Configuration Files**
```
variable "env_name" {
default = "dev"
}
variable "do_token" {}
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.16.0"
}
}
}
provider "digitalocean" {
token = var.do_token
}
variable "domain" {
description = "The parent domain to use."
default = "redacted.local"
}
resource "digitalocean_project" "redacted" {
name = "redacted-${var.env_name}"
description = "redacted."
purpose = "Web Application"
environment = "Development"
}
resource "digitalocean_database_db" "db" {
cluster_id = digitalocean_database_cluster.mongodb.id
name = "data"
}
resource "digitalocean_database_cluster" "mongodb" {
name = "${var.env_name}-mongodb-cluster"
engine = "mongodb"
version = "4.4"
size = "db-s-1vcpu-1gb"
region = "lon1"
tags = [
]
node_count = 1
}
resource "digitalocean_database_user" "user" {
cluster_id = digitalocean_database_cluster.mongodb.id
name = "foobar"
}
resource "digitalocean_project_resources" "mongodb" {
project = digitalocean_project.redacted.id
resources = [
digitalocean_database_cluster.mongodb.urn,
]
}
resource "digitalocean_record" "root" {
domain = var.domain
type = "A"
name = var.env_name
value = digitalocean_kubernetes_cluster.cluster.ipv4_address
}
resource "digitalocean_kubernetes_cluster" "cluster" {
name = "${var.env_name}-cluster"
region = "lon1"
version = "1.21.5-do.0"
node_pool {
name = "worker-pool"
size = "s-2vcpu-2gb"
node_count = 3
}
}
resource "digitalocean_project_resources" "cluster" {
project = digitalocean_project.redacted.id
resources = [
"do:kubernetes:${digitalocean_kubernetes_cluster.cluster.id}",
]
}
```
**Expected behavior**
To run once and on subsequent runs not to expect to destroy and recreate MongoDB and K8s resources.
**References**
- https://github.com/digitalocean/terraform-provider-digitalocean/issues/665#issuecomment-909386660
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/751/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/751/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/750 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/750/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/750/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/750/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/750 | 1,060,683,256 | PR_kwDOBZHfyM4u4QNB | 750 | Add k8s as available project resource to docs | {
"login": "scotchneat",
"id": 8887224,
"node_id": "MDQ6VXNlcjg4ODcyMjQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/8887224?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/scotchneat",
"html_url": "https://github.com/scotchneat",
"followers_url": "https://api.github.com/users/scotchneat/followers",
"following_url": "https://api.github.com/users/scotchneat/following{/other_user}",
"gists_url": "https://api.github.com/users/scotchneat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/scotchneat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scotchneat/subscriptions",
"organizations_url": "https://api.github.com/users/scotchneat/orgs",
"repos_url": "https://api.github.com/users/scotchneat/repos",
"events_url": "https://api.github.com/users/scotchneat/events{/privacy}",
"received_events_url": "https://api.github.com/users/scotchneat/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2021-11-22T23:18:48 | 2022-01-04T20:24:38 | 2022-01-04T20:24:37 | CONTRIBUTOR | null | Adds kubernetes cluster as an available resource that can be added to projects.
closes #749 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/750/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/750/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/750",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/750",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/750.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/750.patch",
"merged_at": "2022-01-04T20:24:37"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/749 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/749/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/749/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/749/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/749 | 1,056,736,747 | I_kwDOBZHfyM4-_IXr | 749 | Kubernetes can be added to digitalocean_project_resources, project_resources | {
"login": "KylePeterDavies",
"id": 12613678,
"node_id": "MDQ6VXNlcjEyNjEzNjc4",
"avatar_url": "https://avatars.githubusercontent.com/u/12613678?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/KylePeterDavies",
"html_url": "https://github.com/KylePeterDavies",
"followers_url": "https://api.github.com/users/KylePeterDavies/followers",
"following_url": "https://api.github.com/users/KylePeterDavies/following{/other_user}",
"gists_url": "https://api.github.com/users/KylePeterDavies/gists{/gist_id}",
"starred_url": "https://api.github.com/users/KylePeterDavies/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/KylePeterDavies/subscriptions",
"organizations_url": "https://api.github.com/users/KylePeterDavies/orgs",
"repos_url": "https://api.github.com/users/KylePeterDavies/repos",
"events_url": "https://api.github.com/users/KylePeterDavies/events{/privacy}",
"received_events_url": "https://api.github.com/users/KylePeterDavies/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"@KylePeterDavies thanks for bringing this to our attention. We'll look into updating the documentation."
] | 2021-11-17T23:22:10 | 2022-01-04T20:24:37 | 2022-01-04T20:24:37 | NONE | null | Kubernetes can be added to a project resource with terraform
```terraform
module "kubernetes_development_project_resources" {
source = "../../modules/digitalocean/project_resources"
project_id = module.kubernetes_development_project.project_id
project_resources = [
module.kubernetes_development_cluster.kubernetes_urn
]
}
```
The documentation here states otherwise, and it's incorrect
https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/project_resources
https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/project | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/749/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/749/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/748 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/748/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/748/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/748/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/748 | 1,052,084,697 | PR_kwDOBZHfyM4udk8_ | 748 | vpc: Allow updating name and description of default vpcs. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2021-11-12T15:27:56 | 2021-11-12T16:17:29 | 2021-11-12T16:17:27 | MEMBER | null | The PUT request for updating a VPC needs to include the `default` attribute even if it is not changed in order to support updating the name or description of a region's default vpc.
Fixes: https://github.com/digitalocean/terraform-provider-digitalocean/issues/747 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/748/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/748/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/748",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/748",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/748.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/748.patch",
"merged_at": "2021-11-12T16:17:26"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/747 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/747/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/747/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/747/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/747 | 1,051,588,803 | I_kwDOBZHfyM4-rfjD | 747 | Cannot rename default vpc | {
"login": "dmikalova",
"id": 324548,
"node_id": "MDQ6VXNlcjMyNDU0OA==",
"avatar_url": "https://avatars.githubusercontent.com/u/324548?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dmikalova",
"html_url": "https://github.com/dmikalova",
"followers_url": "https://api.github.com/users/dmikalova/followers",
"following_url": "https://api.github.com/users/dmikalova/following{/other_user}",
"gists_url": "https://api.github.com/users/dmikalova/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dmikalova/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dmikalova/subscriptions",
"organizations_url": "https://api.github.com/users/dmikalova/orgs",
"repos_url": "https://api.github.com/users/dmikalova/repos",
"events_url": "https://api.github.com/users/dmikalova/events{/privacy}",
"received_events_url": "https://api.github.com/users/dmikalova/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [
"Hi @dmikalova Thanks for raising this issue. We've identified the problem and should have a fix in https://github.com/digitalocean/terraform-provider-digitalocean/pull/748"
] | 2021-11-12T05:05:25 | 2021-11-12T16:17:26 | 2021-11-12T16:17:26 | NONE | null | <!-- Thank you for opening an issue. Please note that we try to keep the issue
tracker reserved for bug reports and feature requests. For general usage
questions, please see:
https://github.com/digitalocean/terraform-provider-digitalocean/discussions
**NOTE: Before submitting a bug**
There are cases where the provider receives HTTP Service Error (500 level HTTP
statuses) responses from the DigitalOcean API. There are some cases where the
provider might handle these and retry. If the problem persists, it's best to
contact [DigitalOcean support](https://cloudsupport.digitalocean.com/) -->
# Bug Report
<!-- Include as much of the following details with your bug report: -->
---
## Describe the bug
I'm trying to use terraform to rename managed default VPCs from `$region` to `$region-default`. This works in the UI, but fails in Terraform.
### Affected Resource(s)
- digitalocean_vpc
### Expected Behavior
The vpc should be renamed.
### Actual Behavior
Terraform errors out:
```
│ Error: Error updating VPC : PUT https://api.digitalocean.com/v2/vpcs/5955a55c-421d-46a3-8147-7f5676752a7a: 403 (request "3d1d98ea-242b-47d7-a6a8-a27d27a6b5ac") Can not unset default VPCs
│
│ with module.vpcs.digitalocean_vpc.main["sfo3"],
│ on ../vpcs/main.tf line 1, in resource "digitalocean_vpc" "main":
│ 1: resource "digitalocean_vpc" "main" {
```
### Steps to Reproduce
1. import a default vpc into terraform
2. rename the vpc with terraform
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/747/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/747/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/746 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/746/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/746/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/746/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/746 | 1,047,962,455 | PR_kwDOBZHfyM4uQMMU | 746 | Fix version in changelog... 🤦 | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2021-11-08T22:00:00 | 2021-11-08T22:06:31 | 2021-11-08T22:06:29 | MEMBER | null | Following up on... https://github.com/digitalocean/terraform-provider-digitalocean/pull/745 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/746/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/746/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/746",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/746",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/746.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/746.patch",
"merged_at": "2021-11-08T22:06:28"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/745 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/745/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/745/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/745/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/745 | 1,047,929,136 | PR_kwDOBZHfyM4uQFL4 | 745 | Prep v2.16.0 release. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2021-11-08T21:17:31 | 2021-11-08T21:57:40 | 2021-11-08T21:57:38 | MEMBER | null | null | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/745/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/745/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/745",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/745",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/745.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/745.patch",
"merged_at": "2021-11-08T21:57:38"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/744 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/744/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/744/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/744/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/744 | 1,047,607,372 | PR_kwDOBZHfyM4uPBrJ | 744 | databases: Provide better error messages importing sub-resources. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2021-11-08T15:46:09 | 2021-11-08T15:59:01 | 2021-11-08T15:58:58 | MEMBER | null | Some database cluster sub-resources (e.g. users) require passing the ID of the cluster and the name of the sub-resource joined with a comma when importing. This PR provide more helpful error messaging if the argument is not comma separated.
Fixes: https://github.com/digitalocean/terraform-provider-digitalocean/issues/743 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/744/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/744/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/744",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/744",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/744.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/744.patch",
"merged_at": "2021-11-08T15:58:58"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/743 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/743/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/743/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/743/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/743 | 1,045,183,960 | I_kwDOBZHfyM4-TD3Y | 743 | Better error messages for importing existing dbs and users | {
"login": "w0rldart",
"id": 673081,
"node_id": "MDQ6VXNlcjY3MzA4MQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/673081?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/w0rldart",
"html_url": "https://github.com/w0rldart",
"followers_url": "https://api.github.com/users/w0rldart/followers",
"following_url": "https://api.github.com/users/w0rldart/following{/other_user}",
"gists_url": "https://api.github.com/users/w0rldart/gists{/gist_id}",
"starred_url": "https://api.github.com/users/w0rldart/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/w0rldart/subscriptions",
"organizations_url": "https://api.github.com/users/w0rldart/orgs",
"repos_url": "https://api.github.com/users/w0rldart/repos",
"events_url": "https://api.github.com/users/w0rldart/events{/privacy}",
"received_events_url": "https://api.github.com/users/w0rldart/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [
"Hi @w0rldart,\r\n\r\nThere should be support for importing both dbs and users, but the format is a bit different. You need to use the id and name separated by a comma (`<id>,<name>`). For example, you can [import a db](https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/databas... | 2021-11-04T20:41:37 | 2021-11-08T15:58:58 | 2021-11-08T15:58:58 | NONE | null | # Bug Report
## Describe the bug
It seems that terraform cannot associate the `name` parameter as an id in order to import an existing db and/or user. Creating them works well, and the resources I am trying to import, do exist.
### Affected Resource(s)
- digitalocean_database_db
- digitalocean_database_user
### Expected Behavior
Ability to successfully import existing db and user resources in the TF state
### Actual Behavior
```
│ Error: Cannot import non-existent remote object
│
│ While attempting to import an existing object to "digitalocean_database_db.my_db", the provider detected that no object exists with the given id. Only pre-existing objects can be imported; check
│ that the id is correct and that it is associated with the provider's configured region or endpoint, or use "terraform apply" to create a new remote object for this resource.
```
```
│ Error: Cannot import non-existent remote object
│
│ While attempting to import an existing object to "digitalocean_database_user.my_user", the provider detected that no object exists with the given id. Only pre-existing objects can be imported; check
│ that the id is correct and that it is associated with the provider's configured region or endpoint, or use "terraform apply" to create a new remote object for this resource.
```
### Steps to Reproduce
- `terraform import digitalocean_database_db.my_db my_db`
- `terraform import digitalocean_database_user.my_user my_user`
**Terraform Configuration Files**
```
resource "digitalocean_database_cluster" "mysql" {
name = "mysql-cluster"
engine = "mysql"
version = "8"
size = "db-s-1vcpu-1gb"
region = var.region
node_count = 1
}
resource "digitalocean_database_db" "my_db" {
cluster_id = digitalocean_database_cluster.mysql.id
name = "my_db"
}
resource "digitalocean_database_user" "my_user" {
cluster_id = digitalocean_database_cluster.mysql.id
name = "my_user"
}
````
**Terraform version**
```
Terraform v1.0.10
on darwin_amd64
+ provider registry.terraform.io/digitalocean/digitalocean v2.15.0
``` | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/743/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/743/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/742 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/742/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/742/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/742/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/742 | 1,044,976,069 | PR_kwDOBZHfyM4uGqnQ | 742 | load-balancers: Add support for size_unit | {
"login": "bbassingthwaite",
"id": 1919080,
"node_id": "MDQ6VXNlcjE5MTkwODA=",
"avatar_url": "https://avatars.githubusercontent.com/u/1919080?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bbassingthwaite",
"html_url": "https://github.com/bbassingthwaite",
"followers_url": "https://api.github.com/users/bbassingthwaite/followers",
"following_url": "https://api.github.com/users/bbassingthwaite/following{/other_user}",
"gists_url": "https://api.github.com/users/bbassingthwaite/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bbassingthwaite/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bbassingthwaite/subscriptions",
"organizations_url": "https://api.github.com/users/bbassingthwaite/orgs",
"repos_url": "https://api.github.com/users/bbassingthwaite/repos",
"events_url": "https://api.github.com/users/bbassingthwaite/events{/privacy}",
"received_events_url": "https://api.github.com/users/bbassingthwaite/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"@bentranter done! Also added a test for using just `size_unit`.",
"> TestAccDigitalOceanLoadbalancer_Updated\r\n\r\nFixed this one up!\r\n\r\n> TestAccDigitalOceanLoadbalancer_resizeExpectedFailure\r\n\r\nWe still have the same policy around resizing, but fixed the issue by moving the param to `size_unit`.\r\n\r... | 2021-11-04T16:44:09 | 2021-11-08T13:45:01 | 2021-11-08T13:45:01 | CONTRIBUTOR | null | null | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/742/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/742/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/742",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/742",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/742.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/742.patch",
"merged_at": "2021-11-08T13:45:01"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/741 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/741/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/741/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/741/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/741 | 1,044,293,618 | PR_kwDOBZHfyM4uEo0W | 741 | add attributes for kubernetes cluster IDs to firewall rules | {
"login": "tdyas",
"id": 901363,
"node_id": "MDQ6VXNlcjkwMTM2Mw==",
"avatar_url": "https://avatars.githubusercontent.com/u/901363?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tdyas",
"html_url": "https://github.com/tdyas",
"followers_url": "https://api.github.com/users/tdyas/followers",
"following_url": "https://api.github.com/users/tdyas/following{/other_user}",
"gists_url": "https://api.github.com/users/tdyas/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tdyas/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tdyas/subscriptions",
"organizations_url": "https://api.github.com/users/tdyas/orgs",
"repos_url": "https://api.github.com/users/tdyas/repos",
"events_url": "https://api.github.com/users/tdyas/events{/privacy}",
"received_events_url": "https://api.github.com/users/tdyas/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2021-11-04T02:18:07 | 2021-11-08T21:10:11 | 2021-11-08T21:10:11 | CONTRIBUTOR | null | Add `source_kubernetes_ids` and `destination_kubernetes_ids` attributes to firewall rules. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/741/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/741/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/741",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/741",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/741.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/741.patch",
"merged_at": "2021-11-08T21:10:11"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/740 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/740/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/740/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/740/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/740 | 1,041,613,852 | PR_kwDOBZHfyM4t8oxC | 740 | go mod vendor; go mod tidy | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2021-11-01T20:46:33 | 2021-11-01T20:49:53 | 2021-11-01T20:49:50 | MEMBER | null | Fixes build failure:
https://github.com/digitalocean/terraform-provider-digitalocean/runs/4072779143?check_suite_focus=true#step:6:59
```
⨯ release failed after 15.59s error=failed to get module path: exit status 1: go: inconsistent vendoring in /home/runner/work/terraform-provider-digitalocean/terraform-provider-digitalocean:
github.com/hashicorp/go-uuid@v1.0.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
To ignore the vendor directory, use -mod=readonly or -mod=mod.
To sync the vendor directory, run:
go mod vendor
``` | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/740/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/740/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/740",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/740",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/740.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/740.patch",
"merged_at": "2021-11-01T20:49:50"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/739 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/739/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/739/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/739/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/739 | 1,041,569,149 | PR_kwDOBZHfyM4t8jjc | 739 | Prep v2.15.0 release. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2021-11-01T20:13:44 | 2021-11-01T20:41:57 | 2021-11-01T20:41:55 | MEMBER | null | null | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/739/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/739/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/739",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/739",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/739.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/739.patch",
"merged_at": "2021-11-01T20:41:55"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/738 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/738/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/738/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/738/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/738 | 1,041,383,426 | PR_kwDOBZHfyM4t8AZo | 738 | Limit acceptance test job/workflow to single run at a time | {
"login": "scotchneat",
"id": 8887224,
"node_id": "MDQ6VXNlcjg4ODcyMjQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/8887224?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/scotchneat",
"html_url": "https://github.com/scotchneat",
"followers_url": "https://api.github.com/users/scotchneat/followers",
"following_url": "https://api.github.com/users/scotchneat/following{/other_user}",
"gists_url": "https://api.github.com/users/scotchneat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/scotchneat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scotchneat/subscriptions",
"organizations_url": "https://api.github.com/users/scotchneat/orgs",
"repos_url": "https://api.github.com/users/scotchneat/repos",
"events_url": "https://api.github.com/users/scotchneat/events{/privacy}",
"received_events_url": "https://api.github.com/users/scotchneat/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2021-11-01T16:56:41 | 2021-11-01T17:25:34 | 2021-11-01T17:25:27 | CONTRIBUTOR | null | This sets the [concurrency group](https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#concurrency) for the acceptance test job and workflow to ensure only one runs at any given time. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/738/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/738/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/738",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/738",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/738.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/738.patch",
"merged_at": "2021-11-01T17:25:27"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/737 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/737/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/737/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/737/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/737 | 1,041,358,384 | PR_kwDOBZHfyM4t77Rc | 737 | Acceptance tests: Don't use deprecated size slugs. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2021-11-01T16:26:21 | 2021-11-01T16:45:53 | 2021-11-01T16:45:51 | MEMBER | null | These size slugs pointing to legacy Droplet plans have been deprecated and are not available on most accounts. This leads to test failures when run under the new acceptance testing account. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/737/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/737/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/737",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/737",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/737.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/737.patch",
"merged_at": "2021-11-01T16:45:51"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/736 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/736/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/736/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/736/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/736 | 1,041,327,190 | PR_kwDOBZHfyM4t70nm | 736 | Acceptance tests: Use 2048 bit private keys in test data. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2021-11-01T15:56:13 | 2021-11-01T16:08:52 | 2021-11-01T16:08:47 | MEMBER | null | We have a number of new acceptance test failures around certificates. The API recently began enforcing that customer certificates use private keys using a minimum of 2048 bits (RSA) or 224 bits (ECDSA). The dummy test data we've been generating is only 1024 bits. This fixes these errors:
```
=== CONT TestAccDigitalOceanLoadbalancer_sslCertByName
resource_digitalocean_loadbalancer_test.go:404: Step 1/1 error: Error running apply: exit status 1
Error: Error creating Certificate: POST https://api.digitalocean.com/v2/certificates: 422 (request "242f60e5-2a57-48fe-83ff-2f84b5d4c82e") Invalid certificate data: the provided private key is not a minimum of 2048 bits (RSA) or 224 bits (ECDSA)
with digitalocean_certificate.foobar,
on terraform_plugin_test.tf line 2, in resource "digitalocean_certificate" "foobar":
2: resource "digitalocean_certificate" "foobar" {
--- FAIL: TestAccDigitalOceanLoadbalancer_sslCertByName (8.82s)
=== CONT TestAccDigitalOceanLoadbalancer_sslTermination
resource_digitalocean_loadbalancer_test.go:359: Step 1/1 error: Error running apply: exit status 1
Error: Error creating Certificate: POST https://api.digitalocean.com/v2/certificates: 422 (request "f5149f70-1b97-45c5-b306-26531b204099") Invalid certificate data: the provided private key is not a minimum of 2048 bits (RSA) or 224 bits (ECDSA)
with digitalocean_certificate.foobar,
on terraform_plugin_test.tf line 2, in resource "digitalocean_certificate" "foobar":
2: resource "digitalocean_certificate" "foobar" {
--- FAIL: TestAccDigitalOceanLoadbalancer_sslTermination (9.21s)
=== CONT TestAccDigitalOceanCertificate_Basic
resource_digitalocean_certificate_test.go:95: Step 1/1 error: Error running apply: exit status 1
Error: Error creating Certificate: POST https://api.digitalocean.com/v2/certificates: 422 (request "9db0ed5f-8f4e-4bca-ae30-5b2036892a10") Invalid certificate data: the provided private key is not a minimum of 2048 bits (RSA) or 224 bits (ECDSA)
with digitalocean_certificate.foobar,
on terraform_plugin_test.tf line 2, in resource "digitalocean_certificate" "foobar":
2: resource "digitalocean_certificate" "foobar" {
--- FAIL: TestAccDigitalOceanCertificate_Basic (0.99s)
=== CONT TestAccDigitalOceanCertificate_importBasic
import_digitalocean_certificate_test.go:16: Step 1/2 error: Error running apply: exit status 1
Error: Error creating Certificate: POST https://api.digitalocean.com/v2/certificates: 422 (request "45fcca71-5b1b-4f2d-8c54-e5d8f43eec36") Invalid certificate data: the provided private key is not a minimum of 2048 bits (RSA) or 224 bits (ECDSA)
with digitalocean_certificate.foobar,
on terraform_plugin_test.tf line 2, in resource "digitalocean_certificate" "foobar":
2: resource "digitalocean_certificate" "foobar" {
--- FAIL: TestAccDigitalOceanCertificate_importBasic (0.97s)
=== CONT TestAccDataSourceDigitalOceanLoadBalancer_tlsCert
datasource_digitalocean_loadbalancer_test.go:209: Step 1/2 error: Error running apply: exit status 1
Error: Error creating Certificate: POST https://api.digitalocean.com/v2/certificates: 422 (request "bf51b3b3-dd85-4771-9715-0da66652cf8d") Invalid certificate data: the provided private key is not a minimum of 2048 bits (RSA) or 224 bits (ECDSA)
with digitalocean_certificate.foobar,
on terraform_plugin_test.tf line 2, in resource "digitalocean_certificate" "foobar":
2: resource "digitalocean_certificate" "foobar" {
--- FAIL: TestAccDataSourceDigitalOceanLoadBalancer_tlsCert (2.88s)
=== CONT TestAccDataSourceDigitalOceanCertificate_Basic
datasource_digitalocean_certificate_test.go:19: Step 1/2 error: Error running apply: exit status 1
Error: Error creating Certificate: POST https://api.digitalocean.com/v2/certificates: 422 (request "dfc9d370-0b4c-45c9-96ec-914dab034229") Invalid certificate data: the provided private key is not a minimum of 2048 bits (RSA) or 224 bits (ECDSA)
with digitalocean_certificate.foo,
on terraform_plugin_test.tf line 2, in resource "digitalocean_certificate" "foo":
2: resource "digitalocean_certificate" "foo" {
--- FAIL: TestAccDataSourceDigitalOceanCertificate_Basic (1.36s)
``` | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/736/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/736/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/736",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/736",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/736.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/736.patch",
"merged_at": "2021-11-01T16:08:47"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/735 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/735/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/735/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/735/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/735 | 1,039,930,679 | PR_kwDOBZHfyM4t3mvm | 735 | docker creds: Revoke token on delete. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2021-10-29T21:10:30 | 2021-11-01T16:12:07 | 2021-11-01T16:12:04 | MEMBER | null | As the concept being used here is "destroying" the credentials, we should really revoke the generated token.
Fixes: https://github.com/digitalocean/terraform-provider-digitalocean/issues/726 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/735/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/735/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/735",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/735",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/735.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/735.patch",
"merged_at": "2021-11-01T16:12:04"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/734 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/734/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/734/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/734/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/734 | 1,037,916,212 | PR_kwDOBZHfyM4txEM3 | 734 | Add scheduled acceptance test runs | {
"login": "scotchneat",
"id": 8887224,
"node_id": "MDQ6VXNlcjg4ODcyMjQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/8887224?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/scotchneat",
"html_url": "https://github.com/scotchneat",
"followers_url": "https://api.github.com/users/scotchneat/followers",
"following_url": "https://api.github.com/users/scotchneat/following{/other_user}",
"gists_url": "https://api.github.com/users/scotchneat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/scotchneat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scotchneat/subscriptions",
"organizations_url": "https://api.github.com/users/scotchneat/orgs",
"repos_url": "https://api.github.com/users/scotchneat/repos",
"events_url": "https://api.github.com/users/scotchneat/events{/privacy}",
"received_events_url": "https://api.github.com/users/scotchneat/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2021-10-27T22:33:32 | 2021-11-01T16:02:58 | 2021-11-01T16:02:53 | CONTRIBUTOR | null | This workflow runs the acceptance tests every weekday at 14:00 UTC (10a Eastern) | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/734/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/734/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/734",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/734",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/734.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/734.patch",
"merged_at": "2021-11-01T16:02:53"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/733 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/733/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/733/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/733/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/733 | 1,037,874,439 | PR_kwDOBZHfyM4tw7cN | 733 | Remove outdated info from README. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2021-10-27T21:23:17 | 2021-10-27T22:22:19 | 2021-10-27T22:22:13 | MEMBER | null | The README could use some love in general to make it more end-user friendly, but this just removes the outdated for now. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/733/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/733/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/733",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/733",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/733.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/733.patch",
"merged_at": "2021-10-27T22:22:13"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/732 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/732/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/732/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/732/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/732 | 1,037,857,450 | PR_kwDOBZHfyM4tw34v | 732 | Acceptance test workflow | {
"login": "scotchneat",
"id": 8887224,
"node_id": "MDQ6VXNlcjg4ODcyMjQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/8887224?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/scotchneat",
"html_url": "https://github.com/scotchneat",
"followers_url": "https://api.github.com/users/scotchneat/followers",
"following_url": "https://api.github.com/users/scotchneat/following{/other_user}",
"gists_url": "https://api.github.com/users/scotchneat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/scotchneat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scotchneat/subscriptions",
"organizations_url": "https://api.github.com/users/scotchneat/orgs",
"repos_url": "https://api.github.com/users/scotchneat/repos",
"events_url": "https://api.github.com/users/scotchneat/events{/privacy}",
"received_events_url": "https://api.github.com/users/scotchneat/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"👍🏽 Done\r\nEdit: Well, I added the `unit` jobs but didn't remove the `test` ones yet so they're still required. I figured I'd leave them if there were any concerns while this got reviewed.",
"This shouldn't block this, but we should consider running `make sweep` in a subsequent step."
] | 2021-10-27T20:59:46 | 2021-10-27T22:17:24 | 2021-10-27T22:17:20 | CONTRIBUTOR | null | This updates the test.yml workflow to include a job to run the acceptance tests.
The `acceptance` job uses a deployment environment in the github repo which has been configured with the appropriate secrets. It's also configured to require reviews by the @digitalocean/api-cli team before the job will run. Finally, the job has `continue-on-error: true`. The idea is to allow this job to be added as a check to PRs but isn't required to succeed for the PR to be merged.
The `make testacc` step sets the env var `TESTARGS=-parallel 20` but the entire suite still takes over 30 minutes to complete. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/732/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/732/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/732",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/732",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/732.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/732.patch",
"merged_at": "2021-10-27T22:17:20"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/731 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/731/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/731/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/731/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/731 | 1,037,814,705 | I_kwDOBZHfyM4928ux | 731 | Incompatible provider version darwin_amd64 | {
"login": "revjtanton",
"id": 6391564,
"node_id": "MDQ6VXNlcjYzOTE1NjQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/6391564?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/revjtanton",
"html_url": "https://github.com/revjtanton",
"followers_url": "https://api.github.com/users/revjtanton/followers",
"following_url": "https://api.github.com/users/revjtanton/following{/other_user}",
"gists_url": "https://api.github.com/users/revjtanton/gists{/gist_id}",
"starred_url": "https://api.github.com/users/revjtanton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/revjtanton/subscriptions",
"organizations_url": "https://api.github.com/users/revjtanton/orgs",
"repos_url": "https://api.github.com/users/revjtanton/repos",
"events_url": "https://api.github.com/users/revjtanton/events{/privacy}",
"received_events_url": "https://api.github.com/users/revjtanton/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 620326610,
"node_id": "MDU6TGFiZWw2MjAzMjY2MTA=",
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/labels/bug",
"name": "bug",
"color": "f7c6c7",
"default": true,
"description": null
}
] | closed | false | null | [] | null | [
"Hi @revjtanton,\r\n\r\nIf you look at our [releases page](https://github.com/digitalocean/terraform-provider-digitalocean/releases), you should be able to see that we do build binaries for `darwin_amd64`. Taking a look at the error log you provided, it looks like the issue is actually with the `hashicorp/template`... | 2021-10-27T20:07:10 | 2021-10-27T23:00:17 | 2021-10-27T23:00:16 | NONE | null | <!-- Thank you for opening an issue. Please note that we try to keep the issue
tracker reserved for bug reports and feature requests. For general usage
questions, please see:
https://github.com/digitalocean/terraform-provider-digitalocean/discussions
**NOTE: Before submitting a bug**
There are cases where the provider receives HTTP Service Error (500 level HTTP
statuses) responses from the DigitalOcean API. There are some cases where the
provider might handle these and retry. If the problem persists, it's best to
contact [DigitalOcean support](https://cloudsupport.digitalocean.com/) -->
# Bug Report
This does not work with M1 processors.
## Describe the bug
Terraform addressed the issues with `darwin_amd64` at `v1.0.2` however in this [post](https://github.com/hashicorp/terraform/issues/27257#issuecomment-875834420) they note that each provider needs to provide updates on their own.
### Affected Resource(s)
everything...can't even `terraform init` with DO as the provider.
If this issue appears to affect multiple resources, it may be an issue with
Terraform's core, so please mention this. -->
### Expected Behavior
I can perform `terraform init` without error based on the processor I'm using.
### Actual Behavior
I get an error because of the processor in my machine.
### Steps to Reproduce
1. `terraform init` (while on an M1 machine)
**Terraform Configuration Files**
```
terraform {
required_version = ">= 0.14"
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.0"
}
}
}
provider "digitalocean" {
token = var.do_token
}
```
**Expected behavior**
I'm on `v1.0.9`.
**Debug Output**
https://gist.github.com/revjtanton/c6b5c5b5cdc51f717c7fdc256ee6a2cf
**Panic Output**
<!-- If Terraform produced a panic, please provide a link to a GitHub Gist
containing the output of the `crash.log`. -->
## Additional context
<!-- Add any other context about the problem here. -->
**Important Factoids**
<!-- Droplets use custom images or kernels. -->
**References**
https://github.com/hashicorp/terraform/issues/27257#issuecomment-875834420
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/731/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/731/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/730 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/730/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/730/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/730/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/730 | 1,037,679,153 | PR_kwDOBZHfyM4twS0W | 730 | load balancers: Set disable_lets_encrypt_dns_records on read. | {
"login": "andrewsomething",
"id": 46943,
"node_id": "MDQ6VXNlcjQ2OTQz",
"avatar_url": "https://avatars.githubusercontent.com/u/46943?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andrewsomething",
"html_url": "https://github.com/andrewsomething",
"followers_url": "https://api.github.com/users/andrewsomething/followers",
"following_url": "https://api.github.com/users/andrewsomething/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewsomething/gists{/gist_id}",
"starred_url": "https://api.github.com/users/andrewsomething/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewsomething/subscriptions",
"organizations_url": "https://api.github.com/users/andrewsomething/orgs",
"repos_url": "https://api.github.com/users/andrewsomething/repos",
"events_url": "https://api.github.com/users/andrewsomething/events{/privacy}",
"received_events_url": "https://api.github.com/users/andrewsomething/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2021-10-27T17:29:24 | 2021-10-27T18:31:07 | 2021-10-27T18:31:04 | MEMBER | null | Looks like I broke the import test in https://github.com/digitalocean/terraform-provider-digitalocean/pull/723 :see_no_evil:
```
=== CONT TestAccDigitalOceanLoadBalancer_importBasic
import_digitalocean_loadbalancer_test.go:14: ImportStateVerify attributes not equivalent. Difference is shown below. Top is actual, bottom is expected.
(map[string]string) {
}
(map[string]string) (len=1) {
(string) (len=32) "disable_lets_encrypt_dns_records": (string) (len=5) "false"
}
``` | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/730/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/730/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/730",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/730",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/730.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/730.patch",
"merged_at": "2021-10-27T18:31:04"
} | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.