diff --git a/iac/.terraform.lock.hcl b/iac/.terraform.lock.hcl new file mode 100644 index 000000000..b0cc2e1dd --- /dev/null +++ b/iac/.terraform.lock.hcl @@ -0,0 +1,45 @@ +# This file is maintained automatically by "terraform init". +# Manual edits may be lost in future updates. + +provider "registry.terraform.io/digitalocean/digitalocean" { + version = "2.21.0" + constraints = "~> 2.0" + hashes = [ + "h1:gndflVS5/+cwQbVVI6NwwB3dYK7W2QkmZuWmFBH/0tI=", + "zh:122a4e7aa7315be52c484fa9b8e8681a42ad17e1f892ca17d6aeb575902df078", + "zh:192f9428d965d1a5d2629e6ec1c238c6815601fbc909f905bf94ff9359ba88f6", + "zh:20d88900cd24e9c05e2addeeb9fd5df285fba928d5f9981128352a6089fcec88", + "zh:30eb650c04e4c6ab0b06549a345dacdfaf5597f24e916ed82cad798a546783e6", + "zh:33864a8bc3f02507397d36bc5bf21ad1be11c188d2d0d45fe19063d0f949ff49", + "zh:34431ea6fe25e734ed851595f622ff848c325fbf2f799d85a6cfcadedc1e9063", + "zh:4be9ee1d632352504541d3629ce583e2b89ab9e5eb6a9d6547d37eb1c02dc341", + "zh:723436531aaec6a7d651b15857194993baee6e59d7b1b8c22176ee44065de905", + "zh:7305edf6305f3c0ba945509e679655d2b7c082f21723e2bd415c8f1f161a1a97", + "zh:acd2124cb1c604351f9482d47ab9a16a1887b8d9df049c8da0d0e3791326404d", + "zh:af6745bb9096a52e2570a758b55fd0a746b70d4bb04ba09ee33ab7dd63e87337", + "zh:b676c58bbfd08bd3960ed78740a23ed17d959ac0348cab08ad34aaeaff952c7d", + "zh:bfa739ac5fea3f89d9c403be91179729490370ed19b735070c9659e9265718aa", + "zh:c1d5a0d0995fddf0df03f1da49de9531ab45138cf0b24e67c45f23a38ba91c33", + "zh:cac52e76829a1fc01e165c4a66854b94b2813a21d392f6bddfacbba7edfd4f77", + "zh:d55cdd70b89e7e9cd674c0f39cdef93dd0ace1d361bbae65583df9defb7d4725", + ] +} + +provider "registry.terraform.io/hashicorp/local" { + version = "2.2.3" + hashes = [ + "h1:aWp5iSUxBGgPv1UnV5yag9Pb0N+U1I0sZb38AXBFO8A=", + "zh:04f0978bb3e052707b8e82e46780c371ac1c66b689b4a23bbc2f58865ab7d5c0", + "zh:6484f1b3e9e3771eb7cc8e8bab8b35f939a55d550b3f4fb2ab141a24269ee6aa", + "zh:78a56d59a013cb0f7eb1c92815d6eb5cf07f8b5f0ae20b96d049e73db915b238", + "zh:78d5eefdd9e494defcb3c68d282b8f96630502cac21d1ea161f53cfe9bb483b3", + "zh:8aa9950f4c4db37239bcb62e19910c49e47043f6c8587e5b0396619923657797", + "zh:996beea85f9084a725ff0e6473a4594deb5266727c5f56e9c1c7c62ded6addbb", + "zh:9a7ef7a21f48fabfd145b2e2a4240ca57517ad155017e86a30860d7c0c109de3", + "zh:a63e70ac052aa25120113bcddd50c1f3cfe61f681a93a50cea5595a4b2cc3e1c", + "zh:a6e8d46f94108e049ad85dbed60354236dc0b9b5ec8eabe01c4580280a43d3b8", + "zh:bb112ce7efbfcfa0e65ed97fa245ef348e0fd5bfa5a7e4ab2091a9bd469f0a9e", + "zh:d7bec0da5c094c6955efed100f3fe22fca8866859f87c025be1760feb174d6d9", + "zh:fb9f271b72094d07cef8154cd3d50e9aa818a0ea39130bc193132ad7b23076fd", + ] +} diff --git a/iac/.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.21.0/linux_amd64/CHANGELOG.md b/iac/.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.21.0/linux_amd64/CHANGELOG.md new file mode 100644 index 000000000..6c62ae38d --- /dev/null +++ b/iac/.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.21.0/linux_amd64/CHANGELOG.md @@ -0,0 +1,792 @@ +## 2.21.0 (June 16, 2022) + +FEATURES: + +- **New Resource:** `digitalocean_reserved_ip` ([#830](https://github.com/digitalocean/terraform-provider-digitalocean/pull/830)). - @andrewsomething +- **New Resource:** `digitalocean_reserved_ip_assignment` ([#830](https://github.com/digitalocean/terraform-provider-digitalocean/pull/830)). - @andrewsomething +- **New Data Source:** `digitalocean_reserved_ip` ([#830](https://github.com/digitalocean/terraform-provider-digitalocean/pull/830)). - @andrewsomething + +MISC: + +- examples: Change k8s example to use ingress v1 ([#831](https://github.com/digitalocean/terraform-provider-digitalocean/pull/837)). - @jacobgreenleaf + +## 2.20.0 (May 25, 2022) + +IMPROVEMENTS: + +- `digitalocean_app`: Support functions components ([#831](https://github.com/digitalocean/terraform-provider-digitalocean/pull/831)). - @andrewsomething +- `digitalocean_monitor_alert`: Support load balancer alert types ([#822](https://github.com/digitalocean/terraform-provider-digitalocean/pull/822)). - @andrewsomething +- `digitalocean_loadbalancer`: support udp as a target and entry protocol ([#789](https://github.com/digitalocean/terraform-provider-digitalocean/pull/789)). - @dikshant + +BUG FIXES: + +- `digitalocean_kubernetes_cluster`: Always perform upgrade check ([#823](https://github.com/digitalocean/terraform-provider-digitalocean/issues/823)). - @macno + +MISC: + +- docs: Document values attribute in ssh_keys data source ([#832](https://github.com/digitalocean/terraform-provider-digitalocean/pull/832)). - @andrewsomething +- docs: Note limitations on importing MongoDB users ([#821](https://github.com/digitalocean/terraform-provider-digitalocean/pull/821)). - @andrewsomething +- docs: Fix k8's node_pool.tags description ([#816](https://github.com/digitalocean/terraform-provider-digitalocean/pull/816)). - @danaelhe +- testing: Fix k8s versions in acceptance tests ([#826](https://github.com/digitalocean/terraform-provider-digitalocean/pull/826)). - @gizero +- provider: Build with go 1.18 ([#813](https://github.com/digitalocean/terraform-provider-digitalocean/pull/813)). - @ChiefMateStarbuck + +## 2.19.0 (March 28, 2022) + +IMPROVEMENTS: + +- `digitalocean_container_registry`: Support providing custom region ([#804](https://github.com/digitalocean/terraform-provider-digitalocean/pull/804)). - @andrewsomething + +## 2.18.0 (March 8, 2022) + +FEATURES: + +- **New Resource:** `digitalocean_spaces_bucket_policy` ([#800](https://github.com/digitalocean/terraform-provider-digitalocean/pull/800)) - @pavelkovar + +IMPROVEMENTS: + +- `digitalocean_app`: Implement support for App Platform `log_destinations` ([#798](https://github.com/digitalocean/terraform-provider-digitalocean/pull/798)). - @jbrunton +- `digitalocean_app`: Implement support for configuring alert policies ([#797](https://github.com/digitalocean/terraform-provider-digitalocean/pull/797)). - @andrewsomething + +BUG FIXES: + +- `digitalocean_project`: Environment is optional, don't set default ([#788](https://github.com/digitalocean/terraform-provider-digitalocean/pull/788)). - @andrewsomething +- `digitalocean_droplet`: Handle optional boolean `droplet_agent` ([#785](https://github.com/digitalocean/terraform-provider-digitalocean/pull/785)). - @Kidsan + +MISC: + +- docs: Add default ttl to `digitalocean_record` ([#791](https://github.com/digitalocean/terraform-provider-digitalocean/pull/791)). - @unixlab + +## 2.17.1 (January 28, 2022) + +IMPROVEMENTS: + +- `digitalocean_app`: Allow using `MONGODB` as a database engine option ([#783](https://github.com/digitalocean/terraform-provider-digitalocean/pull/783)). - @cnunciato +- doc: Update docs for `digitalocean_monitor_alert` to highlight it is currently Droplet-only ([#780](https://github.com/digitalocean/terraform-provider-digitalocean/pull/780)). - @andrewsomething + +## 2.17.0 (January 14, 2022) + +IMPROVEMENTS: + +- `digitalocean_loadbalancer`: Fetch loadbalancer resource in datasource by ID ([#773](https://github.com/digitalocean/terraform-provider-digitalocean/pull/773)). @opeco17 +- `digitalocean_vpc`: Allow updating name and description of default vpcs ([#748](https://github.com/digitalocean/terraform-provider-digitalocean/pull/748)). - @andrewsomething +- `digitalocean_app`: Support preserve_path_prefix ([#768](https://github.com/digitalocean/terraform-provider-digitalocean/pull/768)). - @andrewsomething + +BUG FIXES: + +- `digitalocean_droplet` - Refactor post-create polling code ([#776](https://github.com/digitalocean/terraform-provider-digitalocean/pull/776)). - @andrewsomething +- `digitalocean_floating_ip_assignment`: Properly support importing existing assignments ([#771](https://github.com/digitalocean/terraform-provider-digitalocean/pull/771)). - @andrewsomething +- `digitalocean_database_cluster`: Retry on 404s in post create polling ([#761](https://github.com/digitalocean/terraform-provider-digitalocean/pull/761)). - @opeco17 + +MISC: + +- docs: Update records examples to use domain id over name ([#770](https://github.com/digitalocean/terraform-provider-digitalocean/pull/770)). - @andrewsomething +- docs: Add k8s as available project resource to docs ([#750](https://github.com/digitalocean/terraform-provider-digitalocean/pull/750)) - @scotchneat +- docs: Fix database cluster documentation ([#766](https://github.com/digitalocean/terraform-provider-digitalocean/pull/766)) - @colinwilson +- provider: Update to v2.10.1 of the terraform-plugin-sdk ([#760](https://github.com/digitalocean/terraform-provider-digitalocean/pull/760)). - @andrewsomething +- testing: Makefile: Only run sweep against the digitalocean package ([#759](https://github.com/digitalocean/terraform-provider-digitalocean/pull/759)). - @andrewsomething +- testing: Update domains sweeper ([#753](https://github.com/digitalocean/terraform-provider-digitalocean/pull/753)) - @scotchneat + + +## 2.16.0 (November 8, 2021) + +IMPROVEMENTS: + +- `digitalocean_loadbalancer`: Add support for size_unit ([#742](https://github.com/digitalocean/terraform-provider-digitalocean/pull/742)). - @bbassingthwaite +- `digitalocean_database_firewall`: Add attributes for Kubernetes cluster IDs to firewall rules ([#741](https://github.com/digitalocean/terraform-provider-digitalocean/pull/741)). - @tdyas + +BUG FIXES: + +- `digitalocean_database_user`, `digitalocean_database_replica`, `digitalocean_database_db`, `digitalocean_database_connection_pool`: Provide better error messages importing database sub-resources. ([#744](https://github.com/digitalocean/terraform-provider-digitalocean/pull/744)). - @andrewsomething + +## 2.15.0 (November 1, 2021) + +IMPROVEMENTS: + +- `digitalocean_container_registry_docker_credentials`: Revoke OAuth token when credentials are destroyed ([#735](https://github.com/digitalocean/terraform-provider-digitalocean/pull/735)). - @andrewsomething +- `digitalocean_loadbalancer`: Support disabling automatic DNS records when using Let's Encrypt certificates ([#723](https://github.com/digitalocean/terraform-provider-digitalocean/pull/723), [#730](https://github.com/digitalocean/terraform-provider-digitalocean/pull/730)). - @andrewsomething + +BUG FIXES: + +- docs: Remove outdated info from README ([#733](https://github.com/digitalocean/terraform-provider-digitalocean/pull/733)). - @andrewsomething + +TESTING: + +- testing: Check for endpoint attr in `digitalocean_kubernetes_cluster` when HA is enabled ([#725](https://github.com/digitalocean/terraform-provider-digitalocean/pull/725)). - @danaelhe +- testing: Add acceptance test workflow ([#732](https://github.com/digitalocean/terraform-provider-digitalocean/pull/732)). - @scotchneat +- testing: Add scheduled acceptance test runs ([#734](https://github.com/digitalocean/terraform-provider-digitalocean/pull/734)). - @scotchneat +- testing: Limit acceptance test job/workflow to single run at a time ([#738](https://github.com/digitalocean/terraform-provider-digitalocean/pull/738)). - @scotchneat +- testing: Acceptance tests: Don't use deprecated size slugs ([#737](https://github.com/digitalocean/terraform-provider-digitalocean/pull/737)). - @andrewsomething +- testing: Acceptance tests: Use 2048 bit private keys in test data ([#736](https://github.com/digitalocean/terraform-provider-digitalocean/pull/736)). - @andrewsomething +- testing: Fixes an invalid droplet size in some acceptance tests ([#724](https://github.com/digitalocean/terraform-provider-digitalocean/pull/724)). - @scotchneat + +## 2.14.0 (October 7, 2021) + +IMPROVEMENTS: + +- `digitalocean_kubernetes_cluster`: Support setting the `ha` attribute ([#718](https://github.com/digitalocean/terraform-provider-digitalocean/pull/718)) + +## 2.13.0 (October 7, 2021) + +BUG FIXES: + +- Fix tag collection in digitalocean_tags data source ([#716](https://github.com/digitalocean/terraform-provider-digitalocean/pull/716)) + +FEATURES: + +- Add digitalocean_database_ca data source. ([#717](https://github.com/digitalocean/terraform-provider-digitalocean/pull/717)) + +IMPROVEMENTS: + +- Give a name to the kubernetes example load balancer ([#703](https://github.com/digitalocean/terraform-provider-digitalocean/pull/703)) +- Gracefully shutdown droplet before deleting ([#719](https://github.com/digitalocean/terraform-provider-digitalocean/pull/719)) + +## 2.12.1 (October 1, 2021) + +BUGFIXES: + +* docs: Correct the example for `digitalocean_monitor_alert` ([#710](https://github.com/digitalocean/terraform-provider-digitalocean/pull/710)). Thanks to @jessedobbelaere! + +## 2.12.0 (September 22, 2021) + +FEATURES: + +- **New Resource:** `digitalocean_monitor_alert` ([#679](https://github.com/digitalocean/terraform-provider-digitalocean/pull/679)) Thanks to @atombrella! + +IMPROVEMENTS: + +- `digitalocean_domain`: Expose TTL ([#702](https://github.com/digitalocean/terraform-provider-digitalocean/pull/702)). Thanks to @atombrella! +- `digitalocean_app`: Support setting CORS policies ([#699](https://github.com/digitalocean/terraform-provider-digitalocean/pull/699)). +- `digitalocean_app`: Make create timeout configurable ([#698](https://github.com/digitalocean/terraform-provider-digitalocean/pull/698)). +- `digitalocean_droplet`: Mark `private_networking` as deprecated. ([#676](https://github.com/digitalocean/terraform-provider-digitalocean/issues/676)) +- docs: Provide more context for apps' `instance_size_slug` ([#701](https://github.com/digitalocean/terraform-provider-digitalocean/pull/701)) +- misc: Replace d.HasChange sequences with d.HasChanges ([#681](https://github.com/digitalocean/terraform-provider-digitalocean/pull/681)) Thanks to @atombrella! + +BUGFIXES: + +- `digitalocean_database_user`: Handle passwords for MongoDB ([#696](https://github.com/digitalocean/terraform-provider-digitalocean/issues/696)). +- `digitalocean_app`: Error to prevent panic if no deployment found ([#678](https://github.com/digitalocean/terraform-provider-digitalocean/issues/678)). +- `digitalocean_droplet`: Protect against panic when importing Droplet errors ([#674](https://github.com/digitalocean/terraform-provider-digitalocean/issues/674)). + +## 2.11.1 (August 20, 2021) + +BUG FIXES: + +- `digitalocean_record`: Move port validation for SRV records out of CustomizeDiff ([#670](https://github.com/digitalocean/terraform-provider-digitalocean/issues/670)). +- `digitalocean_record`: Fix unexpected diffs for when TXT records are for the apex domain ([#664](https://github.com/digitalocean/terraform-provider-digitalocean/issues/664)). + +## 2.11.0 (August 9, 2021) + +IMPROVEMENTS: +- `digitalocean_droplet`: Support setting the droplet_agent attribute ([#667](https://github.com/digitalocean/terraform-provider-digitalocean/pull/667)). +- `digitalocean_database_firewall`: Allow setting app as a type ([#666](https://github.com/digitalocean/terraform-provider-digitalocean/issues/666)). +- docs: Update links to API documentation ([#661](https://github.com/digitalocean/terraform-provider-digitalocean/pull/661)). +- Simplified some loops based on go-staticcheck S1011 ([#656](https://github.com/digitalocean/terraform-provider-digitalocean/pull/656)). Thanks to @atombrella! +- Update to Context-aware API v2 functions ([#657](https://github.com/digitalocean/terraform-provider-digitalocean/pull/657)). Thanks to @atombrella! + +## 2.10.1 (June 29, 2021) + +BUG FIXES: + +- docs: Add code fence to docs for MongoDB. + +## 2.10.0 (June 29, 2021) + +IMPROVEMENTS: + +- `digitalocean_kubernetes_cluster`: Add support for Kubernetes maintenance policy ([#631](https://github.com/digitalocean/terraform-provider-digitalocean/pull/631)). Thanks to @atombrella! +- `digitalocean_kubernetes_cluster`, `digitalocean_database_cluster`: Make create timeouts configurable for DBaaS and K8s clusters ([#650](https://github.com/digitalocean/terraform-provider-digitalocean/pull/650)). +- docs: Fix Firewall Resource exported attributes documentation ([#648](https://github.com/digitalocean/terraform-provider-digitalocean/pull/648)). Thanks to @jubairsaidi! +- docs: Add MongoDB to database cluster docs ([#651](https://github.com/digitalocean/terraform-provider-digitalocean/pull/651)). + +BUG FIXES: + +- `digitalocean_database_cluster`: Protect against setting empty tags ([#652](https://github.com/digitalocean/terraform-provider-digitalocean/pull/652)). + + +## 2.9.0 (May 28, 2021) + +IMPROVEMENTS: + +- provider: Upgrade Terraform SDK to v2.6.1 ([#642](https://github.com/digitalocean/terraform-provider-digitalocean/pull/642)). +- `digitalocean_kubernetes_cluster`: Expose URNs for Kubernetes clusters ([#626](https://github.com/digitalocean/terraform-provider-digitalocean/pull/626)). +- docs: Cover `required_providers` in the index page ([#643](https://github.com/digitalocean/terraform-provider-digitalocean/pull/643)). +- docs: Update nginx example to work ([#625](https://github.com/digitalocean/terraform-provider-digitalocean/pull/625)). Thanks to @atombrella! +- Update issue templates ([#633](https://github.com/digitalocean/terraform-provider-digitalocean/pull/633)). + +BUG FIXES: + +- `digitalocean_loadbalancer`: Add `certificate_name` to load balancer data source ([#641](https://github.com/digitalocean/terraform-provider-digitalocean/pull/641)). +- `digitalocean_droplet`: Changing SSH key for a Droplet should be `ForceNew` ([#640](https://github.com/digitalocean/terraform-provider-digitalocean/pull/640)). +- `digitalocean_spaces_bucket`: Provide better error on malformated import ([#629](https://github.com/digitalocean/terraform-provider-digitalocean/pull/629)). + +## 2.8.0 (April 20, 2021) + +FEATURES: + +- **New Data Source**: `digitalocean_database_replica` ([#489](https://github.com/digitalocean/terraform-provider-digitalocean/issues/489)) + +IMPROVEMENTS: + +- `digitalocean_spaces_bucket`, `digitalocean_spaces_bucket_object`: Validate input for region ([#618](https://github.com/digitalocean/terraform-provider-digitalocean/pull/618)). +- `digitalocean_custom_image`: Support distributing custom images to multiple regions ([#616](https://github.com/digitalocean/terraform-provider-digitalocean/pull/616)). +- `digitalocean_custom_image`: Surface a better error to users if image import fails ([#613](https://github.com/digitalocean/terraform-provider-digitalocean/pull/613)). +- `digitalocean_database_cluster`: Support MongoDB beta by handling password differences ([#614](https://github.com/digitalocean/terraform-provider-digitalocean/pull/614)). + +## 2.7.0 (March 29, 2021) + +IMPROVEMENTS: + +* `digitalocean_kubernetes_cluster`, `digitalocean_kubernetes_node_pool`: Support for Kubernetes node pool taints ([#374](https://github.com/digitalocean/terraform-provider-digitalocean/issues/374)). +* `digitalocean_loadbalancer`: Support resizing load balancers ([#606](https://github.com/digitalocean/terraform-provider-digitalocean/issues/606)). + +BUG FIXES: + +* docs: Fix Kubernetes autoscaling docs for `min_nodes` ([#602](https://github.com/digitalocean/terraform-provider-digitalocean/pull/602)). Thanks to @3dinfluence! + +## 2.6.0 (March 10, 2021) + +NOTES: +* With the update to go 1.16 ([#597](https://github.com/digitalocean/terraform-provider-digitalocean/pull/597)), + the provider now supports `darwin_arm64`. + +FEATURES: +* `datasource_digitalocean_firewall`: Adds Firewall datasource ([#594](https://github.com/digitalocean/terraform-provider-digitalocean/pull/594)) + +IMPROVEMENTS: +* Run tests on pull_request not pull_request_target. ([#589](https://github.com/digitalocean/terraform-provider-digitalocean/pull/589)) +* kubernetes - enable surge upgrades by default during cluster creation ([#584](https://github.com/digitalocean/terraform-provider-digitalocean/pull/584)) +* Assign and remove project resources without unnecessary churn (Fixes: #585). ([#586](https://github.com/digitalocean/terraform-provider-digitalocean/pull/586)) +* dbaas replica: Add missing attrbutes to docs. ([#588](https://github.com/digitalocean/terraform-provider-digitalocean/pull/588)) +* Bump Kubernetes version used in documentation ([#583](https://github.com/digitalocean/terraform-provider-digitalocean/pull/583)) + +BUG FIXES: +* Fix broken documentation links ([#592](https://github.com/digitalocean/terraform-provider-digitalocean/pull/592)) +* Fix docs and validation for expiry_seconds on registry docker credentials resource. ([#582](https://github.com/digitalocean/terraform-provider-digitalocean/pull/582)) + +## 2.5.1 (February 05, 2021) + +BUG FIXES: + +* `digitalocean_database_cluster`: Protect against panic if connection details not available. ([#577](https://github.com/digitalocean/terraform-provider-digitalocean/pull/577)). +* `digitalocean_cdn`: Handle certificate name updates. ([#579](https://github.com/digitalocean/terraform-provider-digitalocean/pull/579)). + +## 2.5.0 (February 03, 2021) + +NOTES: + +* `digitalocean_app`: In order to support additional features, the `domains` attribute has been deprecated and will be removed in a future release. It has been replaced by a repeatable `domain` block which supports wildcard domains and specifying DigitalOcean managed zones. + +IMPROVEMENTS: + +* `digitalocean_app`: Deprecate domains list in favor of domain block. ([#572](https://github.com/digitalocean/terraform-provider-digitalocean/issues/572)). +* `digitalocean_app`: Add support for images as a component source ([#565](https://github.com/digitalocean/terraform-provider-digitalocean/issues/565)). Thanks to @rienafairefr and @acraven! +* `digitalocean_app`: Add support for job components ([#566](https://github.com/digitalocean/terraform-provider-digitalocean/issues/566)). Thanks to @rienafairefr and @acraven! +* `digitalocean_app`: Add support for `internal_ports` ([#570](https://github.com/digitalocean/terraform-provider-digitalocean/issues/570)). Thanks to @rienafairefr! + +BUG FIXES: + +* `digitalocean_app`: Allow multiple routes for services and static sites ([#571](https://github.com/digitalocean/terraform-provider-digitalocean/issues/571)). + +## 2.4.0 (January 19, 2021) + +IMPROVEMENTS: + +* `digitalocean_app`: Add support for global env vars ([#549](https://github.com/digitalocean/terraform-provider-digitalocean/issues/549)). +* `digitalocean_app`: Add GitLab support ([#556](https://github.com/digitalocean/terraform-provider-digitalocean/issues/556)). +* `digitalocean_app`: Support `catchall_document` for static sites ([#539](https://github.com/digitalocean/terraform-provider-digitalocean/issues/539)). +* `digitalocean_custom_image`: Support updating `description` and `distribution` ([#538](https://github.com/digitalocean/terraform-provider-digitalocean/issues/538)). Thanks to @frezbo! + +BUG FIXES: + +* `digitalocean_vpc`: Protect against race conditions in IP range assignment ([#552](https://github.com/digitalocean/terraform-provider-digitalocean/issues/552)). +* `digitalocean_app`: Mark env var values as sensitive ([#554](https://github.com/digitalocean/terraform-provider-digitalocean/issues/554)). + +## 2.3.0 (December 03, 2020) + +IMPROVEMENTS: + +* provider: Build and release OpenBSD binaries ([#533](https://github.com/digitalocean/terraform-provider-digitalocean/issues/533)). +* `digitalocean_loadbalancer`: Add support for new `size` attribute ([#532](https://github.com/digitalocean/terraform-provider-digitalocean/issues/532)). Thanks to @anitgandhi! + +BUG FIXES: + +* `digitalocean_database_cluster`: Handle Redis version change with DiffSuppressFunc ([#534](https://github.com/digitalocean/terraform-provider-digitalocean/issues/534)). + +## 2.2.0 (November 06, 2020) + +FEATURES: + +* **New Data Source**: `digitalocean_ssh_keys` ([#519](https://github.com/digitalocean/terraform-provider-digitalocean/pull/519)) Thanks to @stack72! +* **New Resource**: `digitalocean_custom_image` ([#517](https://github.com/digitalocean/terraform-provider-digitalocean/pull/517)) Thanks to @frezbo! + +BUG FIXES: + +* `digitalocean_kubernetes_node_pool`: Validate min_nodes is at least 1 and fix example ([#525](https://github.com/digitalocean/terraform-provider-digitalocean/pull/525)). +* `digitalocean_app`: Document the database spec ([#524](https://github.com/digitalocean/terraform-provider-digitalocean/pull/524)). +* `digitalocean_container_registry`: Update docs w/ `subscription_tier_slug` ([#523](https://github.com/digitalocean/terraform-provider-digitalocean/pull/523)). + +## 2.1.0 (November 06, 2020) + +NOTES: + +* DigitalOcean Container Registry is now in general availablity and requires a [subscription plan](https://www.digitalocean.com/docs/container-registry/#plans-and-pricing). As a result, the `digitalocean_container_registry` resource now requires setting a `subscription_tier_slug`. + +IMPROVEMENTS: + +* `digitalocean_container_registry`: Supports setting and updating a `subscription_tier_slug` ([#516](https://github.com/digitalocean/terraform-provider-digitalocean/pull/516)). + +BUG FIXES: + +* `digitalocean_app`: Suppress diff when env type is `GENERAL` ([#515](https://github.com/digitalocean/terraform-provider-digitalocean/pull/515)). + +## 2.0.2 (October 28, 2020) + +BUG FIXES: + +* `digitalocean_spaces_bucket`: Add retry logic to ensure bucket is available before proceeding ([#510](https://github.com/digitalocean/terraform-provider-digitalocean/issues/510)). +* Docs: Fix broken link to DigitalOcean app spec ([#509](https://github.com/digitalocean/terraform-provider-digitalocean/pull/509)). Thanks to @edbedbe! + +## 2.0.1 (October 22, 2020) + +BUG FIXES: + +* `digitalocean_cdn`, `digitalocean_app`: Fix panics introduced in move from ReadFunc to ReadContextFunc ([#505](https://github.com/digitalocean/terraform-provider-digitalocean/issues/505)). + +## 2.0.0 (October 20, 2020) + +NOTES: + +* This release uses v2.0.3 of the Terraform Plugin SDK and now only supports Terraform v0.12 and higher. +* The `certificate_id` attribute of the `digitalocean_cdn` and `digitalocean_loadbalancer` resources has been deprecated in favor of `certificate_name`. It will become a read-only computed attrbute in a future release. + +FEATURES: + +* **New Data Source**: `digitalocean_records` ([#502](https://github.com/digitalocean/terraform-provider-digitalocean/pull/502)) Thanks to @tdyas! + +IMPROVEMENTS: + +* provider: Upgrade to v2.0.3 of the Terraform Plugin SDK ([#492](https://github.com/digitalocean/terraform-provider-digitalocean/pull/492), [#503](https://github.com/digitalocean/terraform-provider-digitalocean/pull/503)). Thanks to @tdyas! +* docs: Migrate documentation to new registry format ([#501](https://github.com/digitalocean/terraform-provider-digitalocean/pull/501)). + +BUG FIXES: + +* `digitalocean_certificate`, `digitalocean_cdn`, `digitalocean_loadbalancer`: Use certificate name as primary identifier instead of ID as a Let's Encrypt certificate's ID will change when it's auto-renewed ([#500](https://github.com/digitalocean/terraform-provider-digitalocean/pull/500)). + +## 1.23.0 (October 13, 2020) + +FEATURES: + +* **New Resource**: `digitalocean_app` ([#497](https://github.com/digitalocean/terraform-provider-digitalocean/pull/497)) +* **New Data Source**: `digitalocean_app` ([#497](https://github.com/digitalocean/terraform-provider-digitalocean/pull/497)) +* **New Data Source**: `digitalocean_domains` ([#484](https://github.com/digitalocean/terraform-provider-digitalocean/pull/484)) Thanks to @tdyas! + +IMPROVEMENTS: + +* All list-style data sources now support `all` and `match_by` attributes for filter blocks ([#491](https://github.com/digitalocean/terraform-provider-digitalocean/pull/491)) and other improvements ([#481](https://github.com/digitalocean/terraform-provider-digitalocean/pull/491)). Thanks to @tdyas! +* Additional acceptance test sweepers ([#458](https://github.com/digitalocean/terraform-provider-digitalocean/pull/458)). +* Upgrade to v1.15.0 of the terraform-plugin-sdk ([#483](https://github.com/digitalocean/terraform-provider-digitalocean/pull/458)). Thanks to @tdyas! + +## 1.22.1 (August 7, 2020) + +BUG FIXES: + +* resource/digitalocean_record: Allow for SRV records with port 0 ([#475](https://github.com/digitalocean/terraform-provider-digitalocean/issues/475)). + +## 1.22.0 (July 22, 2020) + +IMPROVEMENTS: + +* resource/digitalocean_kubernetes_cluster: Enable auto_upgrade on Kubernetes clusters ([#237](https://github.com/digitalocean/terraform-provider-digitalocean/issues/237)). Thanks to @lfarnell! +* resource/digitalocean_kubernetes_cluster: Add support for surge upgrades ([#465](https://github.com/digitalocean/terraform-provider-digitalocean/pull/465)). Thanks to @varshavaradarajan! + +BUG FIXES: + +* resource/digitalocean_container_registry_docker_credentials: Update default expiry and don't ignore error ([#467](https://github.com/digitalocean/terraform-provider-digitalocean/pull/467)). + +## 1.21.0 (July 20, 2020) + +IMPROVEMENTS: + +* resource/digitalocean_loadbalancer: Adds 'https' to list of acceptable healthcheck protocols ([#460](https://github.com/digitalocean/terraform-provider-digitalocean/pull/460)). Thanks to @gcox! +* provider: Update module and import paths for repository transfer ([#463](https://github.com/digitalocean/terraform-provider-digitalocean/pull/463)). + +BUG FIXES: + +* resource/digitalocean_vpc: Increase timeout on VPC deletion retry ([#455](https://github.com/digitalocean/terraform-provider-digitalocean/pull/455)). + +## 1.20.0 (June 15, 2020) + +FEATURES: + +* **New Data Source**: `digitalocean_tags` ([#451](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/451)). + +IMPROVEMENTS: + +* resource/digitalocean_tag, datasource/digitalocean_tag: Export the counts of tagged resources as a computed attribute ([#451](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/451)). + +BUG FIXES: + +* datasource/digitalocean_droplets: Set ID in `flattenDigitalOceanDroplet` to ensure the individual Droplets have their ID exported in the list data source. [#450](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/450)). + +## 1.19.0 (June 03, 2020) + +FEATURES: + +* **New Resources**: `digitalocean_container_registry`, `digitalocean_container_registry_docker_credentials` ([#335](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/335)). Thanks to Zelgius! +* **New Data Source**: `digitalocean_container_registry` ([#335](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/335)). Thanks to Zelgius! + +IMPROVEMENTS: + +* resource/digitalocean_database_replica: Add support for specifying a VPC for read-only replicas ([#440](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/440)). + +BUG FIXES: + +* resource/digitalocean_kubernetes_cluster: Add forcenew to vpc_uuid field ([#443](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/443)). Thanks to KadenLNelson! +* resource/digitalocean_kubernetes_cluster: Fail faster on cluster create error [#435](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/435)). + +## 1.18.0 (May 05, 2020) + +FEATURES: + +* resource/digitalocean_loadbalancer, datasource/digitalocean_loadbalancer: Add support for the backend keepalive option ([#427](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/427)). + +BUG FIXES: + +* provider: Spaces API Endpoint setting is optional ([#431](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/431)). + +## 1.17.0 (April 28, 2020) + +FEATURES: + +* **New Data Sources**: `digitalocean_spaces_bucket` and `digitalocean_spaces_buckets` ([#416](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/416)) Thanks to @tdyas! +* **New Data Sources**: `digitalocean_spaces_bucket_object` and `digitalocean_spaces_bucket_objects` ([#423](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/423)) Thanks to @tdyas! +* **New Data Sources**: `digitalocean_droplets` ([#418](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/418)) Thanks to @tdyas! + +BUG FIXES: + +* resource/digitalocean_record: Fix handling of CAA records with iodef tag ([#421](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/421)). +* resource/digitalocean_loadbalancer: Fix support for multiple forwarding rules ([#414](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/414)). + +## 1.16.0 (April 14, 2020) + +FEATURES: + +* **New Resource**: digitalocean_vpc ([#410](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/410)) +* **New Data Source**: digitalocean_vpc ([#410](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/410)) +* **New Resource**: digitalocean_spaces_bucket_object ([#408](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/408)) Thanks to @tdyas! +* resource/digitalocean_spaces_bucket: Support for bucket versioning ([#409](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/409)). Thanks to @tdyas! +* resource/digitalocean_spaces_bucket: Support for lifecycle rules ([#411](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/411)). Thanks to @tdyas! + +IMPROVEMENTS: + +* provider: Support overriding the Spaces API endpoint using the `spaces_endpoint` attribute or `SPACES_ENDPOINT_URL` environment variable. ([#384]( https://github.com/terraform-providers/terraform-provider-digitalocean/issues/384)). Thanks to @tdyas! + +BUG FIXES: + +* resource/digitalocean_volume: Revert local name validation to support volumes created before DigitalOcean API change ([#406](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/406)). Thanks to @Amygos & @BrianHicks! +* resource/digitalocean_spaces_bucket: Region attribute should be ForceNew ([#413](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/413)). + +## 1.15.1 (March 19, 2020) + +BUG FIXES: + +* resource/digitalocean_volume: Fix validation on volume names ([#400](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/400)). Thanks to @Nevon! +* datasource/digitalocean_kubernetes_cluster: Don't error when `terraform:default-node-pool` tag is not found ([#399](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/399)). +* resource/digitalocean_kubernetes_cluster: Fix local failure for Kubernetes interoperablity acceptance test when local kubeconfig file is present ([#402](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/402)). + +## 1.15.0 (March 18, 2020) + +FEATURES: + +* **New Data Sources**: digitalocean_regions and digitalocean_region ([#380](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/380)) Thanks to @tdyas! +* **New Data Sources**: digitalocean_projects and digitalocean_project ([#391](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/391)) Thanks to @tdyas! +* **New Data Source**: digitalocean_images ([#394](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/394)) Thanks to @tdyas! +* **New Resource**: digitalocean_project_resources ([#396](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/396)) +* resource/digitalocean_kubernetes_cluster, resource/digitalocean_kubernetes_node_pool: Add support for importing existing resources ([#365](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/365)). Thanks to @tdyas! + +IMPROVEMENTS: + +* datasource/digitalocean_droplet_snapshot, datasource/digitalocean_volume_snapshot resource/digitalocean_floating_ip, resource/digitalocean_floating_ip_assignment: Update for deprecated terraform-plugin-sdk helper/validation methods ([#376](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/376)). +* resource/digitalocean_kubernetes_cluster, resource/digitalocean_kubernetes_node_pool: Add support for Kubernetes node pool labels ([#379](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/379)). Thanks to @tdyas! +* internal/datalist: Add a generic filter/sort framework for datasources ([#385](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/385)). Thanks to @tdyas! +* resource/digitalocean_database_user: Add support for MySQL user authentication management ([#393](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/393)). + +BUG FIXES: + +* datasource/digitalocean_droplet: Validate only one of "id", "tag", or "name" are provided as an argument ([#375](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/375)). Thanks to @tdyas! +* resource/digitalocean_volume: Validate that volume names are lowercase and alphanumeric ([#386](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/386)). Thanks to @danrabinowitz! +* resource/digitalocean_database_cluster: "version" is now a required argument ([#382](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/382)). + +## 1.14.0 (February 05, 2020) + +IMPROVEMENTS: + +* resource/digitalocean_kubernetes_cluster, resource/digitalocean_kubernetes_node_pool: Expose the Droplet IDs for individual nodes ([#366](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/366)). Thanks to @tdyas! +* datasource/digitalocean_droplet: Allow lookup by ID ([#366](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/366)). Thanks to @tdyas! + +BUG FIXES: + +* resource/digitalocean_project: Handle pagination for project resources ([#368](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/368)). + +## 1.13.0 (January 27, 2020) + +IMPROVEMENTS: + +* resource/digitalocean_database_cluster: Add support for tags ([#353](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/353)). Thanks to @aqche! + +BUG FIXES: + +* provider: Mark API token as optional to support Spaces only usage and running `validate` without a token specified ([#356](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/356)). + +## 1.12.0 (December 19, 2019) + +FEATURES: + +* **New Data Source**: `digitalocean_kubernetes_versions` ([#341](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/341)) +* **New Resource:** : `digitalocean_database_firewall` ([#340](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/340)) + +IMPROVEMENTS: + +* resource/digitalocean_volume, datasource/digitalocean_volume: Add support for tags ([#336](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/336)). Thanks to @aqche! +* resource/digitalocean_volume_snapshot, datasource/digitalocean_volume_snapshot: Add support for tags ([#339](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/339)). Thanks to @aqche! +* resource/digitalocean_database_cluster: Add support for Redis eviction policies ([#342](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/342)). +* resource/digitalocean_database_cluster: Add support for configuring SQL mode ([#347](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/347)). +* resource/digitalocean_certificate: Don't store full certificate data in state file ([#156](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/156)). + +## 1.11.0 (November 13, 2019) + +FEATURES: + +* **New Resource:** `digitalocean_database_connection_pool` ([#225](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/225)) Thanks to @Photonios! + +IMPROVEMENTS: + +* resource/digitalocean_kubernetes_cluster: Add support for upgrading cluster versions ([#333](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/333)). Thanks to @aqche! + +## 1.10.0 (October 31, 2019) + +FEATURES: + +* **New Resource:** `digitalocean_database_user` ([#328](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/328)) Thanks to @Permagate! +* **New Resource:** `digitalocean_database_db` ([#327](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/327)) Thanks to @Permagate! +* **New Data Source:** `digitalocean_sizes` ([#325](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/325)) hanks to @Permagate! +* **New Data Source:** `digitalocean_account` ([#324](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/324)) Thanks to @Permagate! + +IMPROVEMENTS: + +* resource/digitalocean_kubernetes_node_pool: Add support for node pool auto-scaling ([#307](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/307)). Thanks to @snormore! +* resource/digitalocean_space_bucket: Add support for configuring CORS rules ([#254](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/254)). Thanks to @pohzipohzi! +* Migrate to using the Terraform Plugin SDK ([#316](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/316)). Thanks to @stack72! +* website: Update all documentation to use v0.12 syntax ([#314](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/314)). + +## 1.9.1 (October 09, 2019) + +BUG FIXES: + +* resource/digitalocean_kubernetes_cluster: Ensure `raw_config` is a valid kubeconfig file ([#315](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/315)). + +## 1.9.0 (October 08, 2019) + +IMPROVEMENTS: + +* resource/digitalocean_database_cluster: Expose private connection details ([#299](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/299)). Thanks to @clickyotomy! +* resource/digitalocean_database_cluster: Mark `uri`, `private_uri`, `password` as sensitive ([#298](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/298)). Thanks to @clickyotomy! +* resource/digitalocean_database_replica: Expose private connection details ([#302](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/302)). +* resource/digitalocean_kubernetes_cluster: Expose new `token` attribute for use in Kubernetes authentication ([#309](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/309)). Thanks to @snormore! +* resource/digitalocean_kubernetes_cluster: Only fetch new Kubernetes credentials when expired ([#311](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/311)). Thanks to @snormore! + +## 1.8.0 (September 30, 2019) + +IMPROVEMENTS: + +* **New Data Source:** `digitalocean_database_replica` ([#224](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/224)) Thanks to @Zyqsempai! +* resource/digitalocean_database_cluster: Add support for tags ([#253](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/253)). Thanks to @Zyqsempai! +* resource/digitalocean_kubernetes_cluster: Mark the kube_config field as sensitive ([#289](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/289)). Thanks to @RoboticCheese! +* provider: Remove usage of `github.com/hashicorp/terraform/config` package ([#291](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/291)). Thanks to @appilon! +* datasource/digitalocean_droplet: Allow lookup by tag ([#290](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/290)). Thanks to @danramteke! +* provider: Remove usage of deprecated `terraform.VersionString()` ([#295](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/295)). + +## 1.7.0 (August 27, 2019) + +IMPROVEMENTS: + +* resource/digitalocean_droplet: Expose created_at attribute ([#277](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/277)). Thanks to @petems! +* datasource/digitalocean_droplet: Expose created_at attribute ([#277](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/277)). Thanks to @petems! + +BUG FIXES: + +* resource/digitalocean_database_cluster: `version` should not be required ([#288](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/288)). +* resource/digitalocean_droplet: Verify Droplet is destroyed before removing from state ([#283](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/283)). + +## 1.6.0 (August 05, 2019) + +IMPROVEMENTS: + +* provider: Add the ability to set `DIGITALOCEAN_ACCESS_TOKEN` ([#260](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/260)). Thanks to @stack72! +* resource/digitalocean_droplet: Support enabling and disabling backups on Droplets ([#266](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/267)). +* resource/digitalocean_database_cluster: Allow Databases to have URNs for use with Projects ([#270](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/270)). Thanks to @stack72! + +BUG FIXES: + +* Consistently protect against nil response in error handling ([#272](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/273)). + +## 1.5.0 (July 03, 2019) + +FEATURES: + +* **New Data Source:** `digitalocean_database_cluster` ([#251](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/251)). Thanks to @stack72! + +BUG FIXES: + +* resource/digitalocean_droplet: DigitalOcean doesn't support IPv6 private networking. Mark the `ipv6_address_private` attribute in the schema as removed ([#181](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/181)). Thanks to @stack72! +* resource/digitalocean_kubernetes_cluster: Do not filter out node pool tags also applied to the cluster ([#184](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/184)). + +## 1.4.0 (May 29, 2019) + +IMPROVEMENTS: + +* resource/digitalocean_droplet: Make importing more robust and test error case when importing non-existent resource ([#231](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/231)). +* resource/digitalocean_spaces_bucket: Simplify importing and test error case when importing non-existent resource ([#231](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/231)). +* resource/digitalocean_volume: Remove need for custom import function ([#231](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/231)). + +BUG FIXES: + +* resource/digitalocean_record: Simplify importing and provide better error messaging when attempting to import non-existent resource ([#232](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/232)). +* resource/digitalocean_kubernetes_cluster: Fix access to kube_config attributes under Terraform 0.12 by using TypeList rather than TypeSet in the schema ([#239](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/239)). + +## 1.3.0 (May 09, 2019) + +IMPROVEMENTS: + +* Terraform SDK upgrade with compatibility for Terraform v0.12. + +## 1.2.0 (April 23, 2019) + +FEATURES: + +* **New Resource:** `digitalocean_spaces_bucket` ([#42](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/42)). Thanks to @slapula! +* **New Resource:** `digitalocean_database_cluster` ([#198](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/198)) Thanks to @slapula! +* **New Resource:** `digitalocean_cdn` ([#204](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/204)) +* **New Resource:** `digitalocean_project` ([#207](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/207)) + +IMPROVEMENTS: + +* provider: The DigitalOcean API URL can now be overridden using `api_endpoint` attribute ([#84](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/84)). + Thanks to @protochron! +* provider: Refactor logic for logging API requests/responses ([#190](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/190)). Thanks to @radeksimko! +* resource/digitalocean_loadbalancer: Add support for enabling PROXY Protocol ([#199](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/199)). +* docs/digitalocean_firewall: Update syntax to be compatible with Terraform 0.12-beta ([#201](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/201)). +* resource/digitalocean_droplet: Expose uniform resource name (URN) attribute for use with Projects resource ([#215](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/215)). +* resource/digitalocean_loadbalancer: Expose uniform resource name (URN) attribute for use with Projects resource ([#214](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/214)). +* resource/digitalocean_domain: Expose uniform resource name (URN) attribute for use with Projects resource ([#213](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/213)). +* resource/digitalocean_volume: Expose uniform resource name (URN) attribute for use with Projects resource ([#212](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/212)). +* resource/digitalocean_floating_ip: Expose uniform resource name (URN) attribute for use with Projects resource ([#211](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/211)). +* resource/digitalocean_spaces_bucket: Expose uniform resource name (URN) attribute for use with Projects resource ([#210](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/210)). + +BUG FIXES: + +* resource/digitalocean_certificate: Fix issue when using computed values for custom certificates ([#163](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/163)). +* resource/digitalocean_droplet: Prevent unexpected rebuilds for Droplets created using image slugs when the backing image is updated ([#152](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/152)). + +NOTES: + +* This provider is now built and tested using Go 1.11.x ([#178](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/178)). +* Dependencies for this provider are now managed using Go Modules ([#187](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/187)). + +## 1.1.0 (December 12, 2018) + +FEATURES: + +* **New Data Source:** `digitalocean_droplet_snapshot` ([#161](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/161)). Thanks to @thefossedog! +* **New Data Source:** `digitalocean_kubernetes_cluster` ([#169](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/169)) Thanks to @nicholasjackson! +* **New Resource** `digitalocean_droplet_snapshot` ([#161](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/161)). Thanks to @thefossedog! +* **New Resource:** `digitalocean_kubernetes_cluster` ([#169](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/169)) Thanks to @nicholasjackson! +* **New Resource:** `digitalocean_kubernetes_node_pool` ([#169](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/169)) Thanks to @nicholasjackson! + +## 1.0.2 (October 05, 2018) + +BUG FIXES: + +* resource/digitalocean_certificate: Suppress diff for DNS names on custom certificate resources ([#146](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/146)). +* resource/digitalocean_floating_ip_assignment: Ensure resource works with the `create_before_destroy` lifecycle rule ([#147](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/147)). + +## 1.0.1 (October 02, 2018) + +BUG FIXES: + +* resource/digitalocean_droplet: Ensure the image ID is set to state when importing a Droplet ([#144](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/144)) + +## 1.0.0 (September 27, 2018) + +FEATURES: + +* **New Resource** `digitalocean_floating_ip_assignment` ([#115](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/115)) Thanks to @justinbarrick! +* **New Resource** `digitalocean_volume_attachment` ([#130](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/130)) + +* **New Datasource:** `digitalocean_domain` ([#63](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/63)) Thanks to @slapula! +* **New Datasource:** `digitalocean_record` ([#64](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/64)) Thanks to @slapula! +* **New Datasource:** `digitalocean_certificate` ([#137](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/137)) +* **New Datasource:** `digitalocean_droplet` ([#137](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/137)) +* **New Datasource:** `digitalocean_floating_ip` ([#137](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/137)) +* **New Datasource:** `digitalocean_loadbalancer` ([#137](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/137)) +* **New Datasource:** `digitalocean_ssh_key` ([#137](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/137)) +* **New Datasource:** `digitalocean_tag` ([#137](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/137)) +* **New Datasource:** `digitalocean_volume` ([#137](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/137)) +* **New Datasource:** `digitalocean_volume_snapshot` ([#139](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/139)) + +IMPROVEMENTS: + +* resource/digitalocean_record: Manage CAA domain records ([#48](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/48)). Thanks to @jaymecd! +* resource/digitalocean_certificate: Existing resources are now importable ([#37](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/37)). Thanks to @jonnydford! +* resource/digitalocean_loadbalancer: Existing resources are now importable ([#37](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/37)). Thanks to @jonnydford! +* resource/digitalocean_record: Existing resources are now importable ([#71](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/71)). Thanks to @slapula! +* resource/digitalocean_tag: Validate tag name when creating ([#80](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/80)). Thanks to @inkel! +* resource/digitalocean_volume: Add support for filesystem type for volume resources ([#111](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/111)). Thanks to @pgrzesik! +* resource/digitalocean_certificate: Added support for LetsEncrypt issued certificates. ([#129](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/129)) +* resource/digitalocean_volume: Added support for volume resizing. ([#125](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/125)) +* resource/digitalocean_volume: Added support for creating a volume from a volume snapshot. ([#139](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/139)) +* resource/digitalocean_droplet: Updated the state representation of the `user_data` property to a hashed one. ([#128](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/128)) + +BUG FIXES: + +* resource/digitalocean_floating_ip: Gracefully handle missing Floating IPs. ([#55](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/55)). Thanks to @aknuds1! +* resource/digitalocean_floating_ip: Gracefully handle unassigning Floating IPs when the Droplet has already been destroyed. ([#57](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/57)). Thanks to @aknuds1! +* resource/digitalocean_droplet: When IPv6 and/or private networking are not enabled, default their addresses to "". ([#97](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/97)) +* resource/digitalocean_droplet: Don't panic when enabling private_networking or ipv6 on an existing Droplet. ([#94](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/94)) +* resource/digitalocean_droplet: Set resize_disk to the default value on import. ([#95](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/95)) +* resource/digitalocean_record: Fixed the function for generating a records FQDN to match DO API behaviour. ([#51](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/51)) +* resource/digitalocean_firewall: Refactored the firewall resource for better stability of diffs and updates. ([#133](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/133)) +* resource/digitalocean_record_test: Enable setting a DNS' record weight to 0 (via updated godo SDK). ([#132](https://github.com/terraform-providers/terraform-provider-digitalocean/pull/132)) + + +## 0.1.3 (December 18, 2017) + +IMPROVEMENTS: + +* provider: Report Terraform version via User-Agent ([#43](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/43)) +* resource/digitalocean_droplet: Add `monitoring` field ([#38](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/38)) + +BUG FIXES: + +* resource/digitalocean_droplet: Avoid crash on conditional volumes ([#40](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/40)) +* resource/digitalocean_droplet: Make sure we've got a proper IP address from DO ([#29](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/29)) +* resource/digitalocean_firewall: Correctly handle `destination_tags` ([#36](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/36)) +* resource/digitalocean_firewall: Suppress diff for 'all' port range ([#41](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/41)) + +## 0.1.2 (July 31, 2017) + +BUG FIXES: + +* resource/digitalocean_droplet: Detaching the disks before deleting a droplet ([#22](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/22)) + +## 0.1.1 (June 21, 2017) + +NOTES: + +Bumping the provider version to get around provider caching issues - still same functionality + +## 0.1.0 (June 19, 2017) + +FEATURES: + +* **New Resource:** `digitalocean_firewall` ([#1](https://github.com/terraform-providers/terraform-provider-digitalocean/issues/1)) diff --git a/iac/.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.21.0/linux_amd64/LICENSE b/iac/.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.21.0/linux_amd64/LICENSE new file mode 100644 index 000000000..a612ad981 --- /dev/null +++ b/iac/.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.21.0/linux_amd64/LICENSE @@ -0,0 +1,373 @@ +Mozilla Public License Version 2.0 +================================== + +1. Definitions +-------------- + +1.1. "Contributor" + means each individual or legal entity that creates, contributes to + the creation of, or owns Covered Software. + +1.2. "Contributor Version" + means the combination of the Contributions of others (if any) used + by a Contributor and that particular Contributor's Contribution. + +1.3. "Contribution" + means Covered Software of a particular Contributor. + +1.4. "Covered Software" + means Source Code Form to which the initial Contributor has attached + the notice in Exhibit A, the Executable Form of such Source Code + Form, and Modifications of such Source Code Form, in each case + including portions thereof. + +1.5. "Incompatible With Secondary Licenses" + means + + (a) that the initial Contributor has attached the notice described + in Exhibit B to the Covered Software; or + + (b) that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the + terms of a Secondary License. + +1.6. "Executable Form" + means any form of the work other than Source Code Form. + +1.7. "Larger Work" + means a work that combines Covered Software with other material, in + a separate file or files, that is not Covered Software. + +1.8. "License" + means this document. + +1.9. "Licensable" + means having the right to grant, to the maximum extent possible, + whether at the time of the initial grant or subsequently, any and + all of the rights conveyed by this License. + +1.10. "Modifications" + means any of the following: + + (a) any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered + Software; or + + (b) any new file in Source Code Form that contains any Covered + Software. + +1.11. "Patent Claims" of a Contributor + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the + License, by the making, using, selling, offering for sale, having + made, import, or transfer of either its Contributions or its + Contributor Version. + +1.12. "Secondary License" + means either the GNU General Public License, Version 2.0, the GNU + Lesser General Public License, Version 2.1, the GNU Affero General + Public License, Version 3.0, or any later versions of those + licenses. + +1.13. "Source Code Form" + means the form of the work preferred for making modifications. + +1.14. "You" (or "Your") + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that + controls, is controlled by, or is under common control with You. For + purposes of this definition, "control" means (a) the power, direct + or indirect, to cause the direction or management of such entity, + whether by contract or otherwise, or (b) ownership of more than + fifty percent (50%) of the outstanding shares or beneficial + ownership of such entity. + +2. License Grants and Conditions +-------------------------------- + +2.1. Grants + +Each Contributor hereby grants You a world-wide, royalty-free, +non-exclusive license: + +(a) under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and + +(b) under Patent Claims of such Contributor to make, use, sell, offer + for sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + +2.2. Effective Date + +The licenses granted in Section 2.1 with respect to any Contribution +become effective for each Contribution on the date the Contributor first +distributes such Contribution. + +2.3. Limitations on Grant Scope + +The licenses granted in this Section 2 are the only rights granted under +this License. No additional rights or licenses will be implied from the +distribution or licensing of Covered Software under this License. +Notwithstanding Section 2.1(b) above, no patent license is granted by a +Contributor: + +(a) for any code that a Contributor has removed from Covered Software; + or + +(b) for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + +(c) under Patent Claims infringed by Covered Software in the absence of + its Contributions. + +This License does not grant any rights in the trademarks, service marks, +or logos of any Contributor (except as may be necessary to comply with +the notice requirements in Section 3.4). + +2.4. Subsequent Licenses + +No Contributor makes additional grants as a result of Your choice to +distribute the Covered Software under a subsequent version of this +License (see Section 10.2) or under the terms of a Secondary License (if +permitted under the terms of Section 3.3). + +2.5. Representation + +Each Contributor represents that the Contributor believes its +Contributions are its original creation(s) or it has sufficient rights +to grant the rights to its Contributions conveyed by this License. + +2.6. Fair Use + +This License is not intended to limit any rights You have under +applicable copyright doctrines of fair use, fair dealing, or other +equivalents. + +2.7. Conditions + +Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted +in Section 2.1. + +3. Responsibilities +------------------- + +3.1. Distribution of Source Form + +All distribution of Covered Software in Source Code Form, including any +Modifications that You create or to which You contribute, must be under +the terms of this License. You must inform recipients that the Source +Code Form of the Covered Software is governed by the terms of this +License, and how they can obtain a copy of this License. You may not +attempt to alter or restrict the recipients' rights in the Source Code +Form. + +3.2. Distribution of Executable Form + +If You distribute Covered Software in Executable Form then: + +(a) such Covered Software must also be made available in Source Code + Form, as described in Section 3.1, and You must inform recipients of + the Executable Form how they can obtain a copy of such Source Code + Form by reasonable means in a timely manner, at a charge no more + than the cost of distribution to the recipient; and + +(b) You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter + the recipients' rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + +You may create and distribute a Larger Work under terms of Your choice, +provided that You also comply with the requirements of this License for +the Covered Software. If the Larger Work is a combination of Covered +Software with a work governed by one or more Secondary Licenses, and the +Covered Software is not Incompatible With Secondary Licenses, this +License permits You to additionally distribute such Covered Software +under the terms of such Secondary License(s), so that the recipient of +the Larger Work may, at their option, further distribute the Covered +Software under the terms of either this License or such Secondary +License(s). + +3.4. Notices + +You may not remove or alter the substance of any license notices +(including copyright notices, patent notices, disclaimers of warranty, +or limitations of liability) contained within the Source Code Form of +the Covered Software, except that You may alter any license notices to +the extent required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + +You may choose to offer, and to charge a fee for, warranty, support, +indemnity or liability obligations to one or more recipients of Covered +Software. However, You may do so only on Your own behalf, and not on +behalf of any Contributor. You must make it absolutely clear that any +such warranty, support, indemnity, or liability obligation is offered by +You alone, and You hereby agree to indemnify every Contributor for any +liability incurred by such Contributor as a result of warranty, support, +indemnity or liability terms You offer. You may include additional +disclaimers of warranty and limitations of liability specific to any +jurisdiction. + +4. Inability to Comply Due to Statute or Regulation +--------------------------------------------------- + +If it is impossible for You to comply with any of the terms of this +License with respect to some or all of the Covered Software due to +statute, judicial order, or regulation then You must: (a) comply with +the terms of this License to the maximum extent possible; and (b) +describe the limitations and the code they affect. Such description must +be placed in a text file included with all distributions of the Covered +Software under this License. Except to the extent prohibited by statute +or regulation, such description must be sufficiently detailed for a +recipient of ordinary skill to be able to understand it. + +5. Termination +-------------- + +5.1. The rights granted under this License will terminate automatically +if You fail to comply with any of its terms. However, if You become +compliant, then the rights granted under this License from a particular +Contributor are reinstated (a) provisionally, unless and until such +Contributor explicitly and finally terminates Your grants, and (b) on an +ongoing basis, if such Contributor fails to notify You of the +non-compliance by some reasonable means prior to 60 days after You have +come back into compliance. Moreover, Your grants from a particular +Contributor are reinstated on an ongoing basis if such Contributor +notifies You of the non-compliance by some reasonable means, this is the +first time You have received notice of non-compliance with this License +from such Contributor, and You become compliant prior to 30 days after +Your receipt of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent +infringement claim (excluding declaratory judgment actions, +counter-claims, and cross-claims) alleging that a Contributor Version +directly or indirectly infringes any patent, then the rights granted to +You by any and all Contributors for the Covered Software under Section +2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all +end user license agreements (excluding distributors and resellers) which +have been validly granted by You or Your distributors under this License +prior to termination shall survive termination. + +************************************************************************ +* * +* 6. Disclaimer of Warranty * +* ------------------------- * +* * +* Covered Software is provided under this License on an "as is" * +* basis, without warranty of any kind, either expressed, implied, or * +* statutory, including, without limitation, warranties that the * +* Covered Software is free of defects, merchantable, fit for a * +* particular purpose or non-infringing. The entire risk as to the * +* quality and performance of the Covered Software is with You. * +* Should any Covered Software prove defective in any respect, You * +* (not any Contributor) assume the cost of any necessary servicing, * +* repair, or correction. This disclaimer of warranty constitutes an * +* essential part of this License. No use of any Covered Software is * +* authorized under this License except under this disclaimer. * +* * +************************************************************************ + +************************************************************************ +* * +* 7. Limitation of Liability * +* -------------------------- * +* * +* Under no circumstances and under no legal theory, whether tort * +* (including negligence), contract, or otherwise, shall any * +* Contributor, or anyone who distributes Covered Software as * +* permitted above, be liable to You for any direct, indirect, * +* special, incidental, or consequential damages of any character * +* including, without limitation, damages for lost profits, loss of * +* goodwill, work stoppage, computer failure or malfunction, or any * +* and all other commercial damages or losses, even if such party * +* shall have been informed of the possibility of such damages. This * +* limitation of liability shall not apply to liability for death or * +* personal injury resulting from such party's negligence to the * +* extent applicable law prohibits such limitation. Some * +* jurisdictions do not allow the exclusion or limitation of * +* incidental or consequential damages, so this exclusion and * +* limitation may not apply to You. * +* * +************************************************************************ + +8. Litigation +------------- + +Any litigation relating to this License may be brought only in the +courts of a jurisdiction where the defendant maintains its principal +place of business and such litigation shall be governed by laws of that +jurisdiction, without reference to its conflict-of-law provisions. +Nothing in this Section shall prevent a party's ability to bring +cross-claims or counter-claims. + +9. Miscellaneous +---------------- + +This License represents the complete agreement concerning the subject +matter hereof. If any provision of this License is held to be +unenforceable, such provision shall be reformed only to the extent +necessary to make it enforceable. Any law or regulation which provides +that the language of a contract shall be construed against the drafter +shall not be used to construe this License against a Contributor. + +10. Versions of the License +--------------------------- + +10.1. New Versions + +Mozilla Foundation is the license steward. Except as provided in Section +10.3, no one other than the license steward has the right to modify or +publish new versions of this License. Each version will be given a +distinguishing version number. + +10.2. Effect of New Versions + +You may distribute the Covered Software under the terms of the version +of the License under which You originally received the Covered Software, +or under the terms of any subsequent version published by the license +steward. + +10.3. Modified Versions + +If you create software not governed by this License, and you want to +create a new license for such software, you may create and use a +modified version of this License if you rename the license and remove +any references to the name of the license steward (except to note that +such modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary +Licenses + +If You choose to distribute Source Code Form that is Incompatible With +Secondary Licenses under the terms of this version of the License, the +notice described in Exhibit B of this License must be attached. + +Exhibit A - Source Code Form License Notice +------------------------------------------- + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular +file, then You may include the notice in a location (such as a LICENSE +file in a relevant directory) where a recipient would be likely to look +for such a notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - "Incompatible With Secondary Licenses" Notice +--------------------------------------------------------- + + This Source Code Form is "Incompatible With Secondary Licenses", as + defined by the Mozilla Public License, v. 2.0. diff --git a/iac/.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.21.0/linux_amd64/README.md b/iac/.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.21.0/linux_amd64/README.md new file mode 100644 index 000000000..05f53683d --- /dev/null +++ b/iac/.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.21.0/linux_amd64/README.md @@ -0,0 +1,105 @@ +DigitalOcean Terraform Provider +================== + +- Documentation: https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs + +Requirements +------------ + +- [Terraform](https://www.terraform.io/downloads.html) 0.10.x +- [Go](https://golang.org/doc/install) 1.14 (to build the provider plugin) + +Building The Provider +--------------------- + +Clone repository to: `$GOPATH/src/github.com/digitalocean/terraform-provider-digitalocean` + +```sh +$ mkdir -p $GOPATH/src/github.com/digitalocean; cd $GOPATH/src/github.com/digitalocean +$ git clone git@github.com:digitalocean/terraform-provider-digitalocean +``` + +Enter the provider directory and build the provider + +```sh +$ cd $GOPATH/src/github.com/digitalocean/terraform-provider-digitalocean +$ make build +``` + +Using the provider +---------------------- + +See the [DigitalOcean Provider documentation](https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs) to get started using the DigitalOcean provider. + +Developing the Provider +--------------------------- + +If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.11+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`. + +To compile the provider, run `make build`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory. + +```sh +$ make build +... +$ $GOPATH/bin/terraform-provider-digitalocean +... +``` + +In order to test the provider, you can simply run `make test`. + +```sh +$ make test +``` + +In order to run the full suite of acceptance tests, run `make testacc`. + +*Note:* Acceptance tests create real resources, and often cost money to run. + +```sh +$ make testacc +``` + +In order to run a specific acceptance test, use the `TESTARGS` environment variable. For example, the following command will run `TestAccDigitalOceanDomain_Basic` acceptance test only: + +```sh +$ make testacc TESTARGS='-run=TestAccDigitalOceanDomain_Basic' +``` + +In order to check changes you made locally to the provider, you can use the binary you just compiled by adding the following +to your `~/.terraformrc` file. This is valid for Terraform 0.14+. Please see +[Terraform's documentation](https://www.terraform.io/docs/cli/config/config-file.html#development-overrides-for-provider-developers) +for more details. + +``` +provider_installation { + + # Use /home/developer/go/bin as an overridden package directory + # for the digitalocean/digitalocean provider. This disables the version and checksum + # verifications for this provider and forces Terraform to look for the + # digitalocean provider plugin in the given directory. + dev_overrides { + "digitalocean/digitalocean" = "/home/developer/go/bin" + } + + # For all other providers, install them directly from their origin provider + # registries as normal. If you omit this, Terraform will _only_ use + # the dev_overrides block, and so no other providers will be available. + direct {} +} +``` + +For information about writing acceptance tests, see the main Terraform [contributing guide](https://github.com/hashicorp/terraform/blob/master/.github/CONTRIBUTING.md#writing-acceptance-tests). + +Releasing the Provider +---------------------- + +This repository contains a GitHub Action configured to automatically build and +publish assets for release when a tag is pushed that matches the pattern `v*` +(ie. `v0.1.0`). + +A [Gorelaser](https://goreleaser.com/) configuration is provided that produces +build artifacts matching the [layout required](https://www.terraform.io/docs/registry/providers/publishing.html#manually-preparing-a-release) +to publish the provider in the Terraform Registry. + +Releases will appear as drafts. Once marked as published on the GitHub Releases page, +they will become available via the Terraform Registry. diff --git a/iac/.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.21.0/linux_amd64/terraform-provider-digitalocean_v2.21.0 b/iac/.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.21.0/linux_amd64/terraform-provider-digitalocean_v2.21.0 new file mode 100644 index 000000000..6dc9272f1 Binary files /dev/null and b/iac/.terraform/providers/registry.terraform.io/digitalocean/digitalocean/2.21.0/linux_amd64/terraform-provider-digitalocean_v2.21.0 differ diff --git a/iac/.terraform/providers/registry.terraform.io/hashicorp/local/2.2.3/linux_amd64/terraform-provider-local_v2.2.3_x5 b/iac/.terraform/providers/registry.terraform.io/hashicorp/local/2.2.3/linux_amd64/terraform-provider-local_v2.2.3_x5 new file mode 100644 index 000000000..f0a986154 Binary files /dev/null and b/iac/.terraform/providers/registry.terraform.io/hashicorp/local/2.2.3/linux_amd64/terraform-provider-local_v2.2.3_x5 differ diff --git a/iac/kube_config.yaml b/iac/kube_config.yaml new file mode 100644 index 000000000..0a46c17e1 --- /dev/null +++ b/iac/kube_config.yaml @@ -0,0 +1,17 @@ +apiVersion: v1 +kind: Config +clusters: +- cluster: + certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURKekNDQWcrZ0F3SUJBZ0lDQm5Vd0RRWUpLb1pJaHZjTkFRRUxCUUF3TXpFVk1CTUdBMVVFQ2hNTVJHbG4KYVhSaGJFOWpaV0Z1TVJvd0dBWURWUVFERXhGck9ITmhZWE1nUTJ4MWMzUmxjaUJEUVRBZUZ3MHlNakE0TURZeApPRE01TVRWYUZ3MDBNakE0TURZeE9ETTVNVFZhTURNeEZUQVRCZ05WQkFvVERFUnBaMmwwWVd4UFkyVmhiakVhCk1CZ0dBMVVFQXhNUmF6aHpZV0Z6SUVOc2RYTjBaWElnUTBFd2dnRWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUIKRHdBd2dnRUtBb0lCQVFEVDhYRytmK2lpWVFiVERFRjM2TDQxOC9kNWVleTZqb3J6Y2IzQXJhQzJZMWNLdW9MTgozNkNuOGFIY21vV3Y3b29qOTgzR3F1TlFFL0VLbnFIeng3ZW1yQnk1dmpBU0lOOXZJYU9ZY29Hc2VBQUl4R0dqCmNUYkVyeTdwMWRaaFJwWGNSQklDNjA1RUhJb1dvbjAxTFRrTzdCNGJnQXhpYXk2MW0wSkx3RjBxZlovb2tXakYKWEI5bENYMFFUVmRIKzJ4Z09oTzhrTlBRc3hKMFZpWDRtcnRsVDlLRUovUnV2djZHWm9ERkkra0k0MTFEdm1SQwpkSHByc3p3eUJYN0V6b2JvS05aeWZSaDcwMjl5ZnFEdXRvNG1OQ3hVSnBCbmVuNXBBYUcxNFdYSHh6RWw5dnRFCmFlaktneTJKbmNLOXZFMFo5aGNqeTJMYXlTK1VxY1hEc3J2dkFnTUJBQUdqUlRCRE1BNEdBMVVkRHdFQi93UUUKQXdJQmhqQVNCZ05WSFJNQkFmOEVDREFHQVFIL0FnRUFNQjBHQTFVZERnUVdCQlNNWHB0ejB1bnJYNE9oakd6NApaa0czeDg0VitEQU5CZ2txaGtpRzl3MEJBUXNGQUFPQ0FRRUFiNk5mQ1pvQUNhWG9DTTg0QkYxWndMOHpLRklvClhpbm5qcEZmdjQvRFhQZHlWWmVlSXVJczVqdURjeWZRaWMxbG1mODF2eHVQRW1aVFFKVjQyTUhudTQ0YXp2ODUKclFJbVVhMzNJSTQ0RjJya3cwYTVmUEpIZ2ZVVHA5RWZRS2FVbHc2S2FrVDVzZmxRQ2RTOEpQQlhUWnBqVVo2VApURmJFdkNBUHFzRnRkbTYyWjljZW1ncUFOdGY4M2I5bmh6d3BOTldkSjY1L295RDNxSXR4NWFFcXowcVpJZTl4Cnh2enlpVVhFamt0WXI3RktJYTNraFhxOGp6dFVrTCs2b3NmbWQ1NWpEWFFHa1VEbzJ6Z1R4ekoxNGtQK3BibnkKdDZzOTNyQzRhV1gxaDNBd203YU42cUF2RHQ3U28xcXFnMXNlZ3k5a0hGWTR2SW5TR0xCVDR4MFNEdz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K + server: https://2ce7360f-7c1d-4900-a1db-168cbdf2df79.k8s.ondigitalocean.com + name: do-nyc1-k8s-aula3 +contexts: +- context: + cluster: do-nyc1-k8s-aula3 + user: do-nyc1-k8s-aula3-admin + name: do-nyc1-k8s-aula3 +current-context: do-nyc1-k8s-aula3 +users: +- name: do-nyc1-k8s-aula3-admin + user: + token: dop_v1_fbe7304147aa7f2de12dbd7d8099cfa03db7be5cc04c96372784bca97d1ca0c2 diff --git a/iac/main.tf b/iac/main.tf new file mode 100644 index 000000000..2d71d0dbe --- /dev/null +++ b/iac/main.tf @@ -0,0 +1,50 @@ +terraform { + required_providers { + digitalocean = { + source = "digitalocean/digitalocean" + version = "~> 2.0" + } + } +} + +# Configure the DigitalOcean Provider +provider "digitalocean" { + token = var.do_token + #"dop_v1_d332bb234c47d47307332b931d0c11955d5a452cf93a69e3015ebe9f505bdfda" +} + +resource "digitalocean_kubernetes_cluster" "k8s_aula3" { + name = var.k8s_name + #"k8s-aula3" + region = var.region + #"" + # Grab the latest version slug from `doctl kubernetes options versions` + version = "1.23.9-do.0" + + node_pool { + name = "defauld" + size = "s-2vcpu-2gb" + node_count = 2 + + + } +} +resource "digitalocean_kubernetes_node_pool" "node_Lucas" { + cluster_id = digitalocean_kubernetes_cluster.k8s_aula3.id + + name = "iniciativa" + size = "s-4vcpu-8gb" + node_count = 2 +} +variable "do_token" {} +variable "k8s_name" {} +variable "region" {} + + +output "kube_endpoint"{ + value = digitalocean_kubernetes_cluster.k8s_aula3.endpoint +} +resource "local_file" "kube_config" { + content = digitalocean_kubernetes_cluster.k8s_aula3.kube_config.0.raw_config + filename = "kube_config.yaml" +} \ No newline at end of file diff --git a/iac/terraform.tfstate b/iac/terraform.tfstate new file mode 100644 index 000000000..aa828bec3 --- /dev/null +++ b/iac/terraform.tfstate @@ -0,0 +1,180 @@ +{ + "version": 4, + "terraform_version": "1.2.6", + "serial": 21, + "lineage": "2857be6a-ad87-9425-160b-313eb5369af2", + "outputs": { + "kube_endpoint": { + "value": "https://2ce7360f-7c1d-4900-a1db-168cbdf2df79.k8s.ondigitalocean.com", + "type": "string" + } + }, + "resources": [ + { + "mode": "managed", + "type": "digitalocean_kubernetes_cluster", + "name": "k8s_aula3", + "provider": "provider[\"registry.terraform.io/digitalocean/digitalocean\"]", + "instances": [ + { + "schema_version": 3, + "attributes": { + "auto_upgrade": false, + "cluster_subnet": "10.244.0.0/16", + "created_at": "2022-08-06 18:39:09 +0000 UTC", + "endpoint": "https://2ce7360f-7c1d-4900-a1db-168cbdf2df79.k8s.ondigitalocean.com", + "ha": false, + "id": "2ce7360f-7c1d-4900-a1db-168cbdf2df79", + "ipv4_address": "", + "kube_config": [ + { + "client_certificate": "", + "client_key": "", + "cluster_ca_certificate": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURKekNDQWcrZ0F3SUJBZ0lDQm5Vd0RRWUpLb1pJaHZjTkFRRUxCUUF3TXpFVk1CTUdBMVVFQ2hNTVJHbG4KYVhSaGJFOWpaV0Z1TVJvd0dBWURWUVFERXhGck9ITmhZWE1nUTJ4MWMzUmxjaUJEUVRBZUZ3MHlNakE0TURZeApPRE01TVRWYUZ3MDBNakE0TURZeE9ETTVNVFZhTURNeEZUQVRCZ05WQkFvVERFUnBaMmwwWVd4UFkyVmhiakVhCk1CZ0dBMVVFQXhNUmF6aHpZV0Z6SUVOc2RYTjBaWElnUTBFd2dnRWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUIKRHdBd2dnRUtBb0lCQVFEVDhYRytmK2lpWVFiVERFRjM2TDQxOC9kNWVleTZqb3J6Y2IzQXJhQzJZMWNLdW9MTgozNkNuOGFIY21vV3Y3b29qOTgzR3F1TlFFL0VLbnFIeng3ZW1yQnk1dmpBU0lOOXZJYU9ZY29Hc2VBQUl4R0dqCmNUYkVyeTdwMWRaaFJwWGNSQklDNjA1RUhJb1dvbjAxTFRrTzdCNGJnQXhpYXk2MW0wSkx3RjBxZlovb2tXakYKWEI5bENYMFFUVmRIKzJ4Z09oTzhrTlBRc3hKMFZpWDRtcnRsVDlLRUovUnV2djZHWm9ERkkra0k0MTFEdm1SQwpkSHByc3p3eUJYN0V6b2JvS05aeWZSaDcwMjl5ZnFEdXRvNG1OQ3hVSnBCbmVuNXBBYUcxNFdYSHh6RWw5dnRFCmFlaktneTJKbmNLOXZFMFo5aGNqeTJMYXlTK1VxY1hEc3J2dkFnTUJBQUdqUlRCRE1BNEdBMVVkRHdFQi93UUUKQXdJQmhqQVNCZ05WSFJNQkFmOEVDREFHQVFIL0FnRUFNQjBHQTFVZERnUVdCQlNNWHB0ejB1bnJYNE9oakd6NApaa0czeDg0VitEQU5CZ2txaGtpRzl3MEJBUXNGQUFPQ0FRRUFiNk5mQ1pvQUNhWG9DTTg0QkYxWndMOHpLRklvClhpbm5qcEZmdjQvRFhQZHlWWmVlSXVJczVqdURjeWZRaWMxbG1mODF2eHVQRW1aVFFKVjQyTUhudTQ0YXp2ODUKclFJbVVhMzNJSTQ0RjJya3cwYTVmUEpIZ2ZVVHA5RWZRS2FVbHc2S2FrVDVzZmxRQ2RTOEpQQlhUWnBqVVo2VApURmJFdkNBUHFzRnRkbTYyWjljZW1ncUFOdGY4M2I5bmh6d3BOTldkSjY1L295RDNxSXR4NWFFcXowcVpJZTl4Cnh2enlpVVhFamt0WXI3RktJYTNraFhxOGp6dFVrTCs2b3NmbWQ1NWpEWFFHa1VEbzJ6Z1R4ekoxNGtQK3BibnkKdDZzOTNyQzRhV1gxaDNBd203YU42cUF2RHQ3U28xcXFnMXNlZ3k5a0hGWTR2SW5TR0xCVDR4MFNEdz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K", + "expires_at": "2022-08-13T18:45:19Z", + "host": "https://2ce7360f-7c1d-4900-a1db-168cbdf2df79.k8s.ondigitalocean.com", + "raw_config": "apiVersion: v1\nkind: Config\nclusters:\n- cluster:\n certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURKekNDQWcrZ0F3SUJBZ0lDQm5Vd0RRWUpLb1pJaHZjTkFRRUxCUUF3TXpFVk1CTUdBMVVFQ2hNTVJHbG4KYVhSaGJFOWpaV0Z1TVJvd0dBWURWUVFERXhGck9ITmhZWE1nUTJ4MWMzUmxjaUJEUVRBZUZ3MHlNakE0TURZeApPRE01TVRWYUZ3MDBNakE0TURZeE9ETTVNVFZhTURNeEZUQVRCZ05WQkFvVERFUnBaMmwwWVd4UFkyVmhiakVhCk1CZ0dBMVVFQXhNUmF6aHpZV0Z6SUVOc2RYTjBaWElnUTBFd2dnRWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUIKRHdBd2dnRUtBb0lCQVFEVDhYRytmK2lpWVFiVERFRjM2TDQxOC9kNWVleTZqb3J6Y2IzQXJhQzJZMWNLdW9MTgozNkNuOGFIY21vV3Y3b29qOTgzR3F1TlFFL0VLbnFIeng3ZW1yQnk1dmpBU0lOOXZJYU9ZY29Hc2VBQUl4R0dqCmNUYkVyeTdwMWRaaFJwWGNSQklDNjA1RUhJb1dvbjAxTFRrTzdCNGJnQXhpYXk2MW0wSkx3RjBxZlovb2tXakYKWEI5bENYMFFUVmRIKzJ4Z09oTzhrTlBRc3hKMFZpWDRtcnRsVDlLRUovUnV2djZHWm9ERkkra0k0MTFEdm1SQwpkSHByc3p3eUJYN0V6b2JvS05aeWZSaDcwMjl5ZnFEdXRvNG1OQ3hVSnBCbmVuNXBBYUcxNFdYSHh6RWw5dnRFCmFlaktneTJKbmNLOXZFMFo5aGNqeTJMYXlTK1VxY1hEc3J2dkFnTUJBQUdqUlRCRE1BNEdBMVVkRHdFQi93UUUKQXdJQmhqQVNCZ05WSFJNQkFmOEVDREFHQVFIL0FnRUFNQjBHQTFVZERnUVdCQlNNWHB0ejB1bnJYNE9oakd6NApaa0czeDg0VitEQU5CZ2txaGtpRzl3MEJBUXNGQUFPQ0FRRUFiNk5mQ1pvQUNhWG9DTTg0QkYxWndMOHpLRklvClhpbm5qcEZmdjQvRFhQZHlWWmVlSXVJczVqdURjeWZRaWMxbG1mODF2eHVQRW1aVFFKVjQyTUhudTQ0YXp2ODUKclFJbVVhMzNJSTQ0RjJya3cwYTVmUEpIZ2ZVVHA5RWZRS2FVbHc2S2FrVDVzZmxRQ2RTOEpQQlhUWnBqVVo2VApURmJFdkNBUHFzRnRkbTYyWjljZW1ncUFOdGY4M2I5bmh6d3BOTldkSjY1L295RDNxSXR4NWFFcXowcVpJZTl4Cnh2enlpVVhFamt0WXI3RktJYTNraFhxOGp6dFVrTCs2b3NmbWQ1NWpEWFFHa1VEbzJ6Z1R4ekoxNGtQK3BibnkKdDZzOTNyQzRhV1gxaDNBd203YU42cUF2RHQ3U28xcXFnMXNlZ3k5a0hGWTR2SW5TR0xCVDR4MFNEdz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K\n server: https://2ce7360f-7c1d-4900-a1db-168cbdf2df79.k8s.ondigitalocean.com\n name: do-nyc1-k8s-aula3\ncontexts:\n- context:\n cluster: do-nyc1-k8s-aula3\n user: do-nyc1-k8s-aula3-admin\n name: do-nyc1-k8s-aula3\ncurrent-context: do-nyc1-k8s-aula3\nusers:\n- name: do-nyc1-k8s-aula3-admin\n user:\n token: dop_v1_fbe7304147aa7f2de12dbd7d8099cfa03db7be5cc04c96372784bca97d1ca0c2\n", + "token": "dop_v1_fbe7304147aa7f2de12dbd7d8099cfa03db7be5cc04c96372784bca97d1ca0c2" + } + ], + "maintenance_policy": [ + { + "day": "any", + "duration": "4h0m0s", + "start_time": "0:00" + } + ], + "name": "k8s-aula3", + "node_pool": [ + { + "actual_node_count": 2, + "auto_scale": false, + "id": "9d9f33e0-1404-4603-98d4-50cb9823135a", + "labels": null, + "max_nodes": 0, + "min_nodes": 0, + "name": "defauld", + "node_count": 2, + "nodes": [ + { + "created_at": "2022-08-06 18:39:09 +0000 UTC", + "droplet_id": "311527591", + "id": "93ab14dd-7b9e-4950-99a8-f4db696a358f", + "name": "defauld-73m7k", + "status": "running", + "updated_at": "2022-08-06 18:41:18 +0000 UTC" + }, + { + "created_at": "2022-08-06 18:39:09 +0000 UTC", + "droplet_id": "311527592", + "id": "715ea026-b8fd-43fb-9a2d-2df5563947c7", + "name": "defauld-73m7h", + "status": "running", + "updated_at": "2022-08-06 18:41:18 +0000 UTC" + } + ], + "size": "s-2vcpu-2gb", + "tags": null, + "taint": [] + } + ], + "region": "nyc1", + "service_subnet": "10.245.0.0/16", + "status": "running", + "surge_upgrade": true, + "tags": null, + "timeouts": null, + "updated_at": "2022-08-06 18:45:15 +0000 UTC", + "urn": "do:kubernetes:2ce7360f-7c1d-4900-a1db-168cbdf2df79", + "version": "1.23.9-do.0", + "vpc_uuid": "f7c94538-8c83-4dfb-a17c-3d9c0092283b" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIzIn0=" + } + ] + }, + { + "mode": "managed", + "type": "digitalocean_kubernetes_node_pool", + "name": "node_Lucas", + "provider": "provider[\"registry.terraform.io/digitalocean/digitalocean\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "actual_node_count": 2, + "auto_scale": false, + "cluster_id": "2ce7360f-7c1d-4900-a1db-168cbdf2df79", + "id": "cfdb2c82-d613-42fb-8220-ff25900e531c", + "labels": null, + "max_nodes": 0, + "min_nodes": 0, + "name": "iniciativa", + "node_count": 2, + "nodes": [ + { + "created_at": "2022-08-06 18:45:22 +0000 UTC", + "droplet_id": "311527857", + "id": "5e4dd689-0af9-40f5-b5eb-8f10d91275c8", + "name": "iniciativa-73mqb", + "status": "running", + "updated_at": "2022-08-06 18:46:05 +0000 UTC" + }, + { + "created_at": "2022-08-06 18:45:22 +0000 UTC", + "droplet_id": "311527856", + "id": "10d7a5a1-17f6-46e0-a2c8-a48459aad4a3", + "name": "iniciativa-73mqw", + "status": "running", + "updated_at": "2022-08-06 18:46:05 +0000 UTC" + } + ], + "size": "s-4vcpu-8gb", + "tags": null, + "taint": [], + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjEifQ==", + "dependencies": [ + "digitalocean_kubernetes_cluster.k8s_aula3" + ] + } + ] + }, + { + "mode": "managed", + "type": "local_file", + "name": "kube_config", + "provider": "provider[\"registry.terraform.io/hashicorp/local\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "content": "apiVersion: v1\nkind: Config\nclusters:\n- cluster:\n certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURKekNDQWcrZ0F3SUJBZ0lDQm5Vd0RRWUpLb1pJaHZjTkFRRUxCUUF3TXpFVk1CTUdBMVVFQ2hNTVJHbG4KYVhSaGJFOWpaV0Z1TVJvd0dBWURWUVFERXhGck9ITmhZWE1nUTJ4MWMzUmxjaUJEUVRBZUZ3MHlNakE0TURZeApPRE01TVRWYUZ3MDBNakE0TURZeE9ETTVNVFZhTURNeEZUQVRCZ05WQkFvVERFUnBaMmwwWVd4UFkyVmhiakVhCk1CZ0dBMVVFQXhNUmF6aHpZV0Z6SUVOc2RYTjBaWElnUTBFd2dnRWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUIKRHdBd2dnRUtBb0lCQVFEVDhYRytmK2lpWVFiVERFRjM2TDQxOC9kNWVleTZqb3J6Y2IzQXJhQzJZMWNLdW9MTgozNkNuOGFIY21vV3Y3b29qOTgzR3F1TlFFL0VLbnFIeng3ZW1yQnk1dmpBU0lOOXZJYU9ZY29Hc2VBQUl4R0dqCmNUYkVyeTdwMWRaaFJwWGNSQklDNjA1RUhJb1dvbjAxTFRrTzdCNGJnQXhpYXk2MW0wSkx3RjBxZlovb2tXakYKWEI5bENYMFFUVmRIKzJ4Z09oTzhrTlBRc3hKMFZpWDRtcnRsVDlLRUovUnV2djZHWm9ERkkra0k0MTFEdm1SQwpkSHByc3p3eUJYN0V6b2JvS05aeWZSaDcwMjl5ZnFEdXRvNG1OQ3hVSnBCbmVuNXBBYUcxNFdYSHh6RWw5dnRFCmFlaktneTJKbmNLOXZFMFo5aGNqeTJMYXlTK1VxY1hEc3J2dkFnTUJBQUdqUlRCRE1BNEdBMVVkRHdFQi93UUUKQXdJQmhqQVNCZ05WSFJNQkFmOEVDREFHQVFIL0FnRUFNQjBHQTFVZERnUVdCQlNNWHB0ejB1bnJYNE9oakd6NApaa0czeDg0VitEQU5CZ2txaGtpRzl3MEJBUXNGQUFPQ0FRRUFiNk5mQ1pvQUNhWG9DTTg0QkYxWndMOHpLRklvClhpbm5qcEZmdjQvRFhQZHlWWmVlSXVJczVqdURjeWZRaWMxbG1mODF2eHVQRW1aVFFKVjQyTUhudTQ0YXp2ODUKclFJbVVhMzNJSTQ0RjJya3cwYTVmUEpIZ2ZVVHA5RWZRS2FVbHc2S2FrVDVzZmxRQ2RTOEpQQlhUWnBqVVo2VApURmJFdkNBUHFzRnRkbTYyWjljZW1ncUFOdGY4M2I5bmh6d3BOTldkSjY1L295RDNxSXR4NWFFcXowcVpJZTl4Cnh2enlpVVhFamt0WXI3RktJYTNraFhxOGp6dFVrTCs2b3NmbWQ1NWpEWFFHa1VEbzJ6Z1R4ekoxNGtQK3BibnkKdDZzOTNyQzRhV1gxaDNBd203YU42cUF2RHQ3U28xcXFnMXNlZ3k5a0hGWTR2SW5TR0xCVDR4MFNEdz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K\n server: https://2ce7360f-7c1d-4900-a1db-168cbdf2df79.k8s.ondigitalocean.com\n name: do-nyc1-k8s-aula3\ncontexts:\n- context:\n cluster: do-nyc1-k8s-aula3\n user: do-nyc1-k8s-aula3-admin\n name: do-nyc1-k8s-aula3\ncurrent-context: do-nyc1-k8s-aula3\nusers:\n- name: do-nyc1-k8s-aula3-admin\n user:\n token: dop_v1_fbe7304147aa7f2de12dbd7d8099cfa03db7be5cc04c96372784bca97d1ca0c2\n", + "content_base64": null, + "directory_permission": "0777", + "file_permission": "0777", + "filename": "kube_config.yaml", + "id": "a1af745cdd1f27608c34452b707f8da0d9e424cc", + "sensitive_content": null, + "source": null + }, + "sensitive_attributes": [ + [ + { + "type": "get_attr", + "value": "content" + } + ] + ], + "private": "bnVsbA==", + "dependencies": [ + "digitalocean_kubernetes_cluster.k8s_aula3" + ] + } + ] + } + ] +} diff --git a/iac/terraform.tfstate.backup b/iac/terraform.tfstate.backup new file mode 100644 index 000000000..231e5c0bb --- /dev/null +++ b/iac/terraform.tfstate.backup @@ -0,0 +1,23 @@ +{ + "version": 4, + "terraform_version": "1.2.6", + "serial": 17, + "lineage": "2857be6a-ad87-9425-160b-313eb5369af2", + "outputs": {}, + "resources": [ + { + "mode": "managed", + "type": "digitalocean_kubernetes_node_pool", + "name": "node_Lucas", + "provider": "provider[\"registry.terraform.io/digitalocean/digitalocean\"]", + "instances": [] + }, + { + "mode": "managed", + "type": "local_file", + "name": "kube_config", + "provider": "provider[\"registry.terraform.io/hashicorp/local\"]", + "instances": [] + } + ] +} diff --git a/iac/terraform.tfvars b/iac/terraform.tfvars new file mode 100644 index 000000000..d42015ba2 --- /dev/null +++ b/iac/terraform.tfvars @@ -0,0 +1,3 @@ +do_token="dop_v1_c5763f54f4e690284dc3fd13c3487386559f34766c20b76efc39a1f271099c37" +k8s_name="k8s-aula3" +region="nyc1" \ No newline at end of file diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml new file mode 100644 index 000000000..f84bf3a73 --- /dev/null +++ b/k8s/deployment.yaml @@ -0,0 +1,76 @@ +# Deploymente +apiVersion: apps/v1 +kind: Deployment +metadata: + name: postgre +spec: + selector: + matchLabels: + app: postgre + template: + metadata: + labels: + app: postgre + spec: + containers: + - name: postgre + image: postgres:14.4 + ports: + - containerPort: 5432 + env: + - name: POSTGRES_PASSWORD + value: "kube#123" + - name: POSTGRES_USER + value: "kubenews" + - name: POSTGRES_DB + value: "kubenews" +--- +apiVersion: v1 +kind: Service +metadata: + name: postgre +spec: + selector: + app: postgre + ports: + - port: 5432 + targetPort: 5432 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: kubenews +spec: + selector: + matchLabels: + app: kubenews + template: + metadata: + labels: + app: kubenews + spec: + containers: + - name: kubenews + image: lucasdantas123/kube-new:v1 + env: + - name: DB_DATABASE + value: "kubedevnews" + - name: DB_USERNAME + value: "kubedevnews" + - name: DB_PASSWORD + value: "Pg#123" + - name: DB_HOST + value: "localhost" +--- +apiVersion: v1 +kind: Service +metadata: + name: kube-news +spec: + selector: + app: kubenews + ports: + - port: 80 + targetPort: 8080 + nodePort: 30000 + type: LoadBalancer diff --git a/src/.dockerignore b/src/.dockerignore new file mode 100644 index 000000000..40b878db5 --- /dev/null +++ b/src/.dockerignore @@ -0,0 +1 @@ +node_modules/ \ No newline at end of file diff --git a/src/Dockerfile b/src/Dockerfile new file mode 100644 index 000000000..d5d4c83cd --- /dev/null +++ b/src/Dockerfile @@ -0,0 +1,7 @@ +FROM node:16.15.0 +WORKDIR /app +COPY package*.json ./ +RUN npm install +COPY . . +EXPOSE 8080 +CMD ["node","server.js"] \ No newline at end of file