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/936 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/936/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/936/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/936/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/936 | 1,578,416,779 | I_kwDOBZHfyM5eFLqL | 936 | error digitalocean_uptime_check and digitalocean_uptime_alert resourses | {
"login": "Ventura94",
"id": 43103937,
"node_id": "MDQ6VXNlcjQzMTAzOTM3",
"avatar_url": "https://avatars.githubusercontent.com/u/43103937?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Ventura94",
"html_url": "https://github.com/Ventura94",
"followers_url": "https://api.github.com/users/Ventura94/followers",
"following_url": "https://api.github.com/users/Ventura94/following{/other_user}",
"gists_url": "https://api.github.com/users/Ventura94/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Ventura94/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Ventura94/subscriptions",
"organizations_url": "https://api.github.com/users/Ventura94/orgs",
"repos_url": "https://api.github.com/users/Ventura94/repos",
"events_url": "https://api.github.com/users/Ventura94/events{/privacy}",
"received_events_url": "https://api.github.com/users/Ventura94/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 @Ventura94,\r\n\r\n What version of the provider are you using? Support for these were added in [v2.26.0](https://github.com/digitalocean/terraform-provider-digitalocean/releases/tag/v2.26.0).",
"I am using v2.25.2, I immediately try to update and update the status of the issue",
"Perfect"
] | 2023-02-09T18:46:35 | 2023-02-09T19:10:02 | 2023-02-09T19:10:01 | NONE | null | # Bug Report
Error: Invalid resource type
│ The provider digitalocean/digitalocean does not support resource type "digitalocean_uptime_check".
│ The provider digitalocean/digitalocean does not support resource type "digitalocean_uptime_alert".
## Describe the bug
It was implemented as described in the documentation "https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/uptime_check", being these, among the resources that I use the only ones that indicate an error | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/936/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/936/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/935 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/935/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/935/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/935/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/935 | 1,578,275,345 | PR_kwDOBZHfyM5Jo33o | 935 | Use consistent naming for all firewalls created in tests. | {
"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 | [] | 2023-02-09T17:10:07 | 2023-02-10T16:04:57 | 2023-02-10T16:04:56 | MEMBER | null | This time for firewalls...
```
$ make testacc PKG_NAME=digitalocean/firewall
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test -v ./digitalocean/firewall/... -timeout 120m -parallel=2
=== RUN TestAccDataSourceDigitalOceanFirewall_Basic
=== PAUSE TestAccDataSourceDigitalOceanFirewall_Basic
=== RUN TestAccDigitalOceanFirewall_AllowOnlyInbound
=== PAUSE TestAccDigitalOceanFirewall_AllowOnlyInbound
=== RUN TestAccDigitalOceanFirewall_AllowMultipleInbound
=== PAUSE TestAccDigitalOceanFirewall_AllowMultipleInbound
=== RUN TestAccDigitalOceanFirewall_AllowOnlyOutbound
=== PAUSE TestAccDigitalOceanFirewall_AllowOnlyOutbound
=== RUN TestAccDigitalOceanFirewall_AllowMultipleOutbound
=== PAUSE TestAccDigitalOceanFirewall_AllowMultipleOutbound
=== RUN TestAccDigitalOceanFirewall_MultipleInboundAndOutbound
=== PAUSE TestAccDigitalOceanFirewall_MultipleInboundAndOutbound
=== RUN TestAccDigitalOceanFirewall_fullPortRange
=== PAUSE TestAccDigitalOceanFirewall_fullPortRange
=== RUN TestAccDigitalOceanFirewall_icmp
=== PAUSE TestAccDigitalOceanFirewall_icmp
=== RUN TestAccDigitalOceanFirewall_ImportMultipleRules
=== PAUSE TestAccDigitalOceanFirewall_ImportMultipleRules
=== CONT TestAccDataSourceDigitalOceanFirewall_Basic
=== CONT TestAccDigitalOceanFirewall_MultipleInboundAndOutbound
--- PASS: TestAccDigitalOceanFirewall_MultipleInboundAndOutbound (3.38s)
=== CONT TestAccDigitalOceanFirewall_AllowOnlyOutbound
--- PASS: TestAccDigitalOceanFirewall_AllowOnlyOutbound (1.82s)
=== CONT TestAccDigitalOceanFirewall_AllowMultipleOutbound
--- PASS: TestAccDigitalOceanFirewall_AllowMultipleOutbound (2.27s)
=== CONT TestAccDigitalOceanFirewall_AllowMultipleInbound
--- PASS: TestAccDataSourceDigitalOceanFirewall_Basic (8.02s)
=== CONT TestAccDigitalOceanFirewall_AllowOnlyInbound
--- PASS: TestAccDigitalOceanFirewall_AllowMultipleInbound (1.68s)
=== CONT TestAccDigitalOceanFirewall_icmp
--- PASS: TestAccDigitalOceanFirewall_AllowOnlyInbound (1.74s)
=== CONT TestAccDigitalOceanFirewall_ImportMultipleRules
--- PASS: TestAccDigitalOceanFirewall_icmp (1.69s)
=== CONT TestAccDigitalOceanFirewall_fullPortRange
--- PASS: TestAccDigitalOceanFirewall_ImportMultipleRules (2.40s)
--- PASS: TestAccDigitalOceanFirewall_fullPortRange (1.78s)
PASS
ok github.com/digitalocean/terraform-provider-digitalocean/digitalocean/firewall 12.636s
``` | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/935/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/935/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/935",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/935",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/935.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/935.patch",
"merged_at": "2023-02-10T16:04:56"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/934 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/934/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/934/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/934/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/934 | 1,578,220,304 | PR_kwDOBZHfyM5JosJu | 934 | Use consistent naming for all certs created in tests. | {
"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 | [] | 2023-02-09T16:32:25 | 2023-02-10T15:23:04 | 2023-02-10T15:23:02 | MEMBER | null | Like https://github.com/digitalocean/terraform-provider-digitalocean/pull/933 but for certificate resources.
```
$ make testacc PKG_NAME=digitalocean/certificate
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test -v ./digitalocean/certificate/... -timeout 120m -parallel=2
=== RUN TestAccDataSourceDigitalOceanCertificate_Basic
=== PAUSE TestAccDataSourceDigitalOceanCertificate_Basic
=== RUN TestAccDigitalOceanCertificate_importBasic
=== PAUSE TestAccDigitalOceanCertificate_importBasic
=== RUN TestResourceExampleInstanceStateUpgradeV0
2023/02/09 11:29:47 [DEBUG] Migrating certificate schema from v0 to v1.
--- PASS: TestResourceExampleInstanceStateUpgradeV0 (0.00s)
=== RUN TestAccDigitalOceanCertificate_Basic
=== PAUSE TestAccDigitalOceanCertificate_Basic
=== RUN TestAccDigitalOceanCertificate_ExpectedErrors
=== PAUSE TestAccDigitalOceanCertificate_ExpectedErrors
=== CONT TestAccDataSourceDigitalOceanCertificate_Basic
=== CONT TestAccDigitalOceanCertificate_Basic
--- PASS: TestAccDigitalOceanCertificate_Basic (14.99s)
=== CONT TestAccDigitalOceanCertificate_importBasic
--- PASS: TestAccDataSourceDigitalOceanCertificate_Basic (15.62s)
=== CONT TestAccDigitalOceanCertificate_ExpectedErrors
--- PASS: TestAccDigitalOceanCertificate_ExpectedErrors (1.23s)
--- PASS: TestAccDigitalOceanCertificate_importBasic (14.27s)
PASS
ok github.com/digitalocean/terraform-provider-digitalocean/digitalocean/certificate 29.628s
``` | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/934/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/934/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/934",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/934",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/934.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/934.patch",
"merged_at": "2023-02-10T15:23:02"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/933 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/933/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/933/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/933/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/933 | 1,576,903,916 | PR_kwDOBZHfyM5JkREE | 933 | Use consistent naming for all Droplets created in tests. | {
"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 | [] | 2023-02-08T22:48:24 | 2023-02-09T20:05:55 | 2023-02-09T20:05:53 | MEMBER | null | All resources created by our provider's acceptance tests should use a standard naming structure to make sweeping simpler and reduce risk of running the sweeper for external contributors. This PR ensures we are using a consistent naming for all Droplets created in tests.
I'll be following this up with PRs for other resource types. As Droplets are used by other resources, this is likely the most invasive PR. Hopefully the others should be easier to review. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/933/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/933/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/933",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/933",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/933.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/933.patch",
"merged_at": "2023-02-09T20:05:53"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/932 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/932/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/932/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/932/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/932 | 1,576,572,071 | PR_kwDOBZHfyM5JjJsR | 932 | Fix formatting of Terraform configs in tests and enforce in PRs using terrafmt | {
"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 | [] | 2023-02-08T18:04:29 | 2023-02-08T21:10:24 | 2023-02-08T21:10:23 | MEMBER | null | Another big PR, but it is mostly composed of format changes. So hopefully not too bad to review. It does a few related things:
- Adds targets to install and run `github.com/katbyte/terrafmt` to the makefile
- Adds a step to add run it in check mode to the PR testing workflow
- Re-formats all existing Terraform configs in our tests to pass the check
- Removes usage of the deprecated interpolation format in test configs, e.g. changes `"${digitalocean_tag.foo.name}"`
to simply `digitalocean_tag.foo.name` | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/932/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/932/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/932",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/932",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/932.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/932.patch",
"merged_at": "2023-02-08T21:10:23"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/931 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/931/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/931/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/931/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/931 | 1,576,481,030 | PR_kwDOBZHfyM5Ji2H6 | 931 | images: use correct pending statuses for custom images | {
"login": "rsmitty",
"id": 1529818,
"node_id": "MDQ6VXNlcjE1Mjk4MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/1529818?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rsmitty",
"html_url": "https://github.com/rsmitty",
"followers_url": "https://api.github.com/users/rsmitty/followers",
"following_url": "https://api.github.com/users/rsmitty/following{/other_user}",
"gists_url": "https://api.github.com/users/rsmitty/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rsmitty/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rsmitty/subscriptions",
"organizations_url": "https://api.github.com/users/rsmitty/orgs",
"repos_url": "https://api.github.com/users/rsmitty/repos",
"events_url": "https://api.github.com/users/rsmitty/events{/privacy}",
"received_events_url": "https://api.github.com/users/rsmitty/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"please refer to the status field on the get images API call here https://docs.digitalocean.com/reference/api/api-reference/#operation/images_get"
] | 2023-02-08T16:58:38 | 2023-02-08T17:28:48 | 2023-02-08T17:28:47 | CONTRIBUTOR | null | This PR changes the pending status of custom images from `new` to `NEW`. According to the API docs, this uppercase value is correct and I was receiving the following failure previously:
```
digitalocean_custom_image.talos-linux: Creating...
╷
│ Error: Error waiting for image (126518466) to become ready: unexpected state 'NEW', wanted target 'available'. last error: %!s(<nil>)
│
│ with digitalocean_custom_image.talos-linux,
│ on main.tf line 1, in resource "digitalocean_custom_image" "talos-linux":
│ 1: resource "digitalocean_custom_image" "talos-linux" {
│
╵
```
I'm assuming the value changed in the API some time ago, but it's unclear to me from the docs when that might have been.
Signed-off-by: Spencer Smith <spencer.smith@talos-systems.com> | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/931/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/931/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/931",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/931",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/931.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/931.patch",
"merged_at": "2023-02-08T17:28:47"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/930 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/930/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/930/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/930/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/930 | 1,576,327,705 | PR_kwDOBZHfyM5JiVKY | 930 | Remove unused const to fix linting. | {
"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 | [] | 2023-02-08T15:26:59 | 2023-02-08T16:44:26 | 2023-02-08T16:44:24 | MEMBER | null | ```
digitalocean/monitoring/resource_monitor_alert_test.go:15:2: `slackChannels` is unused (varcheck)
slackChannels = `
^
```
This is failing on push to main. It's not clear why the check didn't pick it up in the PR.
https://github.com/digitalocean/terraform-provider-digitalocean/actions/runs/4117578398/jobs/7109046614#step:5:25 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/930/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/930/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/930",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/930",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/930.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/930.patch",
"merged_at": "2023-02-08T16:44:24"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/929 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/929/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/929/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/929/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/929 | 1,575,181,128 | PR_kwDOBZHfyM5JefF_ | 929 | Use comment trigger to run acceptance tests for PRs. | {
"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 | [] | 2023-02-07T23:22:03 | 2023-02-14T19:57:21 | 2023-02-14T19:57:21 | MEMBER | null | This PR migrates our acceptance testing strategy from using GitHub environments to a comment trigger. It leverages the [`peter-evans/slash-command-dispatch`](https://github.com/peter-evans/slash-command-dispatch) action to fire a `repository_dispatch`. The action handles parsing arguments and checking the required permissions of the reviewer.
To trigger a run of the acceptance tests for a PR, you may use the `/testacc` in a comment. The `pkg` and `sha` arguments are required. This allows us to limit the packages being tested for quick feedback and protect against timing attacks. For example, to run the acceptance tests for the `droplet` package, the command may look like:
/testacc pkg=digitalocean/droplet sha=d358bd2418b4e30d7bdf2b98b4c151e357814c63
To run the entire suite, use `pkg=digitalocean`.
You can find an example in my fork: https://github.com/andrewsomething/terraform-provider-digitalocean/pull/6
Somethings to note:
- If multiple packages are to be tested, each command must be posted as a separate comment.
- Status checks are created for each tested package.
- Only one workflow run for a specific package and PR can run at the same time. Triggering a second run will abort the first.
- Only the first line of the comment is evaluated. Anything below that is just a normal comment.
Additionally, this:
- Re-enables the scheduled workflow and updates it to run the sweeper _after_ the run whether it is successful or not.
- Creates a `CONTRIBUTING.md` file and moves the existing README content that is not user-focused into it. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/929/reactions",
"total_count": 2,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 2,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/929/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/929",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/929",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/929.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/929.patch",
"merged_at": "2023-02-14T19:57:21"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/928 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/928/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/928/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/928/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/928 | 1,572,021,264 | I_kwDOBZHfyM5dsyQQ | 928 | New`digitalocean_certificate ` created after each `terraform apply` | {
"login": "leonvisscher",
"id": 17271164,
"node_id": "MDQ6VXNlcjE3MjcxMTY0",
"avatar_url": "https://avatars.githubusercontent.com/u/17271164?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leonvisscher",
"html_url": "https://github.com/leonvisscher",
"followers_url": "https://api.github.com/users/leonvisscher/followers",
"following_url": "https://api.github.com/users/leonvisscher/following{/other_user}",
"gists_url": "https://api.github.com/users/leonvisscher/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leonvisscher/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leonvisscher/subscriptions",
"organizations_url": "https://api.github.com/users/leonvisscher/orgs",
"repos_url": "https://api.github.com/users/leonvisscher/repos",
"events_url": "https://api.github.com/users/leonvisscher/events{/privacy}",
"received_events_url": "https://api.github.com/users/leonvisscher/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 @leonvisscher, \r\n\r\nThanks for raising this issue. It looks like when you create a wildcard (e.g. `*.example.com`) cert the DigitalOcean certificates API adds the apex domain (e.g. `example.com`) to the certificate as well. So the prompt to recreate is cause by Terraform attempting to remove that.\r\n\r\nTo... | 2023-02-06T06:55:02 | 2023-02-13T08:38:45 | 2023-02-13T08:38:45 | NONE | null | # Bug Report
I am using the `digitalocean_certificate` resource for my k8s cluster managed with terraform:
```
resource "digitalocean_certificate" "cert" {
name = "my-name"
type = "lets_encrypt"
domains = ["*.example.com"]
}
```
However, every time I run `terraform apply` it recreates a certificate instead of just using the one it first created.
---
## Describe the bug
<!-- A clear and concise description of what the bug is. -->
### Affected Resource(s)
- digitalocean_certificate
### Expected Behavior
Create the certificate once, and then re-use it after running `terraform apply`
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/928/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/928/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/927 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/927/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/927/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/927/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/927 | 1,570,593,477 | PR_kwDOBZHfyM5JPiWe | 927 | Package reorganization | {
"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 | [] | 2023-02-03T22:58:43 | 2023-02-07T19:37:17 | 2023-02-07T19:37:15 | MEMBER | null | This pull request reorganizes the structure of this project to use multiple packages. As the provider has grown, it has become a bit unwieldy to work with as the majority of files were all in the same directory. By breaking this up into subpackages, it should be easier to quickly find the files you need. It should also simplify acceptance testing by being able to run the tests for a subpackage with out needing to craft regexps. For example, to only run the acceptance tests for the account package use:
make testacc PKG_NAME=digitalocean/account
When `PKG_NAME` is excluded, all acceptance tests are run.
One place where this does add a bit of complexity is with the test sweepers. In order to collect sweepers across the packages, we need to use "blank" imports which can be easy to forget. See: `digitalocean/sweep/sweep_test.go` In a future iteration, we could potentially generate that. The AWS provider has some prior art that could provide some inspiration.
While this is a huge PR, most of the changes are file renames and moving code to break import cycles.
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/927/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/927/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/927",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/927",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/927.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/927.patch",
"merged_at": "2023-02-07T19:37:15"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/926 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/926/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/926/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/926/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/926 | 1,570,287,174 | I_kwDOBZHfyM5dmK5G | 926 | adding `ha = true` to existing do_kubernetes_cluster (1.23.14) fails | {
"login": "gladiatr72",
"id": 999016,
"node_id": "MDQ6VXNlcjk5OTAxNg==",
"avatar_url": "https://avatars.githubusercontent.com/u/999016?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gladiatr72",
"html_url": "https://github.com/gladiatr72",
"followers_url": "https://api.github.com/users/gladiatr72/followers",
"following_url": "https://api.github.com/users/gladiatr72/following{/other_user}",
"gists_url": "https://api.github.com/users/gladiatr72/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gladiatr72/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gladiatr72/subscriptions",
"organizations_url": "https://api.github.com/users/gladiatr72/orgs",
"repos_url": "https://api.github.com/users/gladiatr72/repos",
"events_url": "https://api.github.com/users/gladiatr72/events{/privacy}",
"received_events_url": "https://api.github.com/users/gladiatr72/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": 5241933455,
... | closed | false | null | [] | null | [
"Any news on this? It would actually be very helpful.\r\n\r\nThe workaround is to:\r\n- Add HA from the web console.\r\n- in the terraform code, change `ha` to `true`.\r\n- run `terraform refresh` to update the state file."
] | 2023-02-03T18:43:06 | 2023-11-01T17:34:42 | 2023-11-01T17:34:42 | 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. -->
according to DO, adding HA backplane functionality is supported post kube 1.21. It works from the web console; however, the plan after adding `ha = true` to an existing cluster indicates a destroy/create cycle would be necessary. It appears the effort to support `ha` as a valid _on-create_ parameter might pre-date DO's support for enabling HA post-creation.
### Affected Resource(s)
* digitalocean_kubernetes_cluster
### Expected Behavior
applying a plan with a newly truthful _ha_ parameter would provide a non-destructive update
**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.-->
```
resource digitalocean_kubernetes_cluster cluster {
name = "do-2"
region = var.do_region
version = "1.23.14-do.0"
ha = true /* post creation setting */
node_pool {
name = "default-node-pool"
size = "s-2vcpu-4gb"
node_count = 4
}
}
```
**Terraform version**
<!-- 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 v0.15.5 on linux_amd64
+ provider registry.terraform.io/digitalocean/digitalocean v2.26.0
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/926/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/926/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/925 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/925/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/925/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/925/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/925 | 1,565,037,791 | I_kwDOBZHfyM5dSJTf | 925 | digitalocean_database_connection_pool for_each 422 error | {
"login": "SkeLLLa",
"id": 2273103,
"node_id": "MDQ6VXNlcjIyNzMxMDM=",
"avatar_url": "https://avatars.githubusercontent.com/u/2273103?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SkeLLLa",
"html_url": "https://github.com/SkeLLLa",
"followers_url": "https://api.github.com/users/SkeLLLa/followers",
"following_url": "https://api.github.com/users/SkeLLLa/following{/other_user}",
"gists_url": "https://api.github.com/users/SkeLLLa/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SkeLLLa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SkeLLLa/subscriptions",
"organizations_url": "https://api.github.com/users/SkeLLLa/orgs",
"repos_url": "https://api.github.com/users/SkeLLLa/repos",
"events_url": "https://api.github.com/users/SkeLLLa/events{/privacy}",
"received_events_url": "https://api.github.com/users/SkeLLLa/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 there,\r\n\r\nThank you so much for this write up and including the request id. We were able to look up the logs via the request id and found that this seems to be a standard name conflict. It seems the plan is failing because one of the two pool names specified already existed. This surfaces that the error mes... | 2023-01-31T21:36:43 | 2023-04-19T18:34:41 | null | NONE | null | # Bug Report
## Describe the bug
While creating DB pools DO API returns error, but the actual resource is created. In current example 2 DB pools should be created.
Terraform issues 2 requests with different POST data to create 2 env polls pear each value of `var.environemts`, e.g. `[test, stage]`. And one of requests is completed with 201 code. Other fails with 422.
```
422 (request "35ea9e11-9563-4abc-bfc8-882b88bf4923") pool name is not available
```
While pool is actually created successfully with given name.
### Affected Resource(s)
- digitalocean_database_connection_pool
### Expected Behavior
Pool is created and no error thrown
### Actual Behavior
Pool is created, but 422 error thrown which leads to 422 exit code.
### Steps to Reproduce
**Terraform Configuration Files**
```
resource "digitalocean_database_connection_pool" "foo_db_pool" {
for_each = var.environments
name = "foo_${each.value}"
cluster_id = var.cluster_id
mode = var.pool_type
size = var.pool_size
depends_on = [
digitalocean_database_db.foo_db,
digitalocean_database_user.foo_db_user
]
db_name = digitalocean_database_db.foo_db[each.value].name
user = digitalocean_database_user.foo_db_user[each.value].name
}
```
**Terraform version**
1.2.X
1.3.X
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/925/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/925/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/924 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/924/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/924/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/924/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/924 | 1,564,581,231 | PR_kwDOBZHfyM5I7Zkx | 924 | Prep v2.26.0 release | {
"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 | [] | 2023-01-31T15:54:01 | 2023-01-31T16:19:46 | 2023-01-31T16:19:44 | CONTRIBUTOR | null | null | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/924/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/924/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/924",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/924",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/924.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/924.patch",
"merged_at": "2023-01-31T16:19:44"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/923 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/923/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/923/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/923/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/923 | 1,564,055,972 | I_kwDOBZHfyM5dOZmk | 923 | Race condition when creating SSH keys | {
"login": "pielgrzym",
"id": 124301,
"node_id": "MDQ6VXNlcjEyNDMwMQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/124301?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pielgrzym",
"html_url": "https://github.com/pielgrzym",
"followers_url": "https://api.github.com/users/pielgrzym/followers",
"following_url": "https://api.github.com/users/pielgrzym/following{/other_user}",
"gists_url": "https://api.github.com/users/pielgrzym/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pielgrzym/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pielgrzym/subscriptions",
"organizations_url": "https://api.github.com/users/pielgrzym/orgs",
"repos_url": "https://api.github.com/users/pielgrzym/repos",
"events_url": "https://api.github.com/users/pielgrzym/events{/privacy}",
"received_events_url": "https://api.github.com/users/pielgrzym/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 | [] | 2023-01-31T10:37:11 | 2023-03-08T17:22:52 | null | 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
Digital Ocean seems to have a race condition in their API - if you add an ssh-key and immediately query `/v2/account/keys/<NEW_KEY_ID>` your will get a 404, however the key exists. Provider does not handle this and fails.
### Affected Resource(s)
- digitalocean_ssh_key
### Expected Behavior
If the provider gets a 404 from DO API it should be able to retry after a delay.
### Actual Behavior
The provider marks the resource as absent.
### Steps to Reproduce
1. Create a tls_private_key in TF
2. Create digitalocean_ssh_key resource
3. Create droplet with digitalocean_ssh_key from previous point
Digitalocean has a bad day and after successfull ssh-key adding (`HTTP/2.0 201 Created` and proper json in trace) when the provider queries `/v2/account/keys/<NEW_KEY_ID>` it gets a 404. Clearly a mishap on DO side - since manual query returns a valid key - we have a race condition. Unfortunately the provider has no mechanism to handle this and will mark the resource as not created with a message: "Root resource was present, but now absent."
User will have to manually import the resoruce.
**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.-->
**Terraform version**
<!-- 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/923/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/923/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/922 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/922/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/922/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/922/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/922 | 1,563,212,776 | PR_kwDOBZHfyM5I2yVJ | 922 | Add releasing notes & missing changelog entries | {
"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 | [] | 2023-01-30T21:10:35 | 2023-01-31T15:14:38 | 2023-01-31T15:14:37 | CONTRIBUTOR | null | This change just adds missing entries to the CHANGELOG.md so we don't have a gap for the next release.
I also included extra instructions for this in README's Releasing section. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/922/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/922/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/922",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/922",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/922.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/922.patch",
"merged_at": "2023-01-31T15:14:37"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/921 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/921/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/921/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/921/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/921 | 1,558,622,277 | PR_kwDOBZHfyM5IndKF | 921 | database replica: Expose Database Replica ID | {
"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 | [] | 2023-01-26T19:01:34 | 2023-01-30T20:15:32 | 2023-01-30T20:15:31 | MEMBER | null | Addresses #878
Added a `uuid` attribute to allow users who need to reference the database replica as the target database cluster in other resources.
I looked into creating a [state migration](https://developer.hashicorp.com/terraform/plugin/sdkv2/resources/state-migration) to instead try to update the current `id` attribute to reference the db replica's ID fetched from the DO API- verse the currently implemented `id` that is generated in terraform (in `makeReplicaId`). State migrations seem useful for changing the attribute/schema's configuration, not the actual values that are set in the CreateContext. Thus, decided adding a `uuid` attribute would suffice. Updated documentation to reflect this.
The terraform config would look like this:
```
output "UUID" {
value = digitalocean_database_replica.replica-example.uuid
}
resource "digitalocean_database_cluster" "postgres-example" {
name = "example-postgres-cluster"
engine = "pg"
version = "11"
size = "db-s-1vcpu-1gb"
region = "nyc1"
node_count = 1
}
resource "digitalocean_database_replica" "replica-example" {
cluster_id = digitalocean_database_cluster.postgres-example.id
name = "replica-example"
size = "db-s-1vcpu-1gb"
region = "nyc1"
}
# Create firewall rule for database replica
resource "digitalocean_database_firewall" "example-fw" {
cluster_id = digitalocean_database_replica.replica-example.uuid
rule {
type = "ip_addr"
value = "192.168.1.1"
}
}
```
APICLI-1809 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/921/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/921/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/921",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/921",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/921.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/921.patch",
"merged_at": "2023-01-30T20:15:31"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/920 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/920/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/920/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/920/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/920 | 1,557,107,479 | PR_kwDOBZHfyM5IiYzJ | 920 | Fix typo in README | {
"login": "mbardelmeijer",
"id": 1583095,
"node_id": "MDQ6VXNlcjE1ODMwOTU=",
"avatar_url": "https://avatars.githubusercontent.com/u/1583095?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mbardelmeijer",
"html_url": "https://github.com/mbardelmeijer",
"followers_url": "https://api.github.com/users/mbardelmeijer/followers",
"following_url": "https://api.github.com/users/mbardelmeijer/following{/other_user}",
"gists_url": "https://api.github.com/users/mbardelmeijer/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mbardelmeijer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mbardelmeijer/subscriptions",
"organizations_url": "https://api.github.com/users/mbardelmeijer/orgs",
"repos_url": "https://api.github.com/users/mbardelmeijer/repos",
"events_url": "https://api.github.com/users/mbardelmeijer/events{/privacy}",
"received_events_url": "https://api.github.com/users/mbardelmeijer/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2023-01-25T18:37:03 | 2023-01-25T18:40:15 | 2023-01-25T18:40:15 | CONTRIBUTOR | null | null | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/920/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/920/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/920",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/920",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/920.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/920.patch",
"merged_at": "2023-01-25T18:40:15"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/919 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/919/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/919/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/919/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/919 | 1,556,868,161 | PR_kwDOBZHfyM5IhlLA | 919 | Add Uptime Checks and Alerts Support | {
"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 | [] | 2023-01-25T15:44:38 | 2023-01-25T21:30:46 | 2023-01-25T21:30:44 | MEMBER | null | Adding Support for Uptime Checks and Alerts per the [DO API](https://docs.digitalocean.com/reference/api/kafka-beta-api-reference/#tag/Uptime)
Per a github issue request #908
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/919/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/919/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/919",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/919",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/919.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/919.patch",
"merged_at": "2023-01-25T21:30:44"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/918 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/918/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/918/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/918/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/918 | 1,555,821,127 | PR_kwDOBZHfyM5IeF4A | 918 | databases: Support upgrading the database version | {
"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 | [] | 2023-01-24T23:33:24 | 2023-01-25T18:34:49 | 2023-01-25T18:34:48 | CONTRIBUTOR | null | Enables upgrading the database version without forcing a new database deployment.
For DBAAS-3899
Closes #471 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/918/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 1,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/918/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/918",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/918",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/918.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/918.patch",
"merged_at": "2023-01-25T18:34:48"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/917 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/917/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/917/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/917/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/917 | 1,537,864,072 | I_kwDOBZHfyM5bqfGI | 917 | CloudQuery Source Plugin? | {
"login": "yevgenypats",
"id": 16490766,
"node_id": "MDQ6VXNlcjE2NDkwNzY2",
"avatar_url": "https://avatars.githubusercontent.com/u/16490766?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yevgenypats",
"html_url": "https://github.com/yevgenypats",
"followers_url": "https://api.github.com/users/yevgenypats/followers",
"following_url": "https://api.github.com/users/yevgenypats/following{/other_user}",
"gists_url": "https://api.github.com/users/yevgenypats/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yevgenypats/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yevgenypats/subscriptions",
"organizations_url": "https://api.github.com/users/yevgenypats/orgs",
"repos_url": "https://api.github.com/users/yevgenypats/repos",
"events_url": "https://api.github.com/users/yevgenypats/events{/privacy}",
"received_events_url": "https://api.github.com/users/yevgenypats/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"Hello Yevgeny,\r\n Thank you for your interest in DigitalOcean and for bringing this to our attention. Our team is responsible for developer tools including third party integrations and plugins. Unfortunately we're currently in a similar situation where we don't have the capacity to take ownership of new plugins r... | 2023-01-18T11:51:19 | 2023-01-23T18:10:27 | 2023-01-23T18:10:26 | NONE | null | Hi Team, hopefully this is right place to ask, if not, I'd appreciate if you can direct me.
I'm the founder of [cloudquery.io](https://www.cloudquery.io/), a high performance open source ELT framework.
Our users are asked for a [DigitalOcean source plugin](https://www.cloudquery.io/docs/plugins/sources/digitalocean/overview), and we shipped a first version.
As we have limited capacity to maintain all plugins we are usually looking for the official vendor to help maintain it (Similar to terraform).
I was curious if this would be an interesting collaboration, where we can help with the initial version (already implemented) and you will help maintain it?
This will give your users the ability to sync [DigitalOcean](https://www.cloudquery.io/docs/plugins/sources/digitalocean/overview) APIs to any of their datalakes/data-warehouses/databases easily using any of the growing list of CQ [destination plugins](https://www.cloudquery.io/docs/plugins/destinations/overview).
Best,
Yevgeny | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/917/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/917/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/916 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/916/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/916/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/916/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/916 | 1,532,797,997 | PR_kwDOBZHfyM5HWz5o | 916 | testing: Find previous K8s release dynamically. | {
"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 | [] | 2023-01-13T19:22:50 | 2023-01-17T15:21:06 | 2023-01-17T15:21:04 | MEMBER | null | The DOKS acceptance tests are currently failing due to changes in the available Kubernetes versions. 1.21.x and 1.22.x are no longer available:
```
$ doctl kubernetes options versions
Slug Kubernetes Version Supported Features
1.25.4-do.0 1.25.4 cluster-autoscaler, docr-integration, ha-control-plane, token-authentication
1.24.8-do.0 1.24.8 cluster-autoscaler, docr-integration, ha-control-plane, token-authentication
1.23.14-do.0 1.23.14 cluster-autoscaler, docr-integration, ha-control-plane, token-authentication
```
The only reason why we have specific versions referenced is to test the upgrade path, and generally upgrades are only supported from the previous major version. This change calculates the previous version from the latest version. This should allow us to no longer need to update the versions in the test config.
```
$ make testacc TESTARGS='-run TestAccDigitalOceanKubernetesCluster_UpgradeVersion'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test $(go list ./... |grep -v 'vendor') -v -run TestAccDigitalOceanKubernetesCluster_UpgradeVersion -timeout 120m
? github.com/digitalocean/terraform-provider-digitalocean [no test files]
=== RUN TestAccDigitalOceanKubernetesCluster_UpgradeVersion
=== PAUSE TestAccDigitalOceanKubernetesCluster_UpgradeVersion
=== CONT TestAccDigitalOceanKubernetesCluster_UpgradeVersion
--- PASS: TestAccDigitalOceanKubernetesCluster_UpgradeVersion (381.71s)
PASS
ok github.com/digitalocean/terraform-provider-digitalocean/digitalocean 381.722s
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/916/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/916/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/916",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/916",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/916.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/916.patch",
"merged_at": "2023-01-17T15:21:04"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/915 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/915/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/915/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/915/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/915 | 1,512,746,595 | PR_kwDOBZHfyM5GS9cu | 915 | `routes` documentation in `app.md` matches `app_spec.go` | {
"login": "olaven",
"id": 18209665,
"node_id": "MDQ6VXNlcjE4MjA5NjY1",
"avatar_url": "https://avatars.githubusercontent.com/u/18209665?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/olaven",
"html_url": "https://github.com/olaven",
"followers_url": "https://api.github.com/users/olaven/followers",
"following_url": "https://api.github.com/users/olaven/following{/other_user}",
"gists_url": "https://api.github.com/users/olaven/gists{/gist_id}",
"starred_url": "https://api.github.com/users/olaven/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/olaven/subscriptions",
"organizations_url": "https://api.github.com/users/olaven/orgs",
"repos_url": "https://api.github.com/users/olaven/repos",
"events_url": "https://api.github.com/users/olaven/events{/privacy}",
"received_events_url": "https://api.github.com/users/olaven/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-12-28T12:26:17 | 2022-12-28T15:51:23 | 2022-12-28T15:51:22 | CONTRIBUTOR | null | I believe the docs for app spec are slighty off.
[The docs say](https://github.com/digitalocean/terraform-provider-digitalocean/blob/main/docs/resources/app.md?plain=1#L198) `"route"`, but [the implementation](https://github.com/digitalocean/terraform-provider-digitalocean/blob/60147643e0e82acd1b1014a84ac2007d9b91dddb/digitalocean/app_spec.go#L523-L530) uses `"routes"`. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/915/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/915/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/915",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/915",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/915.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/915.patch",
"merged_at": "2022-12-28T15:51:22"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/914 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/914/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/914/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/914/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/914 | 1,511,273,974 | I_kwDOBZHfyM5aFDX2 | 914 | "Kubernetes Metrics Server" | {
"login": "ibadullaev-inc4",
"id": 101882172,
"node_id": "U_kgDOBhKZPA",
"avatar_url": "https://avatars.githubusercontent.com/u/101882172?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ibadullaev-inc4",
"html_url": "https://github.com/ibadullaev-inc4",
"followers_url": "https://api.github.com/users/ibadullaev-inc4/followers",
"following_url": "https://api.github.com/users/ibadullaev-inc4/following{/other_user}",
"gists_url": "https://api.github.com/users/ibadullaev-inc4/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ibadullaev-inc4/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ibadullaev-inc4/subscriptions",
"organizations_url": "https://api.github.com/users/ibadullaev-inc4/orgs",
"repos_url": "https://api.github.com/users/ibadullaev-inc4/repos",
"events_url": "https://api.github.com/users/ibadullaev-inc4/events{/privacy}",
"received_events_url": "https://api.github.com/users/ibadullaev-inc4/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 @ibadullaev-inc4,\r\n\r\n This is a duplicate of https://github.com/digitalocean/terraform-provider-digitalocean/issues/575\r\n\r\nUnfortunately Kubernetes 1-Click apps can be added to a cluster via the API, but it is not currently possible to remove them or list the ones that have been installed already via th... | 2022-12-26T22:03:50 | 2023-01-03T21:43:17 | 2023-01-03T21:43:17 | NONE | null | Hi is it possible to install "Kubernetes Metrics Server" on my exsisting cluster, using terraform provider ?

| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/914/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/914/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/913 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/913/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/913/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/913/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/913 | 1,506,499,976 | I_kwDOBZHfyM5Zy12I | 913 | Error when running terraform apply | {
"login": "elev8studio",
"id": 46072213,
"node_id": "MDQ6VXNlcjQ2MDcyMjEz",
"avatar_url": "https://avatars.githubusercontent.com/u/46072213?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elev8studio",
"html_url": "https://github.com/elev8studio",
"followers_url": "https://api.github.com/users/elev8studio/followers",
"following_url": "https://api.github.com/users/elev8studio/following{/other_user}",
"gists_url": "https://api.github.com/users/elev8studio/gists{/gist_id}",
"starred_url": "https://api.github.com/users/elev8studio/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elev8studio/subscriptions",
"organizations_url": "https://api.github.com/users/elev8studio/orgs",
"repos_url": "https://api.github.com/users/elev8studio/repos",
"events_url": "https://api.github.com/users/elev8studio/events{/privacy}",
"received_events_url": "https://api.github.com/users/elev8studio/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": 5241956541,
"node_id": "LA_kwDOBZHfyM8AAA... | open | false | null | [] | null | [] | 2022-12-21T15:36:51 | 2023-03-08T17:24:52 | null | NONE | null | ╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to digitalocean_database_db.admin["terraformtesting10"], provider "provider[\"registry.terraform.io/digitalocean/digitalocean\"]" produced an unexpected new value:
│ Root resource was present, but now absent.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵ | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/913/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/913/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/912 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/912/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/912/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/912/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/912 | 1,497,116,756 | PR_kwDOBZHfyM5FedMH | 912 | Support new http alerts lbaas | {
"login": "StephenVarela",
"id": 36381962,
"node_id": "MDQ6VXNlcjM2MzgxOTYy",
"avatar_url": "https://avatars.githubusercontent.com/u/36381962?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/StephenVarela",
"html_url": "https://github.com/StephenVarela",
"followers_url": "https://api.github.com/users/StephenVarela/followers",
"following_url": "https://api.github.com/users/StephenVarela/following{/other_user}",
"gists_url": "https://api.github.com/users/StephenVarela/gists{/gist_id}",
"starred_url": "https://api.github.com/users/StephenVarela/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/StephenVarela/subscriptions",
"organizations_url": "https://api.github.com/users/StephenVarela/orgs",
"repos_url": "https://api.github.com/users/StephenVarela/repos",
"events_url": "https://api.github.com/users/StephenVarela/events{/privacy}",
"received_events_url": "https://api.github.com/users/StephenVarela/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-12-14T17:47:52 | 2022-12-14T18:45:49 | 2022-12-14T18:45:49 | CONTRIBUTOR | null | Bump godo version & Support new http alerts - load balancers | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/912/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/912/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/912",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/912",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/912.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/912.patch",
"merged_at": null
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/911 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/911/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/911/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/911/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/911 | 1,495,016,528 | PR_kwDOBZHfyM5FXK1q | 911 | Add firewall support for Loadbalancers | {
"login": "jrolheiser",
"id": 12201405,
"node_id": "MDQ6VXNlcjEyMjAxNDA1",
"avatar_url": "https://avatars.githubusercontent.com/u/12201405?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jrolheiser",
"html_url": "https://github.com/jrolheiser",
"followers_url": "https://api.github.com/users/jrolheiser/followers",
"following_url": "https://api.github.com/users/jrolheiser/following{/other_user}",
"gists_url": "https://api.github.com/users/jrolheiser/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jrolheiser/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jrolheiser/subscriptions",
"organizations_url": "https://api.github.com/users/jrolheiser/orgs",
"repos_url": "https://api.github.com/users/jrolheiser/repos",
"events_url": "https://api.github.com/users/jrolheiser/events{/privacy}",
"received_events_url": "https://api.github.com/users/jrolheiser/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"@ChiefMateStarbuck @andrewsomething I've addressed the comments, should be good for another look now."
] | 2022-12-13T19:29:40 | 2022-12-22T15:37:32 | 2022-12-21T23:02:46 | CONTRIBUTOR | null | null | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/911/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/911/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/911",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/911",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/911.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/911.patch",
"merged_at": "2022-12-21T23:02:46"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/910 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/910/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/910/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/910/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/910 | 1,490,242,995 | I_kwDOBZHfyM5Y002z | 910 | Allow digitalocean_database_db owner to be set | {
"login": "mihok",
"id": 563301,
"node_id": "MDQ6VXNlcjU2MzMwMQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/563301?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mihok",
"html_url": "https://github.com/mihok",
"followers_url": "https://api.github.com/users/mihok/followers",
"following_url": "https://api.github.com/users/mihok/following{/other_user}",
"gists_url": "https://api.github.com/users/mihok/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mihok/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mihok/subscriptions",
"organizations_url": "https://api.github.com/users/mihok/orgs",
"repos_url": "https://api.github.com/users/mihok/repos",
"events_url": "https://api.github.com/users/mihok/events{/privacy}",
"received_events_url": "https://api.github.com/users/mihok/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,\r\n\r\nOut of curiosity, did you manage to find a way to provision the database owner using Terraform?\r\n\r\nThanks,\r\nDamien"
] | 2022-12-11T17:19:25 | 2023-10-28T18:46:36 | null | NONE | null | ### Is your feature request related to a problem? Please describe.
Currently using a managed postgresql on DO to manage terraform state for the rest of our infrastructure on DO. We first create a cluster along with a db and a user for each terraform environment (staging, prod, etc.) Then we want to have the db/user applied to a specific environment's backend.tfvars (staging, prod, etc.) Creating a clear separation so no state data can be accidentally cross pollinated.
### Describe the solution you'd like
When you use `digitalocean_database_db` the database owner is set to the default user.
### Describe alternatives you've considered
Currently we're investigating adding a provisioner to the `digitalocean_database_db` to local-exec and update the ownership but this is not ideal.
### Additional Context
Happy to help with the implementation here too if necessary!! | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/910/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/910/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/909 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/909/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/909/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/909/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/909 | 1,466,134,623 | I_kwDOBZHfyM5XY3Bf | 909 | Issue on Terraform | {
"login": "shakson1",
"id": 86849773,
"node_id": "MDQ6VXNlcjg2ODQ5Nzcz",
"avatar_url": "https://avatars.githubusercontent.com/u/86849773?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shakson1",
"html_url": "https://github.com/shakson1",
"followers_url": "https://api.github.com/users/shakson1/followers",
"following_url": "https://api.github.com/users/shakson1/following{/other_user}",
"gists_url": "https://api.github.com/users/shakson1/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shakson1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shakson1/subscriptions",
"organizations_url": "https://api.github.com/users/shakson1/orgs",
"repos_url": "https://api.github.com/users/shakson1/repos",
"events_url": "https://api.github.com/users/shakson1/events{/privacy}",
"received_events_url": "https://api.github.com/users/shakson1/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": 5241956541,
"node_id": "LA_kwDOBZHfyM8AAA... | open | false | null | [] | null | [
"Can you share what version of Terraform you are using and the provider configuration you are using?",
"Hello.\n\nTerraform v1.2.2 on darwin_arm64\n\nwhen i try to upgrade on 2.25.2, i have error....\n\nterraform {\nrequired_providers {\ndigitalocean = {\nsource = \"digitalocean/digitalocean\"\nversion = \"2.17.1... | 2022-11-28T10:02:11 | 2023-03-08T17:26:17 | null | NONE | null | Initializing provider plugins...
- Finding digitalocean/digitalocean versions matching "2.17.1, 2.25.2"...
- Finding latest version of hashicorp/null...
- Installing hashicorp/null v3.2.1...
- Installed hashicorp/null v3.2.1 (signed by HashiCorp)
╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider digitalocean/digitalocean: no available releases match the given constraints 2.17.1, 2.25.2
╵ | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/909/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/909/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/908 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/908/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/908/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/908/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/908 | 1,464,986,642 | I_kwDOBZHfyM5XUewS | 908 | Support Uptime Checks and Alerts | {
"login": "goodhoko",
"id": 16712262,
"node_id": "MDQ6VXNlcjE2NzEyMjYy",
"avatar_url": "https://avatars.githubusercontent.com/u/16712262?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/goodhoko",
"html_url": "https://github.com/goodhoko",
"followers_url": "https://api.github.com/users/goodhoko/followers",
"following_url": "https://api.github.com/users/goodhoko/following{/other_user}",
"gists_url": "https://api.github.com/users/goodhoko/gists{/gist_id}",
"starred_url": "https://api.github.com/users/goodhoko/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/goodhoko/subscriptions",
"organizations_url": "https://api.github.com/users/goodhoko/orgs",
"repos_url": "https://api.github.com/users/goodhoko/repos",
"events_url": "https://api.github.com/users/goodhoko/events{/privacy}",
"received_events_url": "https://api.github.com/users/goodhoko/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 | null | [] | null | [
"Hi there, \r\n\r\nThanks for this suggestion. We will look into supporting `uptime` and `alerts` in the provider and get to implementation when we can- hopefully soon. ",
"You're more than welcome to take a stab at creating a PR for it! We love reviewing PR's :)",
"We've added support for Uptime Checks and Ale... | 2022-11-25T23:47:00 | 2023-01-25T22:54:25 | 2023-01-25T21:53:07 | NONE | null | ### Is your feature request related to a problem? Please describe.
I'd like to manage my uptime checks and corresponding alerts with this provider.
### Describe the solution you'd like
Add support for the [uptime check](https://docs.digitalocean.com/reference/api/api-reference/#operation/uptime_checks_list) and [alert](https://docs.digitalocean.com/reference/api/api-reference/#operation/uptime_check_alerts_list) resources.
### Describe alternatives you've considered
There really is no alternative to this apart from not using this provider at all.
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/908/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/908/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/907 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/907/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/907/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/907/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/907 | 1,462,450,251 | PR_kwDOBZHfyM5DmWt- | 907 | add retry on db replica create | {
"login": "DMW2151",
"id": 22375448,
"node_id": "MDQ6VXNlcjIyMzc1NDQ4",
"avatar_url": "https://avatars.githubusercontent.com/u/22375448?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DMW2151",
"html_url": "https://github.com/DMW2151",
"followers_url": "https://api.github.com/users/DMW2151/followers",
"following_url": "https://api.github.com/users/DMW2151/following{/other_user}",
"gists_url": "https://api.github.com/users/DMW2151/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DMW2151/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DMW2151/subscriptions",
"organizations_url": "https://api.github.com/users/DMW2151/orgs",
"repos_url": "https://api.github.com/users/DMW2151/repos",
"events_url": "https://api.github.com/users/DMW2151/events{/privacy}",
"received_events_url": "https://api.github.com/users/DMW2151/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-11-23T21:50:57 | 2022-11-24T17:52:47 | 2022-11-24T17:52:47 | CONTRIBUTOR | null | Implements fix for https://github.com/digitalocean/terraform-provider-digitalocean/issues/906 by adding more permissive retry logic in two places:
- Call to `client.Databases.CreateReplica` in `resourceDigitalOceanDatabaseReplicaCreate` now allows 412 as a retryable error.
- Call to `GetReplica` in `waitForDatabaseReplica` allows 404 while replica creates. Same logic as currently used in `resourceDigitalOceanDatabaseClusterCreate`.
With the change, one can run a plan that creates a DB and replica as shown below without running into race condition on replica create:
```
resource "digitalocean_database_replica" "read-replica" {
cluster_id = digitalocean_database_cluster.postgres-example.id
name = "test-postgres-cluster-replica"
size = "db-s-1vcpu-1gb"
region = "nyc1"
}
resource "digitalocean_database_cluster" "postgres-example" {
name = "test-postgres-cluster"
engine = "pg"
version = "11"
size = "db-s-1vcpu-1gb"
region = "nyc1"
node_count = 1
}
```
Result from apply:
```bash
digitalocean_database_cluster.postgres-example: Creating...
...
digitalocean_database_cluster.postgres-example: Creation complete after 3m34s [id=4201c593-eeef-4cac-9465-fade75eaeaee]
digitalocean_database_replica.read-replica: Creating...
...
digitalocean_database_replica.read-replica: Creation complete after 3m53s [id=4201c593-eeef-4cac-9465-fade75eaeaee/replicas/test-postgres-cluster-replica] | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/907/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/907/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/907",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/907",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/907.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/907.patch",
"merged_at": "2022-11-24T17:52:47"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/906 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/906/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/906/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/906/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/906 | 1,460,307,493 | I_kwDOBZHfyM5XCoYl | 906 | Creating database replica fails with 404 while the replica is actually created | {
"login": "Mayeu",
"id": 222375,
"node_id": "MDQ6VXNlcjIyMjM3NQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/222375?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Mayeu",
"html_url": "https://github.com/Mayeu",
"followers_url": "https://api.github.com/users/Mayeu/followers",
"following_url": "https://api.github.com/users/Mayeu/following{/other_user}",
"gists_url": "https://api.github.com/users/Mayeu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Mayeu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Mayeu/subscriptions",
"organizations_url": "https://api.github.com/users/Mayeu/orgs",
"repos_url": "https://api.github.com/users/Mayeu/repos",
"events_url": "https://api.github.com/users/Mayeu/events{/privacy}",
"received_events_url": "https://api.github.com/users/Mayeu/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 | [
"Hey @Mayeu, thanks for the report, I'm looking into this now.",
"@bentranter Thank you 🙏 Don't hesitate to reach out if you need more information 👍 ",
"@bentranter I'm just seeing right now that the PR #907 seems to try to address this issue",
"Hey @Mayeu, you were right about that PR 😄 the fix is releas... | 2022-11-22T17:48:44 | 2022-11-24T22:08:42 | 2022-11-24T18:46:14 | NONE | null | # Bug Report
## Describe the bug
When trying to create a database replica with PostgreSQL the provider fails with a 404, not adding the replica in the state, while the replica is actually created on DigitalOcean.
### Affected Resource(s)
- digitalocean_database_replica
### Expected Behavior
It should be possible to create PostgreSQL replica from Terraform without error
### Actual Behavior
See "Describe the bug" before, Terraform command output:
```
digitalocean_database_cluster.postgres-example: Still creating... [3m10s elapsed]
digitalocean_database_cluster.postgres-example: Creation complete after 3m19s [id=cef70a33-92e5-407e-b324-e162dc431b90]
digitalocean_database_replica.read-replica: Creating...
digitalocean_database_replica.read-replica: Still creating... [10s elapsed]
digitalocean_database_replica.read-replica: Still creating... [20s elapsed]
╷
│ Error: Error creating DatabaseReplica: Error trying to read DatabaseReplica state: GET https://api.digitalocean.com/v2/databases/cef70a33-92e5-407e-b324-e162dc431b90/replicas/read-replica: 404 (request "252df266-ea7d-4cc4-9ea3-a8bed2db0ab2") not found
│
│ with digitalocean_database_replica.read-replica,
│ on main.tf line 1, in resource "digitalocean_database_replica" "read-replica":
│ 1: resource "digitalocean_database_replica" "read-replica" {
│
╵
```
### Steps to Reproduce
1. `terraform apply`
**Terraform Configuration Files**
This is reproducible using the snippet from the [documentation](https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/database_replica):
```terraform
resource "digitalocean_database_replica" "read-replica" {
cluster_id = digitalocean_database_cluster.postgres-example.id
name = "read-replica"
size = "db-s-1vcpu-1gb"
region = "nyc1"
}
resource "digitalocean_database_cluster" "postgres-example" {
name = "example-postgres-cluster"
engine = "pg"
version = "11"
size = "db-s-1vcpu-1gb"
region = "nyc1"
node_count = 1
}
```
**Terraform version**
```
Terraform v1.3.5
on darwin_amd64
+ provider registry.terraform.io/digitalocean/digitalocean v2.24.0
```
**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.
This link result in a 404, thus I’m not sure what debug logs exactly you are expecting exactly.
**Panic Output**
No panic in this case. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/906/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/906/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/905 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/905/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/905/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/905/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/905 | 1,460,290,293 | PR_kwDOBZHfyM5De5Cz | 905 | Load balancers: Support HTTP idle timeout & Project ID | {
"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 | [
"Thanks @andrewsomething 🙏 sorry about that :( "
] | 2022-11-22T17:35:55 | 2022-11-23T18:57:25 | 2022-11-23T18:57:24 | MEMBER | null | This fixes up some issues with the reverted PR https://github.com/digitalocean/terraform-provider-digitalocean/pull/897
CC: @StephenVarela | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/905/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/905/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/905",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/905",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/905.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/905.patch",
"merged_at": "2022-11-23T18:57:24"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/904 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/904/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/904/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/904/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/904 | 1,460,101,929 | PR_kwDOBZHfyM5DeP2u | 904 | Revert "Support HTTP idle timeout & Project ID" | {
"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-11-22T15:36:05 | 2022-11-22T16:05:26 | 2022-11-22T16:05:25 | MEMBER | null | Reverts digitalocean/terraform-provider-digitalocean#897
This PR introduced a number of test failures. For example, this is not the ID of a real project so all tests using this config now fail:
https://github.com/digitalocean/terraform-provider-digitalocean/blob/dc5ff852c0051d87d6dc2d9eb651c61f35a6b170/digitalocean/resource_digitalocean_loadbalancer_test.go#L744
```
$ make testacc TESTARGS='-run=TestAccDigitalOceanLoadbalancer'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test $(go list ./... |grep -v 'vendor') -v -run=TestAccDigitalOceanLoadbalancer -timeout 120m
? github.com/digitalocean/terraform-provider-digitalocean [no test files]
=== RUN TestAccDigitalOceanLoadbalancer_Basic
=== PAUSE TestAccDigitalOceanLoadbalancer_Basic
=== RUN TestAccDigitalOceanLoadbalancer_Updated
=== PAUSE TestAccDigitalOceanLoadbalancer_Updated
=== RUN TestAccDigitalOceanLoadbalancer_dropletTag
=== PAUSE TestAccDigitalOceanLoadbalancer_dropletTag
=== RUN TestAccDigitalOceanLoadbalancer_minimal
=== PAUSE TestAccDigitalOceanLoadbalancer_minimal
=== RUN TestAccDigitalOceanLoadbalancer_minimalUDP
=== PAUSE TestAccDigitalOceanLoadbalancer_minimalUDP
=== RUN TestAccDigitalOceanLoadbalancer_stickySessions
=== PAUSE TestAccDigitalOceanLoadbalancer_stickySessions
=== RUN TestAccDigitalOceanLoadbalancer_sslTermination
=== PAUSE TestAccDigitalOceanLoadbalancer_sslTermination
=== RUN TestAccDigitalOceanLoadbalancer_sslCertByName
=== PAUSE TestAccDigitalOceanLoadbalancer_sslCertByName
=== RUN TestAccDigitalOceanLoadbalancer_resizeExpectedFailure
=== PAUSE TestAccDigitalOceanLoadbalancer_resizeExpectedFailure
=== RUN TestAccDigitalOceanLoadbalancer_multipleRules
=== PAUSE TestAccDigitalOceanLoadbalancer_multipleRules
=== RUN TestAccDigitalOceanLoadbalancer_WithVPC
=== PAUSE TestAccDigitalOceanLoadbalancer_WithVPC
=== CONT TestAccDigitalOceanLoadbalancer_Basic
=== CONT TestAccDigitalOceanLoadbalancer_minimal
=== CONT TestAccDigitalOceanLoadbalancer_sslTermination
=== CONT TestAccDigitalOceanLoadbalancer_minimalUDP
=== CONT TestAccDigitalOceanLoadbalancer_multipleRules
=== CONT TestAccDigitalOceanLoadbalancer_WithVPC
=== CONT TestAccDigitalOceanLoadbalancer_resizeExpectedFailure
=== CONT TestAccDigitalOceanLoadbalancer_stickySessions
=== CONT TestAccDigitalOceanLoadbalancer_sslTermination
resource_digitalocean_loadbalancer_test.go:425: Step 1/1 error: Error running apply: exit status 1
Error: Error creating Certificate: POST https://api.digitalocean.com/v2/certificates: 422 (request "7b8ea8dd-0b34-44dc-b25c-0a2edbbc6635") name is not unique
with digitalocean_certificate.foobar,
on terraform_plugin_test.tf line 2, in resource "digitalocean_certificate" "foobar":
2: resource "digitalocean_certificate" "foobar" {
--- FAIL: TestAccDigitalOceanLoadbalancer_sslTermination (2.40s)
=== CONT TestAccDigitalOceanLoadbalancer_dropletTag
=== CONT TestAccDigitalOceanLoadbalancer_Basic
resource_digitalocean_loadbalancer_test.go:58: Step 1/1 error: Error running apply: exit status 1
Error: Error creating Load Balancer: POST https://api.digitalocean.com/v2/load_balancers: 400 (request "1eeb8215-13d7-4e45-b8c3-572f7c5438de") invalid project_id provided in the request payload
with digitalocean_loadbalancer.foobar,
on terraform_plugin_test.tf line 9, in resource "digitalocean_loadbalancer" "foobar":
9: resource "digitalocean_loadbalancer" "foobar" {
--- FAIL: TestAccDigitalOceanLoadbalancer_Basic (62.84s)
=== CONT TestAccDigitalOceanLoadbalancer_Updated
resource_digitalocean_loadbalancer_test.go:117: Step 1/2 error: Error running apply: exit status 1
Error: Error creating Load Balancer: POST https://api.digitalocean.com/v2/load_balancers: 400 (request "404c76a6-2040-42a0-9fa6-108fcef16c2e") invalid project_id provided in the request payload
with digitalocean_loadbalancer.foobar,
on terraform_plugin_test.tf line 9, in resource "digitalocean_loadbalancer" "foobar":
9: resource "digitalocean_loadbalancer" "foobar" {
--- FAIL: TestAccDigitalOceanLoadbalancer_Updated (51.77s)
=== CONT TestAccDigitalOceanLoadbalancer_sslCertByName
=== CONT TestAccDigitalOceanLoadbalancer_multipleRules
resource_digitalocean_loadbalancer_test.go:564: Step 1/2 error: After applying this test step, the plan was not empty.
stdout:
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# digitalocean_loadbalancer.foobar will be updated in-place
~ resource "digitalocean_loadbalancer" "foobar" {
- http_idle_timeout_seconds = 60 -> null
id = "07b342e2-9bb5-425d-814d-ca8ac8c20480"
name = "tf-acc-test-s4k9z7y21o"
# (13 unchanged attributes hidden)
# (4 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
--- FAIL: TestAccDigitalOceanLoadbalancer_multipleRules (115.41s)
=== CONT TestAccDigitalOceanLoadbalancer_stickySessions
resource_digitalocean_loadbalancer_test.go:370: Step 1/1 error: After applying this test step, the plan was not empty.
stdout:
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# digitalocean_loadbalancer.foobar will be updated in-place
~ resource "digitalocean_loadbalancer" "foobar" {
- http_idle_timeout_seconds = 60 -> null
id = "f6dddc62-2ea6-4abe-9c5b-6db3b959e2ac"
name = "loadbalancer-220716403397759782"
# (13 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
=== CONT TestAccDigitalOceanLoadbalancer_minimalUDP
resource_digitalocean_loadbalancer_test.go:316: Step 1/1 error: After applying this test step, the plan was not empty.
stdout:
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# digitalocean_loadbalancer.foobar will be updated in-place
~ resource "digitalocean_loadbalancer" "foobar" {
- http_idle_timeout_seconds = 60 -> null
id = "1c3038b9-acf5-4d92-9340-6f6e50257f91"
name = "loadbalancer-1884805253242388054"
# (13 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
=== CONT TestAccDigitalOceanLoadbalancer_minimal
resource_digitalocean_loadbalancer_test.go:262: Step 1/1 error: After applying this test step, the plan was not empty.
stdout:
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# digitalocean_loadbalancer.foobar will be updated in-place
~ resource "digitalocean_loadbalancer" "foobar" {
- http_idle_timeout_seconds = 60 -> null
id = "9be6ff90-98cc-44b9-b97a-3b483f586fb2"
name = "loadbalancer-9180328754269989612"
# (13 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
=== CONT TestAccDigitalOceanLoadbalancer_dropletTag
resource_digitalocean_loadbalancer_test.go:216: Step 1/1 error: After applying this test step, the plan was not empty.
stdout:
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# digitalocean_loadbalancer.foobar will be updated in-place
~ resource "digitalocean_loadbalancer" "foobar" {
- http_idle_timeout_seconds = 60 -> null
id = "b10a6c0e-add4-4419-8007-3b8fa56c6dea"
name = "loadbalancer-1012393044855707055"
# (13 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
=== CONT TestAccDigitalOceanLoadbalancer_WithVPC
resource_digitalocean_loadbalancer_test.go:645: Step 1/1 error: After applying this test step, the plan was not empty.
stdout:
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# digitalocean_loadbalancer.foobar will be updated in-place
~ resource "digitalocean_loadbalancer" "foobar" {
- http_idle_timeout_seconds = 60 -> null
id = "296d5a42-0146-433a-9aa1-f552b7f72df8"
name = "tf-acc-test-2k3o1zik7o"
# (13 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
--- FAIL: TestAccDigitalOceanLoadbalancer_stickySessions (163.30s)
--- FAIL: TestAccDigitalOceanLoadbalancer_minimalUDP (174.76s)
--- FAIL: TestAccDigitalOceanLoadbalancer_minimal (175.52s)
--- FAIL: TestAccDigitalOceanLoadbalancer_dropletTag (175.16s)
--- FAIL: TestAccDigitalOceanLoadbalancer_WithVPC (185.29s)
=== CONT TestAccDigitalOceanLoadbalancer_sslCertByName
resource_digitalocean_loadbalancer_test.go:470: Step 1/1 error: After applying this test step, the plan was not empty.
stdout:
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# digitalocean_loadbalancer.foobar will be updated in-place
~ resource "digitalocean_loadbalancer" "foobar" {
- http_idle_timeout_seconds = 60 -> null
id = "fcdc6e94-337d-4868-af69-2f5c83ffe760"
name = "loadbalancer-354221888777778271"
# (13 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
--- FAIL: TestAccDigitalOceanLoadbalancer_sslCertByName (112.65s)
=== CONT TestAccDigitalOceanLoadbalancer_resizeExpectedFailure
resource_digitalocean_loadbalancer_test.go:537: Step 1/2 error: After applying this test step, the plan was not empty.
stdout:
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# digitalocean_loadbalancer.foobar will be updated in-place
~ resource "digitalocean_loadbalancer" "foobar" {
- http_idle_timeout_seconds = 60 -> null
id = "3a504638-5045-4ae3-b676-64b478abfdea"
name = "loadbalancer-8446999854889222114"
# (12 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
--- FAIL: TestAccDigitalOceanLoadbalancer_resizeExpectedFailure (267.81s)
FAIL
FAIL github.com/digitalocean/terraform-provider-digitalocean/digitalocean 268.452s
testing: warning: no tests to run
PASS
ok github.com/digitalocean/terraform-provider-digitalocean/internal/datalist 0.003s [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]
FAIL
make: *** [GNUmakefile:16: testacc] Error 1
``` | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/904/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/904/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/904",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/904",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/904.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/904.patch",
"merged_at": "2022-11-22T16:05:25"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/903 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/903/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/903/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/903/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/903 | 1,455,349,555 | PR_kwDOBZHfyM5DOL9T | 903 | Loadbalancers support http alerts metrics | {
"login": "StephenVarela",
"id": 36381962,
"node_id": "MDQ6VXNlcjM2MzgxOTYy",
"avatar_url": "https://avatars.githubusercontent.com/u/36381962?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/StephenVarela",
"html_url": "https://github.com/StephenVarela",
"followers_url": "https://api.github.com/users/StephenVarela/followers",
"following_url": "https://api.github.com/users/StephenVarela/following{/other_user}",
"gists_url": "https://api.github.com/users/StephenVarela/gists{/gist_id}",
"starred_url": "https://api.github.com/users/StephenVarela/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/StephenVarela/subscriptions",
"organizations_url": "https://api.github.com/users/StephenVarela/orgs",
"repos_url": "https://api.github.com/users/StephenVarela/repos",
"events_url": "https://api.github.com/users/StephenVarela/events{/privacy}",
"received_events_url": "https://api.github.com/users/StephenVarela/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-11-18T15:38:39 | 2022-11-28T16:16:54 | 2022-11-28T16:16:54 | CONTRIBUTOR | null | Support Load balancers http metric alerts | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/903/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/903/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/903",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/903",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/903.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/903.patch",
"merged_at": "2022-11-28T16:16:54"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/902 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/902/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/902/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/902/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/902 | 1,454,686,822 | I_kwDOBZHfyM5WtMJm | 902 | digitalocean_database_replica: size parameter forces replacement | {
"login": "mijndert",
"id": 626972,
"node_id": "MDQ6VXNlcjYyNjk3Mg==",
"avatar_url": "https://avatars.githubusercontent.com/u/626972?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mijndert",
"html_url": "https://github.com/mijndert",
"followers_url": "https://api.github.com/users/mijndert/followers",
"following_url": "https://api.github.com/users/mijndert/following{/other_user}",
"gists_url": "https://api.github.com/users/mijndert/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mijndert/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mijndert/subscriptions",
"organizations_url": "https://api.github.com/users/mijndert/orgs",
"repos_url": "https://api.github.com/users/mijndert/repos",
"events_url": "https://api.github.com/users/mijndert/events{/privacy}",
"received_events_url": "https://api.github.com/users/mijndert/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 | [
"@andrewsomething any update? Thanks. ",
"@andrewsomething Yes this isn't an enhancement, this is a bug. I'm seeing exactly the same thing.\r\n\r\nIt seems impossible to get my local state in sync with the DigitalOcean replica's state. Setting/adding/removing the size parameter, whatever I do it triggers a replac... | 2022-11-18T08:26:43 | 2023-04-21T14:36:39 | 2023-04-21T14:36:39 | 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 try to change the `size` parameter on a digitalocean_database_replica resource, Terraform forces replacement on that resource. This is also defined in the provider:
```
"size": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
```
But I can do the change in the Digitalocean web UI without replacing the entire database replica, which to me would mean the API is ready to do so.
### Affected Resource(s)
- digitalocean_database_replica
### Expected Behavior
Not replace the digitalocean_database_replica resource when the `size` parameter is changed.
### Actual Behavior
Terraform forces a replacement of the digitalocean_database_replica resource when the `size` parameter is changed.
### Steps to Reproduce
- terraform apply
**Terraform Configuration Files**
```
resource "digitalocean_database_cluster" "postgresql" {
engine = "pg"
name = var.db_cluster_name
version = var.db_cluster_version
node_count = var.db_node_count
region = var.region
size = var.db_cluster_size
private_network_uuid = data.digitalocean_vpc.this.id
}
resource "digitalocean_database_replica" "postgresql" {
cluster_id = digitalocean_database_cluster.postgresql.id
name = var.db_cluster_replica_name
region = var.region
size = var.db_cluster_replica_size
}
```
```
module "databases" {
source = "../../../modules/databases"
# PostgreSQL
db_cluster_name = "db-postgresql-ams3-toot-community"
db_cluster_version = "14"
db_node_count = "1"
db_cluster_size = "db-s-2vcpu-4gb"
# Postgresql replica
db_cluster_replica_name = "db-ro-postgresql-ams3-toot-community"
db_cluster_replica_size = "db-s-4vcpu-8gb"
[...]
}
```
**Terraform version**
```
Terraform v1.3.4
on darwin_amd64
+ provider registry.terraform.io/digitalocean/digitalocean v2.24.0
```
## Additional context
None
**Important Factoids**
None
**References**
None
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/902/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/902/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/901 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/901/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/901/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/901/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/901 | 1,454,361,051 | I_kwDOBZHfyM5Wr8nb | 901 | When creating volumes, "region" is not being converted to lowercase letters and causes an error during `terraform apply` | {
"login": "nixc0",
"id": 19240280,
"node_id": "MDQ6VXNlcjE5MjQwMjgw",
"avatar_url": "https://avatars.githubusercontent.com/u/19240280?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nixc0",
"html_url": "https://github.com/nixc0",
"followers_url": "https://api.github.com/users/nixc0/followers",
"following_url": "https://api.github.com/users/nixc0/following{/other_user}",
"gists_url": "https://api.github.com/users/nixc0/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nixc0/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nixc0/subscriptions",
"organizations_url": "https://api.github.com/users/nixc0/orgs",
"repos_url": "https://api.github.com/users/nixc0/repos",
"events_url": "https://api.github.com/users/nixc0/events{/privacy}",
"received_events_url": "https://api.github.com/users/nixc0/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": 919581746,
"node_id": "MDU6TGFiZWw5MTk1OD... | closed | false | null | [] | null | [
"Fixed via https://github.com/digitalocean/terraform-provider-digitalocean/pull/1074"
] | 2022-11-18T03:07:46 | 2023-11-14T22:47:51 | 2023-11-14T22:47:50 | 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 using uppercase letters in region (example NYC3 or AMS1) when creating a new volume causes `terraform apply` to fail
### Affected Resource(s)
- digitalocean_volume
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? -->
Region should have been converted to lowercase nyc3 and volume created. This is the behavior that happens when I create a Droplet using the region NYC3.
### Actual Behavior
<!-- What actually happened? -->
When running `terraform apply` the following error is produced.
Error: Error creating Volume: POST https://api.digitalocean.com/v2/volumes: 403 (request "51693f34-b786-44e3-8fe1-8ac3dcbe7e1a") failed to create volume: volume allocation operations not allowed in this region at this time
### Steps to Reproduce
<!-- Please list the steps required to reproduce the issue, for example:
1. `terraform apply` -->
**Terraform Configuration Files**
Here is an example of the Droplet I am creating at the same time using "NYC3" as the region instead of "nyc3". This works as expected.
```
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.0"
}
}
}
variable "do_token" {}
provider "digitalocean" {
token = var.do_token
}
resource "digitalocean_droplet" "www-1" {
image = "ubuntu-20-04-x64"
name = "www-1"
region = "NYC3"
size = "s-1vcpu-1gb"
}
```
During the same plan and apply, below is the configuration file for the volume I am creating with "NYC3" as the region instead of "nyc3".
```
resource "digitalocean_volume" "foobar" {
region = "NYC3"
name = "baz"
size = 100
initial_filesystem_type = "ext4"
description = "an example volume"
}
```
**Terraform version**
<!-- 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. -->
I replicated this issue on 1.3.4 & 1.3.5
**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. -->
https://gist.github.com/nixc0/0864906078831e9a65bf6ce7c8f16f31
**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. -->
If I'm not mistaken, this line https://github.com/digitalocean/terraform-provider-digitalocean/blob/2a413c8b36d0f875c19f4cd1bafb26a769929417/digitalocean/resource_digitalocean_volume.go#L32 should be converting this "NYC3" to "nyc3" in order to work with the all lowercase requirements of the DO API.
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/901/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/901/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/900 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/900/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/900/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/900/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/900 | 1,453,633,739 | I_kwDOBZHfyM5WpLDL | 900 | Create space resource via terraform | {
"login": "alexandrubau",
"id": 1225661,
"node_id": "MDQ6VXNlcjEyMjU2NjE=",
"avatar_url": "https://avatars.githubusercontent.com/u/1225661?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alexandrubau",
"html_url": "https://github.com/alexandrubau",
"followers_url": "https://api.github.com/users/alexandrubau/followers",
"following_url": "https://api.github.com/users/alexandrubau/following{/other_user}",
"gists_url": "https://api.github.com/users/alexandrubau/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alexandrubau/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alexandrubau/subscriptions",
"organizations_url": "https://api.github.com/users/alexandrubau/orgs",
"repos_url": "https://api.github.com/users/alexandrubau/repos",
"events_url": "https://api.github.com/users/alexandrubau/events{/privacy}",
"received_events_url": "https://api.github.com/users/alexandrubau/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 | [
"Nevermind, I've figured it out. I thought I am able to create multiple Spaces but in fact each Space is actually a Bucket.",
"Hey @alexandrubau,\r\n\r\nThat's right. The `digitalocean_spaces_bucket` resource. It should allow you to create a new DigitalOcean Space from Terraform:\r\n\r\nhttps://registry.terraform... | 2022-11-17T16:28:00 | 2022-11-17T16:58:11 | 2022-11-17T16:56:55 | NONE | null | I would like to be able to create a new DigitalOcean Space from terraform config file, similarly to how I am able to create a new Container Registry resource. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/900/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/900/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/899 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/899/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/899/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/899/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/899 | 1,449,586,288 | PR_kwDOBZHfyM5C6z3i | 899 | Add new DC to spaces | {
"login": "mandalae",
"id": 504262,
"node_id": "MDQ6VXNlcjUwNDI2Mg==",
"avatar_url": "https://avatars.githubusercontent.com/u/504262?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mandalae",
"html_url": "https://github.com/mandalae",
"followers_url": "https://api.github.com/users/mandalae/followers",
"following_url": "https://api.github.com/users/mandalae/following{/other_user}",
"gists_url": "https://api.github.com/users/mandalae/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mandalae/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mandalae/subscriptions",
"organizations_url": "https://api.github.com/users/mandalae/orgs",
"repos_url": "https://api.github.com/users/mandalae/repos",
"events_url": "https://api.github.com/users/mandalae/events{/privacy}",
"received_events_url": "https://api.github.com/users/mandalae/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-11-15T11:00:34 | 2022-11-15T14:12:16 | 2022-11-15T14:12:15 | CONTRIBUTOR | null | null | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/899/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/899/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/899",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/899",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/899.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/899.patch",
"merged_at": "2022-11-15T14:12:15"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/898 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/898/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/898/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/898/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/898 | 1,446,264,066 | I_kwDOBZHfyM5WND0C | 898 | Allow Bucket Versioning to digitalocean_spaces_bucket resource | {
"login": "yordis",
"id": 4237280,
"node_id": "MDQ6VXNlcjQyMzcyODA=",
"avatar_url": "https://avatars.githubusercontent.com/u/4237280?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yordis",
"html_url": "https://github.com/yordis",
"followers_url": "https://api.github.com/users/yordis/followers",
"following_url": "https://api.github.com/users/yordis/following{/other_user}",
"gists_url": "https://api.github.com/users/yordis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yordis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yordis/subscriptions",
"organizations_url": "https://api.github.com/users/yordis/orgs",
"repos_url": "https://api.github.com/users/yordis/repos",
"events_url": "https://api.github.com/users/yordis/events{/privacy}",
"received_events_url": "https://api.github.com/users/yordis/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 | [
"......... 🤦🏻 ignore me! the feature is already there if I just read the documentation ... my apologies!"
] | 2022-11-12T05:26:44 | 2022-11-12T05:33:59 | 2022-11-12T05:33:51 | NONE | null | ### Is your feature request related to a problem? Please describe.
<!-- A clear and concise description of what the problem is.
Ex. I'm always frustrated when [...] -->
Enabling Bucket Versioning is crucial to leverage Spaces as our Terraform State Backend. Ideally, we would like to enable it using this provider to streamline the "Genesis" project to get started with DO.
### Describe the solution you'd like
<!-- A clear and concise description of what you want to happen. -->
Be able to enable Bucket Versioning using the `digitalocean_spaces_bucket` resource:
```hcl
resource "digitalocean_spaces_bucket" "terraform" {
name = "${var.prefix}-tf"
region = "nyc3"
acl = "private"
}
# using S3 Resource as an example
resource "aws_s3_bucket_versioning" "versioning_example" {
bucket = digitalocean_spaces_bucket.terraform.urn
versioning_configuration {
status = "Enabled"
}
}
```
### Describe alternatives you've considered
<!-- A clear and concise description of any alternative solutions or features you've
considered. -->
Having shell scripts and losing the ability to have IaC.
### 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/898/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/898/timeline | null | not_planned | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/897 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/897/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/897/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/897/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/897 | 1,445,934,982 | PR_kwDOBZHfyM5CukDZ | 897 | Support HTTP idle timeout & Project ID | {
"login": "StephenVarela",
"id": 36381962,
"node_id": "MDQ6VXNlcjM2MzgxOTYy",
"avatar_url": "https://avatars.githubusercontent.com/u/36381962?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/StephenVarela",
"html_url": "https://github.com/StephenVarela",
"followers_url": "https://api.github.com/users/StephenVarela/followers",
"following_url": "https://api.github.com/users/StephenVarela/following{/other_user}",
"gists_url": "https://api.github.com/users/StephenVarela/gists{/gist_id}",
"starred_url": "https://api.github.com/users/StephenVarela/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/StephenVarela/subscriptions",
"organizations_url": "https://api.github.com/users/StephenVarela/orgs",
"repos_url": "https://api.github.com/users/StephenVarela/repos",
"events_url": "https://api.github.com/users/StephenVarela/events{/privacy}",
"received_events_url": "https://api.github.com/users/StephenVarela/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-11-11T19:42:53 | 2022-11-22T15:09:00 | 2022-11-22T15:09:00 | CONTRIBUTOR | null | LBAAS-2430 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/897/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/897/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/897",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/897",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/897.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/897.patch",
"merged_at": "2022-11-22T15:09:00"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/896 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/896/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/896/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/896/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/896 | 1,445,878,579 | PR_kwDOBZHfyM5CuXtY | 896 | LBAAS-2427 support project id in loadbalancers | {
"login": "StephenVarela",
"id": 36381962,
"node_id": "MDQ6VXNlcjM2MzgxOTYy",
"avatar_url": "https://avatars.githubusercontent.com/u/36381962?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/StephenVarela",
"html_url": "https://github.com/StephenVarela",
"followers_url": "https://api.github.com/users/StephenVarela/followers",
"following_url": "https://api.github.com/users/StephenVarela/following{/other_user}",
"gists_url": "https://api.github.com/users/StephenVarela/gists{/gist_id}",
"starred_url": "https://api.github.com/users/StephenVarela/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/StephenVarela/subscriptions",
"organizations_url": "https://api.github.com/users/StephenVarela/orgs",
"repos_url": "https://api.github.com/users/StephenVarela/repos",
"events_url": "https://api.github.com/users/StephenVarela/events{/privacy}",
"received_events_url": "https://api.github.com/users/StephenVarela/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-11-11T18:49:48 | 2022-11-16T22:49:44 | 2022-11-16T22:49:44 | CONTRIBUTOR | null | WIP | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/896/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/896/timeline | null | null | true | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/896",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/896",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/896.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/896.patch",
"merged_at": null
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/895 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/895/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/895/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/895/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/895 | 1,444,625,485 | PR_kwDOBZHfyM5CqM7a | 895 | load balancers: add HTTP/3 as an entry protocol | {
"login": "anitgandhi",
"id": 4002512,
"node_id": "MDQ6VXNlcjQwMDI1MTI=",
"avatar_url": "https://avatars.githubusercontent.com/u/4002512?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/anitgandhi",
"html_url": "https://github.com/anitgandhi",
"followers_url": "https://api.github.com/users/anitgandhi/followers",
"following_url": "https://api.github.com/users/anitgandhi/following{/other_user}",
"gists_url": "https://api.github.com/users/anitgandhi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/anitgandhi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/anitgandhi/subscriptions",
"organizations_url": "https://api.github.com/users/anitgandhi/orgs",
"repos_url": "https://api.github.com/users/anitgandhi/repos",
"events_url": "https://api.github.com/users/anitgandhi/events{/privacy}",
"received_events_url": "https://api.github.com/users/anitgandhi/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-11-10T22:02:32 | 2022-11-15T16:36:02 | 2022-11-15T16:08:37 | CONTRIBUTOR | null | This is currently in beta. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/895/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/895/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/895",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/895",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/895.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/895.patch",
"merged_at": "2022-11-15T16:08:37"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/894 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/894/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/894/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/894/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/894 | 1,443,950,891 | I_kwDOBZHfyM5WEPEr | 894 | 401 Error when pulling images at Pod Scheduling | {
"login": "jesseinit",
"id": 13919080,
"node_id": "MDQ6VXNlcjEzOTE5MDgw",
"avatar_url": "https://avatars.githubusercontent.com/u/13919080?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jesseinit",
"html_url": "https://github.com/jesseinit",
"followers_url": "https://api.github.com/users/jesseinit/followers",
"following_url": "https://api.github.com/users/jesseinit/following{/other_user}",
"gists_url": "https://api.github.com/users/jesseinit/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jesseinit/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jesseinit/subscriptions",
"organizations_url": "https://api.github.com/users/jesseinit/orgs",
"repos_url": "https://api.github.com/users/jesseinit/repos",
"events_url": "https://api.github.com/users/jesseinit/events{/privacy}",
"received_events_url": "https://api.github.com/users/jesseinit/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 | [
"Solved.\r\n\r\nAdding the following to my deployment spec resolved it.\r\n```yml\r\nimagePullSecrets:\r\n - name: notes-api-registry",
"Thanks for sharing your solution!"
] | 2022-11-10T13:54:20 | 2022-11-10T15:24:54 | 2022-11-10T15:17:15 | 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 created container registry secret that has been applied to the cluster gives a 401 error when images that have been pushed to the cluster get pulled during pod scheduling.
### Affected Resource(s)
<!-- Please list the resources, for example:
- digitalocean_kubernetes_cluster
- digitalocean_container_registry
- digitalocean_container_registry_docker_credentials
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? -->
Pods should be able to pull from registry
### Actual Behavior
<!-- What actually happened? -->
Error: ImagePullBackOff and Error: ErrImagePull during pod scheduling
### 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.-->
I'm having this same issue.
I created my cluster and added the secret but I cannot pull images from the registry, it is giving a 401 error. When I refresh the registry setting page it shows that there is no secret has been created on the cluster.
```.tf
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.0"
}
}
}
# Configure the DigitalOcean Provider
provider "digitalocean" {
token = var.do_token
}
resource "digitalocean_kubernetes_cluster" "notes_api_cluster" {
name = "notes-api-cluster"
region = "ams3"
version = "1.24.4-do.0"
tags = ["prod"]
node_pool {
name = "notes-api-worker-pool"
size = "c-2"
node_count = 1
tags = ["backend"]
}
}
resource "digitalocean_container_registry" "notes-api-registry" {
name = "notes-api-registry"
subscription_tier_slug = "starter"
region = "ams3"
}
resource "digitalocean_container_registry_docker_credentials" "notes-api-registry-cred" {
registry_name = digitalocean_container_registry.notes-api-registry.name
}
provider "kubernetes" {
host = digitalocean_kubernetes_cluster.notes_api_cluster.endpoint
token = digitalocean_kubernetes_cluster.notes_api_cluster.kube_config[0].token
cluster_ca_certificate = base64decode(
digitalocean_kubernetes_cluster.notes_api_cluster.kube_config[0].cluster_ca_certificate
)
}
resource "kubernetes_secret" "notes-api-regisry-secret" {
metadata {
name = digitalocean_container_registry.notes-api-registry.name
}
data = {
".dockerconfigjson" = digitalocean_container_registry_docker_credentials.notes-api-registry-cred.docker_credentials
}
type = "kubernetes.io/dockerconfigjson"
}
```
```sh
k get secrets
NAME TYPE DATA AGE
default-token-t7xmj kubernetes.io/service-account-token 3 35m
notes-api-registry kubernetes.io/dockerconfigjson 1 30m
```
```sh
k describe secrets/notes-api-registry
Name: notes-api-registry
Namespace: default
Labels: <none>
Annotations: <none>
Type: kubernetes.io/dockerconfigjson
Data
====
.dockerconfigjson: 243 bytes
```
```sh
k describe pod/note-api-7f49f4f846-phw8z
Name: note-api-7f49f4f846-phw8z
Namespace: default
Priority: 0
Service Account: default
Node: notes-api-worker-pool-m8dhi/10.110.0.2
Start Time: Thu, 10 Nov 2022 14:21:02 +0100
Labels: app=note-api
pod-template-hash=7f49f4f846
Annotations: <none>
Status: Pending
IP: 10.244.0.102
IPs:
IP: 10.244.0.102
Controlled By: ReplicaSet/note-api-7f49f4f846
Containers:
notes-api:
Container ID:
Image: registry.digitalocean.com/notes-api-registry/notes-api:amd64
Image ID:
Port: 8022/TCP
Host Port: 0/TCP
State: Waiting
Reason: ImagePullBackOff
Ready: False
Restart Count: 0
Limits:
cpu: 1
memory: 512Mi
Requests:
cpu: 200m
memory: 256Mi
Environment Variables from:
note-api-configmap ConfigMap Optional: false
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-lf4mp (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
kube-api-access-lf4mp:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional: <nil>
DownwardAPI: true
QoS Class: Burstable
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 15s default-scheduler Successfully assigned default/note-api-7f49f4f846-phw8z to notes-api-worker-pool-m8dhi
Normal BackOff 14s kubelet Back-off pulling image "registry.digitalocean.com/notes-api-registry/notes-api:amd64"
Warning Failed 14s kubelet Error: ImagePullBackOff
Normal Pulling 3s (x2 over 15s) kubelet Pulling image "registry.digitalocean.com/notes-api-registry/notes-api:amd64"
Warning Failed 3s (x2 over 15s) kubelet Failed to pull image "registry.digitalocean.com/notes-api-registry/notes-api:amd64": rpc error: code = Unknown desc = failed to pull and unpack image "registry.digitalocean.com/notes-api-registry/notes-api:amd64": failed to resolve reference "registry.digitalocean.com/notes-api-registry/notes-api:amd64": failed to authorize: failed to fetch anonymous token: unexpected status: 401 Unauthorized
Warning Failed 3s (x2 over 15s) kubelet Error: ErrImagePull
```
**Terraform version**
<!-- 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/894/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/894/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/893 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/893/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/893/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/893/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/893 | 1,433,891,116 | PR_kwDOBZHfyM5CGL2g | 893 | Update Monitor Alert resource with new DBAAS public alert types | {
"login": "dweinshenker",
"id": 9273337,
"node_id": "MDQ6VXNlcjkyNzMzMzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/9273337?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dweinshenker",
"html_url": "https://github.com/dweinshenker",
"followers_url": "https://api.github.com/users/dweinshenker/followers",
"following_url": "https://api.github.com/users/dweinshenker/following{/other_user}",
"gists_url": "https://api.github.com/users/dweinshenker/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dweinshenker/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dweinshenker/subscriptions",
"organizations_url": "https://api.github.com/users/dweinshenker/orgs",
"repos_url": "https://api.github.com/users/dweinshenker/repos",
"events_url": "https://api.github.com/users/dweinshenker/events{/privacy}",
"received_events_url": "https://api.github.com/users/dweinshenker/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-11-02T22:56:33 | 2022-11-03T19:50:17 | 2022-11-03T19:50:17 | CONTRIBUTOR | null | Adding additional monitoring alerts that are now supported for dbaas | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/893/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/893/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/893",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/893",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/893.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/893.patch",
"merged_at": "2022-11-03T19:50:17"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/892 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/892/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/892/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/892/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/892 | 1,429,359,844 | I_kwDOBZHfyM5VMkzk | 892 | Unable to import digitalocean_kubernetes_cluster | {
"login": "mkroman",
"id": 173308,
"node_id": "MDQ6VXNlcjE3MzMwOA==",
"avatar_url": "https://avatars.githubusercontent.com/u/173308?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mkroman",
"html_url": "https://github.com/mkroman",
"followers_url": "https://api.github.com/users/mkroman/followers",
"following_url": "https://api.github.com/users/mkroman/following{/other_user}",
"gists_url": "https://api.github.com/users/mkroman/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mkroman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mkroman/subscriptions",
"organizations_url": "https://api.github.com/users/mkroman/orgs",
"repos_url": "https://api.github.com/users/mkroman/repos",
"events_url": "https://api.github.com/users/mkroman/events{/privacy}",
"received_events_url": "https://api.github.com/users/mkroman/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... | closed | false | null | [] | null | [
"Hi @mkroman,\r\n\r\nThank you for raising this issue. I've been able to reproduce it when importing a cluster with multiple node pools. Importing a cluster with a single node pool still works as expected. The issue seems to be caused by some incompatibility in our approach of importing multiple node pools with Ter... | 2022-10-31T07:01:17 | 2023-04-19T12:37:09 | 2023-04-19T12:37:09 | 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 trying to import an existing Kubernetes Cluster, I get the following error:
```
digitalocean_kubernetes_cluster.development: Importing from ID "6e2e943a-00d3-4fc9-8cf2-5f7c421b04fd"...
╷
│ Error: an object with 21 attributes is required (14 given)
```
### Affected Resource(s)
- digitalocean_kubernetes_cluster
### Expected Behavior
The cluster should've been imported without issues.
### Actual Behavior
The mentioned error happens.
### Steps to Reproduce
I'm not sure how reproducible it is, as this is an older cluster.
1. Create a cluster in the web control panel
2. `terraform import digitalocean_kubernetes_cluster.development <id>`
**Terraform Configuration Files**
```hcl
resource "digitalocean_kubernetes_cluster" "development" {
name = "dev-cluster"
region = var.region
version = "1.22.13-do.0"
vpc_uuid = digitalocean_vpc.development.id
tags = concat(var.default_tags, [])
auto_upgrade = true
surge_upgrade = true
ha = true
maintenance_policy {
start_time = "04:00"
day = "sunday"
}
node_pool {
name = "g-2vcpu-8gb"
size = "g-2vcpu-8gb"
node_count = 2
}
}
```
<!--
# 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.-->
**Terraform version**
<!-- 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**
https://gist.github.com/mkroman/f197e45414250db2935fdbf834c55e53
**Important Factoids**
The cluster is running DOKS v1.22.13-do.0 and has 2 node pools.
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/892/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/892/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/891 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/891/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/891/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/891/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/891 | 1,424,456,736 | I_kwDOBZHfyM5U53wg | 891 | digitalocean_database_cluster: redis version ignored | {
"login": "leitmedium",
"id": 305663,
"node_id": "MDQ6VXNlcjMwNTY2Mw==",
"avatar_url": "https://avatars.githubusercontent.com/u/305663?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leitmedium",
"html_url": "https://github.com/leitmedium",
"followers_url": "https://api.github.com/users/leitmedium/followers",
"following_url": "https://api.github.com/users/leitmedium/following{/other_user}",
"gists_url": "https://api.github.com/users/leitmedium/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leitmedium/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leitmedium/subscriptions",
"organizations_url": "https://api.github.com/users/leitmedium/orgs",
"repos_url": "https://api.github.com/users/leitmedium/repos",
"events_url": "https://api.github.com/users/leitmedium/events{/privacy}",
"received_events_url": "https://api.github.com/users/leitmedium/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 @leitmedium,\r\n\r\nThis is the expected behavior. DigitalOcean no longer supports creating Redis v6 clusters and will be auto updating existing v6 clusters to v7. \r\n\r\nhttps://docs.digitalocean.com/release-notes/redis/#2022-09-07"
] | 2022-10-26T17:43:22 | 2022-10-27T17:57:05 | 2022-10-27T17:57:05 | NONE | null | # Bug Report
<!-- Include as much of the following details with your bug report: -->
---
## Describe the bug
When deploying a redis database cluster the version setting gets ignored.
### Affected Resource(s)
- digitalocean_database_cluster
### Expected Behavior
When a dedicated version, e.g. "6" is being set, deploy the correct version.
### Actual Behavior
Instead of version 6 the version 7 has been deployed. Multiple runs of terraform did not change that.
### Steps to Reproduce
<!-- Please list the steps required to reproduce the issue, for example:
1. `terraform apply` -->
**Terraform Configuration Files**
```
resource "digitalocean_database_cluster" "redis-staging" {
name = "redis-staging"
engine = "redis"
version = "6"
size = "db-s-1vcpu-1gb"
node_count = "1"
region = "fra1"
private_network_uuid = digitalocean_vpc.vpc-kubernetes-staging-fra1.id
tags = [ "staging" ]
}
```
**Terraform version**
```
Terraform v1.2.5
on linux_amd64
+ provider registry.terraform.io/cloudflare/cloudflare v3.26.0
+ provider registry.terraform.io/digitalocean/digitalocean v2.23.0
+ provider registry.terraform.io/gavinbunney/kubectl v1.14.0
+ provider registry.terraform.io/hashicorp/google v4.41.0
+ provider registry.terraform.io/hashicorp/google-beta v4.41.0
+ provider registry.terraform.io/hashicorp/helm v2.7.1
+ provider registry.terraform.io/hashicorp/kubernetes v2.14.0
Your version of Terraform is out of date! The latest version
is 1.3.3. You can update by downloading from https://www.terraform.io/downloads.html
```
**References**
The version of redis had been a topic here in the past: https://github.com/digitalocean/terraform-provider-digitalocean/issues/343
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/891/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/891/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/890 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/890/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/890/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/890/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/890 | 1,422,811,938 | PR_kwDOBZHfyM5BhLl5 | 890 | Fix reference in documentation of `project_resources` | {
"login": "Lavode",
"id": 1827358,
"node_id": "MDQ6VXNlcjE4MjczNTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/1827358?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Lavode",
"html_url": "https://github.com/Lavode",
"followers_url": "https://api.github.com/users/Lavode/followers",
"following_url": "https://api.github.com/users/Lavode/following{/other_user}",
"gists_url": "https://api.github.com/users/Lavode/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Lavode/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Lavode/subscriptions",
"organizations_url": "https://api.github.com/users/Lavode/orgs",
"repos_url": "https://api.github.com/users/Lavode/repos",
"events_url": "https://api.github.com/users/Lavode/events{/privacy}",
"received_events_url": "https://api.github.com/users/Lavode/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-10-25T17:20:39 | 2022-10-25T17:35:56 | 2022-10-25T17:35:56 | CONTRIBUTOR | null | The `digitalocean_project_resources` resource was referencing a non-existing data source. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/890/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/890/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/890",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/890",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/890.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/890.patch",
"merged_at": "2022-10-25T17:35:56"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/889 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/889/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/889/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/889/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/889 | 1,406,261,741 | I_kwDOBZHfyM5T0dnt | 889 | Feature Request: add `default_tags` to the provider | {
"login": "lemeurherve",
"id": 91831478,
"node_id": "U_kgDOBXk8tg",
"avatar_url": "https://avatars.githubusercontent.com/u/91831478?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lemeurherve",
"html_url": "https://github.com/lemeurherve",
"followers_url": "https://api.github.com/users/lemeurherve/followers",
"following_url": "https://api.github.com/users/lemeurherve/following{/other_user}",
"gists_url": "https://api.github.com/users/lemeurherve/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lemeurherve/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lemeurherve/subscriptions",
"organizations_url": "https://api.github.com/users/lemeurherve/orgs",
"repos_url": "https://api.github.com/users/lemeurherve/repos",
"events_url": "https://api.github.com/users/lemeurherve/events{/privacy}",
"received_events_url": "https://api.github.com/users/lemeurherve/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 | [] | 2022-10-12T13:52:27 | 2022-10-12T13:52:27 | null | NONE | null | ### Is your feature request related to a problem? Please describe.
I'm always frustrated when I have to add tags to all resources.
### Describe the solution you'd like
I'd like something like `default_tags` to be added to the provider, like [this on the AWS one](https://www.hashicorp.com/blog/default-tags-in-the-terraform-aws-provider).
### Describe alternatives you've considered
🤷
### Additional context
N/A | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/889/reactions",
"total_count": 3,
"+1": 3,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/889/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/888 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/888/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/888/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/888/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/888 | 1,403,440,403 | I_kwDOBZHfyM5Tps0T | 888 | Terraform provider v2.23.0 was released but not published | {
"login": "dghubble",
"id": 2253428,
"node_id": "MDQ6VXNlcjIyNTM0Mjg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2253428?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dghubble",
"html_url": "https://github.com/dghubble",
"followers_url": "https://api.github.com/users/dghubble/followers",
"following_url": "https://api.github.com/users/dghubble/following{/other_user}",
"gists_url": "https://api.github.com/users/dghubble/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dghubble/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dghubble/subscriptions",
"organizations_url": "https://api.github.com/users/dghubble/orgs",
"repos_url": "https://api.github.com/users/dghubble/repos",
"events_url": "https://api.github.com/users/dghubble/events{/privacy}",
"received_events_url": "https://api.github.com/users/dghubble/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 | [
"cc @andrewsomething who performed the release",
"Thanks for flagging this. Looks like we somehow ended up with a \"release\" that only includes the source, not the binaries and signatures. Those ended up in a \"pre-release,\" both pointing at the same commit and tag.\r\n\r\n
<!-- 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. -->
### 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.-->
**Terraform version**
<!-- 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/888/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/888/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/887 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/887/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/887/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/887/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/887 | 1,393,747,440 | I_kwDOBZHfyM5TEuXw | 887 | Upgrading cluster to new patch version does nothing | {
"login": "juicemia",
"id": 4393425,
"node_id": "MDQ6VXNlcjQzOTM0MjU=",
"avatar_url": "https://avatars.githubusercontent.com/u/4393425?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/juicemia",
"html_url": "https://github.com/juicemia",
"followers_url": "https://api.github.com/users/juicemia/followers",
"following_url": "https://api.github.com/users/juicemia/following{/other_user}",
"gists_url": "https://api.github.com/users/juicemia/gists{/gist_id}",
"starred_url": "https://api.github.com/users/juicemia/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/juicemia/subscriptions",
"organizations_url": "https://api.github.com/users/juicemia/orgs",
"repos_url": "https://api.github.com/users/juicemia/repos",
"events_url": "https://api.github.com/users/juicemia/events{/privacy}",
"received_events_url": "https://api.github.com/users/juicemia/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 | [
"Just to debug some more I went through the manual upgrade process up until I got the cluster to version `1.23.10-do.0`. I then bumped the version in the Terraform to version `1.24.4-do.0` which is the latest available version and I got the same behavior. `terraform apply` applies the plan to bump the cluster versi... | 2022-10-02T12:20:41 | 2023-03-08T17:33:37 | null | 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 changing the Kubernetes version from `1.21.9-do.0` to `1.22.13-do.0`, Terraform generates the following plan:
```
# module.kubernetes_cluster[0].digitalocean_kubernetes_cluster.app will be updated in-place
~ resource "digitalocean_kubernetes_cluster" "app" {
id = "ce51ac35-9dd4-4a35-88c5-45581ada98f5"
name = "app-prod"
tags = []
~ version = "1.21.9-do.0" -> "1.22.13-do.0"
# (14 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
```
After successful apply, checking the Kubernetes version using `doctl` shows that the version is still `1.21.9-do.0`, and running
`terraform plan` again generates the same plan as before.
### Affected Resource(s)
<!-- 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. -->
- digitalocean_kubernetes_cluster
### Expected Behavior
<!-- What should have happened? -->
Kubernetes cluster should be on version `1.22.13-do.0`.
### Actual Behavior
<!-- What actually happened? -->
Kubernetes cluster stayed on version `1.21.9-do.0`.
### Steps to Reproduce
<!-- Please list the steps required to reproduce the issue, for example:
1. `terraform apply` -->
1. `terraform plan` after changing the version of the Kubernetes cluster in Terraform.
2. `terraform apply`
3. Check cluster using DO, try creating a plan again.
**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.-->
```
resource "digitalocean_kubernetes_cluster" "app" {
name = var.name
region = var.region
version = "1.22.13-do.0"
vpc_uuid = var.vpc_id
node_pool {
name = "primary"
size = "s-1vcpu-2gb"
node_count = var.node_count
}
}
```
**Terraform version**
<!-- 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.2.5
on darwin_arm64
+ provider registry.terraform.io/digitalocean/digitalocean v2.17.1
+ provider registry.terraform.io/hashicorp/aws v4.4.0
```
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/887/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/887/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/886 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/886/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/886/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/886/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/886 | 1,393,459,233 | PR_kwDOBZHfyM4__dL- | 886 | spaces: add endpoint attribute to bucket | {
"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
} | [] | closed | false | null | [] | null | [
"This resolves issue https://github.com/digitalocean/terraform-provider-digitalocean/issues/786",
"@andrewsomething "
] | 2022-10-01T16:09:42 | 2022-10-04T14:41:21 | 2022-10-04T14:41:21 | CONTRIBUTOR | null | This pull request adds an `endpoint` attribute to the `digitalocean_spaces_bucket` data source and resource.
What do we think about the attribute name and description?
```
endpoint: The FQDN of the bucket without the bucket name
```
Example terraform manifest with resource
```
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = ">= 2.22.3"
}
}
}
provider "digitalocean" {}
resource "digitalocean_spaces_bucket" "example" {
name = "unique-bucket-cc7bf683"
region = "nyc3"
}
output "bucket_attributes" {
value = digitalocean_spaces_bucket.example
}
```
Current output for `digitalocean_spaces_bucket` resource with `Terraform 1.3.1` and `terraform-provider-digitalocean_v2.22.3`
```
root@2d7700f3d983:/go/src/github.com/digitalocean/terraform-provider-digitalocean/examples/spaces# terraform plan -out tf.plan
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_spaces_bucket.example will be created
+ resource "digitalocean_spaces_bucket" "example" {
+ acl = "private"
+ bucket_domain_name = (known after apply)
+ force_destroy = false
+ id = (known after apply)
+ name = "unique-bucket-cc7bf683"
+ region = "nyc3"
+ urn = (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ bucket_attributes = {
+ acl = "private"
+ bucket_domain_name = (known after apply)
+ cors_rule = []
+ force_destroy = false
+ id = (known after apply)
+ lifecycle_rule = []
+ name = "unique-bucket-cc7bf683"
+ region = "nyc3"
+ urn = (known after apply)
+ versioning = []
}
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Saved the plan to: tf.plan
To perform exactly these actions, run the following command to apply:
terraform apply "tf.plan"
root@2d7700f3d983:/go/src/github.com/digitalocean/terraform-provider-digitalocean/examples/spaces# terraform apply -auto-approve tf.plan
digitalocean_spaces_bucket.example: Creating...
digitalocean_spaces_bucket.example: Still creating... [10s elapsed]
digitalocean_spaces_bucket.example: Still creating... [20s elapsed]
digitalocean_spaces_bucket.example: Creation complete after 30s [id=unique-bucket-cc7bf683]
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
Outputs:
bucket_attributes = {
"acl" = "private"
"bucket_domain_name" = "unique-bucket-cc7bf683.nyc3.digitaloceanspaces.com"
"cors_rule" = tolist([])
"force_destroy" = false
"id" = "unique-bucket-cc7bf683"
"lifecycle_rule" = tolist([])
"name" = "unique-bucket-cc7bf683"
"region" = "nyc3"
"urn" = "do:space:unique-bucket-cc7bf683"
"versioning" = tolist([
{
"enabled" = false
},
])
}
```
New resource output after change:
```
root@2d7700f3d983:/go/src/github.com/digitalocean/terraform-provider-digitalocean/examples/spaces# terraform plan -out tf.plan
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_spaces_bucket.example will be created
+ resource "digitalocean_spaces_bucket" "example" {
+ acl = "private"
+ bucket_domain_name = (known after apply)
+ endpoint = (known after apply)
+ force_destroy = false
+ id = (known after apply)
+ name = "unique-bucket-cc7bf683"
+ region = "nyc3"
+ urn = (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ bucket_attributes = {
+ acl = "private"
+ bucket_domain_name = (known after apply)
+ cors_rule = []
+ endpoint = (known after apply)
+ force_destroy = false
+ id = (known after apply)
+ lifecycle_rule = []
+ name = "unique-bucket-cc7bf683"
+ region = "nyc3"
+ urn = (known after apply)
+ versioning = []
}
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Saved the plan to: tf.plan
To perform exactly these actions, run the following command to apply:
terraform apply "tf.plan"
root@2d7700f3d983:/go/src/github.com/digitalocean/terraform-provider-digitalocean/examples/spaces# terraform apply -auto-approve tf.plan
digitalocean_spaces_bucket.example: Creating...
digitalocean_spaces_bucket.example: Still creating... [10s elapsed]
digitalocean_spaces_bucket.example: Still creating... [20s elapsed]
digitalocean_spaces_bucket.example: Still creating... [30s elapsed]
digitalocean_spaces_bucket.example: Creation complete after 38s [id=unique-bucket-cc7bf683]
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
Outputs:
bucket_attributes = {
"acl" = "private"
"bucket_domain_name" = "unique-bucket-cc7bf683.nyc3.digitaloceanspaces.com"
"cors_rule" = tolist([])
"endpoint" = "nyc3.digitaloceanspaces.com"
"force_destroy" = false
"id" = "unique-bucket-cc7bf683"
"lifecycle_rule" = tolist([])
"name" = "unique-bucket-cc7bf683"
"region" = "nyc3"
"urn" = "do:space:unique-bucket-cc7bf683"
"versioning" = tolist([
{
"enabled" = false
},
])
}
```
Example terraform manifest with data source
```
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = ">= 2.22.3"
}
}
}
provider "digitalocean" {}
data "digitalocean_spaces_bucket" "example" {
name = "unique-bucket-cc7bf683"
region = "nyc3"
}
output "bucket_attributes" {
value = data.digitalocean_spaces_bucket.example
}
```
Current output for `digitalocean_spaces_bucket` data source with `Terraform 1.3.1` and `terraform-provider-digitalocean_v2.22.3`
```
root@2d7700f3d983:/go/src/github.com/digitalocean/terraform-provider-digitalocean/examples/spaces-data# terraform plan -out tf.plan
data.digitalocean_spaces_bucket.example: Reading...
data.digitalocean_spaces_bucket.example: Read complete after 5s [id=unique-bucket-cc7bf683]
Changes to Outputs:
+ bucket_attributes = {
+ bucket_domain_name = "unique-bucket-cc7bf683.nyc3.digitaloceanspaces.com"
+ id = "unique-bucket-cc7bf683"
+ name = "unique-bucket-cc7bf683"
+ region = "nyc3"
+ urn = "do:space:unique-bucket-cc7bf683"
}
You can apply this plan to save these new output values to the Terraform state, without changing any real infrastructure.
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Saved the plan to: tf.plan
To perform exactly these actions, run the following command to apply:
terraform apply "tf.plan"
root@2d7700f3d983:/go/src/github.com/digitalocean/terraform-provider-digitalocean/examples/spaces-data# terraform apply -auto-approve tf.plan
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
Outputs:
bucket_attributes = {
"bucket_domain_name" = "unique-bucket-cc7bf683.nyc3.digitaloceanspaces.com"
"id" = "unique-bucket-cc7bf683"
"name" = "unique-bucket-cc7bf683"
"region" = "nyc3"
"urn" = "do:space:unique-bucket-cc7bf683"
}
```
New data source output after change:
```
root@2d7700f3d983:/go/src/github.com/digitalocean/terraform-provider-digitalocean/examples/spaces-data# terraform plan -out tf.plan
data.digitalocean_spaces_bucket.example: Reading...
data.digitalocean_spaces_bucket.example: Read complete after 5s [id=unique-bucket-cc7bf683]
Changes to Outputs:
+ bucket_attributes = {
+ bucket_domain_name = "unique-bucket-cc7bf683.nyc3.digitaloceanspaces.com"
+ endpoint = "nyc3.digitaloceanspaces.com"
+ id = "unique-bucket-cc7bf683"
+ name = "unique-bucket-cc7bf683"
+ region = "nyc3"
+ urn = "do:space:unique-bucket-cc7bf683"
}
You can apply this plan to save these new output values to the Terraform state, without changing any real infrastructure.
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Saved the plan to: tf.plan
To perform exactly these actions, run the following command to apply:
terraform apply "tf.plan"
root@2d7700f3d983:/go/src/github.com/digitalocean/terraform-provider-digitalocean/examples/spaces-data# terraform apply -auto-approve tf.plan
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
Outputs:
bucket_attributes = {
"bucket_domain_name" = "unique-bucket-cc7bf683.nyc3.digitaloceanspaces.com"
"endpoint" = "nyc3.digitaloceanspaces.com"
"id" = "unique-bucket-cc7bf683"
"name" = "unique-bucket-cc7bf683"
"region" = "nyc3"
"urn" = "do:space:unique-bucket-cc7bf683"
}
```
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/886/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 1,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/886/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/886",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/886",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/886.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/886.patch",
"merged_at": "2022-10-04T14:41:21"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/885 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/885/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/885/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/885/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/885 | 1,387,998,309 | PR_kwDOBZHfyM4_tRjT | 885 | Prep v2.23.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-09-27T15:57:08 | 2022-09-27T21:26:21 | 2022-09-27T21:26:20 | MEMBER | null | null | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/885/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/885/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/885",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/885",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/885.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/885.patch",
"merged_at": "2022-09-27T21:26:20"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/884 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/884/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/884/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/884/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/884 | 1,384,386,696 | PR_kwDOBZHfyM4_hzYZ | 884 | Upgrade to Go 1.19 | {
"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-09-23T22:36:51 | 2022-09-26T14:26:29 | 2022-09-26T14:26:29 | MEMBER | null | This upgrades to Go 1.19 and removes testing for 1.16.x, 1.17.x following our policy of supporting to two most recent releases. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/884/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/884/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/884",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/884",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/884.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/884.patch",
"merged_at": "2022-09-26T14:26:28"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/883 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/883/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/883/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/883/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/883 | 1,384,370,685 | PR_kwDOBZHfyM4_hvsb | 883 | apps: Support depoly on push to DOCR. | {
"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 | [
"As godo has added generics, the tests won't pass on 1.16 and 1.17. This will need to be merged first: https://github.com/digitalocean/terraform-provider-digitalocean/pull/884"
] | 2022-09-23T22:25:53 | 2022-09-27T15:52:08 | 2022-09-27T15:52:07 | MEMBER | null | This is does not include an acceptance test. It is non-trivial to test as it requires interacting with Docker to build and push an image to a DOCR registry. I've tested this, but additional manual verification would be appreciated. Here's an example config:
```hcl
resource "digitalocean_app" "docr-push-test" {
spec {
name = "docr-push-test"
region = "nyc"
service {
name = "docr-push-test"
instance_count = 1
instance_size_slug = "basic-xxs"
image {
deploy_on_push {
enabled = true
}
registry_type = "DOCR"
repository = "<image repository name>"
tag = "latest"
}
}
}
}
``` | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/883/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/883/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/883",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/883",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/883.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/883.patch",
"merged_at": "2022-09-27T15:52:07"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/882 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/882/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/882/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/882/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/882 | 1,380,575,802 | PR_kwDOBZHfyM4_VVAD | 882 | Add SOA as possible record type | {
"login": "Nosmoht",
"id": 6696043,
"node_id": "MDQ6VXNlcjY2OTYwNDM=",
"avatar_url": "https://avatars.githubusercontent.com/u/6696043?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Nosmoht",
"html_url": "https://github.com/Nosmoht",
"followers_url": "https://api.github.com/users/Nosmoht/followers",
"following_url": "https://api.github.com/users/Nosmoht/following{/other_user}",
"gists_url": "https://api.github.com/users/Nosmoht/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Nosmoht/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Nosmoht/subscriptions",
"organizations_url": "https://api.github.com/users/Nosmoht/orgs",
"repos_url": "https://api.github.com/users/Nosmoht/repos",
"events_url": "https://api.github.com/users/Nosmoht/events{/privacy}",
"received_events_url": "https://api.github.com/users/Nosmoht/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"Don't know what to do to make `acceptance` test green as it was canceled. Could someone please give me some advice?"
] | 2022-09-21T08:56:18 | 2022-09-26T08:19:50 | 2022-09-21T14:32:29 | CONTRIBUTOR | null | Add `SOA` as possible record type.
Without it it's not possible to manage `SOA` records as the following error would be raised.
```shell
Error: expected type to be one of [A AAAA CAA CNAME MX NS TXT SRV], got SOA
``` | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/882/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/882/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/882",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/882",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/882.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/882.patch",
"merged_at": "2022-09-21T14:32:29"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/881 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/881/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/881/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/881/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/881 | 1,378,695,117 | I_kwDOBZHfyM5SLTfN | 881 | `digitalocean_certificate.id` does not match `doctl compute certificate list` | {
"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": 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 @unredundant,\r\n\r\nUnfortunately, the UUID of a certificate is not an appropriate ID for a Terraform resource. Terraform requires that the ID be stable while Let's Encrypt certificates change their ID when they are renewed. Using the UUID would lead to drift, causing the Terraform wanting to recreate the cert... | 2022-09-20T01:23:16 | 2022-09-20T15:41:53 | 2022-09-20T13:22:15 | NONE | null | Hey 👋 this is either a bug, or at minimum quite unintuitive.
When you run `doctl compute certificate list`, it calls `ID` what the `digitalocean_certificate` resource refers to as `uuid`. And when you look at what `digitalocean_certificate.id` is, it is equivalent to what `doctl compute certificate list` refers to as `name`.
IMO, `digitalocean_certificate.uuid` should be deprecated, and instead the uuid should just be the value for `digitalocean_certificate.id`. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/881/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/881/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/880 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/880/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/880/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/880/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/880 | 1,377,241,201 | I_kwDOBZHfyM5SFwhx | 880 | Create spaces access key via provider | {
"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 | [
"I second this... looks like it's not supported in the API?\r\n\r\nhttps://github.com/digitalocean/doctl/issues/936",
"That's correct. This can not currently be done in Terraform as the API does not support it. We've passed the feature request on to the Spaces team here internally. ",
"Spaces API doesn't seem t... | 2022-09-19T00:54:24 | 2023-04-16T22:14:27 | null | NONE | null | Essentially reopening #559
In my personal case, I would like to create a bucket that is used purely for Thanos storage, provision thanos itself via helm, and have access keys for the bucket programmatically provisioned and added to the helm yaml values all inside terraform. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/880/reactions",
"total_count": 7,
"+1": 7,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/880/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/879 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/879/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/879/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/879/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/879 | 1,376,457,497 | PR_kwDOBZHfyM4_IE8G | 879 | droplets: Region is no longer a required value. | {
"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-09-16T20:50:09 | 2022-09-20T16:39:28 | 2022-09-20T16:39:27 | MEMBER | null | null | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/879/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/879/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/879",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/879",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/879.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/879.patch",
"merged_at": "2022-09-20T16:39:27"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/878 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/878/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/878/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/878/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/878 | 1,365,872,387 | I_kwDOBZHfyM5RaY8D | 878 | Change `id` value of `digitalocean_database_replica` to match replica UUID | {
"login": "timkrins",
"id": 531798,
"node_id": "MDQ6VXNlcjUzMTc5OA==",
"avatar_url": "https://avatars.githubusercontent.com/u/531798?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/timkrins",
"html_url": "https://github.com/timkrins",
"followers_url": "https://api.github.com/users/timkrins/followers",
"following_url": "https://api.github.com/users/timkrins/following{/other_user}",
"gists_url": "https://api.github.com/users/timkrins/gists{/gist_id}",
"starred_url": "https://api.github.com/users/timkrins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/timkrins/subscriptions",
"organizations_url": "https://api.github.com/users/timkrins/orgs",
"repos_url": "https://api.github.com/users/timkrins/repos",
"events_url": "https://api.github.com/users/timkrins/events{/privacy}",
"received_events_url": "https://api.github.com/users/timkrins/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'm currently having to hardcode the id of my replica since there doesn't seem to be any way to get it from Terraform at all (I tried fetching it from the `digitalocean_database_replica` data source as a workout around). `doctl` returns the UUID in the `id` field as expected.",
"Hi there, \r\n\r\nThank you for b... | 2022-09-08T09:19:32 | 2023-03-21T14:47:40 | 2023-01-30T20:36:57 | NONE | null | ### Is your feature request related to a problem? Please describe.
<!-- A clear and concise description of what the problem is.
Ex. I'm always frustrated when [...] -->
The `id` that is returned by the current `digitalocean_database_replica` resource is generated (in `makeReplicaId`) rather than fetched from the DigitalOcean API.
The new `id` field was added to the API yesterday, under
`{"replicas":[{"id" ...` at `https://api.digitalocean.com/v2/databases/{cluster_id}/replicas`
It has not yet landed in the public API documentation, but it is there.
### Describe the solution you'd like
<!-- A clear and concise description of what you want to happen. -->
The `digitalocean_database_replica` `id` field should track the DigitalOcean replica UUID so that replicas can be used with the `digitalocean_database_firewall` provider.
### Describe alternatives you've considered
<!-- A clear and concise description of any alternative solutions or features you've
considered. -->
Not sure of any other alternative.
### 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) -->
https://github.com/digitalocean/terraform-provider-digitalocean/issues/224
https://github.com/digitalocean/terraform-provider-digitalocean/issues/639
https://github.com/digitalocean/terraform-provider-digitalocean/issues/799 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/878/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/878/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/877 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/877/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/877/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/877/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/877 | 1,365,191,036 | PR_kwDOBZHfyM4-ie8h | 877 | Prep v2.2.3 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-09-07T21:11:23 | 2022-09-12T17:58:38 | 2022-09-12T17:58:37 | MEMBER | null | null | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/877/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/877/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/877",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/877",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/877.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/877.patch",
"merged_at": "2022-09-12T17:58:37"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/876 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/876/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/876/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/876/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/876 | 1,364,368,769 | I_kwDOBZHfyM5RUp2B | 876 | cannot create redis cluster user using terraform | {
"login": "atmosx",
"id": 424885,
"node_id": "MDQ6VXNlcjQyNDg4NQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/424885?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/atmosx",
"html_url": "https://github.com/atmosx",
"followers_url": "https://api.github.com/users/atmosx/followers",
"following_url": "https://api.github.com/users/atmosx/following{/other_user}",
"gists_url": "https://api.github.com/users/atmosx/gists{/gist_id}",
"starred_url": "https://api.github.com/users/atmosx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/atmosx/subscriptions",
"organizations_url": "https://api.github.com/users/atmosx/orgs",
"repos_url": "https://api.github.com/users/atmosx/repos",
"events_url": "https://api.github.com/users/atmosx/events{/privacy}",
"received_events_url": "https://api.github.com/users/atmosx/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 | [
"Apparently, the API doesn't support Redis user creation either 🤔 - is this by design?",
"That is correct. DigitalOcean's managed Redis does not currently support any user management via the API or control panel. That said, a 500 Server Error is not a very helpful response. I'll raise this with the team internal... | 2022-09-07T09:28:18 | 2022-09-07T14:00:23 | 2022-09-07T14:00:22 | NONE | null | # Bug Report
The [database_user](https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/database_user) resource cannot create Redis users. Here's the code sample:
```
resource "digitalocean_database_user" "new_relic_user_dev" {
cluster_id = digitalocean_database_cluster.redis_router_development.id
name = "newrelic"
}
```
And the error when running `apply`:
```
digitalocean_database_user.new_relic_user_dev: Creating...
│ Error: Error creating Database User: POST https://api.digitalocean.com/v2/databases/xxx-9c44-4078-xxx/users: 500 (request "a51168e1-a618-45a5-af8c-xxx") Server Error
│ with digitalocean_database_user.new_relic_user_dev,
│ on router-redis.tf line 29, in resource "digitalocean_database_user" "new_relic_user_dev":
│ 29: resource "digitalocean_database_user" "new_relic_user_dev" {
```
### Affected Resource(s)
- digitalocean_database_user
- digitalocean_database_cluster
### Expected Behavior
Create `newrelic` user.
### Actual Behavior
API reports 500 error.
### Steps to Reproduce
See provided code.
**Terraform version**
Terraform v1.1.7
+ provider registry.terraform.io/digitalocean/digitalocean v2.14.0
+ provider registry.terraform.io/dopplerhq/doppler v1.1.2
+ provider registry.terraform.io/hashicorp/random v3.4.2
ps. If this behaviour is expected, then it should be mentioned explicitly in [digitalocean_database_user](https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/database_user) page.
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/876/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/876/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/874 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/874/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/874/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/874/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/874 | 1,357,886,062 | PR_kwDOBZHfyM4-KQwQ | 874 | Prep 2.22.2 release | {
"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 | [] | 2022-08-31T21:21:02 | 2022-08-31T22:10:48 | 2022-08-31T22:10:47 | CONTRIBUTOR | null | null | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/874/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/874/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/874",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/874",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/874.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/874.patch",
"merged_at": "2022-08-31T22:10:47"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/873 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/873/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/873/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/873/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/873 | 1,356,165,726 | PR_kwDOBZHfyM4-EZgc | 873 | Suppress diffs on forced Redis version upgrades | {
"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 | [
"May want to generalize the test `TestAccDigitalOceanDatabaseCluster_oldRedisVersion` to accommodate all version changes.",
"I switched this to a Draft PR so I can look into integrating a call to the [databases_list_operations](https://docs.digitalocean.com/reference/api/api-reference/#operation/databases_list_op... | 2022-08-30T18:47:18 | 2022-08-31T20:30:04 | 2022-08-31T20:30:03 | CONTRIBUTOR | null | To ensure customer Redis instances do not get destroyed and recreated after their Redis clusters are forced to upgrade, this change updates the `DiffSuppressFunc` logic for Database Cluster resources to suppress diffs when the DB engine is `redis` and `version` is newer on the remote resource than what is specified in the configuration.
This should also help us avoid having to make this change for forced upgrades in the future.
for APICLI-1526 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/873/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/873/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/873",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/873",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/873.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/873.patch",
"merged_at": "2022-08-31T20:30:03"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/871 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/871/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/871/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/871/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/871 | 1,350,769,753 | PR_kwDOBZHfyM49yfMH | 871 | docs: fix app spec link | {
"login": "jkpe",
"id": 16779171,
"node_id": "MDQ6VXNlcjE2Nzc5MTcx",
"avatar_url": "https://avatars.githubusercontent.com/u/16779171?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jkpe",
"html_url": "https://github.com/jkpe",
"followers_url": "https://api.github.com/users/jkpe/followers",
"following_url": "https://api.github.com/users/jkpe/following{/other_user}",
"gists_url": "https://api.github.com/users/jkpe/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jkpe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jkpe/subscriptions",
"organizations_url": "https://api.github.com/users/jkpe/orgs",
"repos_url": "https://api.github.com/users/jkpe/repos",
"events_url": "https://api.github.com/users/jkpe/events{/privacy}",
"received_events_url": "https://api.github.com/users/jkpe/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"Hey, @jkpe - Thanks a ton for this PR! 😄\r\n\r\nWould you please shoot me an email when you get a chance?\r\nmcowley at digitalocean dot com 🎉"
] | 2022-08-25T11:46:05 | 2022-08-31T12:40:20 | 2022-08-25T19:05:24 | CONTRIBUTOR | null | current link 404s | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/871/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/871/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/871",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/871",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/871.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/871.patch",
"merged_at": "2022-08-25T19:05:24"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/870 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/870/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/870/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/870/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/870 | 1,348,399,430 | I_kwDOBZHfyM5QXvFG | 870 | Add ability to setup Billing Alerts from Terraform | {
"login": "loganmarchione",
"id": 4955337,
"node_id": "MDQ6VXNlcjQ5NTUzMzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/4955337?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/loganmarchione",
"html_url": "https://github.com/loganmarchione",
"followers_url": "https://api.github.com/users/loganmarchione/followers",
"following_url": "https://api.github.com/users/loganmarchione/following{/other_user}",
"gists_url": "https://api.github.com/users/loganmarchione/gists{/gist_id}",
"starred_url": "https://api.github.com/users/loganmarchione/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/loganmarchione/subscriptions",
"organizations_url": "https://api.github.com/users/loganmarchione/orgs",
"repos_url": "https://api.github.com/users/loganmarchione/repos",
"events_url": "https://api.github.com/users/loganmarchione/events{/privacy}",
"received_events_url": "https://api.github.com/users/loganmarchione/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 | [] | 2022-08-23T18:47:29 | 2022-08-23T19:34:26 | null | NONE | null | ### Is your feature request related to a problem? Please describe.
The AWS Terraform provider has a resource called `aws_budgets_budget` that allows you to setup a budget (e.g., $5/month) and get a notification (e.g., email) when your usage goes over that amount.
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/budgets_budget
### Describe the solution you'd like
[DigitalOcean has this feature](https://docs.digitalocean.com/products/billing/billing-alerts/), but it's not configurable via Terraform. I'm requesting it be added to the provider.
### Describe alternatives you've considered
I don't see an API endpoint for this feature (where can I make a feature request?), but I'm guessing you could use this and grab the latest invoice and the amount?
https://docs.digitalocean.com/reference/api/api-reference/#operation/invoices_list
### 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) -->
N/A
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/870/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/870/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/869 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/869/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/869/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/869/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/869 | 1,347,936,861 | I_kwDOBZHfyM5QV-Jd | 869 | Terraform thinks there are changes due to comparing encrypted and plain environment variables for the app platform resources | {
"login": "snack-0verflow",
"id": 36766508,
"node_id": "MDQ6VXNlcjM2NzY2NTA4",
"avatar_url": "https://avatars.githubusercontent.com/u/36766508?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/snack-0verflow",
"html_url": "https://github.com/snack-0verflow",
"followers_url": "https://api.github.com/users/snack-0verflow/followers",
"following_url": "https://api.github.com/users/snack-0verflow/following{/other_user}",
"gists_url": "https://api.github.com/users/snack-0verflow/gists{/gist_id}",
"starred_url": "https://api.github.com/users/snack-0verflow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/snack-0verflow/subscriptions",
"organizations_url": "https://api.github.com/users/snack-0verflow/orgs",
"repos_url": "https://api.github.com/users/snack-0verflow/repos",
"events_url": "https://api.github.com/users/snack-0verflow/events{/privacy}",
"received_events_url": "https://api.github.com/users/snack-0verflow/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... | closed | false | null | [] | null | [
"We have the same behaviour on using Pulumi app deployments. Pulumi is using the terraform provider for doing these activities --> https://github.com/pulumi/pulumi-digitalocean/issues/308.\r\n\r\nSo this seems that it is the same bug.",
"Yes,\r\nI'm also facing the same issue.\r\nIt's really quite annoying, since... | 2022-08-23T13:11:21 | 2023-09-13T13:30:43 | 2023-09-13T13:30: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
<!-- A clear and concise description of what the bug is. -->
The environment variable is a secret and will be encrypted, once applied the value the encrypted value will always be different to the encrypted value. Which will cause changes to occur with `terraform plan`.
I'm just curious has anyone got a suggest for this? (Avoid unchanged encrypted values to not cause changes, due to comparison to provided value and applied value from digitalocean as they encrypt it for you)
### 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? -->
No changes to environment vars, expect no changes to `terraform plan`
### Actual Behavior
<!-- What actually happened? -->
Digitalocean can encrypt the value which causes value to be different to the unencrypted value provided. This results in `terraform plan` always thinks there are changes to the environment variables (ones i'm attaching to the service within digitalocean app)
### Steps to Reproduce
<!-- Please list the steps required to reproduce the issue, for example:
1. `terraform apply` -->
- Create a terraform setup with 1 `digitalocean_app` with secret environment variables
- execute `terraform plan` & `terraform apply`
- execute `terraform plan` again (it will think you have changes)
**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.-->
```terraform
resource "digitalocean_app" "service" {
spec {
name = "App"
region = var.app.hosting.region
service {
env {
key = "DATABASE_HOST"
value = var.app.database.cluster.host
type = "SECRET"
scope = "RUN_AND_BUILD_TIME"
}
}
}
```
**Terraform version**
<!-- 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/869/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/869/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/868 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/868/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/868/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/868/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/868 | 1,341,957,867 | PR_kwDOBZHfyM49VXmF | 868 | make user optional in db connection pool, update acc tests | {
"login": "DMW2151",
"id": 22375448,
"node_id": "MDQ6VXNlcjIyMzc1NDQ4",
"avatar_url": "https://avatars.githubusercontent.com/u/22375448?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DMW2151",
"html_url": "https://github.com/DMW2151",
"followers_url": "https://api.github.com/users/DMW2151/followers",
"following_url": "https://api.github.com/users/DMW2151/following{/other_user}",
"gists_url": "https://api.github.com/users/DMW2151/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DMW2151/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DMW2151/subscriptions",
"organizations_url": "https://api.github.com/users/DMW2151/orgs",
"repos_url": "https://api.github.com/users/DMW2151/repos",
"events_url": "https://api.github.com/users/DMW2151/events{/privacy}",
"received_events_url": "https://api.github.com/users/DMW2151/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-08-17T15:38:19 | 2022-08-17T21:58:07 | 2022-08-17T21:58:07 | CONTRIBUTOR | null | The DO API allows DB pools to be created without a user specified. This PR modifies the `digitalocean_database_connection_pool` resource and removes user as a required field. Without user specified, pool uses the connection credentials of the inbound user.
Adds new test case for creates w.o specified user, `TestAccDigitalOceanDatabaseConnectionPool_InboundUser`, and modifies `TestAccDigitalOceanDatabaseConnectionPool_Basic` to cover pool updates. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/868/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/868/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/868",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/868",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/868.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/868.patch",
"merged_at": "2022-08-17T21:58:07"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/867 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/867/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/867/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/867/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/867 | 1,341,804,314 | PR_kwDOBZHfyM49U2dq | 867 | droplet: Fix configurable timeouts for Droplet creates. | {
"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-08-17T13:53:43 | 2022-09-07T21:08:46 | 2022-09-07T21:08:45 | MEMBER | null | Follows up on https://github.com/digitalocean/terraform-provider-digitalocean/pull/839 After creating a Droplet, we're polling using both `waitForAction` and then `waitForDropletAttribute`. This is redundant and `waitForAction` does not currently support configurable timeouts. So configuring a create timeout is effectively ignored. This resolves the issue by removing the `waitForAction` call.
Fixes: https://github.com/digitalocean/terraform-provider-digitalocean/issues/828 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/867/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/867/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/867",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/867",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/867.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/867.patch",
"merged_at": "2022-09-07T21:08:45"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/866 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/866/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/866/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/866/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/866 | 1,340,519,601 | PR_kwDOBZHfyM49Qn_2 | 866 | Prep 2.22.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-08-16T15:21:16 | 2022-08-16T17:48:04 | 2022-08-16T17:48:04 | MEMBER | null | null | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/866/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/866/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/866",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/866",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/866.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/866.patch",
"merged_at": "2022-08-16T17:48:03"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/865 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/865/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/865/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/865/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/865 | 1,340,474,395 | PR_kwDOBZHfyM49QeZf | 865 | apps: Limit the number of deployments listed when polling. | {
"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-08-16T14:48:33 | 2022-08-16T15:20:29 | 2022-08-16T15:20:28 | MEMBER | null | This works around an issue with the App Platform API where the response body can be too large. We are only actually using the first deployment from the list, so we can use the default page size of 20 rather than 200 to prevent this. I've also removed the loop to prevent iterating through all deployments and using up API request quotas we only need the first one.
Fixes: https://github.com/digitalocean/terraform-provider-digitalocean/issues/864 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/865/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/865/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/865",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/865",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/865.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/865.patch",
"merged_at": "2022-08-16T15:20:28"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/864 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/864/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/864/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/864/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/864 | 1,340,094,114 | I_kwDOBZHfyM5P4Dai | 864 | terraform apply fails if digitalocean-api response gets to large | {
"login": "hwolffsns",
"id": 62595389,
"node_id": "MDQ6VXNlcjYyNTk1Mzg5",
"avatar_url": "https://avatars.githubusercontent.com/u/62595389?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwolffsns",
"html_url": "https://github.com/hwolffsns",
"followers_url": "https://api.github.com/users/hwolffsns/followers",
"following_url": "https://api.github.com/users/hwolffsns/following{/other_user}",
"gists_url": "https://api.github.com/users/hwolffsns/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwolffsns/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwolffsns/subscriptions",
"organizations_url": "https://api.github.com/users/hwolffsns/orgs",
"repos_url": "https://api.github.com/users/hwolffsns/repos",
"events_url": "https://api.github.com/users/hwolffsns/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwolffsns/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-08-16T09:49:38 | 2022-08-16T15:20:29 | 2022-08-16T15:20:29 | NONE | null | # Bug Report
terraform apply fails if digitalocean-api response gets to large.
## Describe the bug
Max response size terraform can handle is 4MB
Digitalocean returns larger response on a large number of previous deployments
https://api.digitalocean.com/v2/apps/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/deployments?per_page=200
-> received message larger than max (7328433 vs. 4194304)
### Affected Resource(s)
- digitalocean_app
### Expected Behavior
No error, api response that fits into terraform's limitation
### Actual Behavior
terraform apply breaks after about 60s, on the 5th to 6th api-call
### Steps to Reproduce
1. Many previous deployments?
2. `terraform apply`
**Terraform version**
- Terraform v1.2.3
- provider registry.terraform.io/digitalocean/digitalocean v2.21.0
**Panic Output**
Do you want to perform these actions in workspace "integration"?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
digitalocean_app.app[0]: Still modifying... [id=bd223a82-31e3-4c21-a44e-c06ef9d231b8, 10s elapsed]
digitalocean_app.app[0]: Still modifying... [id=bd223a82-31e3-4c21-a44e-c06ef9d231b8, 20s elapsed]
digitalocean_app.app[0]: Still modifying... [id=bd223a82-31e3-4c21-a44e-c06ef9d231b8, 30s elapsed]
digitalocean_app.app[0]: Still modifying... [id=bd223a82-31e3-4c21-a44e-c06ef9d231b8, 40s elapsed]
digitalocean_app.app[0]: Still modifying... [id=bd223a82-31e3-4c21-a44e-c06ef9d231b8, 50s elapsed]
╷
│ Error: Error trying to read app deployment state: GET https://api.digitalocean.com/v2/apps/bd223a82-31e3-4c21-a44e-c06ef9d231b8/deployments?per_page=200: 429 (request "2e9fc6c2-fbb3-46c3-8954-7386780abe06") grpc: received message larger than max (7328433 vs. 4194304)
│
│ with digitalocean_app.app[0],
│ on do-app.tf line 1, in resource "digitalocean_app" "app":
│ 1: resource "digitalocean_app" "app" {
│
╵
Operation failed: failed running terraform apply (exit 1)
## Additional context
<!-- Add any other context about the problem here. -->
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/864/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/864/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/863 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/863/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/863/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/863/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/863 | 1,339,546,315 | PR_kwDOBZHfyM49NYxi | 863 | release workflow: switch to crazy-max/ghaction-import-gpg@v5.0.0 | {
"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-08-15T21:44:14 | 2022-08-16T15:17:33 | 2022-08-16T15:17:32 | MEMBER | null | Fix broken release workflow by switching to `crazy-max/ghaction-import-gpg@v5.0.0` as per https://github.com/hashicorp/ghaction-import-gpg/issues/11#issuecomment-1185107410 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/863/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/863/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/863",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/863",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/863.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/863.patch",
"merged_at": "2022-08-16T15:17:32"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/862 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/862/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/862/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/862/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/862 | 1,339,300,033 | PR_kwDOBZHfyM49Mn-v | 862 | Prep 2.22.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-08-15T18:09:21 | 2022-08-15T21:32:27 | 2022-08-15T21:32:27 | MEMBER | null | null | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/862/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/862/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/862",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/862",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/862.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/862.patch",
"merged_at": "2022-08-15T21:32:27"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/861 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/861/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/861/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/861/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/861 | 1,336,628,360 | I_kwDOBZHfyM5Pq1SI | 861 | Creating certificate returns the name as id instead of the actual id | {
"login": "the-veloper",
"id": 4170944,
"node_id": "MDQ6VXNlcjQxNzA5NDQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/4170944?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/the-veloper",
"html_url": "https://github.com/the-veloper",
"followers_url": "https://api.github.com/users/the-veloper/followers",
"following_url": "https://api.github.com/users/the-veloper/following{/other_user}",
"gists_url": "https://api.github.com/users/the-veloper/gists{/gist_id}",
"starred_url": "https://api.github.com/users/the-veloper/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/the-veloper/subscriptions",
"organizations_url": "https://api.github.com/users/the-veloper/orgs",
"repos_url": "https://api.github.com/users/the-veloper/repos",
"events_url": "https://api.github.com/users/the-veloper/events{/privacy}",
"received_events_url": "https://api.github.com/users/the-veloper/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 @the-veloper,\r\n\r\nThis is the expected behavior and matches the documentation. Terraform's `id` attribute uses the certificate's name. If you need to access the automatically generated ID, you can do so with the `uuid` attribute.\r\n\r\nhttps://registry.terraform.io/providers/digitalocean/digitalocean/latest... | 2022-08-12T00:44:43 | 2022-08-12T15:26:27 | 2022-08-12T15:26: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
When creating a `digitalocean_certificate` resource I expect that the return result contains the ID of the certificate. Instead it returns the name.
### Affected Resource(s)
- digitalocean_certificate
### Expected Behavior
id_value of the resource matches the id of the resource.
### Actual Behavior
as you can see it returns id_value=e-terraform-auth-service-prod instead of the automatically generated id.
Terraform apply logs:
```
"@level":"info","@message":"digitalocean_certificate.auth-service-cert: Creation complete after 12s [id=le-terraform-auth-service-prod]","@module":"terraform.ui","@timestamp":"2022-08-12T00:38:17.024068Z","hook":{"resource":{"addr":"digitalocean_certificate.auth-service-cert","module":"","resource":"digitalocean_certificate.auth-service-cert","implied_provider":"digitalocean","resource_type":"digitalocean_certificate","resource_name":"auth-service-cert","resource_key":null},"action":"create","id_key":"id","id_value":"le-terraform-auth-service-prod","elapsed_seconds":12},"type":"apply_complete"}
{"@level":"info","@message":"Apply complete! Resources: 1 added, 0 changed, 0 destroyed.","@module":"terraform.ui","@timestamp":"2022-08-12T00:38:17.236605Z","changes":{"add":1,"change":0,"remove":0,"operation":"apply"},"type":"change_summary"}
{"@level":"info","@message":"Outputs: 0","@module":"terraform.ui","@timestamp":"2022-08-12T00:38:17.236699Z","outputs":{},"type":"outputs"}
````
### Steps to Reproduce
certificates.tf:
```
resource "digitalocean_certificate" "auth-service-cert" {
name = "le-terraform-auth-service-prod"
type = "lets_encrypt"
domains = ["auth.prod.mydomain.com"]
}
```
run `terraform apply`.
this will succeed, but return the resource name instead of the resource id. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/861/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/861/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/860 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/860/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/860/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/860/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/860 | 1,333,437,691 | PR_kwDOBZHfyM485ZN2 | 860 | Updating Project Resource to have "is_default" configurable | {
"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 | [
"seems like the acceptance test for this pr passed (TestAccDigitalOceanProject_CreateWithIsDefault) but a few others did not?",
"@danaelhe We're having issues with the acceptance tests and need to redesign the approach. So those are non-blocking right now.",
"For future reference, this is how to edit `is_defaul... | 2022-08-09T15:35:14 | 2022-08-15T16:46:30 | 2022-08-15T16:46:29 | MEMBER | null | (murked my previous PR #849 bc got into a hairy merge issue)
Per https://github.com/digitalocean/terraform-provider-digitalocean/issues/848.
@yordis had a great suggestion for allowing to provision digitalocean_project resource as "Default Project". Making "is_default" configurable. This means:
- You can initialize a new project to be the default.
- You can’t edit a project to no longer be default (400 (request "acb5906e-bf48-49e3") you must always have a default project) even if you have other projects, it won’t automatically assign another project to be default
- You can’t delete a project that is the default (^^)
- You must first assign another project to be default first before you can delete the old default project | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/860/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/860/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/860",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/860",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/860.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/860.patch",
"merged_at": "2022-08-15T16:46:29"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/859 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/859/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/859/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/859/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/859 | 1,330,558,644 | PR_kwDOBZHfyM48v4wg | 859 | chore: fix incorrect heading in bug template | {
"login": "artis3n",
"id": 6969296,
"node_id": "MDQ6VXNlcjY5NjkyOTY=",
"avatar_url": "https://avatars.githubusercontent.com/u/6969296?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/artis3n",
"html_url": "https://github.com/artis3n",
"followers_url": "https://api.github.com/users/artis3n/followers",
"following_url": "https://api.github.com/users/artis3n/following{/other_user}",
"gists_url": "https://api.github.com/users/artis3n/gists{/gist_id}",
"starred_url": "https://api.github.com/users/artis3n/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/artis3n/subscriptions",
"organizations_url": "https://api.github.com/users/artis3n/orgs",
"repos_url": "https://api.github.com/users/artis3n/repos",
"events_url": "https://api.github.com/users/artis3n/events{/privacy}",
"received_events_url": "https://api.github.com/users/artis3n/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2022-08-05T22:54:21 | 2022-08-06T01:33:10 | 2022-08-06T01:33:10 | MEMBER | null | Based on the context in the section and the earlier, larger heading for expected behavior, along with looking at older issues in the repo, I'm pretty sure this title is supposed to be "Terraform version." | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/859/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/859/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/859",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/859",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/859.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/859.patch",
"merged_at": "2022-08-06T01:33:10"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/858 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/858/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/858/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/858/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/858 | 1,330,557,700 | PR_kwDOBZHfyM48v4jl | 858 | chore: fix incorrect heading in bug template | {
"login": "artis3n",
"id": 6969296,
"node_id": "MDQ6VXNlcjY5NjkyOTY=",
"avatar_url": "https://avatars.githubusercontent.com/u/6969296?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/artis3n",
"html_url": "https://github.com/artis3n",
"followers_url": "https://api.github.com/users/artis3n/followers",
"following_url": "https://api.github.com/users/artis3n/following{/other_user}",
"gists_url": "https://api.github.com/users/artis3n/gists{/gist_id}",
"starred_url": "https://api.github.com/users/artis3n/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/artis3n/subscriptions",
"organizations_url": "https://api.github.com/users/artis3n/orgs",
"repos_url": "https://api.github.com/users/artis3n/repos",
"events_url": "https://api.github.com/users/artis3n/events{/privacy}",
"received_events_url": "https://api.github.com/users/artis3n/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"Oops this was supposed to be from a fork, hold"
] | 2022-08-05T22:51:45 | 2022-08-05T22:54:37 | 2022-08-05T22:52:14 | MEMBER | null | Based on the context in the section and the earlier, larger heading for expected behavior, along with looking at older issues in the repo, I'm pretty sure this title is supposed to be "Terraform version." | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/858/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/858/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/858",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/858",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/858.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/858.patch",
"merged_at": null
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/857 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/857/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/857/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/857/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/857 | 1,330,556,351 | I_kwDOBZHfyM5PTq2_ | 857 | changing the `droplet_agent` parameter does not impact digitalocean_droplet state | {
"login": "artis3n",
"id": 6969296,
"node_id": "MDQ6VXNlcjY5NjkyOTY=",
"avatar_url": "https://avatars.githubusercontent.com/u/6969296?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/artis3n",
"html_url": "https://github.com/artis3n",
"followers_url": "https://api.github.com/users/artis3n/followers",
"following_url": "https://api.github.com/users/artis3n/following{/other_user}",
"gists_url": "https://api.github.com/users/artis3n/gists{/gist_id}",
"starred_url": "https://api.github.com/users/artis3n/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/artis3n/subscriptions",
"organizations_url": "https://api.github.com/users/artis3n/orgs",
"repos_url": "https://api.github.com/users/artis3n/repos",
"events_url": "https://api.github.com/users/artis3n/events{/privacy}",
"received_events_url": "https://api.github.com/users/artis3n/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 | [] | 2022-08-05T22:48:17 | 2023-03-08T17:44:21 | null | MEMBER | 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. -->
After creating a `digitalocean_droplet` resource with the minimal required arguments, if I add `droplet_agent = false` to the resource, Terraform reports the resource state matches the configuration and performs no actions.
### Affected Resource(s)
<!-- Please list the resources, for example:
- digitalocean_droplet
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? -->
Flipping `droplet-agent` to `false` indicates a user does not want the agent running on their infrastructure. This is a systemd service the user can remove, but since that is out of the scope of Terraform, I think the better expected behavior when changing this parameter in the Terraform resource would be to mark the resource as tainted and therefore must be replaced, so the server can be recreated without the agent component.
### Actual Behavior
<!-- What actually happened? -->
`No changes. Your infrastructure matches the configuration.`
### 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.-->
```hcl
resource "digitalocean_droplet" "test" {
image = "ubuntu-22-04-x64"
name = "example"
region = "nyc3"
size = "s-1vcpu-1gb-amd"
# First run an apply without defining this parameter, then uncomment this line and run apply again
# droplet_agent = false
# For the purposes of this example code, just generating a random ssh key
ssh_keys = [digitalocean_ssh_key.test.fingerprint]
}
resource "digitalocean_ssh_key" "test" {
name = "random"
public_key = trimspace(tls_private_key.test.public_key_openssh)
}
resource "tls_private_key" "test" {
algorithm = "ED25519"
ecdsa_curve = "P256"
}
output "test_ip" {
value = digitalocean_droplet.test.ipv4_address
}
```
**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. -->
If `droplet_agent` was set to true or left to its default (true), the server is created, and then the parameter is set to `false`, the resource should be recreated.
```bash
terraform -v
Terraform v1.2.6
on linux_amd64
+ provider registry.terraform.io/digitalocean/digitalocean v2.21.0
+ provider registry.terraform.io/hashicorp/tls v3.4.0
```
**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/857/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/857/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/856 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/856/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/856/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/856/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/856 | 1,330,555,868 | I_kwDOBZHfyM5PTqvc | 856 | regression: `droplet_agent` is not honored for `digitalocean_droplet` resource | {
"login": "artis3n",
"id": 6969296,
"node_id": "MDQ6VXNlcjY5NjkyOTY=",
"avatar_url": "https://avatars.githubusercontent.com/u/6969296?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/artis3n",
"html_url": "https://github.com/artis3n",
"followers_url": "https://api.github.com/users/artis3n/followers",
"following_url": "https://api.github.com/users/artis3n/following{/other_user}",
"gists_url": "https://api.github.com/users/artis3n/gists{/gist_id}",
"starred_url": "https://api.github.com/users/artis3n/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/artis3n/subscriptions",
"organizations_url": "https://api.github.com/users/artis3n/orgs",
"repos_url": "https://api.github.com/users/artis3n/repos",
"events_url": "https://api.github.com/users/artis3n/events{/privacy}",
"received_events_url": "https://api.github.com/users/artis3n/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 | [
"Confirmed that `doctl compute droplet create ... --droplet-agent=false` works, so the backend APIs are doing the correct things. Notably, I noticed that `--droplet-agent false` did not work. I assume that distinction is causing some issue between https://github.com/digitalocean/terraform-provider-digitalocean/blob... | 2022-08-05T22:47:05 | 2022-08-08T15:44:26 | 2022-08-08T15:27:38 | MEMBER | 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. -->
The Droplet agent seems to be installed regardless of whether or not the `droplet_agent` argument is set to `true` or `false`.
### 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? -->
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`.
### Actual Behavior
<!-- What actually happened? -->
The Droplet Agent is installed even if the `droplet_agent` argument is set to `false`.
### Steps to Reproduce
<!-- Please list the steps required to reproduce the issue, for example:
1. `terraform apply` -->
1. Copy the below Terraform
2. Run `terraform apply`
3. SSH to the server
4. Run `systemctl status droplet-agent`
5. Observe the agent is still installed and is active

**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.-->
```hcl
resource "digitalocean_droplet" "test" {
image = "ubuntu-22-04-x64"
name = "example"
region = "nyc3"
size = "s-1vcpu-1gb-amd"
droplet_agent = false
# For the purposes of this example code, just generating a random ssh key.
# Use your own fingerprint to SSH in and verify the droplet agent service is active
ssh_keys = [digitalocean_ssh_key.test.fingerprint]
}
resource "digitalocean_ssh_key" "test" {
name = "random"
public_key = trimspace(tls_private_key.test.public_key_openssh)
}
resource "tls_private_key" "test" {
algorithm = "ED25519"
ecdsa_curve = "P256"
}
output "test_ip" {
value = digitalocean_droplet.test.ipv4_address
}
```
**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. -->
```bash
terraform -v
Terraform v1.2.6
on linux_amd64
+ provider registry.terraform.io/digitalocean/digitalocean v2.21.0
+ provider registry.terraform.io/hashicorp/tls v3.4.0
```
**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. -->
- https://github.com/digitalocean/terraform-provider-digitalocean/issues/779
- https://github.com/digitalocean/terraform-provider-digitalocean/pull/785
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/856/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/856/timeline | null | not_planned | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/855 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/855/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/855/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/855/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/855 | 1,329,220,636 | PR_kwDOBZHfyM48rk7x | 855 | testing: Use supported OS for Droplet image slug. | {
"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-08-04T22:07:05 | 2022-08-05T18:43:23 | 2022-08-05T18:43:23 | MEMBER | null | The CentOS images were retired in favor of the new CentOS Stream ones. All tests referencing them fail. EOL for Ubuntu 22.04 LTS isn't until April 2032, so this shouldn't need updating again for a long time. :crossed_fingers:
https://wiki.ubuntu.com/Releases | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/855/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/855/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/855",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/855",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/855.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/855.patch",
"merged_at": "2022-08-05T18:43:23"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/854 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/854/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/854/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/854/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/854 | 1,329,046,482 | PR_kwDOBZHfyM48rAP5 | 854 | apps: Add computed URN attribute. | {
"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-08-04T18:44:14 | 2022-08-04T19:02:29 | 2022-08-04T19:02:29 | MEMBER | null | Fixes: https://github.com/digitalocean/terraform-provider-digitalocean/issues/853 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/854/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/854/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/854",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/854",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/854.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/854.patch",
"merged_at": "2022-08-04T19:02:28"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/853 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/853/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/853/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/853/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/853 | 1,327,443,533 | I_kwDOBZHfyM5PHy5N | 853 | digitalocean_app does not expose 'urn' attribute | {
"login": "connorkuehl",
"id": 5227338,
"node_id": "MDQ6VXNlcjUyMjczMzg=",
"avatar_url": "https://avatars.githubusercontent.com/u/5227338?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/connorkuehl",
"html_url": "https://github.com/connorkuehl",
"followers_url": "https://api.github.com/users/connorkuehl/followers",
"following_url": "https://api.github.com/users/connorkuehl/following{/other_user}",
"gists_url": "https://api.github.com/users/connorkuehl/gists{/gist_id}",
"starred_url": "https://api.github.com/users/connorkuehl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/connorkuehl/subscriptions",
"organizations_url": "https://api.github.com/users/connorkuehl/orgs",
"repos_url": "https://api.github.com/users/connorkuehl/repos",
"events_url": "https://api.github.com/users/connorkuehl/events{/privacy}",
"received_events_url": "https://api.github.com/users/connorkuehl/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 | [
":+1: Good call out. We'll get this added. It depends on this godo change landing: https://github.com/digitalocean/godo/pull/544",
"Thank you! :slightly_smiling_face: "
] | 2022-08-03T15:49:39 | 2022-08-04T19:03:51 | 2022-08-04T19:02:29 | NONE | null | # Bug Report
<!-- Include as much of the following details with your bug report: -->
---
## Describe the bug
The `digitalocean_app` resource and data source don't seem to expose `urn` attributes like other resources/data sources. This prevents me from using the `digitalocean_project_resources` resource in my Terraform module to add my `digitalocean_app` to a specified project, like so:
```terraform
resource "digitalocean_project_resources" "assigntoproject" {
project = data.digitalocean_project.myproject.id
resources = [
digitalocean_app.myapp.urn, # this will fail
digitalocean_droplet.mydroplet.urn,
]
}
```
To work around this, I added the app to my project manually using the cloud console web UI.
### 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
The digitalocean_app resource/data source exports a `urn` attribute so that it can be grouped into a project using Terraform so that users don't have to do this manually with the cloud console web UI.
### Actual Behavior
When attempting to access the `urn` attribute (I know, I know, it's not documented so there's no reason to expect it to exist, this is just for the sake of example)
```console
$ terraform plan
│ Error: Unsupported attribute
│
│ on main.tf line 200, in resource "digitalocean_project_resources" "assigntoproject":
│ 200: digitalocean_app.myapp.urn,
│
│ This object has no argument, nested block, or exported attribute named "urn".
```
---
### 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.-->
**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/853/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/853/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/852 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/852/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/852/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/852/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/852 | 1,322,355,823 | I_kwDOBZHfyM5O0Yxv | 852 | digitalocean_database_db - Error: Provider produced inconsistent result after apply | {
"login": "wscourge",
"id": 16985871,
"node_id": "MDQ6VXNlcjE2OTg1ODcx",
"avatar_url": "https://avatars.githubusercontent.com/u/16985871?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/wscourge",
"html_url": "https://github.com/wscourge",
"followers_url": "https://api.github.com/users/wscourge/followers",
"following_url": "https://api.github.com/users/wscourge/following{/other_user}",
"gists_url": "https://api.github.com/users/wscourge/gists{/gist_id}",
"starred_url": "https://api.github.com/users/wscourge/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wscourge/subscriptions",
"organizations_url": "https://api.github.com/users/wscourge/orgs",
"repos_url": "https://api.github.com/users/wscourge/repos",
"events_url": "https://api.github.com/users/wscourge/events{/privacy}",
"received_events_url": "https://api.github.com/users/wscourge/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 seems to be the same issue as reported in this comment:\r\n\r\nhttps://github.com/digitalocean/terraform-provider-digitalocean/issues/851#issuecomment-1199380378\r\n\r\nWe've raised this with the DBaaS team internally.",
"seems that the detail view of the API is affected. The list view it is working: \r\n\r... | 2022-07-29T14:57:37 | 2022-07-29T16:33:10 | 2022-07-29T16:33:10 | 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
Error:
> Root resource was present, but now absent.
when creating db cluster in the root module and database in the child module
### Affected Resource(s)
<!-- Please list the resources, for example:
- digitalocean_database_db
- digitalocean_database_cluster
If this issue appears to affect multiple resources, it may be an issue with
Terraform's core, so please mention this. -->
- digitalocean_database_db
- digitalocean_database_cluster
### Expected Behavior
<!-- What should have happened? -->
No error & succesful tf state update.
### Actual Behavior
<!-- What actually happened? -->
> │ Error: Provider produced inconsistent result after apply
> │
> │ When applying changes to module.env.digitalocean_database_db.api, provider "provider[\"registry.terraform.io/digitalocean/digitalocean\"]" produced an
> │ unexpected new value: Root resource was present, but now absent.
> │
> │ This is a bug in the provider, which should be reported in the provider's own issue tracker.
The database is indeed created, and the terraform state does not update, resulting in the following error on the subsequent `terraform apply` run:
> │ Error: Error creating Database DB: POST https://api.digitalocean.com/v2/databases/61ce7960-f3a1-4ec6-a430-1d45c9cd60df/dbs: 422 (request "20e8baa1-af16-4af0-8ccd-4e2abf7763f0") database name is not available
> │
> │ with module.env.digitalocean_database_db.api,
> │ on modules/env/db.tf line 5, in resource "digitalocean_database_db" "api":
> │ 5: resource "digitalocean_database_db" "api" {
as the name is no longer unique.
### Steps to Reproduce
<!-- Please list the steps required to reproduce the issue, for example:
1. `terraform apply` -->
1. Create `digitalocean_database_cluster` in the `root` module.
3. Create `digitalocean_database_db` in the `child` module.
4. Run `terraform apply`
5. See: error 1 (Root ...)
6. Run `terraform apply`
7. See error 2 (422)
**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.-->
**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. -->
Probable cause is described in detail here: https://www.reddit.com/r/Terraform/comments/m5nv14/root_resource_was_present_but_now_absent/
TLDR: your `resourceDigitalOceanDatabaseDBCreate` function calls `return resourceDigitalOceanDatabaseDBRead(ctx, d, meta)` while it should not.
Thanks & keep up the good work.
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/852/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/852/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/851 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/851/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/851/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/851/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/851 | 1,322,103,043 | I_kwDOBZHfyM5OzbED | 851 | Plugin not responding since today | {
"login": "cLnx-bruh",
"id": 70515833,
"node_id": "MDQ6VXNlcjcwNTE1ODMz",
"avatar_url": "https://avatars.githubusercontent.com/u/70515833?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cLnx-bruh",
"html_url": "https://github.com/cLnx-bruh",
"followers_url": "https://api.github.com/users/cLnx-bruh/followers",
"following_url": "https://api.github.com/users/cLnx-bruh/following{/other_user}",
"gists_url": "https://api.github.com/users/cLnx-bruh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cLnx-bruh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cLnx-bruh/subscriptions",
"organizations_url": "https://api.github.com/users/cLnx-bruh/orgs",
"repos_url": "https://api.github.com/users/cLnx-bruh/repos",
"events_url": "https://api.github.com/users/cLnx-bruh/events{/privacy}",
"received_events_url": "https://api.github.com/users/cLnx-bruh/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 | [
"Same issue! I observe it on 2 DO managed k8s cluster; 3 other clusters do not crash plugin. Something changed today on DigitalOcean side\r\n\r\n```\r\n╷\r\n│ Error: Plugin did not respond\r\n│ \r\n│ with module.xxxx.digitalocean_kubernetes_cluster.cluster,\r\n│ on ../../modules/xxxx-app/main.tf line 11, in res... | 2022-07-29T10:59:22 | 2022-08-11T12:40:36 | 2022-07-29T16:31:17 | NONE | null | # Bug Report
Straight up doesnt work, unable to run plan/apply and seems to affect multiple versions in multiple environments so not local issue
## Describe the bug
Tried running terraform plan/apply for one of my projects and got bellow error:
Error: Plugin did not respond
with module.KubernetesCluster.data.digitalocean_kubernetes_cluster.tf_cluster,
on ../../Module/KubernetesCluster/resources.tf line 24, in data "digitalocean_kubernetes_cluster" "tf_cluster":
24: data "digitalocean_kubernetes_cluster" "tf_cluster" {
The plugin encountered an error, and failed to respond to the
plugin.(*GRPCProvider).ReadDataSource call. The plugin logs may contain more
details.
Stack trace from the terraform-provider-digitalocean_v2.21.0 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xcecf67]
goroutine 67 [running]:
github.com/digitalocean/terraform-provider-digitalocean/digitalocean.flattenCredentials({0xc00096b830, 0x17}, {0xc0000a30b0, 0x4}, 0x0)
github.com/digitalocean/terraform-provider-digitalocean/digitalocean/resource_digitalocean_kubernetes_cluster.go:640 +0x47
github.com/digitalocean/terraform-provider-digitalocean/digitalocean.digitaloceanKubernetesClusterRead(0xc000154a00, 0xc0006ab440, 0x24?)
github.com/digitalocean/terraform-provider-digitalocean/digitalocean/resource_digitalocean_kubernetes_cluster.go:383 +0xb28
github.com/digitalocean/terraform-provider-digitalocean/digitalocean.dataSourceDigitalOceanKubernetesClusterRead({0x1[18](https://github.com/hooloovoodoo/vb-infra/runs/7577261962?check_suite_focus=true#step:6:19)bf10?, 0xc0006d5000?}, 0x7f0eca391108?, {0xdef300?, 0xc0006d60c0?})
github.com/digitalocean/terraform-provider-digitalocean/digitalocean/datasource_digitalocean_kubernetes_cluster.go:154 +0x27e
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0xc00057c1c0, {0x118bf10, 0xc0006d5000}, 0xc0000b8f90?, {0xdef300, 0xc0006d60c0})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.10.1/helper/schema/resource.go:358 +0x12e
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).ReadDataApply(0xc00057c1c0, {0x118bf10, 0xc0006d5000}, 0xc00008c900, {0xdef300, 0xc0006d60c0})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.10.1/helper/schema/resource.go:569 +0xf7
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadDataSource(0xc00000c030, {0x118bf10, 0xc0006d5000}, 0xc00092f0a0)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.10.1/helper/schema/grpc_provider.go:1133 +0x339
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadDataSource(0xc0001a1600, {0x118bfb8?, 0xc0006d9aa0?}, 0xc00091a8c0)
github.com/hashicorp/terraform-plugin-go@v0.5.0/tfprotov5/tf5server/server.go:478 +0x31b
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadDataSource_Handler({0xeba880?, 0xc0001a1600}, {0x118bfb8, 0xc0006d9aa0}, 0xc000774840, 0x0)
github.com/hashicorp/terraform-plugin-go@v0.5.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:416 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc00047b340, {0x118f330, 0xc000352a80}, 0xc0000a8300, 0xc00042a840, 0x176c3b0, 0x0)
google.golang.org/grpc@v1.32.0/server.go:1[19](https://github.com/hooloovoodoo/vb-infra/runs/7577261962?check_suite_focus=true#step:6:20)4 +0xc8f
google.golang.org/grpc.(*Server).handleStream(0xc00047b340, {0x118f330, 0xc000352a80}, 0xc0000a8300, 0x0)
google.golang.org/grpc@v1.32.0/server.go:1517 +0xa1b
google.golang.org/grpc.(*Server).serveStreams.func1.2()
google.golang.org/grpc@v1.32.0/server.go:859 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/grpc@v1.32.0/server.go:857 +0x28a
Error: The terraform-provider-digitalocean_v2.[21](https://github.com/hooloovoodoo/vb-infra/runs/7577261962?check_suite_focus=true#step:6:22).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.
I run the command locally, its for my pet project, since though the issue is with my code i didn't want to troubleshoot it and switched to another project and got the same error when running from github actions, different repos, different code, no connection between the 2. everything worked fine last night and i made no changes since that.
Affected Resource(s)
By the looks of logs its seem Kubernetes cluster is affected
"If this issue appears to affect multiple resources, it may be an issue with
Terraform's core, so please mention this. "
Expected Behavior
Terraform plan/apply wouldn't throw an error
Actual Behavior
Throws and error above
Steps to Reproduce
Run terraform apply with DO provider 2.19.0 to 2.22
**Expected behavior**
i run the 1.2.3 version and bumped up to 1.2.5 but it doesnt help
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/851/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/851/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/850 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/850/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/850/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/850/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/850 | 1,313,327,331 | I_kwDOBZHfyM5OR8jj | 850 | 'terraform import digitalocean_kubernetes_cluster' imports wrong node pool | {
"login": "mstyne",
"id": 282714,
"node_id": "MDQ6VXNlcjI4MjcxNA==",
"avatar_url": "https://avatars.githubusercontent.com/u/282714?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mstyne",
"html_url": "https://github.com/mstyne",
"followers_url": "https://api.github.com/users/mstyne/followers",
"following_url": "https://api.github.com/users/mstyne/following{/other_user}",
"gists_url": "https://api.github.com/users/mstyne/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mstyne/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mstyne/subscriptions",
"organizations_url": "https://api.github.com/users/mstyne/orgs",
"repos_url": "https://api.github.com/users/mstyne/repos",
"events_url": "https://api.github.com/users/mstyne/events{/privacy}",
"received_events_url": "https://api.github.com/users/mstyne/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 | [] | 2022-07-21T14:12:01 | 2023-03-08T17:46:01 | null | 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 importing an existing Kubernetes cluster using `terraform import digitalocean_kubernetes_cluster`, the incorrect node pool ID is imported.
<!-- A clear and concise description of what the bug is. -->
### Affected Resource(s)
- digitalocean_kubernetes_cluster
- digitalocean_kubernetes_node_pool
<!-- 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. -->
### Expected Behavior
With the following configuration:
```
% doctl kubernetes cluster node-pool list 80654840-... --format ID,Tags
ID Tags
6f41bd3b-... k8s,k8s:80654840-...,k8s:worker,terraform:default-node-pool
152b6618-... k8s,k8s:80654840-...,k8s:worker
```
I expect node pool `6f41bd3b-...`, tagged as `terraform:default-node-pool` to be imported when executing
```
terraform import digitalocean_kubernetes_cluster.doks_hosted_cluster 80654840-...
```
### Actual Behavior
When executing `terraform import`, the _other_, non-tagged node pool is imported.
```% terraform import digitalocean_kubernetes_cluster.doks_hosted_cluster 80654840-...
digitalocean_kubernetes_cluster.doks_hosted_cluster: Importing from ID "80654840-..."...
digitalocean_kubernetes_cluster.doks_hosted_cluster: Import prepared!
Prepared digitalocean_kubernetes_cluster for import
Prepared digitalocean_kubernetes_node_pool for import
digitalocean_kubernetes_node_pool.doks_hosted_cluster: Refreshing state... [id=152b6618-...]
digitalocean_kubernetes_cluster.doks_hosted_cluster: Refreshing state... [id=80654840-...]
Import successful!
The resources that were imported are shown above. These resources are now in
your Terraform state and will henceforth be managed by Terraform.
```
### Steps to Reproduce
See "Actual Behavior".
**Terraform Configuration Files**
`main.tf`:
```
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.0"
}
}
}
variable "do_token" {}
variable "doks_cluster_name" {}
variable "doks_cluster_region" {}
variable "doks_cluster_version" {}
variable "doks_cluster_tags" {}
variable "doks_primary_node_pool_name" {}
variable "doks_primary_node_pool_size" {}
variable "doks_primary_node_pool_min" {}
variable "doks_primary_node_pool_max" {}
variable "doks_primary_node_pool_count" {}
variable "doks_secondary_node_pool_name" {}
variable "doks_secondary_node_pool_size" {}
variable "doks_secondary_node_pool_min" {}
variable "doks_secondary_node_pool_max" {}
variable "doks_secondary_node_pool_count" {}
provider "digitalocean" {
token = var.do_token
}
resource "digitalocean_kubernetes_cluster" "doks_hosted_cluster" {
name = var.doks_cluster_name
region = var.doks_cluster_region
version = "1.21.14-do.0"
auto_upgrade = true
tags = [ "development" ]
node_pool {
name = var.doks_primary_node_pool_name
size = var.doks_primary_node_pool_size
max_nodes = var.doks_primary_node_pool_max
min_nodes = var.doks_primary_node_pool_min
node_count = var.doks_primary_node_pool_count
}
}
resource "digitalocean_kubernetes_node_pool" "doks_secondary_node_pool" {
cluster_id = digitalocean_kubernetes_cluster.doks_hosted_cluster.id
name = var.doks_secondary_node_pool_name
size = var.doks_secondary_node_pool_size
node_count = var.doks_secondary_node_pool_count
}
```
**Expected behavior**
```
% terraform -v
Terraform v1.2.5
on darwin_amd64
+ provider registry.terraform.io/digitalocean/digitalocean v2.21.0
```
The node pool tagged as `terraform:default-node-pool` should be imported when executing `terraform import digitalocean_kubernetes_cluster`.
**Debug Output**
I'm concerned about the level of detail in the debug output; I have the gist and can email the link if necessary.
**Panic Output**
None
<!-- If Terraform produced a panic, please provide a link to a GitHub Gist
containing the output of the `crash.log`. -->
## Additional context
Changing the `terraform:default-node-pool` tag to the secondary node pool results in the "correct" node pool being imported along with the cluster.
<!-- Add any other context about the problem here. -->
**Important Factoids**
None
<!-- Droplets use custom images or kernels. -->
**References**
None
<!-- 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/850/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/850/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/849 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/849/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/849/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/849/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/849 | 1,306,345,914 | PR_kwDOBZHfyM47fMLI | 849 | Altering is_default to be configurable for projects | {
"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-07-15T18:10:17 | 2022-08-09T15:35:25 | 2022-08-09T15:35:25 | MEMBER | null | Per #848.
@Yordis had a great suggestion for allowing to provision digitalocean_project resource as "Default Project". Making "is_default" configurable. This means:
- You can initialize a new project to be the default.
- You can’t edit a project to no longer be default (`400 (request "acb5906e-bf48-49e3") you must always have a default project`) even if you have other projects, it won’t automatically assign another project to be default
- You can’t delete a project that is the default (^^)
- You must first assign another project to be default first before you can delete the old default project | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/849/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/849/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/849",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/849",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/849.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/849.patch",
"merged_at": null
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/848 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/848/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/848/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/848/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/848 | 1,303,058,359 | I_kwDOBZHfyM5Nqxe3 | 848 | Allow marking as Default Project when provisioning projects | {
"login": "yordis",
"id": 4237280,
"node_id": "MDQ6VXNlcjQyMzcyODA=",
"avatar_url": "https://avatars.githubusercontent.com/u/4237280?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yordis",
"html_url": "https://github.com/yordis",
"followers_url": "https://api.github.com/users/yordis/followers",
"following_url": "https://api.github.com/users/yordis/following{/other_user}",
"gists_url": "https://api.github.com/users/yordis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yordis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yordis/subscriptions",
"organizations_url": "https://api.github.com/users/yordis/orgs",
"repos_url": "https://api.github.com/users/yordis/repos",
"events_url": "https://api.github.com/users/yordis/events{/privacy}",
"received_events_url": "https://api.github.com/users/yordis/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 | [
"closed by #860 "
] | 2022-07-13T08:01:51 | 2023-02-05T07:37:51 | 2023-02-05T07:37:50 | NONE | null | ### Describe the solution you'd like
Allow to provision `digitalocean_project` resource as "Default Project"
### Describe alternatives you've considered
Manually do it in the Console UI.
### Additional context

| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/848/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/848/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/846 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/846/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/846/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/846/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/846 | 1,301,953,481 | PR_kwDOBZHfyM47Qi52 | 846 | Add more docs examples on using droplet snapshots | {
"login": "mkjmdski",
"id": 14093153,
"node_id": "MDQ6VXNlcjE0MDkzMTUz",
"avatar_url": "https://avatars.githubusercontent.com/u/14093153?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mkjmdski",
"html_url": "https://github.com/mkjmdski",
"followers_url": "https://api.github.com/users/mkjmdski/followers",
"following_url": "https://api.github.com/users/mkjmdski/following{/other_user}",
"gists_url": "https://api.github.com/users/mkjmdski/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mkjmdski/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mkjmdski/subscriptions",
"organizations_url": "https://api.github.com/users/mkjmdski/orgs",
"repos_url": "https://api.github.com/users/mkjmdski/repos",
"events_url": "https://api.github.com/users/mkjmdski/events{/privacy}",
"received_events_url": "https://api.github.com/users/mkjmdski/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"Looks great! Tried it out myself and was a seamless example. Thank you so much for your contribution! 😄 ",
"Hey, @mkjmdski - 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-07-12T11:52:57 | 2022-07-20T16:23:35 | 2022-07-12T19:37:39 | CONTRIBUTOR | null | It was hard for me to understand how to create droplet from snapshot so I have decided to contribute with some working examples how to do it so nobody else has to struggle as much as I had to :) | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/846/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/846/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/846",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/846",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/846.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/846.patch",
"merged_at": "2022-07-12T19:37:39"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/845 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/845/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/845/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/845/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/845 | 1,298,626,268 | I_kwDOBZHfyM5NZ3bc | 845 | Allow tagging of ssh keys | {
"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
} | [
{
"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 | [
"Thanks for the feedback @tback. Currently the DigitalOcean API does not support tagging SSH keys. I've passed on your feedback internally to the responsible product team. "
] | 2022-07-08T07:45:02 | 2022-07-11T14:45:03 | null | NONE | null | ### Is your feature request related to a problem? Please describe.
I have a couple of different groups of ssh keys in my infrastructure that I maintain via terraform. I want to provision only keys of admins to the machines I provision.
I have a global state that uploads the keys and I have a couple of environment states that consume them.
### Describe the solution you'd like
I want to create ssh keys and tag them:
```terraform
resource "digitalocean_ssh_key" "alice" {
name = "alice"
key = "..."
tags = ["admin", "user"]
}
resource "digitalocean_ssh_key" "alice" {
name = "bob"
key = "..."
tags = ["user"]
}
#...
resource "digitalocean_ssh_key" "ci" {
name = "ci"
key = "..."
tags = ["ci"]
}
```
Then I want to filter keys when I provision machines:
```terraform
data "digitalocean_ssh_keys" "admin_keys" {
filter {
key = "tag"
values = ["admin"]
}
}
```
Currently I have to specify each individual key I want to select:
```terraform
data "digitalocean_ssh_keys" "admin_keys" {
filter {
key = "name"
values = ["alice"] # ["alice", ...]
}
}
```
This means I have to maintain the list of admins in multiple places.
### Describe alternatives you've considered
#### Better filtering
I'm aware my feature request requires the ssh-key api to store tags. An easier approach would be to implement better filtering. It wouldn't be as powerful as tags, but I think would cover my use case well:
```terraform
data "digitalocean_ssh_keys" "all_ssh_keys" {
filter = "name=~admin-.*"
}
```
#### Remote state
I could also start working with remote state and use that to transport the list of admins from one state to another. It's tedious though and it is a security risk.
### Additional context
Another filtering approach is implemented/documented in https://registry.terraform.io/providers/fortinetdev/fortios/latest/docs/guides/fgt_filter
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/845/reactions",
"total_count": 5,
"+1": 5,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/845/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/843 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/843/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/843/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/843/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/843 | 1,278,868,333 | PR_kwDOBZHfyM46DUDc | 843 | apps: Only warn on read if there is no active deployment. | {
"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-06-21T18:26:02 | 2022-06-23T17:59:50 | 2022-06-23T17:59:49 | MEMBER | null | `resourceDigitalOceanAppRead` currently errors out if there is no active deployment. This can cause issues in a few circumstances as an app can exist in a state where there are no active deployments. Changing this to be a warning allows for importing existing apps that do not have active deployments. It also allows for `terraform apply` to succeed if something outside of Terraform has caused an existing app to have no active deployments. Since deployments can be triggered by pushes to the app's repo, Terraform doesn't really handle the state of deployments, only the "app" resource.
This does not change the existing behavior for creates of new apps. We still poll until the app deployment succeeds and error if it fails. It's possible we might want to reconsider this in the future, but that has other considerations. This does help recovering from a failed create. Running `terraform untaint digitalocean_app.{name}` will now allow applies to complete successfully.
Fixes: https://github.com/digitalocean/terraform-provider-digitalocean/issues/842 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/843/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/843/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/843",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/843",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/843.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/843.patch",
"merged_at": "2022-06-23T17:59:49"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/842 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/842/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/842/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/842/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/842 | 1,276,512,414 | I_kwDOBZHfyM5MFgie | 842 | Unable to retry terraform apply for an app with service and job after it fails to deploy once. | {
"login": "Igosuki",
"id": 406150,
"node_id": "MDQ6VXNlcjQwNjE1MA==",
"avatar_url": "https://avatars.githubusercontent.com/u/406150?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Igosuki",
"html_url": "https://github.com/Igosuki",
"followers_url": "https://api.github.com/users/Igosuki/followers",
"following_url": "https://api.github.com/users/Igosuki/following{/other_user}",
"gists_url": "https://api.github.com/users/Igosuki/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Igosuki/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Igosuki/subscriptions",
"organizations_url": "https://api.github.com/users/Igosuki/orgs",
"repos_url": "https://api.github.com/users/Igosuki/repos",
"events_url": "https://api.github.com/users/Igosuki/events{/privacy}",
"received_events_url": "https://api.github.com/users/Igosuki/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-06-20T07:47:56 | 2022-06-23T17:59:49 | 2022-06-23T17:59:49 | NONE | null | # Bug Report
---
## Describe the bug
When first deploy of a job with a service fails, the plugin fails to register or import the resource in tfstate, resulting in a stale state and inability to do a second `terraform apply` to retry.
### Affected Resource(s)
- digitalocean_app
### Expected Behavior
Created service should exist in tfstate because it is created just not deployed.
### Actual Behavior
Getting an error when importing
```
digitalocean_app.kratos_prod: Importing from ID "..."...
digitalocean_app.kratos_prod: Import prepared!
Prepared digitalocean_app for import
digitalocean_app.kratos_prod: Refreshing state... [id=...?i=...]
╷
│ Error: No active deployment found for app: kratos (...)
│
```
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/842/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/842/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/841 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/841/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/841/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/841/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/841 | 1,276,128,263 | I_kwDOBZHfyM5MECwH | 841 | App deployment prevents database firewall setup | {
"login": "LouisIV",
"id": 15132736,
"node_id": "MDQ6VXNlcjE1MTMyNzM2",
"avatar_url": "https://avatars.githubusercontent.com/u/15132736?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/LouisIV",
"html_url": "https://github.com/LouisIV",
"followers_url": "https://api.github.com/users/LouisIV/followers",
"following_url": "https://api.github.com/users/LouisIV/following{/other_user}",
"gists_url": "https://api.github.com/users/LouisIV/gists{/gist_id}",
"starred_url": "https://api.github.com/users/LouisIV/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LouisIV/subscriptions",
"organizations_url": "https://api.github.com/users/LouisIV/orgs",
"repos_url": "https://api.github.com/users/LouisIV/repos",
"events_url": "https://api.github.com/users/LouisIV/events{/privacy}",
"received_events_url": "https://api.github.com/users/LouisIV/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 | {
"login": "bentranter",
"id": 5421627,
"node_id": "MDQ6VXNlcjU0MjE2Mjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5421627?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bentranter",
"html_url": "https://github.com/bentranter",
"followers_url": "https://api.github.com/users/bentranter/followers",
"following_url": "https://api.github.com/users/bentranter/following{/other_user}",
"gists_url": "https://api.github.com/users/bentranter/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bentranter/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bentranter/subscriptions",
"organizations_url": "https://api.github.com/users/bentranter/orgs",
"repos_url": "https://api.github.com/users/bentranter/repos",
"events_url": "https://api.github.com/users/bentranter/events{/privacy}",
"received_events_url": "https://api.github.com/users/bentranter/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "bentranter",
"id": 5421627,
"node_id": "MDQ6VXNlcjU0MjE2Mjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5421627?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bentranter",
"html_url": "https://github.com/bentranter",
"followers_url": "https://... | null | [
"Came here looking for similar issues, but it's not a bug. I think the solution is to put the instance count of both the service and the job at zero then re-apply with 1\r\n\r\nEdit : Nevermind, instance count can never be zero. Chicken and egg problem...",
"Part of me thought I might be able to do something with... | 2022-06-19T17:56:17 | 2023-03-08T17:48:38 | null | 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: -->
---
Currently I have a configuration like:
```
resource "digitalocean_app" "foo" {
...
database {
cluster_name = digitalocean_database_cluster.mysql.name
db_name = digitalocean_database_db.database-stage.name
db_user = digitalocean_database_user.agnew-user.name
engine = "MYSQL"
version = digitalocean_database_cluster.mysql.version
name = "mysql"
production = true
}
}
resource "digitalocean_database_firewall" "app-fw" {
cluster_id = digitalocean_database_cluster.mysql.id
rule {
type = "app"
value = digitalocean_app.foo.id
}
rule {
type = "vpc"
value = var.vpc_id
}
}
```
I have a worker that connects to the database and runs migrations before the app deploys. The issue is that as far as I can tell the app deployment needs to pass before I can get the app id. The migration container can't pass unless it can connect to the database, which it can't do because it's not trusted.
Is there any workaround for this?
## Describe the bug
<!-- A clear and concise description of what the bug is. -->
### 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. -->
### 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.-->
**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/841/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/841/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/840 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/840/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/840/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/840/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/840 | 1,273,707,124 | PR_kwDOBZHfyM45yK84 | 840 | Remove database cluster and/or database firewall rule from state if missing | {
"login": "liamjcooper",
"id": 17281410,
"node_id": "MDQ6VXNlcjE3MjgxNDEw",
"avatar_url": "https://avatars.githubusercontent.com/u/17281410?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/liamjcooper",
"html_url": "https://github.com/liamjcooper",
"followers_url": "https://api.github.com/users/liamjcooper/followers",
"following_url": "https://api.github.com/users/liamjcooper/following{/other_user}",
"gists_url": "https://api.github.com/users/liamjcooper/gists{/gist_id}",
"starred_url": "https://api.github.com/users/liamjcooper/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/liamjcooper/subscriptions",
"organizations_url": "https://api.github.com/users/liamjcooper/orgs",
"repos_url": "https://api.github.com/users/liamjcooper/repos",
"events_url": "https://api.github.com/users/liamjcooper/events{/privacy}",
"received_events_url": "https://api.github.com/users/liamjcooper/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"Awesome, thank you! Golang is new to me so the feedback is much appreciated.",
"Hey, @liamjcooper - 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-06-16T15:17:29 | 2022-06-17T12:18:31 | 2022-06-16T21:54:00 | CONTRIBUTOR | null | Uncovered an issue whereby refreshing Terraform state would return an error stating a database cluster didn't exist if a previously existing cluster with a firewall rule is manually deleted rather than deleting the resource from its state. This PR hopes to address this problem by checking the status code, and if it's a 404, then clear the ID for that resource and return nil from its read method.
Since one rule can only be attached to one cluster, simply deleting the rule from state should be safe. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/840/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/840/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/840",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/840",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/840.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/840.patch",
"merged_at": "2022-06-16T21:54:00"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/839 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/839/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/839/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/839/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/839 | 1,272,810,980 | PR_kwDOBZHfyM45vO4j | 839 | Allow for Timeouts to be set for Droplet Create Operations | {
"login": "ngharrington",
"id": 5447989,
"node_id": "MDQ6VXNlcjU0NDc5ODk=",
"avatar_url": "https://avatars.githubusercontent.com/u/5447989?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ngharrington",
"html_url": "https://github.com/ngharrington",
"followers_url": "https://api.github.com/users/ngharrington/followers",
"following_url": "https://api.github.com/users/ngharrington/following{/other_user}",
"gists_url": "https://api.github.com/users/ngharrington/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ngharrington/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ngharrington/subscriptions",
"organizations_url": "https://api.github.com/users/ngharrington/orgs",
"repos_url": "https://api.github.com/users/ngharrington/repos",
"events_url": "https://api.github.com/users/ngharrington/events{/privacy}",
"received_events_url": "https://api.github.com/users/ngharrington/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"@andrewsomething do you or other maintainers have thoughts on this PR, or what I may be able to do to bring it closer to what you folks would want. (alternatively, if you want to forgo this feature for now due to the way the timeouts behave with respect to state refreshes) ",
"Thank you so much for your efforts... | 2022-06-15T22:18:51 | 2022-08-04T22:46:25 | 2022-08-04T21:46:30 | CONTRIBUTOR | null | This is a proposal to solve issue #828 . I do not necessarily think it is an ideal or preferred solution and I am more than open to feedback.
Add Timeout to the resource_digital_ocean_droplet schema for Create, Update, Delete operations. These default to values that keep behavior the same as before if they are not set. Namely, timeout for all operations is at least 60 minutes. Specifically, by default, timeout for the &resource.StateChangeConf inside waitForDropletAttribute function stays the same by default.
Notably, for deletes and updates, these attribute refreshes happen multiple times per operation, so I decided to just pass through the relevant timeout for every attribute refresh. Meaning the true timeout for a delete or update would be a multiple of the set timeouts in the schema.
I additionally updated the droplet tests. The slug used for the image in the current code appears to not exist from my PoV, I changed to an ubuntu distribution but the choice doesn't matter to me one way or the other. | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/839/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/839/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/839",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/839",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/839.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/839.patch",
"merged_at": "2022-08-04T21:46:30"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/838 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/838/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/838/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/838/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/838 | 1,272,756,105 | PR_kwDOBZHfyM45vDdd | 838 | Prep v2.21.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-06-15T21:14:12 | 2022-06-16T12:04:51 | 2022-06-16T12:04:51 | MEMBER | null | Note: This is dated for June 16, 2022 ~and depends on https://github.com/digitalocean/terraform-provider-digitalocean/pull/830 being merged.~ | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/838/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/838/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/838",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/838",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/838.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/838.patch",
"merged_at": "2022-06-16T12:04:51"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/837 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/837/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/837/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/837/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/837 | 1,268,731,320 | PR_kwDOBZHfyM45hnkl | 837 | Change k8s example to use ingress v1 | {
"login": "jacobgreenleaf",
"id": 2646558,
"node_id": "MDQ6VXNlcjI2NDY1NTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2646558?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jacobgreenleaf",
"html_url": "https://github.com/jacobgreenleaf",
"followers_url": "https://api.github.com/users/jacobgreenleaf/followers",
"following_url": "https://api.github.com/users/jacobgreenleaf/following{/other_user}",
"gists_url": "https://api.github.com/users/jacobgreenleaf/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jacobgreenleaf/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jacobgreenleaf/subscriptions",
"organizations_url": "https://api.github.com/users/jacobgreenleaf/orgs",
"repos_url": "https://api.github.com/users/jacobgreenleaf/repos",
"events_url": "https://api.github.com/users/jacobgreenleaf/events{/privacy}",
"received_events_url": "https://api.github.com/users/jacobgreenleaf/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"Hey, @jacobgreenleaf - 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-06-12T23:30:02 | 2022-06-17T12:18:56 | 2022-06-15T18:49:06 | CONTRIBUTOR | null | In Kubernetes 1.22, the v1beta1 version of Ingress
is [no longer available](https://kubernetes.io/docs/reference/using-api/deprecation-guide/#ingress-v122), thus the example fails to create
the ingress on Kubernetes >= 1.22 with the following error:
```
╷
│ Error: Failed to create Ingress 'test/test-ingress' because: the server could not find the requested resource (post ingresses.extensions)
│
│ with module.kubernetes-config.kubernetes_ingress.test_ingress,
│ on kubernetes-config/main.tf line 126, in resource "kubernetes_ingress" "test_ingress":
│ 126: resource "kubernetes_ingress" "test_ingress" {
│
```
Instead, switch the example to use `kubernetes_ingress_v1`.
Note that this now increases the minimum version of
terraform-provider-kubernetes since kubernetes_ingress_v1 was
added in [v2.7.0](https://github.com/hashicorp/terraform-provider-kubernetes/pull/1458). | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/837/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/837/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/837",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/837",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/837.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/837.patch",
"merged_at": "2022-06-15T18:49:06"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/835 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/835/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/835/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/835/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/835 | 1,255,654,551 | I_kwDOBZHfyM5K18SX | 835 | Removal of ipv4_address on a digitalocean_kubernetes_cluster resource | {
"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": 5241956541,
"node_id": "LA_kwDOBZHfyM8AAA... | open | false | {
"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
} | [
{
"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",
"fo... | null | [
"Hi @bweston92 ,\r\n\r\nThe Terraform provider exposes information returned by the API. I've reached out to the DOKS team internally to better understand why the IP address is not always being returned. Due to architectural changes meant to provide improved master node reliability, newer DOKS clusters are moving aw... | 2022-06-01T10:46:47 | 2023-03-08T17:51:33 | null | NONE | null | # Bug Report
---
## Describe the bug
### Affected Resource(s)
- digitalocean_kubernetes_cluster
### Expected Behavior
Return a `ipv4_address` in the output.
### Actual Behavior
Has disappeared.
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/835/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/835/timeline | null | null | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/834 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/834/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/834/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/834/events | https://github.com/digitalocean/terraform-provider-digitalocean/issues/834 | 1,254,925,218 | I_kwDOBZHfyM5KzKOi | 834 | slug for digitalocean_image rockylinux-8-x64 has changed? | {
"login": "ad8lmondy",
"id": 77945580,
"node_id": "MDQ6VXNlcjc3OTQ1NTgw",
"avatar_url": "https://avatars.githubusercontent.com/u/77945580?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ad8lmondy",
"html_url": "https://github.com/ad8lmondy",
"followers_url": "https://api.github.com/users/ad8lmondy/followers",
"following_url": "https://api.github.com/users/ad8lmondy/following{/other_user}",
"gists_url": "https://api.github.com/users/ad8lmondy/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ad8lmondy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ad8lmondy/subscriptions",
"organizations_url": "https://api.github.com/users/ad8lmondy/orgs",
"repos_url": "https://api.github.com/users/ad8lmondy/repos",
"events_url": "https://api.github.com/users/ad8lmondy/events{/privacy}",
"received_events_url": "https://api.github.com/users/ad8lmondy/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 | [
"The purpose of slugs is to point to the most recent image for the distribution or 1-Click application. The ID of the image that slugs point to will change each time a new, updated image in the series is released. By using the data source, you are creating the Droplet using the image ID and not the slug. This will ... | 2022-06-01T04:39:27 | 2022-06-03T01:25:47 | 2022-06-03T01:25:47 | NONE | null | # Bug Report
---
## Describe the bug
It appears that the image ID for the `digitalocean_image` with slug `rockylinux-8-x64` has changed, which prompts Terraform to replace all the droplets we have using it.
### Affected Resource(s)
- digitalocean_droplet
- digitalocean_image
### Expected Behavior
Nothing should happen, our TF code is up to date with our infra, and this has been working OK for months now.
### Actual Behavior
As of today, when we run `terraform plan` on our code, we get messages similar to this for each of our nodes using the Rocky8 image:
```
-/+ resource "digitalocean_droplet" "software_license_ddm_stage_node" {
~ created_at = "2022-05-16T06:31:30Z" -> (known after apply)
~ disk = 60 -> (known after apply)
~ id = "xxxxxxxxxxxxx" -> (known after apply)
~ image = "96967120" -> "108964453" # forces replacement
~ ipv4_address = "xxx.xxx.xxx.xxx" -> (known after apply)
~ ipv4_address_private = "xxx.xxx.xxx.xxx" -> (known after apply)
+ ipv6_address = (known after apply)
~ locked = false -> (known after apply)
~ memory = 2048 -> (known after apply)
name = "hostname.meow.com"
~ price_hourly = 0.02232 -> (known after apply)
~ price_monthly = 15 -> (known after apply)
~ private_networking = true -> (known after apply)
~ status = "active" -> (known after apply)
tags = [
"stage",
]
~ urn = "do:droplet:xxxxxxxxx" -> (known after apply)
~ vcpus = 2 -> (known after apply)
~ volume_ids = [] -> (known after apply)
# (8 unchanged attributes hidden)
}
```
(some details removed).
Note that the change of image ID is forcing the replacement.
Our images are defined as:
```
data "digitalocean_image" "rocky_8" {
slug = "rockylinux-8-x64"
}
```
and the droplets themselves:
```
resource "digitalocean_droplet" "software_license_ddm_stage_node" {
image = data.digitalocean_image.rocky_8.id
name = "hostname.meow.com"
...
```
In a different Terraform project, I outputted the `digitalocean_images` data source, searching for all Rocky images, and got this:
```
+ rocky = {
+ filter = [
+ {
+ all = false
+ key = "slug"
+ match_by = "re"
+ values = [
+ "rockylinux.*",
]
},
]
+ id = "images/9698072944148077665"
+ images = [
+ {
+ created = "2022-05-24T16:05:21Z"
+ description = "RockyLinux 8.4 x64"
+ distribution = "Rocky Linux"
+ error_message = ""
+ id = 108962679
+ image = "108962679"
+ min_disk_size = 10
+ name = "RockyLinux 8.4 x64"
+ private = false
+ regions = [
+ "ams2",
+ "ams3",
+ "blr1",
+ "fra1",
+ "lon1",
+ "nyc1",
+ "nyc2",
+ "nyc3",
+ "sfo1",
+ "sfo2",
+ "sfo3",
+ "sgp1",
+ "tor1",
]
+ size_gigabytes = 0.57
+ slug = "rockylinux-8-4-x64"
+ status = "available"
+ tags = []
+ type = "snapshot"
},
+ {
+ created = "2022-05-24T17:36:31Z"
+ description = "RockyLinux 8.5 x64"
+ distribution = "Rocky Linux"
+ error_message = ""
+ id = 108964453
+ image = "108964453"
+ min_disk_size = 10
+ name = "RockyLinux 8.5 x64"
+ private = false
+ regions = [
+ "ams2",
+ "ams3",
+ "blr1",
+ "fra1",
+ "lon1",
+ "nyc1",
+ "nyc2",
+ "nyc3",
+ "sfo1",
+ "sfo2",
+ "sfo3",
+ "sgp1",
+ "tor1",
]
+ size_gigabytes = 0.58
+ slug = "rockylinux-8-x64"
+ status = "available"
+ tags = []
+ type = "snapshot"
},
]
+ sort = null
}
```
Note that both the IDs listed don't match the original image IDs that our existing nodes use (which is: `96967120`).
Doing a search of that ID directly gives:
```
+ rocky = {
+ filter = [
+ {
+ all = false
+ key = "id"
+ match_by = "exact"
+ values = [
+ "96967120",
]
},
]
+ id = "images/9698072944148077665"
+ images = []
+ sort = null
}
```
aka: no image found.
My guess is that the image ID associated with the slug `rockylinux-8-x64` has changed.
### Steps to Reproduce
Have a droplet configured with:
```
data "digitalocean_image" "rocky_8" {
slug = "rockylinux-8-x64"
}
resource "digitalocean_droplet" "software_license_ddm_stage_node" {
image = data.digitalocean_image.rocky_8.id
name = "hostname.meow.com"
...
```
before this issue started, and then run `terraform plan`.
**Terraform Configuration Files**
See above
**Terraform version**
Terraform v1.2.1
on linux_amd64
+ provider registry.terraform.io/cloudflare/cloudflare v2.19.2
+ provider registry.terraform.io/digitalocean/digitalocean v2.11.1
+ provider registry.terraform.io/grafana/grafana v1.14.0
+ provider registry.terraform.io/hashicorp/dns v3.2.1
+ provider registry.terraform.io/hashicorp/kubernetes v2.0.2
+ provider registry.terraform.io/jfrog/artifactory v6.6.0
+ provider registry.terraform.io/mongodb/mongodbatlas v0.8.2
+ provider registry.terraform.io/statuscakedev/statuscake v1.0.1
+ provider registry.terraform.io/vultr/vultr v2.4.0
| {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/834/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/834/timeline | null | completed | null | null | false |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/833 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/833/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/833/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/833/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/833 | 1,248,683,245 | PR_kwDOBZHfyM44ebRy | 833 | Prep v2.20.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-05-25T20:28:24 | 2022-05-25T21:11:21 | 2022-05-25T21:11:20 | MEMBER | null | null | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/833/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/833/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/833",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/833",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/833.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/833.patch",
"merged_at": "2022-05-25T21:11:20"
} | true |
https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/832 | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/832/labels{/name} | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/832/comments | https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/832/events | https://github.com/digitalocean/terraform-provider-digitalocean/pull/832 | 1,248,656,676 | PR_kwDOBZHfyM44eVpz | 832 | docs: Document values attribute in ssh_keys data source (fixes: #792). | {
"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-25T20:06:25 | 2022-05-25T20:12:34 | 2022-05-25T20:12:34 | MEMBER | null | fixes: #792 | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/issues/832/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/832/timeline | null | null | false | {
"url": "https://api.github.com/repos/digitalocean/terraform-provider-digitalocean/pulls/832",
"html_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/832",
"diff_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/832.diff",
"patch_url": "https://github.com/digitalocean/terraform-provider-digitalocean/pull/832.patch",
"merged_at": "2022-05-25T20:12:33"
} | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.