diff --git a/terraform/.terraform.lock.hcl b/terraform/.terraform.lock.hcl new file mode 100644 index 0000000..a2aa678 --- /dev/null +++ b/terraform/.terraform.lock.hcl @@ -0,0 +1,39 @@ +# This file is maintained automatically by "terraform init". +# Manual edits may be lost in future updates. + +provider "registry.terraform.io/e-breuninger/netbox" { + version = "5.0.0" + constraints = "5.0.0" + hashes = [ + "h1:+EQEyf7E240dsEX5EQmEcIBFiroHg1ifciwjYKzGmnI=", + "zh:06b65249c1dfd7ee329c5f867ea6ded971258a66c1846427aeee3d186f68faa6", + "zh:0a779110713699ee5b71bf7da2ad51cebe23c69af666d41fa067691e7861cef0", + "zh:2f85f5b08e569d5b9ab43201d2f5b1d324d1c3fdf6c6f3db5cf74285be357add", + "zh:43bf58446e32717e406a9f3f0b560e6d285daa643a55430a22f4f44c26bd60c5", + "zh:605a2153f3e0f1066043b970ff8eb47eb3f9f1b4f5f977de08c0f4c477b797a6", + "zh:85900aa75ef026fc717ef6884adf588b4980c9794f27a66a9473d50ff11f700a", + "zh:9eded54924f051ec2c5da900397e5c50da10f4879400ef7912bfb7cd367a1b8e", + "zh:b58f310391dd9d2739d72da8184fb8c0ee133b47cde6ff16fac6778a1c5fb9be", + ] +} + +provider "registry.terraform.io/hetznercloud/hcloud" { + version = "1.57.0" + constraints = "1.57.0" + hashes = [ + "h1:3L7tShwvc84Pq3x++t/eUOCpRj56+0zz0xXLSL0MzmM=", + "zh:016ecc39328f34f6c0ffa413598f354824f7878c89cd031f123edb4bc8a687a2", + "zh:10b362dc0847200c987214b129b5f85e2f7d8ad417261a1d2dd04ab74de15603", + "zh:194647d9a61dca4f411f44580316b88a11095d7a99679d445f9b0f2c1ba976c4", + "zh:1d8aafe2ce7890696385bb3a0c3286e7ee3020416d337f59935406e4c6f91de6", + "zh:594585616210fb232fad4ebda2387ecd3f483931e00eff988fca83add6ce7cfc", + "zh:65e50be33ffb85580546f119839e1293591cc6d4db729d809931d0408b6ae408", + "zh:7d4ed5bd8c477ec304142e2160203a76a0d09c93d224950bda253172b2571038", + "zh:90a70a70a266b78c8216903e711904e6969b3957d182602b5d788602ec9ef323", + "zh:abb8e28e96fb8de270995873de980896b7cb53cfc550f02c50eaa42884624ba9", + "zh:bbf34dca2de6e105ca7204222162a0402d8e9e9a28e1de5ffbaa2c0d6270a059", + "zh:c1a9edb693d632dcb5c3c9ee84c97138e08eadb9354e28592efd581f68ac0385", + "zh:dadbf1368fae314fe8dcb99ebefbc78409f3fc0e3808cd92ea573b8eee1cae98", + "zh:e713e00ca27348abd18da2eeff861905e84050e3e7e008f14a0c63c70ab2ff84", + ] +} diff --git a/terraform/.terraform/providers/registry.terraform.io/e-breuninger/netbox/5.0.0/windows_amd64/CHANGELOG.md b/terraform/.terraform/providers/registry.terraform.io/e-breuninger/netbox/5.0.0/windows_amd64/CHANGELOG.md new file mode 100644 index 0000000..0ad7c84 --- /dev/null +++ b/terraform/.terraform/providers/registry.terraform.io/e-breuninger/netbox/5.0.0/windows_amd64/CHANGELOG.md @@ -0,0 +1,1192 @@ +## 5.0.0 (September 12th, 2025) + +ENHANCEMENTS + +provider: Now supports NetBox 4.3.x and 4.4.0 + +## 4.3.1 (September 12th, 2025) + +ENHANCEMENTS + +* provider: Allow setting a CA file in the provider ([#765](https://github.com/e-breuninger/terraform-provider-netbox/pull/765) by [@bodgit](https://github.com/bodgit)) + +## 4.3.0 (September 11th, 2025) + +ENHANCEMENTS + +* **New Data Source:** `netbox_rir` ([#759](https://github.com/e-breuninger/terraform-provider-netbox/pull/759) by [@MrKeiKun](https://github.com/MrKeiKun)) +* data-source/netbox_prefixes: Allow filtering by `description` ([#756](https://github.com/e-breuninger/terraform-provider-netbox/pull/756) by [@jonas-sjodin-h2gs](https://github.com/jonas-sjodin-h2gs)) +* resource/netbox_contact: Add `link` and `description` attributes ([#753](https://github.com/e-breuninger/terraform-provider-netbox/pull/753) by [@hikhvar](https://github.com/hikhvar)) +* resource/netbox_ip_range: Add `size` attribute ([#761](https://github.com/e-breuninger/terraform-provider-netbox/pull/761) by [@MrKeiKun](https://github.com/MrKeiKun)) +* data-source/netbox_device_interfaces: Add `type` attribute to results ([#764](https://github.com/e-breuninger/terraform-provider-netbox/pull/764) by [@xvzf](https://github.com/xvzf)) + +BUG FIXES + +* resource/netbox_available_ip_address: Prevent provider crash when no IP is available ([#760](https://github.com/e-breuninger/terraform-provider-netbox/pull/760) by [@MrKeiKun](https://github.com/MrKeiKun)) + +## 4.2.0 (August 20th, 2025) + +ENHANCEMENTS + +* **New Resource:** `netbox_device_bay` ([#734](https://github.com/e-breuninger/terraform-provider-netbox/pull/734) by [@kyleprice](https://github.com/kyleprice)) +* **New Resource:** `netbox_device_bay_template` ([#734](https://github.com/e-breuninger/terraform-provider-netbox/pull/734) by [@kyleprice](https://github.com/kyleprice)) +* **New Data Source:** `netbox_ip_address` ([#743](https://github.com/e-breuninger/terraform-provider-netbox/pull/743) by [@c24holdingit](https://github.com/c24holdingit)) +* resource/netbox_device_type: Add `subdevice_role` field ([#734](https://github.com/e-breuninger/terraform-provider-netbox/pull/734) by [@kyleprice](https://github.com/kyleprice)) +* data-source/netbox_device_type: Add `subdevice_role` field ([#734](https://github.com/e-breuninger/terraform-provider-netbox/pull/734) by [@kyleprice](https://github.com/kyleprice)) +* resource/netbox_token: Add `expires` field ([#742](https://github.com/e-breuninger/terraform-provider-netbox/pull/742) by [@thomas-VIGINUM](https://github.com/thomas-VIGINUM)) + +## 4.1.0 (July 2nd, 2025) + +ENHANCEMENTS + +* **New Data Source:** `netbox_virtual_disk` ([#731](https://github.com/e-breuninger/terraform-provider-netbox/pull/731) by [@lgogolin](https://github.com/lgogolin)) +* resource/netbox_available_prefix: Add `custom_fields` attribute ([#679](https://github.com/e-breuninger/terraform-provider-netbox/pull/679) by [@rs-hock](https://github.com/rs-hock)) +* data-source/netbox_devices: Add `oob_ip` attribute to output([#705](https://github.com/e-breuninger/terraform-provider-netbox/pull/705) by [@sempervictus](https://github.com/sempervictus)) + +BUG FIXES + +* provider: Now properly detects netbox-docker versions + +## 4.0.0 (June 12th, 2025) + +**BREAKING CHANGES** + +NetBox 4.2 came with some breaking changes and these are reflected in the provider. + +* resource/netbox_device_interface: Make `mac_address` attribute read-only +* resource/netbox_device_interface: Add read-only `mac_addresses` attribute + +ENHANCEMENTS + +provider: Now supports NetBox 4.2.x +* **New Resource:** `netbox_mac_address` +* resource/netbox_cluster: Add `location_id`, `site_group_id`, `region_id`, `scope_id` and `scope_type` attributes +* resource/netbox_prefix: Add `location_id`, `site_group_id` and `region_id` attributes +* resource/netbox_device_interface: Allow `q-in-q` value in `mode` attribute +* resource/netbox_circuit_termination: Add `location_id`, `site_group_id`, `region_id`, `site_id` and `provider_network_id` attributes + +BUG FIXES + +* resource/netbox_location: Mark `site_id` as required + +## 3.11.1 (June 12th, 2025) + +ENHANCEMENTS + +* **New Data Source:** `netbox_device_power_ports` ([#721](https://github.com/e-breuninger/terraform-provider-netbox/pull/721) by [@mraerino](https://github.com/mraerino)) +* **New Resource:** `netbox_available_vlan` ([#717](https://github.com/e-breuninger/terraform-provider-netbox/pull/717) by [@MacherelR](https://github.com/MacherelR)) + +## 3.11.0 (May 27th, 2025) + +* provider: Add `default_tags` attribute ([#711](https://github.com/e-breuninger/terraform-provider-netbox/pull/711) by [@mraerino](https://github.com/mraerino)) + +ENHANCEMENTS + +* **New Data Source:** `netbox_ip_ranges` ([#719](https://github.com/e-breuninger/terraform-provider-netbox/pull/719) by [@waza-ari](https://github.com/waza-ari)) +* resource/netbox_device: Allow `decommissioning` value in `status` attribute ([#767](https://github.com/e-breuninger/terraform-provider-netbox/pull/767) by [@sboschman](https://github.com/sboschman)) +* resource/netbox_site: Add `comments` attribute ([#710](https://github.com/e-breuninger/terraform-provider-netbox/pull/710) by [@mraerino](https://github.com/mraerino)) +* resource/netbox_user: Add `email`, `first_name` and `last_name` attributes ([#693](https://github.com/e-breuninger/terraform-provider-netbox/pull/693) by [@mraerino](https://github.com/mraerino)) +* data-source/netbox_device_interfaces: Add `limit` attribute ([#695](https://github.com/e-breuninger/terraform-provider-netbox/pull/695) by [@sempervictus](https://github.com/sempervictus)) +* resource/netbox_group: Add `description` attribute ([#694](https://github.com/e-breuninger/terraform-provider-netbox/pull/694) by [@mraerino](https://github.com/mraerino)) +* resource/netbox_location: Add `facility` attribute ([#718](https://github.com/e-breuninger/terraform-provider-netbox/pull/718) by [@mraerino](https://github.com/mraerino)) +* data-source/netbox_locations: Add `facility` attribute ([#718](https://github.com/e-breuninger/terraform-provider-netbox/pull/718) by [@mraerino](https://github.com/mraerino)) + +## 3.10.0 (January 9th, 2025) + +**BREAKING CHANGES** + +NetBox 4.1 came with some breaking changes and these are reflected in the provider. + +* resource/netbox_event_rule: Replace `trigger_on_X` attributes with `event_types` list attribute +* resource/netbox_racks: Remove `type` attribute +* resource/netbox_virtual_disk: Change `size_gb` attribute to `size_mb` +* resource/netbox_virtual_machine: Change `disk_size_gb` attribute to `disk_size_mb` +* resource/netbox_vlan_group: Remove `min_vid` and `max_vid` attributes in favor of `vid_ranges` attribute + +ENHANCEMENTS + +provider: Now supports NetBox 4.1.x +* **New Resource:** `netbox_rack_type` +* resource/netbox_racks: Add `form_factor` attribute + +## 3.9.3 (January 9th, 2025) + +ENHANCEMENTS + +* resource/netbox_custom_field: Add `default` attribute ([#647](https://github.com/e-breuninger/terraform-provider-netbox/pull/647) by [@jenxie](https://github.com/jenxie)) +* data-source/netbox_vlans: Allow filtering by `site_id` ([#654](https://github.com/e-breuninger/terraform-provider-netbox/pull/654) by [@i-am-smolli](https://github.com/i-am-smolli)) +* data-source/netbox_vlan_group: Make `name` and `slug` definitions optional when `scope_type` is defined ([#657](https://github.com/e-breuninger/terraform-provider-netbox/pull/657) by [@TGM](https://github.com/TGM)) +* resource/netbox_asn: Add `description` and `comments` attributes ([#664](https://github.com/e-breuninger/terraform-provider-netbox/pull/664) by [@ymylei](https://github.com/ymylei)) +* data-source/netbox_prefix: Allow searching by `tenant_id` and `status` ([#666](https://github.com/e-breuninger/terraform-provider-netbox/pull/666) by [@xabinapal](https://github.com/xabinapal)) +* data-source/netbox_prefixes: Allow searching by `tenant_id` ([#666](https://github.com/e-breuninger/terraform-provider-netbox/pull/666) by [@xabinapal](https://github.com/xabinapal)) + +## 3.9.2 (October 10th, 2024) + +ENHANCEMENTS + +* provider: Include 4.0.11 in supported versions +* resource/netbox_ip_address: Add `custom_fields` attribute ([#638](https://github.com/e-breuninger/terraform-provider-netbox/pull/638) by [@greatman](https://github.com/greatman)) +* resource/netbox_service: Add `device_id`, `description` and `tags` attributes ([#637](https://github.com/e-breuninger/terraform-provider-netbox/pull/637) by [@STANIAC](https://github.com/STANIAC)) +* data-source/netbox_vrf: Fix a bug where `tenant_id` was not used ([#643](https://github.com/e-breuninger/terraform-provider-netbox/pull/643) by [@c3JpbmkK](https://github.com/c3JpbmkK)) + +## 3.9.1 (September 2nd, 2024) + +ENHANCEMENTS + +provider: Include 4.0.9 and 4.0.10 in supported versions + +## 3.9.0 (August 10th, 2024) + +ENHANCEMENTS + +provider: Now is tested against (= supports) the NetBox 4.0.x range + +## 3.8.9 (July 31st, 2024) + +ENHANCEMENTS + +* data-source/netbox_virtual_machines: Add `status` attribute ([#612](https://github.com/e-breuninger/terraform-provider-netbox/pull/612) by [@twink0r](https://github.com/twink0r)) +* data-source/netbox_vlans: Add `tag_ids` attribute ([#621](https://github.com/e-breuninger/terraform-provider-netbox/pull/621) by [@Piethan](https://github.com/Piethan)) +* data-source/netbox_vlans: Add `status` attribute ([#622](https://github.com/e-breuninger/terraform-provider-netbox/pull/622) by [@Piethan](https://github.com/Piethan)) +* data-source/netbox_devices: Add `device_type_id` attribute ([#624](https://github.com/e-breuninger/terraform-provider-netbox/pull/624) by [@Piethan](https://github.com/Piethan)) + +## 3.8.8 (July 22th, 2024) + +ENHANCEMENTS + +* data-source/netbox_prefixes: Add `contains` and `site_id` attributes ([#617](https://github.com/e-breuninger/terraform-provider-netbox/pull/617) by [@tagur87](https://github.com/tagur87)) + +BUG FIXES + +* resource/netbox_vpn_tunnel_termination: Fix a interface conversion panic when updating tunnel terminations ([#616](https://github.com/e-breuninger/terraform-provider-netbox/pull/616) by [@mraerino](https://github.com/mraerino)) + +## 3.8.7 (June 28th, 2024) + +ENHANCEMENTS + +* **New Resource:** `netbox_interface_template` ([#588](https://github.com/e-breuninger/terraform-provider-netbox/pull/588) by [@thibaultbustarret-ovhcloud](https://github.com/thibaultbustarret-ovhcloud)) +* **New Resource:** `netbox_config_context` ([#590](https://github.com/e-breuninger/terraform-provider-netbox/pull/590) by [@diogenxs](https://github.com/diogenxs)) +* **New Data Source:** `netbox_config_context` ([#590](https://github.com/e-breuninger/terraform-provider-netbox/pull/590) by [@diogenxs](https://github.com/diogenxs)) +* data-source/netbox_devices: Add `config_context` and `local_context_data` attributes ([#590](https://github.com/e-breuninger/terraform-provider-netbox/pull/590) by [@diogenxs](https://github.com/diogenxs)) +* resource/netbox_device_interface: Add `label` attribute ([#605](https://github.com/e-breuninger/terraform-provider-netbox/pull/605) by [@thibaultbustarret-ovhcloud](https://github.com/thibaultbustarret-ovhcloud)) +* **New Resource:** `netbox_config_template` ([#604](https://github.com/e-breuninger/terraform-provider-netbox/pull/604) by [@thibaultbustarret-ovhcloud](https://github.com/thibaultbustarret-ovhcloud)) +* resource/netbox_device: Add `config_template_id` attribute ([#604](https://github.com/e-breuninger/terraform-provider-netbox/pull/604) by [@thibaultbustarret-ovhcloud](https://github.com/thibaultbustarret-ovhcloud)) +* data-source/netbox_prefix: Add `role_id` and `custom_fields` attributes ([#607](https://github.com/e-breuninger/terraform-provider-netbox/pull/607) by [@ad8lmondy](https://github.com/ad8lmondy)) +* resource/netbox_platform: Add `manufacturer_id` attribute ([#608](https://github.com/e-breuninger/terraform-provider-netbox/pull/608) by [@ad8lmondy](https://github.com/ad8lmondy)) +* data-source/netbox_platform: Add `manufacturer_id` attribute ([#608](https://github.com/e-breuninger/terraform-provider-netbox/pull/608) by [@ad8lmondy](https://github.com/ad8lmondy)) + +## 3.8.6 (May 17th, 2024) + +ENHANCEMENTS + +* resource/netbox_rir: Add `is_private` attribute ([#594](https://github.com/e-breuninger/terraform-provider-netbox/pull/594) by [@thibaultbustarret-ovhcloud](https://github.com/thibaultbustarret-ovhcloud)) +* resource/netbox_vrf: Add `rd` and `enforce_unique` attributes ([#585](https://github.com/e-breuninger/terraform-provider-netbox/pull/585) by [@thibaultbustarret-ovhcloud](https://github.com/thibaultbustarret-ovhcloud)) +* **New Resource:** `netbox_group` ([#584](https://github.com/e-breuninger/terraform-provider-netbox/pull/584) by [@thibaultbustarret-ovhcloud](https://github.com/thibaultbustarret-ovhcloud)) +* resource/netbox_user: Add `group_ids` attribute ([#584](https://github.com/e-breuninger/terraform-provider-netbox/pull/584) by [@thibaultbustarret-ovhcloud](https://github.com/thibaultbustarret-ovhcloud)) + +## 3.8.5 (March 18th, 2024) + +BUG FIXES + +* All resources with `slug` attributes now properly allow for up to 100 characters in that attribute + +## 3.8.4 (March 11th, 2024) + +ENHANCEMENTS + +* data-source/netbox_interfaces: Add `limit` attribute + +## 3.8.3 (March 8th, 2024) + +ENHANCEMENTS + +* **New Resource:** `netbox_vpn_tunnel_termination` + +## 3.8.2 (March 4th, 2024) + +ENHANCEMENTS + +* **New Resource:** `netbox_virtual_disk` ([#558](https://github.com/e-breuninger/terraform-provider-netbox/pull/558) by [@Ikke](https://github.com/Ikke)) +* resource/netbox_prefix: Add `custom_fields` attribute ([#553](https://github.com/e-breuninger/terraform-provider-netbox/pull/553) by [@nothinux](https://github.com/nothinux)) + +## 3.8.1 (February 16th, 2024) + +ENHANCEMENTS + +* **New Resource:** `netbox_vpn_tunnel_group` +* **New Resource:** `netbox_vpn_tunnel` +* data-source/netbox_virtual_machines: Add `platform_slug` attribute +* data-source/netbox_locations: Add `parent_id` attribute ([#548](https://github.com/e-breuninger/terraform-provider-netbox/pull/548) by [@GennadySpb](https://github.com/GennadySpb)) +* data-source/netbox_location: Add `parent_id` attribute ([#548](https://github.com/e-breuninger/terraform-provider-netbox/pull/548) by [@GennadySpb](https://github.com/GennadySpb)) +* resource/netbox_location: Add `parent_id` attribute ([#548](https://github.com/e-breuninger/terraform-provider-netbox/pull/548) by [@GennadySpb](https://github.com/GennadySpb)) +* resource/device_type: Add `is_full_depth` attribute + +## 3.8.0 (January 30th, 2024) + +**BREAKING CHANGES** +Due to a change in NetBox 3.7's behavior regarding Webhooks and the corresponding changes in the API, +the `netbox_webhook` resource might cause problems with NetBox versions older than 3.7.0. +For all other resources and data sources, the provider should still perform fine with older NetBox versions. + +* resource/netbox_webhook: Removed `enabled`, `trigger_on_create`, `trigger_on_update`, `trigger_on_delete`, `content_types` and `conditions` + +ENHANCEMENTS + +* provider: Now officially supports NetBox 3.7 +* **New Resource:** `netbox_event_rule` + +## 3.7.7 (January 30th, 2024) + +BUG FIXES + +* resource/netbox_device: Fix Virtual Chassis Master Update Function for Tag Input ([#532](https://github.com/e-breuninger/terraform-provider-netbox/pull/532) by [@adelekanley](https://github.com/adelekanley)) + +## 3.7.6 (January 2nd, 2024) + +ENHANCEMENTS + +* resource/netbox_webhook: Add `additional_headers` and `conditions` attributes ([#505](https://github.com/e-breuninger/terraform-provider-netbox/pull/505) by [@Ikke](https://github.com/Ikke)) +* data-source/netbox_vrfs: Allow filtering by `tag` ([#513](https://github.com/e-breuninger/terraform-provider-netbox/pull/513) by [@sjurtf](https://github.com/sjurtf)) +* data-source/netbox_virtual_machines: Allow filtering by `tenant_id` ([#511](https://github.com/e-breuninger/terraform-provider-netbox/pull/511) by [@sjurtf](https://github.com/sjurtf)) +* data-source/netbox_ip_addresses: Allow filtering by `tag` ([#510](https://github.com/e-breuninger/terraform-provider-netbox/pull/510) by [@sjurtf](https://github.com/sjurtf)) +* data-source/netbox_cluster: Allow filtering by `cluster_group_id` ([#528](https://github.com/e-breuninger/terraform-provider-netbox/pull/528) by [@Ikke](https://github.com/Ikke)) + +BUG FIXES + +* resources/netbox_webhook: Fix a bug where JSON encoding would break drift detection ([#505](https://github.com/e-breuninger/terraform-provider-netbox/pull/505) by [@Ikke](https://github.com/Ikke)) +* data-source/netbox_site: Mark optionally searchable attributes as `computed` as well ([#520](https://github.com/e-breuninger/terraform-provider-netbox/pull/520) by [@tagur87](https://github.com/tagur87)) + +## 3.7.5 (November 27th, 2023) + +* **New Data Source:** `netbox_locations` ([#503](https://github.com/e-breuninger/terraform-provider-netbox/pull/503) by [@Ikke](https://github.com/Ikke)) + +## 3.7.4 (November 22nd, 2023) + +ENHANCEMENTS + +* **New Resource:** `netbox_virtual_chassis` ([#497](https://github.com/e-breuninger/terraform-provider-netbox/pull/497) by [@Ikke](https://github.com/Ikke)) +* resource/netbox_device: Add `virtual_chassis_id`, `virtual_chassis_master`, `virtual_chassis_position` and `virtual_chassis_priority` attributes ([#500](https://github.com/e-breuninger/terraform-provider-netbox/pull/500) by [@Ikke](https://github.com/Ikke)) + +## 3.7.3 (November 3rd, 2023) + +ENHANCEMENTS + +* resource/netbox_site: Allow unsetting the `latitude` and `longitude` attributes ([#480](https://github.com/e-breuninger/terraform-provider-netbox/pull/480) by [@haipersuccor02](https://github.com/haipersuccor02)) +* **New Data Source:** `netbox_tags` ([#484](https://github.com/e-breuninger/terraform-provider-netbox/pull/484) by [@zeddD1abl0](https://github.com/zeddD1abl0)) +* data-source/netbox_ip_addresses: Allow filtering by `parent_prefix` ([#485](https://github.com/e-breuninger/terraform-provider-netbox/pull/485) by [@sjurtf](https://github.com/sjurtf)) +* data-source/netbox_devices: Allow filtering by `tags` and `status` ([#491](https://github.com/e-breuninger/terraform-provider-netbox/pull/491) by [@Kenterfie](https://github.com/Kenterfie)) +* **New Data Source:** `netbox_available_prefixes` ([#489](https://github.com/e-breuninger/terraform-provider-netbox/pull/489) by [@theochita](https://github.com/theochita)) +* resource/netbox_device: Add `local_context_data` attribute ([#493](https://github.com/e-breuninger/terraform-provider-netbox/pull/493) by [@RickyRajinder](https://github.com/RickyRajinder)) + +## 3.7.2 (October 10th, 2023) + +ENHANCEMENTS + +* data-source/netbox_location: Allow searching by `site_id` ([#482](https://github.com/e-breuninger/terraform-provider-netbox/pull/482) by [@w87x](https://github.com/w87x)) +* data-source/netbox_ip_addresses: Allow searching by `role`, `status`, `vrf` and `tenant` ([#479](https://github.com/e-breuninger/terraform-provider-netbox/pull/479) by [@sjurtf](https://github.com/sjurtf)) +* data-source/netbox_site: Allow Searching by `facility` ([#483](https://github.com/e-breuninger/terraform-provider-netbox/pull/483) by [@ikke](https://github.com/ikke)) + +## 3.7.1 (September 25th, 2023) + +ENHANCEMENTS + +* **New Data Source:** `netbox_device_interfaces` ([#476](https://github.com/e-breuninger/terraform-provider-netbox/pull/476) by [@w87x](https://github.com/w87x)) +* resource/netbox_token: Add `description` attribute ([#473](https://github.com/e-breuninger/terraform-provider-netbox/pull/473) by [@twink0r](https://github.com/twink0r)) +* data-source/netbox_virtual_machines: Include `device_id` and `device_name` attributes in result ([#477](https://github.com/e-breuninger/terraform-provider-netbox/pull/477) by [@zeddD1abl0](https://github.com/zeddD1abl0)) + +## 3.7.0 (September 14th, 2023) + +**BREAKING CHANGES** + +* resource/netbox_custom_field: Replace `choices` attribute with `choice_set_id` attribute + +ENHANCEMENTS + +* provider: Now officially supports NetBox 3.6 +* **New Resource:** `netbox_custom_field_choice_set` + +## 3.6.2 (September 14th, 2023) + +FEATURES + +* **New Data Source:** `netbox_location` ([#467](https://github.com/e-breuninger/terraform-provider-netbox/pull/467) by [@w87x](https://github.com/w87x)) +* data-source/netbox_virtual_machines: Allow searching by tag ([#466](https://github.com/e-breuninger/terraform-provider-netbox/pull/466) by [@twink0r](https://github.com/twink0r)) +* resource/netbox_device: Add `asset_tag` attribute ([#470](https://github.com/e-breuninger/terraform-provider-netbox/pull/470) by [@bebehei](https://github.com/bebehei)) +* resource/netbox_device_interface: Add `speed`, `lag_device_interface_id` and `parent_device_interface_id` attributes ([#469](https://github.com/e-breuninger/terraform-provider-netbox/pull/469) by [@bebehei](https://github.com/bebehei)) + +BUG FIXES + +* resource/netbox_custom_field: Allow correct value `json` instead of `JSON` ([#459](https://github.com/e-breuninger/terraform-provider-netbox/pull/459) by [@menselman](https://github.com/menselman)) + +## 3.6.1 (August 31th, 2023) + +FEATURES + +* **New Resource:** `netbox_webhook` ([#438](https://github.com/e-breuninger/terraform-provider-netbox/pull/438) by [@haipersuccor02](https://github.com/haipersuccor02)) + +## 3.6.0 (August 18th, 2023) + +**BREAKING CHANGES** +Due to a change in NetBox 3.5's behavior regarding ASN and the corresponding required changes in the go library that is used in this provider, +the `netbox_asn` resource and the `netbox_asns` data source are no longer supported in versions older than 3.5. +For all other resources and data sources, the provider should still perform fine with older NetBox versions. + +ENHANCEMENTS + +* provider: Now officially supports NetBox 3.5 + +## 3.5.5 (August 18th, 2023) + +ENHANCEMENTS + +* data-source/netbox_cluster: Allow searching by `id` field and include `custom_fields` attribute in output ([#457](https://github.com/e-breuninger/terraform-provider-netbox/pull/457) by [@fred-clement-91](https://github.com/fred-clement-91)) + +BUG FIXES + +* resource/netbox_device_interface: Changing `mac_address` no longer needlessly forces a recreate of the resource ([#454](https://github.com/e-breuninger/terraform-provider-netbox/pull/454) by [@hamzazaman](https://github.com/hamzazaman)) + +## 3.5.4 (August 7th, 2023) + +FEATURES + +* **New Resource:** `netbox_cable` ([#450](https://github.com/e-breuninger/terraform-provider-netbox/pull/450) by [@joeyberkovitz](https://github.com/joeyberkovitz)) +* **New Resource:** `netbox_device_console_port` ([#450](https://github.com/e-breuninger/terraform-provider-netbox/pull/450) by [@joeyberkovitz](https://github.com/joeyberkovitz)) +* **New Resource:** `netbox_device_console_server_port` ([#450](https://github.com/e-breuninger/terraform-provider-netbox/pull/450) by [@joeyberkovitz](https://github.com/joeyberkovitz)) +* **New Resource:** `netbox_device_power_port` ([#450](https://github.com/e-breuninger/terraform-provider-netbox/pull/450) by [@joeyberkovitz](https://github.com/joeyberkovitz)) +* **New Resource:** `netbox_device_power_outlet` ([#450](https://github.com/e-breuninger/terraform-provider-netbox/pull/450) by [@joeyberkovitz](https://github.com/joeyberkovitz)) +* **New Resource:** `netbox_device_front_port` ([#450](https://github.com/e-breuninger/terraform-provider-netbox/pull/450) by [@joeyberkovitz](https://github.com/joeyberkovitz)) +* **New Resource:** `netbox_device_rear_port` ([#450](https://github.com/e-breuninger/terraform-provider-netbox/pull/450) by [@joeyberkovitz](https://github.com/joeyberkovitz)) +* **New Resource:** `netbox_device_module_bay` ([#450](https://github.com/e-breuninger/terraform-provider-netbox/pull/450) by [@joeyberkovitz](https://github.com/joeyberkovitz)) +* **New Resource:** `netbox_module` ([#450](https://github.com/e-breuninger/terraform-provider-netbox/pull/450) by [@joeyberkovitz](https://github.com/joeyberkovitz)) +* **New Resource:** `netbox_module_type` ([#450](https://github.com/e-breuninger/terraform-provider-netbox/pull/450) by [@joeyberkovitz](https://github.com/joeyberkovitz)) +* **New Resource:** `netbox_power_feed` ([#450](https://github.com/e-breuninger/terraform-provider-netbox/pull/450) by [@joeyberkovitz](https://github.com/joeyberkovitz)) +* **New Resource:** `netbox_power_panel` ([#450](https://github.com/e-breuninger/terraform-provider-netbox/pull/450) by [@joeyberkovitz](https://github.com/joeyberkovitz)) +* **New Resource:** `netbox_inventory_item_role` ([#450](https://github.com/e-breuninger/terraform-provider-netbox/pull/450) by [@joeyberkovitz](https://github.com/joeyberkovitz)) +* **New Resource:** `netbox_inventory_item` ([#450](https://github.com/e-breuninger/terraform-provider-netbox/pull/450) by [@joeyberkovitz](https://github.com/joeyberkovitz)) + +## 3.5.3 (August 4th, 2023) + +ENHANCEMENTS + +* resource/netbox_service: Add `custom_fields` attribute ([#448](https://github.com/e-breuninger/terraform-provider-netbox/pull/448) by [@sebastianreloaded](https://github.com/sebastianreloaded)) +* data-source/netbox_site: Allow searching by `id` field + +BUG FIXES + +* resource/netbox_interface: Allow setting `enabled` to `false` +* resource/netbox_device_interface: Allow setting `enabled` to `false` + +## 3.5.2 (August 3rd, 2023) + +FEATURES + +* **New Data Source:** `netbox_vrfs` ([#441](https://github.com/e-breuninger/terraform-provider-netbox/pull/441) by [@robvand](https://github.com/robvand)) + +ENHANCEMENTS + +* Added `description` attribute to + - data-source/netbox_cluster + - data-source/netbox_devices + - data-source/netbox_virtual_machines + - resource/netbox_cluster + - resource/netbox_device + - resource/virtual_machine ([#401](https://github.com/e-breuninger/terraform-provider-netbox/pull/401) by [@tagur87](https://github.com/tagur87)) +* data-source/netbox_devices: Return `tags` attribute +* resource/netbox_interface: Ignore drift when providing lowercase MAC addresses ([#446](https://github.com/e-breuninger/terraform-provider-netbox/pull/446) by [@bebehei](https://github.com/bebehei)) +* resource/netbox_device_interface: Ignore drift when providing lowercase MAC addresses ([#446](https://github.com/e-breuninger/terraform-provider-netbox/pull/446) by [@bebehei](https://github.com/bebehei)) + +## 3.5.1 (July 24th, 2023) + +BUG FIXES + +* resource/netbox_ip_address: Use correct attribute when using the `device_interface_id` attribute ([#437](https://github.com/e-breuninger/terraform-provider-netbox/pull/437) by [@switchcorp](https://github.com/switchcorp)) +* resource/netbox_primary_ip: Fix a bug where setting a primary IP unsets the `local_context_data` attribute ([#435](https://github.com/e-breuninger/terraform-provider-netbox/pull/435) by [@tagur87](https://github.com/tagur87)) + +## 3.5.0 (July 20th, 2023) + +**BREAKING CHANGES** +Historically, this provider primarily handled virtual machines, so when linking a `netbox_ip_address` resource to an interface, the interface was initially assumed to always be a virtual machine interface. In [v3.1.0](https://github.com/e-breuninger/terraform-provider-netbox/commit/76f11292a162d88eb1616d9a5b7d70d986b2db3f), support was added for device interfaces by setting the newly introduced `object_type` attribute, once again defaulting to virtual machine interfaces. The valid values for `object_type` directly reflect the API values of NetBox, which are very unintuitive. + +In this version, we make the type of connection between IP addresses and interfaces explicit: We introduce two new attributes: `virtual_machine_interface_id` and `device_interface_id` to the `netbox_ip_address` resource. These fields are easier to use and convey their meaning directly to the user. The `object_type` and `interface_id` method is still supported, but `object_type` no longer has a default value and is now mandatory when `interface_id` is used. + +**Migration guide** + +In your existing codebase: + +* replace `interface_id` with `virtual_machine_interface_id` if `object_type` is currently unset or set to `virtualization.vminterface` +* replace `interface_id` with `device_interface_id` if `object_type` is currently set to `dcim.interface` + +ENHANCEMENTS + +* resource/netbox_ip_address: Add `virtual_machine_interface_id` and `device_interface_id` attributes +* resource/netbox_ip_address: Add `slaac` to the list of valid statuses +* resource/netbox_ip_address: Add `nat_inside_address_id` and `nat_outside_addresses` attributes + +BUG FIXES + +* resource/netbox_permission: Fix perpetual drift when `constraints` is nil ([#432](https://github.com/e-breuninger/terraform-provider-netbox/pull/432) by [@tagur87](https://github.com/tagur87)) + +## 3.4.1 (July 19th, 2023) + +ENHANCEMENTS + +* resource/netbox_cluster: Add `comments` attribute ([#429](https://github.com/e-breuninger/terraform-provider-netbox/pull/429) by [@edwin-bruurs](https://github.com/edwin-bruurs)) +* data-source/netbox_prefix: Add `family` attribute ([#431](https://github.com/e-breuninger/terraform-provider-netbox/pull/431) by [@tagur87](https://github.com/tagur87)) + +BUG FIXES + +* resource/netbox_virtual_machine: Fix `local_context_data` attribute ([#430](https://github.com/e-breuninger/terraform-provider-netbox/pull/430) by [@zeddD1abl0](https://github.com/zeddD1abl0)) + +## 3.4.0 (July 10th, 2023) + +ENHANCEMENTS + +* **New Resource:** `netbox_device_primary_ip` ([#424](https://github.com/e-breuninger/terraform-provider-netbox/pull/424) by [@Ikke](https://github.com/Ikke)) +* resource/netbox_virtual_machine: Add `local_context_data` attribute ([#421](https://github.com/e-breuninger/terraform-provider-netbox/pull/421) by [@zeddD1abl0](https://github.com/zeddD1abl0)) + +BUG FIXES + +* resource/netbox_primary_ip: Fix a bug where setting the primary ip of a VM unsets the device id + +## 3.3.3 (June 28th, 2023) + +ENHANCEMENTS + +* **New Data Source:** `netbox_vlans` ([#420](https://github.com/e-breuninger/terraform-provider-netbox/pull/420) by [@danischm](https://github.com/danischm)) +* resource/netbox_contact_assignment: Add `priority` attribute ([#418](https://github.com/e-breuninger/terraform-provider-netbox/pull/418) by [@Ikke](https://github.com/Ikke)) + +## 3.3.2 (June 12th, 2023) + +ENHANCEMENTS + +* **New Data Source:** `netbox_contact_role` ([#414](https://github.com/e-breuninger/terraform-provider-netbox/pull/414) by [@Ikke](https://github.com/Ikke)) + +## 3.3.1 (May 31th, 2023) + +ENHANCEMENTS + +* data-source/netbox_prefixes: Allow filtering by `site_id` ([#397](https://github.com/e-breuninger/terraform-provider-netbox/pull/397) by [@tagur87](https://github.com/tagur87)) +* data-source/netbox_ip_addresses: Add `tags` attributes to output ([#406](https://github.com/e-breuninger/terraform-provider-netbox/pull/406) by [@pier-nl](https://github.com/pier-nl)) +* Improved error handling for tags ([#400](https://github.com/e-breuninger/terraform-provider-netbox/pull/400) by [@tagur87](https://github.com/tagur87)) + +## 3.3.0 (May 7th, 2023) + +ENHANCEMENTS + +* **New Resource:** `netbox_permission` ([#390](https://github.com/e-breuninger/terraform-provider-netbox/pull/390) by [@tagur87](https://github.com/tagur87)) +* **New Resource:** `netbox_contact_group` ([#366](https://github.com/e-breuninger/terraform-provider-netbox/pull/366) by [@leasley199](https://github.com/leasley199)) +* **New Data Source:** `netbox_contact_group` ([#366](https://github.com/e-breuninger/terraform-provider-netbox/pull/366) by [@leasley199](https://github.com/leasley199)) +* **New Data Source:** `netbox_contact` ([#366](https://github.com/e-breuninger/terraform-provider-netbox/pull/366) by [@leasley199](https://github.com/leasley199)) +* data-source/netbox_cluster: Allow searching by `site_id` + +BUG FIXES + +* resource/netbox_prefix: Allow unsetting `description` attribute ([#382](https://github.com/e-breuninger/terraform-provider-netbox/pull/382) by [@DevOpsFu](https://github.com/DevOpsFu)) + +## 3.2.1 (April 27th, 2023) + +ENHANCEMENTS + +* **New Resource:** `netbox_vlan_group` ([#377](https://github.com/e-breuninger/terraform-provider-netbox/pull/377) by [@zeddD1abl0](https://github.com/zeddD1abl0)) +* **New Data Source:** `netbox_vlan_group` ([#377](https://github.com/e-breuninger/terraform-provider-netbox/pull/377) by [@zeddD1abl0](https://github.com/zeddD1abl0)) +* resource/netbox_vlan: Add `group_id` attribute ([#377](https://github.com/e-breuninger/terraform-provider-netbox/pull/377) by [@zeddD1abl0](https://github.com/zeddD1abl0)) + +BUG FIXES + +* data-source/netbox_prefixes: Fix error when filtering by `vlan_vid` ([#381](https://github.com/e-breuninger/terraform-provider-netbox/pull/381) by [@zeddD1abl0](https://github.com/zeddD1abl0)) + +## 3.2.0 (March 26th, 2023) + +ENHANCEMENTS + +* **New Resource:** `netbox_route_target` ([#344](https://github.com/e-breuninger/terraform-provider-netbox/pull/344) by [@imdhruva](https://github.com/imdhruva)) +* **New Resource:** `netbox_rack` ([#358](https://github.com/e-breuninger/terraform-provider-netbox/pull/358) by [@joeyberkovitz](https://github.com/joeyberkovitz)) +* **New Resource:** `netbox_rack_reservation` ([#358](https://github.com/e-breuninger/terraform-provider-netbox/pull/358) by [@joeyberkovitz](https://github.com/joeyberkovitz)) +* **New Resource:** `netbox_rack_role` ([#358](https://github.com/e-breuninger/terraform-provider-netbox/pull/358) by [@joeyberkovitz](https://github.com/joeyberkovitz)) +* **New Data Source:** `netbox_ipam_role` ([#344](https://github.com/e-breuninger/terraform-provider-netbox/pull/344) by [@imdhruva](https://github.com/imdhruva)) +* **New Data Source:** `netbox_route_target` ([#344](https://github.com/e-breuninger/terraform-provider-netbox/pull/344) by [@imdhruva](https://github.com/imdhruva)) +* **New Data Source:** `netbox_racks` ([#358](https://github.com/e-breuninger/terraform-provider-netbox/pull/358) by [@joeyberkovitz](https://github.com/joeyberkovitz)) +* **New Data Source:** `netbox_rack_role` ([#358](https://github.com/e-breuninger/terraform-provider-netbox/pull/358) by [@joeyberkovitz](https://github.com/joeyberkovitz)) +* resource/netbox_device: Add `rack_face`, `rack_id` and `rack_position` attributes ([#358](https://github.com/e-breuninger/terraform-provider-netbox/pull/358) by [@joeyberkovitz](https://github.com/joeyberkovitz)) +* data-source/netbox_device: Add `rack_face`, `rack_id` and `rack_position` attributes ([#358](https://github.com/e-breuninger/terraform-provider-netbox/pull/358) by [@joeyberkovitz](https://github.com/joeyberkovitz)) +* data-source/netbox_prefixes: Add support for filtering by `status` and `tag` ([#367](https://github.com/e-breuninger/terraform-provider-netbox/pull/367) by [@kyle-burnett](https://github.com/kyle-burnett)) +* resource/netbox_location: Add `description` attribute +* resource/netbox_rir: Add `description` attribute +* resource/netbox_vrf: Add `description` attribute +* data-source/netbox_prefixes: Include `description` attribute in search results +* data-source/netbox_ip_addresses: Add `limit` attribute (default 1000) + +## 3.1.0 (February 19th, 2023) + +CHANGES + +* provider: `slug` fields are now generated to match the netbox GUI behavior + +ENHANCEMENTS + +* resource/netbox_interface: Updating `mac_address` no longer forces resource recreation ([#336](https://github.com/e-breuninger/terraform-provider-netbox/pull/336) by [@johann8384](https://github.com/johann8384)) +* resource/netbox_site: Add `physical_address` and `shipping_address` ([#337](https://github.com/e-breuninger/terraform-provider-netbox/pull/337) by [@Ikke](https://github.com/Ikke)) +* resource/netbox_ip_address: IP addresses can now be assigned to devices via the `object_type` field ([#341](https://github.com/e-breuninger/terraform-provider-netbox/pull/341) by [@arjenvri](https://github.com/arjenvri)) + +## 3.0.13 (January 24th, 2023) + +ENHANCEMENTS + +* data-source/netbox_prefix: Add `site_id` attribute ([#320](https://github.com/e-breuninger/terraform-provider-netbox/pull/320) by [@TGM](https://github.com/TGM)) + +## 3.0.12 (January 3rd, 2023) + +ENHANCEMENTS + +* resource/netbox_token: Add `write_enabled` attribute ([#309](https://github.com/e-breuninger/terraform-provider-netbox/pull/309) by [@keshy7](https://github.com/keshy7)) +* data-source/netbox_interfaces: The resulting interfaces now have their interface ID set + +BUG FIXES + +* resource/site: Allow unsetting `description` attribute ([#314](https://github.com/e-breuninger/terraform-provider-netbox/pull/314) by [@keshy7](https://github.com/keshy7)) +* resource/site: Set max length of the `slug` attribute to 100 ([#317](https://github.com/e-breuninger/terraform-provider-netbox/pull/317) by [@keshy7](https://github.com/keshy7)) + +## 3.0.11 (December 13th, 2022) + +ENHANCEMENTS + +* resource/netbox_available_ip_address: Add `role` attribute + +BUG FIXES + +* resource/netbox_location: Fix updates of the `site_id` attribute ([#307](https://github.com/e-breuninger/terraform-provider-netbox/pull/307) by [@nneul](https://github.com/nneul)) + +## 3.0.10 (November 24th, 2022) + +ENHANCEMENTS + +* provider: Add `strip_trailing_slashes_from_url` attribute + +BUG FIXES + +* data-source/netbox_region: Use correct field for slug attribute ([#302](https://github.com/e-breuninger/terraform-provider-netbox/pull/302) by [@paulexyz](https://github.com/paulexyz)) + +## 3.0.9 (November 17th, 2022) + +ENHANCEMENTS + +* data-source/netbox_vlan: Allow querying by `group_id`, `role` and `tenant` ([#287](https://github.com/e-breuninger/terraform-provider-netbox/pull/287) by [@tstarck](https://github.com/tstarck)) +* data-source/netbox_prefix: Allow querying by `description` ([#298](https://github.com/e-breuninger/terraform-provider-netbox/pull/298) by [@luispcoutinho](https://github.com/luispcoutinho)) + +## 3.0.8 (November 9th, 2022) + +ENHANCEMENTS + +* **New Resource:** `netbox_device_interface` ([#286](https://github.com/e-breuninger/terraform-provider-netbox/pull/286) by [@arjenvri](https://github.com/arjenvri)) +* **New Data Source:** `netbox_asn` ([#285](https://github.com/e-breuninger/terraform-provider-netbox/pull/285) by [@kyle-burnett](https://github.com/kyle-burnett)) +* **New Data Source:** `netbox_asns` ([#292](https://github.com/e-breuninger/terraform-provider-netbox/pull/292) by [@kyle-burnett](https://github.com/kyle-burnett)) +* data-source/netbox_prefix: Add `tags` and tag filter attributes ([#284](https://github.com/e-breuninger/terraform-provider-netbox/pull/284) by [@kyle-burnett](https://github.com/kyle-burnett)) + +BUG FIXES + +* data-source/netbox_prefixes: Fix kernel panic when finding prefixes without vlan or vrf + +## 3.0.7 (November 3rd, 2022) + +ENHANCEMENTS + +* **New Resource:** `netbox_contact_role` ([#279](https://github.com/e-breuninger/terraform-provider-netbox/pull/279) by [@arjenvri](https://github.com/arjenvri)) +* **New Resource:** `netbox_contact_assignment` ([#279](https://github.com/e-breuninger/terraform-provider-netbox/pull/279) by [@arjenvri](https://github.com/arjenvri)) +* resource/netbox_device: Add `primary_ipv6` attribute ([#282](https://github.com/e-breuninger/terraform-provider-netbox/pull/282) by [@arjenvri](https://github.com/arjenvri)) +* resource/netbox_virtual_machine: Add `primary_ipv6` attribute ([#283](https://github.com/e-breuninger/terraform-provider-netbox/pull/283) by [@arjenvri](https://github.com/arjenvri)) +* resource/netbox_custom_field: Add `group_name` atribute ([#280](https://github.com/e-breuninger/terraform-provider-netbox/pull/280) by [@arjenvri](https://github.com/arjenvri)) + +## 3.0.6 (October 21st, 2022) + +ENHANCEMENTS + +* **New Resource:** `netbox_contact` ([#273](https://github.com/e-breuninger/terraform-provider-netbox/pull/273) by [@arjenvri](https://github.com/arjenvri)) +* data-source/netbox_prefix: Add `description` attribute ([#277](https://github.com/e-breuninger/terraform-provider-netbox/pull/277) by [@holmesb](https://github.com/holmesb)) +* resource/netbox_cluster: Add `tenant_id` attribute ([#275](https://github.com/e-breuninger/terraform-provider-netbox/pull/275) by [@arjenvri](https://github.com/arjenvri)) + +## 3.0.5 (October 18th, 2022) + +ENHANCEMENTS + +* resource/netbox_device_role: Add `tags` attribute ([#269](https://github.com/e-breuninger/terraform-provider-netbox/pull/269) by [@hollow](https://github.com/hollow)) +* data-source/netbox_device_role: Add `tags` attribute ([#269](https://github.com/e-breuninger/terraform-provider-netbox/pull/269) by [@hollow](https://github.com/hollow)) + +CHANGES + +* resource/netbox_service: Implement provider-side validation on allowed values. Valid values are `tcp`, `udp` and `sctp`. + +## 3.0.4 (October 11th, 2022) + +ENHANCEMENTS + +* resource/netbox_device: Add `platform_id` attribute ([#264](https://github.com/e-breuninger/terraform-provider-netbox/pull/264) by [@mifrost](https://github.com/mifrost)) +* **New Data Source:** `netbox_prefixes ` ([#253](https://github.com/e-breuninger/terraform-provider-netbox/pull/253) by [@ironashram](https://github.com/ironashram)) +* data-source/netbox_prefix: Add `prefix`, `status`, `vlan_id`, `vlan_vid` attributes ([#253](https://github.com/e-breuninger/terraform-provider-netbox/pull/253) by [@ironashram](https://github.com/ironashram)) +* resource/netbox_device: Add `status` attribute [#266](https://github.com/e-breuninger/terraform-provider-netbox/pull/266) by [@mifrost](https://github.com/mifrost)) + +CHANGES + +* resource/netbox_prefix: Deprecate `cidr` attribute in favor of new canonical `prefix` attribute + +## 3.0.3 (October 4th, 2022) + +ENHANCEMENTS + +* resource/netbox_site: Add `group_id` attribute ([#255](https://github.com/e-breuninger/terraform-provider-netbox/pull/255) by [@arjenvri](https://github.com/arjenvri)) + +## 3.0.2 (September 30th, 2022) + +ENHANCEMENTS + +* data-source/netbox_cluster: Add `site_id`, `cluster_type_id`, `cluster_group_id` and `tags` attribute ([#251](https://github.com/e-breuninger/terraform-provider-netbox/pull/251) by [@ns1pelle](https://github.com/ns1pelle)) + +## 3.0.1 (September 25th, 2022) + +This is a re-release of 3.0.0 because there seem to be some issues with the checksums in the 3.0.0 version. + +## 3.0.0 (September 23th, 2022) + +FEATURES + +* provider: Now supports NetBox v3.3 + +ENHANCEMENTS + +* resource/netbox_virtual_machine: In accordance with upstream API changes, VMs can now have `site_id` set directly +* resource/netbox_virtual_machine: Add `device_id` attribute ([#238](https://github.com/e-breuninger/terraform-provider-netbox/pull/238) by [@ns1pelle](https://github.com/ns1pelle)) +* resource/netbox_circuit_termination: Add `tags` and `custom_fields` attributes ([#238](https://github.com/e-breuninger/terraform-provider-netbox/pull/238) by [@ns1pelle](https://github.com/ns1pelle)) +* resource/netbox_token: Add `allowed_ips`, `last_used` and `expires` attributes ([#238](https://github.com/e-breuninger/terraform-provider-netbox/pull/238) by [@ns1pelle](https://github.com/ns1pelle)) +* resource/netbox_device: Add `cluster_id` attribute ([#238](https://github.com/e-breuninger/terraform-provider-netbox/pull/238) by [@ns1pelle](https://github.com/ns1pelle)) + +## 2.0.7 (September 23th, 2022) + +ENHANCEMENTS + +* **New Data Source:** `netbox_devices` ([#236](https://github.com/e-breuninger/terraform-provider-netbox/pull/236) by [@dipeshsharma](https://github.com/dipeshsharma)) +* provider: Add `request_timeout` attribute ([#227](https://github.com/e-breuninger/terraform-provider-netbox/pull/227) by [@twink0r](https://github.com/twink0r)) +* data-source/netbox_tenants: Add `limit` attribute to allow for larger queries + +## 2.0.6 (September 9th, 2022) + +ENHANCEMENTS + +* **New Resource:** `netbox_site_group` +* **New Data Source:** `netbox_site_group` +* resource/netbox_virtual_machine: Add `status` attribute. The `status` attribute will default to `active`, which matches the implicit behavior of NetBox. If you manually changed the status of your terraform-managed NetBox VMs, be cautious +* data-source/netbox_tenant: Allow searching by `slug` attribute + +## 2.0.5 (August 10th, 2022) + +ENHANCEMENTS + +* provider: Update list of supported versions +* docs: Add all missing docs and update existing ones +* docs: Add subcategories + +## 2.0.4 (August 1st, 2022) + +ENHANCEMENTS + +* resource/netbox_ip_address: Add `role` attribute +* resource/netbox_available_ip_address: improve documentation ([#220](https://github.com/e-breuninger/terraform-provider-netbox/pull/220) by [@holmesb](https://github.com/holmesb)) + +BUG FIXES + +* resource/netbox_device: Set correct attribute for `device_type_id` ([#219](https://github.com/e-breuninger/terraform-provider-netbox/pull/219) by [@BegBlev](https://github.com/BegBlev)) +* data-source/netbox_ip_addresses: Use correct attribute for `role` ([#217](https://github.com/e-breuninger/terraform-provider-netbox/pull/217) by [@twink0r](https://github.com/twink0r)) + +## 2.0.3 (July 8th, 2022) + +ENHANCEMENTS + +* data-source/netbox_prefix: Add `vrf_id` attribute + +BUG FIXES + +* resource/netbox_prefix: Allow unsetting mark_utilized and is_pool attributes +* resource/netbox_available_prefix: Allow unsetting mark_utilized and is_pool attributes + +## 2.0.2 (July 6th, 2022) + +BUG FIXES + +* resource/netbox_device: Make `role_id` and `site_id` attributes mandatory +* resource/netbox_device_type: Make `manufacturer_id` attribute mandatory + +## 2.0.1 (June 25th, 2022) + +ENHANCEMENTS + +* **New Resource:** `netbox_location` ([#195](https://github.com/e-breuninger/terraform-provider-netbox/pull/195) by [@arjenvri](https://github.com/arjenvri)) +* resource/netbox_device: Add `location_id` attribute ([#195](https://github.com/e-breuninger/terraform-provider-netbox/pull/195) by [@arjenvri](https://github.com/arjenvri)) + +## 2.0.0 (June 16th, 2022) + +**BREAKING CHANGES** +NetBox 3.2.0 came with [breaking changes](https://docs.netbox.dev/en/stable/release-notes/version-3.2/#breaking-changes). In accordance with the upstream API, the `netbox_site` resource and data source now have an `asn_ids` attribute that replaces the `asn` attriute. Note that `asn_ids` contains **IDs** of ASN objects, not numbers. + +ENHANCEMENTS + +* **New Resource:** `netbox_asn` + +## 1.6.7 (June 14th, 2022) + +ENHANCEMENTS + +* resource/netbox_site: Make `status` attribute optional and default to `active` ([#187](https://github.com/e-breuninger/terraform-provider-netbox/pull/187) by [@tstarck](https://github.com/tstarck)) +* data-source/netbox_site: Add `slug` parameter to allow searching for a slug ([#187](https://github.com/e-breuninger/terraform-provider-netbox/pull/187) by [@tstarck](https://github.com/tstarck)) +* data-source/netbox_site: Include `asn`, `slug`, `comments`, `description`, `group_id`, `status`, `region_id`, `tenant_id` and `time_zone` attributes in the search result ([#187](https://github.com/e-breuninger/terraform-provider-netbox/pull/187) by [@tstarck](https://github.com/tstarck)) +* resource/netbox_vlan: Add default values to `status` and `description` attributes ([#184](https://github.com/e-breuninger/terraform-provider-netbox/pull/184) by [@tstarck](https://github.com/tstarck)) +* resource/netbox_interface: Add `enabled`, `mtu`, `mode`, `tagged_vlans` and `untagged_vlans` attributes ([#183](https://github.com/e-breuninger/terraform-provider-netbox/pull/183) by [@tstarck](https://github.com/tstarck)) + +## 1.6.6 (May 27th, 2022) + +ENHANCEMENTS + +* **New Data Source:** `netbox_device_type` ([#179](https://github.com/e-breuninger/terraform-provider-netbox/pull/179) by [@tstarck](https://github.com/tstarck)) +* **New Data Source:** `netbox_vlan` ([#180](https://github.com/e-breuninger/terraform-provider-netbox/pull/180) by [@tstarck](https://github.com/tstarck)) +* provider: Add `skip_version_check` attribute +* provider: Update list of officially supported versions +* resource/netbox_device_type: Add `part_number` attribute ([#179](https://github.com/e-breuninger/terraform-provider-netbox/pull/179) by [@tstarck](https://github.com/tstarck)) + +BUG FIXES + +* resource/netbox_circuit: Fix bug that prevented updates from being made +* resource/netbox_circuit_provider: Fix bug that prevented updates from being made + +## 1.6.5 (May 18th, 2022) + +ENHANCEMENTS + +* docs: Fix critical error in usage documentation + +## 1.6.4 (May 18th, 2022) + +FEATURES + +* **New Resource:** `netbox_user` ([#169](https://github.com/e-breuninger/terraform-provider-netbox/pull/169) by [@arjenvri](https://github.com/arjenvri)) +* **New Resource:** `netbox_token` ([#169](https://github.com/e-breuninger/terraform-provider-netbox/pull/169) by [@arjenvri](https://github.com/arjenvri)) + +ENHANCEMENTS + +* resource/netbox_site: Add `timezone`, `latitude`, `longitude` and `custom_fields` attributes ([#168](https://github.com/e-breuninger/terraform-provider-netbox/pull/168) by [@arjenvri](https://github.com/arjenvri)) +* docs: Regenerate docs with updated tooling ([#165](https://github.com/e-breuninger/terraform-provider-netbox/pull/165) by [@d-strobel](https://github.com/d-strobel)) + +## 1.6.3 (May 6th, 2022) + +FEATURES + +* **New Data Source:** `netbox_ip_addresses` ([#159](https://github.com/e-breuninger/terraform-provider-netbox/pull/159) by [@twink0r](https://github.com/twink0r)) +* **New Resource:** `netbox_circuit` ([#160](https://github.com/e-breuninger/terraform-provider-netbox/pull/160) by [@arjenvri](https://github.com/arjenvri)) +* **New Resource:** `netbox_circuit_provider` ([#160](https://github.com/e-breuninger/terraform-provider-netbox/pull/160) by [@arjenvri](https://github.com/arjenvri)) +* **New Resource:** `netbox_circuit_termination` ([#160](https://github.com/e-breuninger/terraform-provider-netbox/pull/160) by [@arjenvri](https://github.com/arjenvri)) +* **New Resource:** `netbox_circuit_type` ([#160](https://github.com/e-breuninger/terraform-provider-netbox/pull/160) by [@arjenvri](https://github.com/arjenvri)) +* **New Resource:** `netbox_custom_field` ([#158](https://github.com/e-breuninger/terraform-provider-netbox/pull/158) by [@chapsuk](https://github.com/chapsuk)) + +ENHANCEMENTS + +* resource/netbox_ip_address: Add `description` attribute ([#156](https://github.com/e-breuninger/terraform-provider-netbox/pull/156) by [@fbreckle](https://github.com/fbreckle)) +* resource/netbox_virtual_machine: Add `custom_fields` attribute ([#158](https://github.com/e-breuninger/terraform-provider-netbox/pull/158) by [@chapsuk](https://github.com/chapsuk)) + +## 1.6.2 (Apr 11, 2022) + +FEATURES + +* **New Resource:** `netbox_rir` ([#153](https://github.com/e-breuninger/terraform-provider-netbox/pull/153) by [@arjenvri](https://github.com/arjenvri)) +* **New Resource:** `netbox_aggregate` ([#153](https://github.com/e-breuninger/terraform-provider-netbox/pull/153) by [@arjenvri](https://github.com/arjenvri)) + +## 1.6.1 (Apr 8, 2022) + +ENHANCEMENTS + +* resource/netbox_site: Add `tags` and `tenant_id` attributes ([#149](https://github.com/e-breuninger/terraform-provider-netbox/pull/149) by [@arjenvri](https://github.com/arjenvri)) + +## 1.6.0 (Apr 8, 2022) + +FEATURES + +* **New Resource:** `netbox_device` ([#142](https://github.com/e-breuninger/terraform-provider-netbox/pull/142) by [@arjenvri](https://github.com/arjenvri)) +* **New Resource:** `netbox_device_type` ([#142](https://github.com/e-breuninger/terraform-provider-netbox/pull/142) by [@arjenvri](https://github.com/arjenvri)) +* **New Resource:** `netbox_manufacturer` ([#142](https://github.com/e-breuninger/terraform-provider-netbox/pull/142) by [@arjenvri](https://github.com/arjenvri)) + +## 1.5.2 (Mar 4, 2022) + +ENHANCEMENTS + +* data-source/netbox_tenants: Add `tenant_group` attribute ([#129](https://github.com/e-breuninger/terraform-provider-netbox/pull/129) by [@twink0r](https://github.com/twink0r)) + +## 1.5.1 (Feb 24, 2022) + +ENHANCEMENTS + +* No longer crashes if netbox is unreachable when initialising the provider [#126](https://github.com/e-breuninger/terraform-provider-netbox/pull/126) by [@twink0r](https://github.com/twink0r) + +## 1.5.0 (Feb 23, 2022) + +FEATURES + +* **New Data Source:** `netbox_tenants` [#124](https://github.com/e-breuninger/terraform-provider-netbox/pull/124) by [@twink0r](https://github.com/twink0r) + +## 1.4.0 (Feb 21, 2022) + +FEATURES + +* **New Data Source:** `netbox_cluster_type` [#122](https://github.com/e-breuninger/terraform-provider-netbox/pull/122) by [@madnutter56](https://github.com/madnutter56) +* **New Data Source:** `netbox_site` [#122](https://github.com/e-breuninger/terraform-provider-netbox/pull/122) by [@madnutter56](https://github.com/madnutter56) + +## 1.3.0 (Feb 17, 2022) + +FEATURES + +* **New Resource:** `netbox_region` ([#121](https://github.com/e-breuninger/terraform-provider-netbox/pull/121) by [@gerl1ng](https://github.com/gerl1ng)) +* **New Data Source:** `netbox_region` [#121](https://github.com/e-breuninger/terraform-provider-netbox/pull/121) by [@gerl1ng](https://github.com/gerl1ng) + +## 1.2.2 (Feb 9, 2022) + +ENHANCEMENTS + +* resource/netbox_virtual_machine: Now has a state migration for the `vcpus` attribute ([#120](https://github.com/e-breuninger/terraform-provider-netbox/pull/120) by [@pascal-hofmann](https://github.com/pascal-hofmann)) + +## 1.2.1 (Jan 31, 2022) + +FEATURES + +* provider: Can now optionally pass custom HTTP headers for every request ([#116](https://github.com/e-breuninger/terraform-provider-netbox/pull/116) by [@mariuskiessling](https://github.com/mariuskiessling)) + +## 1.2.0 (Jan 20, 2022) + +FEATURES + +* resource/netbox_available_ip_address: Can now be created in netbox_ip_ranges ([#106](https://github.com/e-breuninger/terraform-provider-netbox/pull/106) by [@holmesb](https://github.com/holmesb)) + +ENHANCEMENTS + +* resource/netbox_available_ip_address: fixed duplicates [#59](https://github.com/e-breuninger/terraform-provider-netbox/issues/59) ([#106](https://github.com/e-breuninger/terraform-provider-netbox/pull/106) by [@holmesb](https://github.com/holmesb)) +* resource/netbox_available_ip_address: Add `description` argument ([#106](https://github.com/e-breuninger/terraform-provider-netbox/pull/106) by [@holmesb](https://github.com/holmesb)) +* resource/netbox_available_ip_address: `status` argument is now optional ([#106](https://github.com/e-breuninger/terraform-provider-netbox/pull/106) by [@holmesb](https://github.com/holmesb)) +* resource/netbox_vrf: Add `tenant_id` attribute ([#112](https://github.com/e-breuninger/terraform-provider-netbox/pull/112) by [@cova-fe](https://github.com/cova-fe)) +* data-source/netbox_vrf: Add `tenant_id` attribute ([#112](https://github.com/e-breuninger/terraform-provider-netbox/pull/112) by [@cova-fe](https://github.com/cova-fe)) +* resource/available_prefix: Add `mark_utilized` attribute ([#111](https://github.com/e-breuninger/terraform-provider-netbox/pull/111) by [@cova-fe](https://github.com/cova-fe)) + +## 1.1.0 (Jan 3, 2022) + +FEATURES + +* provider: Now supports NetBox v3.1.3 + +## 1.0.2 Ho-Ho-Ho (Dec 24, 2021) + +ENHANCEMENTS + +* resource/tag: Add `description` attribute ([#98](https://github.com/e-breuninger/terraform-provider-netbox/pull/98)) by [@lu1as](https://github.com/lu1as)) + +## 1.0.1 (Dec 23, 2021) + +FEATURES + +* **New Resource:** `netbox_ip_range` ([#101](https://github.com/e-breuninger/terraform-provider-netbox/pull/100) by [@holmesb](https://github.com/holmesb)) +* **New Data Source:** `netbox_ip_range` ([#101](https://github.com/e-breuninger/terraform-provider-netbox/pull/100) by [@holmesb](https://github.com/holmesb)) + +## 1.0.0 (Nov 8, 2021) + +FEATURES + +* provider: Now supports NetBox v3.0.9 + +BREAKING CHANGES + +* resource/virtual_machine: `vcpus` is now a float to match upstream API + +## 0.3.2 (Nov 2, 2021) + +ENHANCEMENTS + +* resource/primary_ip: Support both v4 and v6 primary IP ([#87](https://github.com/e-breuninger/terraform-provider-netbox/pull/87) by [@t-tran](https://github.com/t-tran)) + +## 0.3.1 (Oct 27, 2021) + +FEATURES + +* **New Resource:** `netbox_vlan` ([#83](https://github.com/e-breuninger/terraform-provider-netbox/pull/83) by [@Sanverik](https://github.com/Sanverik)) +* **New Resource:** `netbox_ipam_role` ([#86](https://github.com/e-breuninger/terraform-provider-netbox/pull/86) by [@Sanverik](https://github.com/Sanverik)) + +ENHANCEMENTS + +* resource/prefix: Add `site_id`, `vlan_id` and `role_id` attributes ([#85](https://github.com/e-breuninger/terraform-provider-netbox/pull/85) and [#85](https://github.com/e-breuninger/terraform-provider-netbox/pull/85)) by [@Sanverik](https://github.com/Sanverik)) + +## 0.3.0 (Oct 19, 2021) + +FEATURES + +* provider: Now supports NetBox v2.11.12 + +BREAKING CHANGES + +* resource/virtual_machine: `vcpus` is now a string to match upstream API + +## 0.2.5 (Oct 8, 2021) + +ENHANCEMENTS + +* **New Resource:** `netbox_site` ([#78](https://github.com/e-breuninger/terraform-provider-netbox/pull/78)) + +BUG FIXES + +* resource/cluster: Properly set tags when updating ([#69](https://github.com/e-breuninger/terraform-provider-netbox/issues/69)) + +## 0.2.4 (Sep 20, 2021) + +CHANGES + +* Use go 1.17 to fix some builds + +## 0.2.3 (Sep 20, 2021) + +ENHANCEMENTS + +* Add arm64 builds ([#71](https://github.com/e-breuninger/terraform-provider-netbox/pull/71) by [@richardklose](https://github.com/richardklose)) + +## 0.2.2 (Aug 23, 2021) + +ENHANCEMENTS + +* resource/interface: Add `mac_address` attribute ([#65](https://github.com/e-breuninger/terraform-provider-netbox/pull/65) by [@holmesb](https://github.com/holmesb)) + +## 0.2.1 (Jul 26, 2021) + +ENHANCEMENTS + +* resource/prefix: Add `vrf` and `tenant` attribute ([#61](https://github.com/e-breuninger/terraform-provider-netbox/pull/61) by [@jeansebastienh](https://github.com/jeansebastienh)) + +BUG FIXES + +* resource/prefix: Correctly read `prefix` and `status` ([#60](https://github.com/e-breuninger/terraform-provider-netbox/pull/60) by [@jeansebastienh](https://github.com/jeansebastienh)) + +## 0.2.0 (May 31, 2021) + +FEATURES + +* provider: Now supports NetBox v2.10.10 + +CHANGES + +* resource/service: `port` field is now deprecated in favor of `ports` field. + +## 0.1.3 (May 17, 2021) + +ENHANCEMENTS + +* **New Resource:** `netbox_tenant_group` ([#48](https://github.com/e-breuninger/terraform-provider-netbox/pull/48) by [@pezhore](https://github.com/pezhore)) +* **New Data Source:** `netbox_tenant_group` ([#48](https://github.com/e-breuninger/terraform-provider-netbox/pull/48) by [@pezhore](https://github.com/pezhore)) +* data-source/tenant: Add `group_id` attribute ([#48](https://github.com/e-breuninger/terraform-provider-netbox/pull/48) by [@pezhore](https://github.com/pezhore)) + +## 1.5.1 (Feb 24, 2022) + +ENHANCEMENTS + +* No longer crashes if netbox is unreachable when initialising the provider [#126](https://github.com/e-breuninger/terraform-provider-netbox/pull/126) by [@twink0r](https://github.com/twink0r) + +## 1.5.0 (Feb 23, 2022) + +FEATURES + +* **New Data Source:** `netbox_tenants` [#124](https://github.com/e-breuninger/terraform-provider-netbox/pull/124) by [@twink0r](https://github.com/twink0r) + +## 1.4.0 (Feb 21, 2022) + +FEATURES + +* **New Data Source:** `netbox_cluster_type` [#122](https://github.com/e-breuninger/terraform-provider-netbox/pull/122) by [@madnutter56](https://github.com/madnutter56) +* **New Data Source:** `netbox_site` [#122](https://github.com/e-breuninger/terraform-provider-netbox/pull/122) by [@madnutter56](https://github.com/madnutter56) + +## 1.3.0 (Feb 17, 2022) + +FEATURES + +* **New Resource:** `netbox_region` ([#121](https://github.com/e-breuninger/terraform-provider-netbox/pull/121) by [@gerl1ng](https://github.com/gerl1ng)) +* **New Data Source:** `netbox_region` [#121](https://github.com/e-breuninger/terraform-provider-netbox/pull/121) by [@gerl1ng](https://github.com/gerl1ng) + +## 1.2.2 (Feb 9, 2022) + +ENHANCEMENTS + +* resource/netbox_virtual_machine: Now has a state migration for the `vcpus` attribute ([#120](https://github.com/e-breuninger/terraform-provider-netbox/pull/120) by [@pascal-hofmann](https://github.com/pascal-hofmann)) + +## 1.2.1 (Jan 31, 2022) + +FEATURES + +* provider: Can now optionally pass custom HTTP headers for every request ([#116](https://github.com/e-breuninger/terraform-provider-netbox/pull/116) by [@mariuskiessling](https://github.com/mariuskiessling)) + +## 1.2.0 (Jan 20, 2022) + +FEATURES + +* resource/netbox_available_ip_address: Can now be created in netbox_ip_ranges ([#106](https://github.com/e-breuninger/terraform-provider-netbox/pull/106) by [@holmesb](https://github.com/holmesb)) + +ENHANCEMENTS + +* resource/netbox_available_ip_address: fixed duplicates [#59](https://github.com/e-breuninger/terraform-provider-netbox/issues/59) ([#106](https://github.com/e-breuninger/terraform-provider-netbox/pull/106) by [@holmesb](https://github.com/holmesb)) +* resource/netbox_available_ip_address: Add `description` argument ([#106](https://github.com/e-breuninger/terraform-provider-netbox/pull/106) by [@holmesb](https://github.com/holmesb)) +* resource/netbox_available_ip_address: `status` argument is now optional ([#106](https://github.com/e-breuninger/terraform-provider-netbox/pull/106) by [@holmesb](https://github.com/holmesb)) +* resource/netbox_vrf: Add `tenant_id` attribute ([#112](https://github.com/e-breuninger/terraform-provider-netbox/pull/112) by [@cova-fe](https://github.com/cova-fe)) +* data-source/netbox_vrf: Add `tenant_id` attribute ([#112](https://github.com/e-breuninger/terraform-provider-netbox/pull/112) by [@cova-fe](https://github.com/cova-fe)) +* resource/available_prefix: Add `mark_utilized` attribute ([#111](https://github.com/e-breuninger/terraform-provider-netbox/pull/111) by [@cova-fe](https://github.com/cova-fe)) + +## 1.1.0 (Jan 3, 2022) + +FEATURES + +* provider: Now supports NetBox v3.1.3 + +## 1.0.2 Ho-Ho-Ho (Dec 24, 2021) + +ENHANCEMENTS + +* resource/tag: Add `description` attribute ([#98](https://github.com/e-breuninger/terraform-provider-netbox/pull/98)) by [@lu1as](https://github.com/lu1as)) + +## 1.0.1 (Dec 23, 2021) + +FEATURES + +* **New Resource:** `netbox_ip_range` ([#101](https://github.com/e-breuninger/terraform-provider-netbox/pull/100) by [@holmesb](https://github.com/holmesb)) +* **New Data Source:** `netbox_ip_range` ([#101](https://github.com/e-breuninger/terraform-provider-netbox/pull/100) by [@holmesb](https://github.com/holmesb)) + +## 1.0.0 (Nov 8, 2021) + +FEATURES + +* provider: Now supports NetBox v3.0.9 + +BREAKING CHANGES + +* resource/virtual_machine: `vcpus` is now a float to match upstream API + +## 0.3.2 (Nov 2, 2021) + +ENHANCEMENTS + +* resource/primary_ip: Support both v4 and v6 primary IP ([#87](https://github.com/e-breuninger/terraform-provider-netbox/pull/87) by [@t-tran](https://github.com/t-tran)) + +## 0.3.1 (Oct 27, 2021) + +FEATURES + +* **New Resource:** `netbox_vlan` ([#83](https://github.com/e-breuninger/terraform-provider-netbox/pull/83) by [@Sanverik](https://github.com/Sanverik)) +* **New Resource:** `netbox_ipam_role` ([#86](https://github.com/e-breuninger/terraform-provider-netbox/pull/86) by [@Sanverik](https://github.com/Sanverik)) + +ENHANCEMENTS + +* resource/prefix: Add `site_id`, `vlan_id` and `role_id` attributes ([#85](https://github.com/e-breuninger/terraform-provider-netbox/pull/85) and [#85](https://github.com/e-breuninger/terraform-provider-netbox/pull/85)) by [@Sanverik](https://github.com/Sanverik)) + +## 0.3.0 (Oct 19, 2021) + +FEATURES + +* provider: Now supports NetBox v2.11.12 + +BREAKING CHANGES + +* resource/virtual_machine: `vcpus` is now a string to match upstream API + +## 0.2.5 (Oct 8, 2021) + +ENHANCEMENTS + +* **New Resource:** `netbox_site` ([#78](https://github.com/e-breuninger/terraform-provider-netbox/pull/78)) + +BUG FIXES + +* resource/cluster: Properly set tags when updating ([#69](https://github.com/e-breuninger/terraform-provider-netbox/issues/69)) + +## 0.2.4 (Sep 20, 2021) + +CHANGES + +* Use go 1.17 to fix some builds + +## 0.2.3 (Sep 20, 2021) + +ENHANCEMENTS + +* Add arm64 builds ([#71](https://github.com/e-breuninger/terraform-provider-netbox/pull/71) by [@richardklose](https://github.com/richardklose)) + +## 0.2.2 (Aug 23, 2021) + +ENHANCEMENTS + +* resource/interface: Add `mac_address` attribute ([#65](https://github.com/e-breuninger/terraform-provider-netbox/pull/65) by [@holmesb](https://github.com/holmesb)) + +## 0.2.1 (Jul 26, 2021) + +ENHANCEMENTS + +* resource/prefix: Add `vrf` and `tenant` attribute ([#61](https://github.com/e-breuninger/terraform-provider-netbox/pull/61) by [@jeansebastienh](https://github.com/jeansebastienh)) + +BUG FIXES + +* resource/prefix: Correctly read `prefix` and `status` ([#60](https://github.com/e-breuninger/terraform-provider-netbox/pull/60) by [@jeansebastienh](https://github.com/jeansebastienh)) + +## 0.2.0 (May 31, 2021) + +FEATURES + +* provider: Now supports NetBox v2.10.10 + +CHANGES + +* resource/service: `port` field is now deprecated in favor of `ports` field. + +## 0.1.3 (May 17, 2021) + +ENHANCEMENTS + +* **New Resource:** `netbox_tenant_group` ([#48](https://github.com/e-breuninger/terraform-provider-netbox/pull/48) by [@pezhore](https://github.com/pezhore)) +* **New Data Source:** `netbox_tenant_group` ([#48](https://github.com/e-breuninger/terraform-provider-netbox/pull/48) by [@pezhore](https://github.com/pezhore)) +* data-source/tenant: Add `group_id` attribute ([#48](https://github.com/e-breuninger/terraform-provider-netbox/pull/48) by [@pezhore](https://github.com/pezhore)) +* resource/tenant: Add `group_id` attribute ([#48](https://github.com/e-breuninger/terraform-provider-netbox/pull/48) by [@pezhore](https://github.com/pezhore)) +* Documentation ([#46](https://github.com/e-breuninger/terraform-provider-netbox/pull/46) by [@pezhore](https://github.com/pezhore)) + +## 0.1.2 (May 4, 2021) + +ENHANCEMENTS + +* **New Resource:** `netbox_prefix` ([#43](https://github.com/e-breuninger/terraform-provider-netbox/pull/43) by [@pezhore](https://github.com/pezhore)) +* **New Data Source:** `netbox_prefix` ([#43](https://github.com/e-breuninger/terraform-provider-netbox/pull/43) by [@pezhore](https://github.com/pezhore)) +* **New Resource:** `netbox_available_ip_address` ([#43](https://github.com/e-breuninger/terraform-provider-netbox/pull/43) by [@pezhore](https://github.com/pezhore)) + +## 0.1.1 (February 15, 2021) + +ENHANCEMENTS + +* data-source/netbox_virtual_machines: Add `limit` attribute ([#33](https://github.com/e-breuninger/terraform-provider-netbox/pull/33) by [@jake2184](https://github.com/jake2184)) + +## 0.1.0 Ho-Ho-Ho (December 24, 2020) + +FEATURES + +* **New Resource:** `netbox_vrf` ([#26](https://github.com/e-breuninger/terraform-provider-netbox/pull/26) by [@rthomson](https://github.com/rthomson)) +* **New Data Source:** `netbox_vrf` ([#26](https://github.com/e-breuninger/terraform-provider-netbox/pull/26) by [@rthomson](https://github.com/rthomson)) +* **New Resource:** `netbox_cluster_group` +* **New Data Source:** `netbox_cluster_group` + +ENHANCEMENTS + +* resource/netbox_ip_address: Add `tenant_id` attribute +* resource/netbox_cluster: Add `cluster_group_id` attribute + +## 0.0.9 (November 20, 2020) + +FEATURES + +* **New Data Source:** `netbox_interfaces` ([#9](https://github.com/e-breuninger/terraform-provider-netbox/pull/9) by [@jake2184](https://github.com/jake2184)) + +BUG FIXES + +* provider: Honor Sub-Paths in netbox URL ([#15](https://github.com/e-breuninger/terraform-provider-netbox/pull/15) by [@kasimon](https://github.com/kasimon)) + +## 0.0.8 (November 19, 2020) + +FEATURES + +* **New Data Source:** `netbox_virtual_machines` ([#8](https://github.com/e-breuninger/terraform-provider-netbox/pull/8) by [@jake2184](https://github.com/jake2184)) diff --git a/terraform/.terraform/providers/registry.terraform.io/e-breuninger/netbox/5.0.0/windows_amd64/LICENSE b/terraform/.terraform/providers/registry.terraform.io/e-breuninger/netbox/5.0.0/windows_amd64/LICENSE new file mode 100644 index 0000000..a612ad9 --- /dev/null +++ b/terraform/.terraform/providers/registry.terraform.io/e-breuninger/netbox/5.0.0/windows_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/terraform/.terraform/providers/registry.terraform.io/e-breuninger/netbox/5.0.0/windows_amd64/README.md b/terraform/.terraform/providers/registry.terraform.io/e-breuninger/netbox/5.0.0/windows_amd64/README.md new file mode 100644 index 0000000..c81fdf7 --- /dev/null +++ b/terraform/.terraform/providers/registry.terraform.io/e-breuninger/netbox/5.0.0/windows_amd64/README.md @@ -0,0 +1,109 @@ +# terraform-provider-netbox + +The Terraform Netbox provider is a plugin for Terraform that allows for the full lifecycle management of [Netbox](https://netboxlabs.com/docs/netbox/) resources. +This provider is maintained by E. Breuninger. + +See: [Official documentation](https://registry.terraform.io/providers/e-breuninger/netbox/latest/docs) in the Terraform registry. + +## Requirements + +- [Terraform](https://www.terraform.io/downloads.html) >= 0.12.x + +## Supported netbox versions + +Netbox often makes breaking API changes even in non-major releases. Check the table below to see which version a provider was tested against. It is generally recommended to use the provider version matching your Netbox version. We aim to always support the latest minor version of Netbox. + +Since version [1.6.6](https://github.com/e-breuninger/terraform-provider-netbox/commit/0b0b2fffa54d4ab2e5f1677e948b01e56ba211c8), each version of the provider has a built-in list of all Netbox versions it supports at release time. Upon initialization, the provider will probe your Netbox version and include a (non-blocking) warning if the used Netbox version is not supported. + +| Netbox version | Provider version | +| --------------- | ---------------- | +| v4.3.0 - 4.4.0 | v5.0.0 and up | +| v4.2.2 - 4.2.9 | v4.0.0 - 4.3.1 | +| v4.1.0 - 4.1.11 | v3.10.0 - 3.11.1 | +| v4.0.0 - 4.0.11 | v3.9.0 - 3.9.2 | +| v3.7.0 - 3.7.8 | v3.8.0 - 3.8.9 | +| v3.6.0 - 3.6.9 | v3.7.0 - 3.7.7 | +| v3.5.1 - 3.5.9 | v3.6.x | +| v3.4.3 - 3.4.10 | v3.5.x | +| v3.3.0 - 3.4.2 | v3.0.x - 3.5.1 | +| v3.2.0 - 3.2.9 | v2.0.x | +| v3.1.9 | v1.6.0 - 1.6.7 | +| v3.1.3 | v1.1.x - 1.5.2 | +| v3.0.9 | v1.0.x | +| v2.11.12 | v0.3.x | +| v2.10.10 | v0.2.x | +| v2.9 | v0.1.x | + +## Building The Provider + +1. Clone the repository +1. Enter the repository directory +1. Build the provider using the Go `install` command: + +```sh +go install +``` + +## Installation + +Starting with Terraform 0.13, you can download the provider via the Terraform registry. + +For further information on how to use third party providers, see the [Terraform documentation](https://www.terraform.io/docs/configuration/providers.html) + +Releases for all major plattforms are available on the release page. + +## Using the provider + +Here is a short example on how to use this provider: + +```hcl +provider "netbox" { + server_url = "https://demo.netbox.dev" + api_token = "" +} + +resource "netbox_platform" "testplatform" { + name = "my-test-platform" +} +``` + +For a more examples, see the [provider documentation](https://registry.terraform.io/providers/e-breuninger/netbox/latest/docs). + +## Developing the Provider + +If you wish to work on the provider, you need [Go](http://www.golang.org) installed on your machine. + +To compile the provider, run `go install`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory. + +To generate or update documentation, run `make docs`. + +In order to run the suite of unit tests, run `make test`. + +In order to run the full suite of acceptance tests, run `make testacc`. + +In order to run a single specific acceptance test, run + +```sh +TEST_FUNC= make testacc-specific-test +``` + +For example: + +```sh +TEST_FUNC=TestAccNetboxLocationDataSource_basic make testacc-specific-test +``` + +_Note:_ Acceptance tests create a docker compose stack on port 8001. + +```sh +make testacc +``` + +If you notice a failed test, it might be due to a stale netbox data volume. Before concluding there is a problem, +refresh the docker containers by running `docker-compose down --volumes` in the `docker` directory. Then run the tests again. + +If you get `too many open files` errors when running the acceptance test suite locally on Linux, your user limit for open file descriptors might be too low. You can increase that limit with `ulimit -n 2048`. + +## Contribution + +We focus on virtual machine management and IPAM. If you want to contribute more resources to this provider, feel free to make a PR. diff --git a/terraform/.terraform/providers/registry.terraform.io/e-breuninger/netbox/5.0.0/windows_amd64/terraform-provider-netbox_v5.0.0.exe b/terraform/.terraform/providers/registry.terraform.io/e-breuninger/netbox/5.0.0/windows_amd64/terraform-provider-netbox_v5.0.0.exe new file mode 100644 index 0000000..72ae642 Binary files /dev/null and b/terraform/.terraform/providers/registry.terraform.io/e-breuninger/netbox/5.0.0/windows_amd64/terraform-provider-netbox_v5.0.0.exe differ diff --git a/terraform/.terraform/providers/registry.terraform.io/hetznercloud/hcloud/1.57.0/windows_amd64/CHANGELOG.md b/terraform/.terraform/providers/registry.terraform.io/hetznercloud/hcloud/1.57.0/windows_amd64/CHANGELOG.md new file mode 100644 index 0000000..846cee3 --- /dev/null +++ b/terraform/.terraform/providers/registry.terraform.io/hetznercloud/hcloud/1.57.0/windows_amd64/CHANGELOG.md @@ -0,0 +1,1154 @@ +# Changelog + +## [v1.57.0](https://github.com/hetznercloud/terraform-provider-hcloud/releases/tag/v1.57.0) + +### Storage Box API Experimental + +This release adds support for the [Storage Box API](https://docs.hetzner.cloud/reference/hetzner#storage-boxes). + +The Storage Box integration will be introduced as an **experimental** feature. This experimental phase is expected to last until **2 January 2026**. During this period, upcoming minor releases of the project may include breaking changes to features related to the Storage Box API. You can find out the current state of this in [#1285](https://github.com/hetznercloud/terraform-provider-hcloud/issues/1285). + +This release includes all changes from the recent [Storage Box API changelog](https://docs.hetzner.cloud/changelog#2025-10-21-storage-box-api-update) entry. + +#### Examples + +```terraform +resource "hcloud_storage_box" "backups" { + name = "backups" + storage_box_type = "bx21" + location = "hel1" + password = var.storage_box_password +} + +resource "hcloud_storage_box_snapshot" "tool_xyz_migration" { + storage_box_id = hcloud_storage_box.backups.id + + description = "Before Tool XYZ Migration" + labels = { + env = "production" + } +} + +resource "hcloud_storage_box_subaccount" "team_badger" { + storage_box_id = hcloud_storage_box.backups.id + + home_directory = "teams/badger/" + password = var.team_badger_password +} +``` + +### Features + +- drop builds for windows arm (32 bit) (#1260) +- drop support for terraform v1.11 +- drop support for terraform v1.12 +- add support for terraform v1.13 +- add support for terraform v1.14 +- add support for Storage Boxes (#1166) + +### Bug Fixes + +- abort when data transformation errors (#1253) +- ensure partially created resources are tainted in the state (#1257) +- dns records order is not guaranteed (#1259) + +## [v1.56.0](https://github.com/hetznercloud/terraform-provider-hcloud/releases/tag/v1.56.0) + +### DNS API is now generally available + +The DNS API is now generally available, as well as support for features in this project that are related to the DNS API. + +To migrate existing zones to the new DNS API, see the [DNS migration guide](https://docs.hetzner.com/networking/dns/migration-to-hetzner-console/process/). + +See the [changelog](https://docs.hetzner.cloud/changelog#2025-11-10-dns-ga) for more details. + +### Server and load balancer network attachment + +With this release, the `hcloud_server_network` and `hcloud_load_balancer_network` resource now supports assigning a server or load balancer to a specific network subnet using the `subnet_id` attribute. The `subnet_id` attribute also validates that the `network_id` and `ip` attributes are consistent with the `subnet_id`. If they are not consistent, the resource will be replaced. + +In the `hcloud_server_network` resource, the `alias_ips` attributes now defaults to an empty set when undefined. + +### Features + +- attach server to a specific network subnet (#1217) +- attach load balancer to a specific network subnet (#1242) +- DNS support is now generally available (#1247) + +## [v1.55.0](https://github.com/hetznercloud/terraform-provider-hcloud/releases/tag/v1.55.0) + +### Features + +- support managing records of type SOA (#1225) +- **firewall**: importing firewall attachments (#1231) +- add `txt_record` helper function (#1227) + +### Bug Fixes + +- **load-balancer**: mark health check retries as required (#1232) + +## [v1.54.0](https://github.com/hetznercloud/terraform-provider-hcloud/releases/tag/v1.54.0) + +### DNS API Beta + +This release adds support for the new [DNS API](https://docs.hetzner.cloud/reference/cloud#dns). + +The DNS API is currently in **beta**, which will likely end on 10 November 2025. After the beta ended, it will no longer be possible to create new zones in the old DNS system. See the [DNS Beta FAQ](https://docs.hetzner.com/networking/dns/faq/beta) for more details. + +Future minor releases of this project may include breaking changes for features that are related to the DNS API. + +See the [DNS API Beta changelog](https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta) for more details. + +**Examples** + +```terraform +resource "hcloud_zone" "example" { + name = "example.com" + mode = "primary" + labels = { + key = "value" + } +} + +resource "hcloud_zone_rrset" "apex_a_example" { + zone = hcloud_zone.example.name + name = "@" + type = "A" + records = [ + { value = "201.78.10.45", comment = "server1" }, + ] +} +``` + +### Features + +- support the new DNS API (#1210) + +## [v1.53.1](https://github.com/hetznercloud/terraform-provider-hcloud/releases/tag/v1.53.1) + +### Bug Fixes + +- show warnings using diagnostics instead of logs (#1197) +- also check server type deprecation after server creation (#1201) + +## [v1.53.0](https://github.com/hetznercloud/terraform-provider-hcloud/releases/tag/v1.53.0) + +[Server Types](https://docs.hetzner.cloud/reference/cloud#server-types) now depend on [Locations](https://docs.hetzner.cloud/reference/cloud#locations). + +- We added a new `locations` property to the [Server Types](https://docs.hetzner.cloud/reference/cloud#server-types) resource. The new property defines a list of supported [Locations](https://docs.hetzner.cloud/reference/cloud#locations) and additional per [Locations](https://docs.hetzner.cloud/reference/cloud#locations) details such as deprecations information. + +- We deprecated the `deprecation` property from the [Server Types](https://docs.hetzner.cloud/reference/cloud#server-types) resource. The property will gradually be phased out as per [Locations](https://docs.hetzner.cloud/reference/cloud#locations) deprecations are being announced. Please use the new per [Locations](https://docs.hetzner.cloud/reference/cloud#locations) deprecation information instead. + +See our [changelog](https://docs.hetzner.cloud/changelog#2025-09-24-per-location-server-types) for more details. + +**Upgrading** + +```tf +// Before +data "hcloud_server_type" "main" { + name = "cx22" +} + +check "server_type" { + assert { + condition = !data.hcloud_server_type.main.is_deprecated + error_message = "Server Type ${data.hcloud_server_type.main.name} is deprecated" + } +} +``` + +```tf +// After +data "hcloud_location" "main" { + name = "fsn1" +} + +data "hcloud_server_type" "main" { + name = "cx22" +} + +locals { + server_type_location = one([ + for o in data.hcloud_server_type.main.locations : o + if o.name == data.hcloud_location.main.name + ]) +} + +check "server_type_location" { + assert { + condition = local.server_type_location != null + error_message = "Server Type ${data.hcloud_server_type.main.name} does not exists in Location ${data.hcloud_location.main.name}" + } + assert { + condition = !local.server_type_location.is_deprecated + error_message = "Server Type ${data.hcloud_server_type.main.name} is deprecated in Location ${data.hcloud_location.main.name}" + } +} +``` + +### Features + +- add category property to server type (#1184) +- per locations server types (#1193) + +### Bug Fixes + +- ensure exponential poll backoff is configured (#1160) +- handle not found volume deletion (#1189) +- wait for floating_ip assign action to complete (#1195) +- add experimental features maturity (#1191) + +## [v1.52.0](https://github.com/hetznercloud/terraform-provider-hcloud/releases/tag/v1.52.0) + +### Features + +- drop support for terraform v1.9 (#1125) +- drop support for terraform v1.10 (#1126) +- add support for terraform v1.11 (#1127) +- add support for terraform v1.12 (#1128) +- warn when experimental features are used (#1155) +- drop support for opentofu v1.7 (#1158) +- add support for opentofu v1.10 (#1159) + +## [v1.51.0](https://github.com/hetznercloud/terraform-provider-hcloud/releases/tag/v1.51.0) + +### Features + +- **server**: add private networks in data_source (#1115) + +## [v1.50.1](https://github.com/hetznercloud/terraform-provider-hcloud/releases/tag/v1.50.1) + +### Bug Fixes + +- missing assignee_type in assign primary ip call (#1117) + +## [v1.50.0](https://github.com/hetznercloud/terraform-provider-hcloud/releases/tag/v1.50.0) + +In this release, we upgraded the underlying Hetzner Cloud API client ([hcloud-go](https://github.com/hetznercloud/hcloud-go)) for the entire provider, which involves risk of breakage. Please make sure to test this new version before using it on production environments. + +### Features + +- drop support for terraform v1.8 (#1066) +- add support for terraform v1.10 (#1067) +- add support for opentofu v1.9 (#1071) + +### Bug Fixes + +- upgrade hcloud-go to v2 (#1062) + +## [v1.50.0-rc.0](https://github.com/hetznercloud/terraform-provider-hcloud/releases/tag/v1.50.0-rc.0) + +In this release, we upgraded the underlying Hetzner Cloud API client ([hcloud-go](https://github.com/hetznercloud/hcloud-go)) for the entire provider, which involves risk of breakage. Please make sure to test this new version before using it on production environments. + +### Features + +- drop support for terraform v1.8 (#1066) +- add support for terraform v1.10 (#1067) +- add support for opentofu v1.9 (#1071) + +### Bug Fixes + +- upgrade hcloud-go to v2 (#1062) + +## [1.49.1](https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.49.0...v1.49.1) (2024-11-21) + + +### Bug Fixes + +* remove server network interface workaround ([#1021](https://github.com/hetznercloud/terraform-provider-hcloud/issues/1021)) ([be330df](https://github.com/hetznercloud/terraform-provider-hcloud/commit/be330dfbd721b32e337c188c863c97667f021f65)) + +## [1.49.0](https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.48.1...v1.49.0) (2024-11-07) + + +### Features + +* add data.load_balancer_type(s) data sources ([#991](https://github.com/hetznercloud/terraform-provider-hcloud/issues/991)) ([ef60613](https://github.com/hetznercloud/terraform-provider-hcloud/commit/ef60613cf649c60a04663011180eae9318afba7b)) +* add support for opentofu v1.8 ([#1029](https://github.com/hetznercloud/terraform-provider-hcloud/issues/1029)) ([c7902de](https://github.com/hetznercloud/terraform-provider-hcloud/commit/c7902deb659c39ae1f00352ac967d22b9e98e169)) +* drop support for opentofu v1.6 ([#1030](https://github.com/hetznercloud/terraform-provider-hcloud/issues/1030)) ([8c448dd](https://github.com/hetznercloud/terraform-provider-hcloud/commit/8c448dd02b3bdcbc881825fc18ea7163cecda22a)) + + +### Bug Fixes + +* do not retry deleting a protected primary ip ([#1015](https://github.com/hetznercloud/terraform-provider-hcloud/issues/1015)) ([e9de286](https://github.com/hetznercloud/terraform-provider-hcloud/commit/e9de2865836bef8d4f4e9604d2d8c83c5a7cd12e)), closes [#1014](https://github.com/hetznercloud/terraform-provider-hcloud/issues/1014) +* **primary-ip:** conflict when deleting IP ([#994](https://github.com/hetznercloud/terraform-provider-hcloud/issues/994)) ([0873fb1](https://github.com/hetznercloud/terraform-provider-hcloud/commit/0873fb1580bf33334bc266a508d42a94486c20c5)) + +## [1.48.1](https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.48.0...v1.48.1) (2024-09-06) + + +### Bug Fixes + +* missing deprecation info in server type list data source ([#984](https://github.com/hetznercloud/terraform-provider-hcloud/issues/984)) ([c12560e](https://github.com/hetznercloud/terraform-provider-hcloud/commit/c12560ebbb1c5ed131f84154a9463e8d4ea7ab2a)) + +## [1.48.0](https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.47.0...v1.48.0) (2024-07-25) + + +### Features + +* add support for opentofu v1.7 ([#950](https://github.com/hetznercloud/terraform-provider-hcloud/issues/950)) ([ae115a8](https://github.com/hetznercloud/terraform-provider-hcloud/commit/ae115a8c26cc16c3dea5faf2226617036e7bcb8b)) +* add support for terraform v1.9 ([#949](https://github.com/hetznercloud/terraform-provider-hcloud/issues/949)) ([642ac15](https://github.com/hetznercloud/terraform-provider-hcloud/commit/642ac1511689df6bd4dbc8a8e29e1c19a2fd8bd9)) +* drop support for terraform v1.7.x ([#947](https://github.com/hetznercloud/terraform-provider-hcloud/issues/947)) ([f6372aa](https://github.com/hetznercloud/terraform-provider-hcloud/commit/f6372aacf6e8d47839bbfa6101476f6e0c1c6125)) +* **server-type:** mark included_traffic attribute as deprecated ([#963](https://github.com/hetznercloud/terraform-provider-hcloud/issues/963)) ([e8101cc](https://github.com/hetznercloud/terraform-provider-hcloud/commit/e8101ccff942ffe3406a6e9ca5a07c3f7fc34a2d)) + + +### Bug Fixes + +* do not continue if an api error occurred ([#958](https://github.com/hetznercloud/terraform-provider-hcloud/issues/958)) ([85a4dd0](https://github.com/hetznercloud/terraform-provider-hcloud/commit/85a4dd0c3390cb533fafa5d982d3faff6749aa7d)) +* **load-balancer:** automatic import of target adds conflicting fields ([#962](https://github.com/hetznercloud/terraform-provider-hcloud/issues/962)) ([6c0b1c4](https://github.com/hetznercloud/terraform-provider-hcloud/commit/6c0b1c42c9eee68f1e6dbc1854fb0f8ec00fbfab)), closes [#961](https://github.com/hetznercloud/terraform-provider-hcloud/issues/961) + +## [1.47.0](https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.46.1...v1.47.0) (2024-05-02) + + +### Features + +* test with Terraform 1.8 ([#919](https://github.com/hetznercloud/terraform-provider-hcloud/issues/919)) ([800a66c](https://github.com/hetznercloud/terraform-provider-hcloud/commit/800a66c0b9e61337b86a58f3ce7ab478fad391b6)) + + +### Bug Fixes + +* **ssh-key:** data inconsistency with empty label objects ([#922](https://github.com/hetznercloud/terraform-provider-hcloud/issues/922)) ([7e1bf2c](https://github.com/hetznercloud/terraform-provider-hcloud/commit/7e1bf2cd6c80c0a86d06b293e7d325e8986d5b3f)), closes [#921](https://github.com/hetznercloud/terraform-provider-hcloud/issues/921) +* **subnet:** handle new error message for deleting subnets with attached resources ([#923](https://github.com/hetznercloud/terraform-provider-hcloud/issues/923)) ([932c47b](https://github.com/hetznercloud/terraform-provider-hcloud/commit/932c47b8c626898fae47f07b4c161d0206561fb1)) + +## [1.46.1](https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.46.0...v1.46.1) (2024-04-05) + + +### Bug Fixes + +* **server:** cannot update placement group ([#902](https://github.com/hetznercloud/terraform-provider-hcloud/issues/902)) ([fa5f98c](https://github.com/hetznercloud/terraform-provider-hcloud/commit/fa5f98cf4e0c62249b14694ad2db59a5baf8fe30)) + +## [1.46.0](https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.45.0...v1.46.0) (2024-03-26) + + +### Features + +* **firewall:** set IPs without prefix directly ([#874](https://github.com/hetznercloud/terraform-provider-hcloud/issues/874)) ([40df28d](https://github.com/hetznercloud/terraform-provider-hcloud/commit/40df28d79dd192ef39edb51dfd6c4a6626d6413b)), closes [#807](https://github.com/hetznercloud/terraform-provider-hcloud/issues/807) [#715](https://github.com/hetznercloud/terraform-provider-hcloud/issues/715) +* support terraform v1.7.x ([#845](https://github.com/hetznercloud/terraform-provider-hcloud/issues/845)) ([a5229f4](https://github.com/hetznercloud/terraform-provider-hcloud/commit/a5229f492c5cee0bede74354ad697c452bd55211)) + + +### Bug Fixes + +* add api request status code in error diagnostics ([#839](https://github.com/hetznercloud/terraform-provider-hcloud/issues/839)) ([3689ade](https://github.com/hetznercloud/terraform-provider-hcloud/commit/3689ade53f2706f48bda4b3c14577b5bc9deadf3)) +* **firewall:** unnecessary diff if user specified non-minimal IPv6 ([40df28d](https://github.com/hetznercloud/terraform-provider-hcloud/commit/40df28d79dd192ef39edb51dfd6c4a6626d6413b)), closes [#870](https://github.com/hetznercloud/terraform-provider-hcloud/issues/870) +* return after error in datacenter data source ([#847](https://github.com/hetznercloud/terraform-provider-hcloud/issues/847)) ([bfac734](https://github.com/hetznercloud/terraform-provider-hcloud/commit/bfac734e1eefc135e3e1001c70904e93a7927859)) +* **server:** unable to attach two new networks ([#901](https://github.com/hetznercloud/terraform-provider-hcloud/issues/901)) ([df177e2](https://github.com/hetznercloud/terraform-provider-hcloud/commit/df177e285aba803ca117a639097f0745baa54a05)), closes [#899](https://github.com/hetznercloud/terraform-provider-hcloud/issues/899) + +## [1.45.0](https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.44.1...v1.45.0) (2024-01-11) + + +### Features + +* **provider:** choose between constant & exponential backoff for actions ([#798](https://github.com/hetznercloud/terraform-provider-hcloud/issues/798)) ([fa7ea1f](https://github.com/hetznercloud/terraform-provider-hcloud/commit/fa7ea1f167750e64cc9ebbb26ce0eb8171d55df6)) +* **server:** add `primary_disk_size` attribute in resource and datasource ([#801](https://github.com/hetznercloud/terraform-provider-hcloud/issues/801)) ([98c2f2d](https://github.com/hetznercloud/terraform-provider-hcloud/commit/98c2f2d01bcdb08fcf5d564a774b1f2d60124296)) + + +### Bug Fixes + +* **network:** mark data source fields as computed ([#805](https://github.com/hetznercloud/terraform-provider-hcloud/issues/805)) ([63e157c](https://github.com/hetznercloud/terraform-provider-hcloud/commit/63e157c42185b06cb2f9714014f564e9383a6976)) +* **placement-group:** mark data source fields as computed ([#806](https://github.com/hetznercloud/terraform-provider-hcloud/issues/806)) ([53069ac](https://github.com/hetznercloud/terraform-provider-hcloud/commit/53069ac9f4df7d6dc18567c61a92eba11afebd53)) +* **server:** missing field primary_disk_size ([#811](https://github.com/hetznercloud/terraform-provider-hcloud/issues/811)) ([9bd0ef0](https://github.com/hetznercloud/terraform-provider-hcloud/commit/9bd0ef0c1d005f00436567f4520b3354940fc041)) + +## [1.44.1](https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.44.0...v1.44.1) (2023-10-05) + + +### Bug Fixes + +* failed to load plugin schemas ([#764](https://github.com/hetznercloud/terraform-provider-hcloud/issues/764)) ([b68a97c](https://github.com/hetznercloud/terraform-provider-hcloud/commit/b68a97cfef01f4f3cb5968ce866dd0e77e437684)) + +## [1.44.0](https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.43.0...v1.44.0) (2023-10-04) + + +### Features + +* setup initial plugin framework skaffolding ([#749](https://github.com/hetznercloud/terraform-provider-hcloud/issues/749)) ([5c284e2](https://github.com/hetznercloud/terraform-provider-hcloud/commit/5c284e293dd2e4a8ad83ae9b2784fd3b8261c323)) + + +### Bug Fixes + +* poll_interval not working as expected ([6ef7467](https://github.com/hetznercloud/terraform-provider-hcloud/commit/6ef7467b198ea1807715d7bc99e03fbad62688a2)) + +## [1.43.0](https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.42.1...v1.43.0) (2023-09-20) + + +### Features + +* build with Go 1.21 ([#753](https://github.com/hetznercloud/terraform-provider-hcloud/issues/753)) ([f68e079](https://github.com/hetznercloud/terraform-provider-hcloud/commit/f68e0791307ee2cddce172f3bcd0f786fd2f2b32)) +* **server:** Optional graceful shutdown before deleting servers ([#755](https://github.com/hetznercloud/terraform-provider-hcloud/issues/755)) ([0c477a3](https://github.com/hetznercloud/terraform-provider-hcloud/commit/0c477a32b569c2cac455cf2d6131d8c62519803e)) + +## [1.42.1](https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.42.0...v1.42.1) (2023-08-14) + + +### Bug Fixes + +* **primary_ip:** list data source only returned first 25 IPs ([#729](https://github.com/hetznercloud/terraform-provider-hcloud/issues/729)) ([62e9781](https://github.com/hetznercloud/terraform-provider-hcloud/commit/62e97810df58d2eccaaed2e81d7833fff4e5d6ae)) +* **server:** panic when passing empty string as ssh key ([#736](https://github.com/hetznercloud/terraform-provider-hcloud/issues/736)) ([d57b386](https://github.com/hetznercloud/terraform-provider-hcloud/commit/d57b38606c4b052b7d8181074d0860bd35935145)) +* **server:** Return `nil` instead of `"<nil>"` with IPv4/IPv6 disabled ([#723](https://github.com/hetznercloud/terraform-provider-hcloud/issues/723)) ([6cd2a37](https://github.com/hetznercloud/terraform-provider-hcloud/commit/6cd2a3753df03ebb6f3ebdb46899f2ff167d04ad)) +* use exponential backoff when retrying actions ([#735](https://github.com/hetznercloud/terraform-provider-hcloud/issues/735)) ([d51ee4a](https://github.com/hetznercloud/terraform-provider-hcloud/commit/d51ee4a46dd869320b90413d8e7806fab21dc419)) + +## [1.42.0](https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.41.0...v1.42.0) (2023-07-13) + + +### Features + +* **image:** add filter include_deprecated to datasources ([#685](https://github.com/hetznercloud/terraform-provider-hcloud/issues/685)) ([#717](https://github.com/hetznercloud/terraform-provider-hcloud/issues/717)) ([9f039ba](https://github.com/hetznercloud/terraform-provider-hcloud/commit/9f039ba35b9b0e94f4f5581099031e11f001a6d8)) + + +### Bug Fixes + +* **lb:** early validation for lb_target arguments ([#721](https://github.com/hetznercloud/terraform-provider-hcloud/issues/721)) ([10928d1](https://github.com/hetznercloud/terraform-provider-hcloud/commit/10928d1389f4f7e08f042c33101af03a4e78d155)) +* **rdns:** crash when resource was deleted outside of terraform ([#720](https://github.com/hetznercloud/terraform-provider-hcloud/issues/720)) ([aad0614](https://github.com/hetznercloud/terraform-provider-hcloud/commit/aad0614d4abbe2dfbed53630b2e29380e6b087c5)), closes [#710](https://github.com/hetznercloud/terraform-provider-hcloud/issues/710) + +## [1.41.0](https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.40.0...v1.41.0) (2023-06-22) + + +### Features + +* **network:** add support for exposing routes to vswitch connection ([#703](https://github.com/hetznercloud/terraform-provider-hcloud/issues/703)) ([f213550](https://github.com/hetznercloud/terraform-provider-hcloud/commit/f2135509328ff2418ddc5f5224872ccb68821f6c)) + +## [1.40.0](https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.39.0...v1.40.0) (2023-06-13) + + +### Features + +* deprecation info for server types ([#691](https://github.com/hetznercloud/terraform-provider-hcloud/issues/691)) ([9e6a22c](https://github.com/hetznercloud/terraform-provider-hcloud/commit/9e6a22cf2d5cc1e1859ec622c649978b83207938)) + + +### Bug Fixes + +* **server:** invalid ipv6_address nil1 when no IPv6 is used ([#689](https://github.com/hetznercloud/terraform-provider-hcloud/issues/689)) ([2912f45](https://github.com/hetznercloud/terraform-provider-hcloud/commit/2912f459bbf47b2d9f90325056713a4eb9d99d1d)) + +## v1.39.0 + +### What's Changed +* feat(rdns): support setting RDNS for Primary IPs by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/669 +* feat(server_type): return included traffic by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/680 + + +**Full Changelog**: https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.38.2...v1.39.0 + +## v1.38.2 + +### What's Changed +* ci: run e2etests in parallel by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/660 +* fix(server): avoid recreate when using official image by ID by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/661 + + +**Full Changelog**: https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.38.1...v1.38.2 + +## v1.38.1 + +Affordable, sustainable & powerful! rocketYou can now get one of our Arm64 CAX servers to optimize your operations while minimizing your costs! +Discover Ampere’s efficient and robust Arm64 architecture and be ready to get blown away with its performance. sunglasses + +Learn more: https://www.hetzner.com/news/arm64-cloud + +### What's Changed +* fix(server): crash when non-existent server type is used by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/659 +* fix(server): unable to create server from image id by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/658 +* fix(deps): update module golang.org/x/crypto to v0.8.0 by @renovate in https://github.com/hetznercloud/terraform-provider-hcloud/pull/652 + + +**Full Changelog**: https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.38.0...v1.38.1 + +## v1.38.0 + +Affordable, sustainable & powerful! 🚀You can now get one of our Arm64 CAX servers to optimize your operations while minimizing your costs! +Discover Ampere’s efficient and robust Arm64 architecture and be ready to get blown away with its performance. 😎 + +Learn more: https://www.hetzner.com/news/arm64-cloud + +### What's Changed +* fix(deps): update github.com/hashicorp/go-cty digest to 8598007 by @renovate in https://github.com/hetznercloud/terraform-provider-hcloud/pull/633 +* fix(deps): update module golang.org/x/net to v0.9.0 by @renovate in https://github.com/hetznercloud/terraform-provider-hcloud/pull/651 +* feat: add support for ARM APIs by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/654 + + +**Full Changelog**: https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.37.0...v1.38.0 + +## v1.37.0 + +### What's Changed +* docs: Add missing location (hil) by @akirak in https://github.com/hetznercloud/terraform-provider-hcloud/pull/606 +* docs: replace outdated example OS image by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/615 +* docs: list available datacenters by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/613 +* docs: explain deprecated attributes by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/614 +* feat(primaryip): return IPv6 subnet #600 by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/620 +* fix: state is missing resources when rate limit is reached #604 by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/621 +* chore(ci): run e2e on public workers by @samcday in https://github.com/hetznercloud/terraform-provider-hcloud/pull/631 +* Configure Renovate by @renovate in https://github.com/hetznercloud/terraform-provider-hcloud/pull/629 +* chore: Test against Terraform v1.4 by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/638 +* fix(deps): update module github.com/hashicorp/terraform-plugin-log to v0.8.0 by @renovate in https://github.com/hetznercloud/terraform-provider-hcloud/pull/639 +* fix(deps): update module github.com/hetznercloud/hcloud-go to v1.41.0 by @renovate in https://github.com/hetznercloud/terraform-provider-hcloud/pull/637 +* fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.25.0 by @renovate in https://github.com/hetznercloud/terraform-provider-hcloud/pull/640 +* chore(deps): update goreleaser/goreleaser-action action to v4 by @renovate in https://github.com/hetznercloud/terraform-provider-hcloud/pull/642 +* fix: self-reported version not correct by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/630 +* chore(deps): update actions/setup-go action to v4 by @renovate in https://github.com/hetznercloud/terraform-provider-hcloud/pull/643 +* fix(deps): update module golang.org/x/crypto to v0.7.0 by @renovate in https://github.com/hetznercloud/terraform-provider-hcloud/pull/641 +* docs: freebsd64 is no longer available as rescue image by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/645 +* refactor: Make CI Happy Again by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/646 +* fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.26.1 by @renovate in https://github.com/hetznercloud/terraform-provider-hcloud/pull/644 + +### New Contributors +* @akirak made their first contribution in https://github.com/hetznercloud/terraform-provider-hcloud/pull/606 +* @samcday made their first contribution in https://github.com/hetznercloud/terraform-provider-hcloud/pull/631 + +**Full Changelog**: https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.36.2...v1.37.0 + +## v1.36.2 + +### What's Changed +* test: fix acceptence tests for new location Hillsboro by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/598 +* fix(server): unhandled errors from API calls by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/602 +* fix(lb): lb_target breaks when load-balancer is deleted in API by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/603 +* fix(lb): add missing fields to data source by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/605 + + +**Full Changelog**: https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.36.1...v1.36.2 + +## v1.36.1 + +### What's Changed +* chore: update hcloud-go to v1.37.0 by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/591 +* fix(server): make sure that each network block is unique by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/594 +* docs: mention that we only accept the location name as attribute by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/595 +* fix(server): unnecessary updates when using network #556 by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/593 +* fix: multiple resources break when parent resource is recreated by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/596 + + +**Full Changelog**: https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.36.0...v1.36.1 + +## v1.36.0 + +### What's Changed +* Update auto delete on primary IP resource change by @4ND3R50N in https://github.com/hetznercloud/terraform-provider-hcloud/pull/573 +* Update Dependencies by @LKaemmerling in https://github.com/hetznercloud/terraform-provider-hcloud/pull/575 +* Add tests for Terraform 1.3 by @LKaemmerling in https://github.com/hetznercloud/terraform-provider-hcloud/pull/576 +* docs: explain how to create a server from snapshot by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/582 +* docs: clarify arguments of hcloud_primary_ip resource by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/584 +* fix: error when deleting hcloud_primary_ip with auto_delete by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/585 +* test: fix flaky test TestServerResource_PrimaryIPNetworkTests by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/587 +* feat: import hcloud_load_balancer_target by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/589 +* fix: race-condition when re-creating server with external primary ip by @apricote in https://github.com/hetznercloud/terraform-provider-hcloud/pull/590 + +### New Contributors +* @apricote made their first contribution in https://github.com/hetznercloud/terraform-provider-hcloud/pull/582 + +**Full Changelog**: https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.35.2...v1.36.0 + +## v1.35.2 + +### What's Changed +* bug: add missing datacenter option at primary_ip & fix file naming by @komandar in https://github.com/hetznercloud/terraform-provider-hcloud/pull/559 +* Fix private only server (attached to network) creation by @4ND3R50N in https://github.com/hetznercloud/terraform-provider-hcloud/pull/562 +* feature: update workflow & golang to newest stable release 1.19 by @komandar in https://github.com/hetznercloud/terraform-provider-hcloud/pull/560 +* ci: fix not available gpg_private_key in workflow by @komandar in https://github.com/hetznercloud/terraform-provider-hcloud/pull/563 +* Remove < and > signs in import examples by @ekeih in https://github.com/hetznercloud/terraform-provider-hcloud/pull/564 +* fix: wrong required statement by @komandar in https://github.com/hetznercloud/terraform-provider-hcloud/pull/567 +* style: unify the bool and boolean type in the docs by @komandar in https://github.com/hetznercloud/terraform-provider-hcloud/pull/568 + +### New Contributors +* @komandar made their first contribution in https://github.com/hetznercloud/terraform-provider-hcloud/pull/559 +* @ekeih made their first contribution in https://github.com/hetznercloud/terraform-provider-hcloud/pull/564 + +**Full Changelog**: https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.35.1...v1.35.2 + +## v1.35.1 + +### What's Changed +* Add workaround "fix" for network interface issue by @4ND3R50N in https://github.com/hetznercloud/terraform-provider-hcloud/pull/552 +* Update hcloud-go to v1.35.2 by @4ND3R50N in https://github.com/hetznercloud/terraform-provider-hcloud/pull/554 +* Prevent segfault when image nonexistent by @acuteaura in https://github.com/hetznercloud/terraform-provider-hcloud/pull/553 + +### New Contributors +* @acuteaura made their first contribution in https://github.com/hetznercloud/terraform-provider-hcloud/pull/553 + +**Full Changelog**: https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.35.0...v1.35.1 + +## v1.35.0 + +### What's Changed +* Implement Server Create Without primary ip on update behavior by @4ND3R50N in https://github.com/hetznercloud/terraform-provider-hcloud/pull/548 +* Add support of using deprecated images by @LKaemmerling in https://github.com/hetznercloud/terraform-provider-hcloud/pull/549 + + +**Full Changelog**: https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.34.3...v1.35.0 + +## v1.34.3 + +### What's Changed +* Create server without primary ips: Fix edge case bug + add test by @4ND3R50N in https://github.com/hetznercloud/terraform-provider-hcloud/pull/546 + + +**Full Changelog**: https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.34.2...v1.34.3 + +## v1.34.2 + +### What's Changed +* Server Create without primary IPs via public_net by @4ND3R50N in https://github.com/hetznercloud/terraform-provider-hcloud/pull/544 + + +**Full Changelog**: https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.34.1...v1.34.2 + +## v1.34.1 + +### What's Changed +* Add primary ip documentation by @4ND3R50N in https://github.com/hetznercloud/terraform-provider-hcloud/pull/540 + + +**Full Changelog**: https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.34.0...v1.34.1 + +## v1.34.0 + +### What's Changed +* Update Dependencies (TF SDK 2.7.1 -> 2.14) by @LKaemmerling in https://github.com/hetznercloud/terraform-provider-hcloud/pull/524 +* DataSource Network `id` should be an integer by @guineveresaenger in https://github.com/hetznercloud/terraform-provider-hcloud/pull/525 +* Improve documentation by @02bensch in https://github.com/hetznercloud/terraform-provider-hcloud/pull/536 +* Add support for primary IPs by @4ND3R50N in https://github.com/hetznercloud/terraform-provider-hcloud/pull/538 + +### New Contributors +* @guineveresaenger made their first contribution in https://github.com/hetznercloud/terraform-provider-hcloud/pull/525 +* @02bensch made their first contribution in https://github.com/hetznercloud/terraform-provider-hcloud/pull/536 + +**Full Changelog**: https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.33.2...v1.34.0 + +## v1.33.2 + +### What's Changed +* Implement validation on labels as per spec by @4ND3R50N in https://github.com/hetznercloud/terraform-provider-hcloud/pull/522 +* Add resourceFloatingIPAssignmentUpdate by @CyberShadow in https://github.com/hetznercloud/terraform-provider-hcloud/pull/501 +* Use Go 1.18 for building by @LKaemmerling in https://github.com/hetznercloud/terraform-provider-hcloud/pull/523 + +### New Contributors +* @4ND3R50N made their first contribution in https://github.com/hetznercloud/terraform-provider-hcloud/pull/522 +* @CyberShadow made their first contribution in https://github.com/hetznercloud/terraform-provider-hcloud/pull/501 + +**Full Changelog**: https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.33.1...v1.33.2 + +## v1.33.1 + +### What's Changed +* Datasource hcloud_location & hcloud_locations: Add network_zone by @LKaemmerling in https://github.com/hetznercloud/terraform-provider-hcloud/pull/508 +* hcloud_servcer resource: Retry on enabling rescue (reset call) by @LKaemmerling in https://github.com/hetznercloud/terraform-provider-hcloud/pull/511 + + +**Full Changelog**: https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.33.0...v1.33.1 + +## v1.33.0 + +### What's Changed +* Update image.html.md by @FloMaetschke in https://github.com/hetznercloud/terraform-provider-hcloud/pull/494 +* docs: Add missing location (ash) by @dhoppe in https://github.com/hetznercloud/terraform-provider-hcloud/pull/496 +* Add missing argument for resource hcloud_ssh_key by @dhoppe in https://github.com/hetznercloud/terraform-provider-hcloud/pull/498 +* Make the image property of hcloud_server optional by @fhofherr in https://github.com/hetznercloud/terraform-provider-hcloud/pull/499 +* Implement hcloud_firewall_attachment resource by @fhofherr in https://github.com/hetznercloud/terraform-provider-hcloud/pull/500 + +### New Contributors +* @FloMaetschke made their first contribution in https://github.com/hetznercloud/terraform-provider-hcloud/pull/494 +* @dhoppe made their first contribution in https://github.com/hetznercloud/terraform-provider-hcloud/pull/496 + +**Full Changelog**: https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.32.2...v1.33.0 + +## v1.32.2 + +### What's Changed +* server: resource: fix spelling by @xdevs23 in https://github.com/hetznercloud/terraform-provider-hcloud/pull/480 +* Use our own E2E Test runner by @LKaemmerling in https://github.com/hetznercloud/terraform-provider-hcloud/pull/481 +* Mark the hcloud_token sensitive by @fhofherr in https://github.com/hetznercloud/terraform-provider-hcloud/pull/479 +* Fix nil check for RNDSupporter by @fhofherr in https://github.com/hetznercloud/terraform-provider-hcloud/pull/485 +* fix: typo in docs by @RobertHeim in https://github.com/hetznercloud/terraform-provider-hcloud/pull/486 +* Adjust tests by @fhofherr in https://github.com/hetznercloud/terraform-provider-hcloud/pull/489 +* fix: typo by @RobertHeim in https://github.com/hetznercloud/terraform-provider-hcloud/pull/488 + +### New Contributors +* @xdevs23 made their first contribution in https://github.com/hetznercloud/terraform-provider-hcloud/pull/480 +* @RobertHeim made their first contribution in https://github.com/hetznercloud/terraform-provider-hcloud/pull/486 + +**Full Changelog**: https://github.com/hetznercloud/terraform-provider-hcloud/compare/v1.32.1...v1.32.2 + +## v1.32.1 + + + +- ec487e93 Fix failing tests +- d10e9f0d Fix firewall deletion + +## v1.32.0 + + + +- af8300cf Case-insensitive comparison of IPv6 addresses +- 4adfcfa9 Update hcloud-go to v1.33.0 +- 9e08f76f hcloud_firewall resource: Remove all resources before deleting the firewall + +## v1.31.1 + + + +- 545375f9 hcloud_server resource: Add computed to firewall_ids + +## v1.31.0 + +### What's Changed + +- 3a6384cc Add delete and rebuild protection (#432) +- 6eaecafa Add list data source for certificates +- 07b1b53e Add list data source for firewall (#445) +- 45843b99 Add list data source for floating ips (#448) +- 9914e064 Add list data source for images +- 21267191 Add list data source for load balancers +- eb3bcc0c Add list data source for networks (#452) +- a0045237 Add list data source for placement groups (#456) +- 333e38ca Add list data source for server (#434) +- 3a33c154 Add list data source for volumes +- 8de96d9d Allow updating of hcloud_load_balancer_network resource +- 14c10006 Deprecate hcloud_load_balancer resource `target` property +- 5a7feae8 Do not fail fast on e2e tests +- a3023bfc Fix datasources of server and volume (#431) +- b02858af Fix firewall apply_to if assigned with server resource (#455) +- b595efa6 Fix race condition on server data source test (#446) +- ff44ac8e Improve handling of "Error: cannot remove subnet because servers are attached to it" +- 86f5c990 Refactor list data source for datacenter (#444) +- 984c2e3b Refactor list data source for locations +- 32000fcb Refactor list data source for server types +- 2c8ad4f4 Refactor list data source for ssh keys (#438) +- b5f5073e Remove testing & official support of Terraform < 1.0 +- 7e4746f1 hcloud_firewall resource & datasource: Add apply_to possibility +- 54394aea hcloud_rdns: Fix nil pointer when resource does not exist + +## v1.30.0 + +### What's Changed + +- 985c1db9 Add dns ptr support for load balancer +- 13421a6a Update docs +- ce6982e0 Use go 1.17 for tests & builds + +## v1.29.0 + +### What's Changed + +- f0e2e3c1 Fix date format for certificate states +- e19f2d76 Placement groups (#426) +- 151a0b6a Update hcloud_firewall documentation on how to define port range + +## v1.28.1 + +### What's Changed + +- 93059571 Add missing firewall rule description docs +- 9abc5d7e Fix firewall rule description + +## v1.28.0 + +### What's Changed + +- 92a07cd0 Add description field to firewall rules +- a0a90b8f Increase amount of retries on firewall deletion + +## v1.27.2 + +### What's Changed + +- f397c38d Add a feature request template +- b4619110 Fix hcloud_snapshot resource documentation +- 8d204641 Fix spelling and grammar mistakes +- 219a6355 Update hcloud-go to v1.28.0 + +## v1.27.1 + +### What's Changed + +- 71f995bf Add issue template +- ad88a85f Add missing docs about the network attribute/argument on hcloud_server and implement the datatransformation of the network for the attribute +- 72a5fb48 Add testcase +- 449710e9 Add tests for terraform 1.0 +- 0cfa7c88 Docs: Add missing firewall_ids to hcloud_server resource and datasource +- 80ee6fab Docs: Improve documentation for hcloud_firewall resource to include information about port ranges and the `any` keyword (#381) +- 8f1c5c16 Docs: Mark example "hcloud_token" variable as sensitive +- b941c699 Fix non iso8601 timestamp in hcloud_image datasource +- 993b3cd2 Fix tests +- e775c362 Generate Changelog with goreleaser +- 1795d377 Improve error messages from hcloud-go +- 895813eb Improve hcloud_rdns resource documentation and validation of fields `server_id` and `floating_ip_id` that should be mutually exclusive +- 3cdd11b4 Increase create timeout for servers and snapshots +- 68a3d6a6 Move logic around to make it more readable +- faa15532 Network Attachments: Retry on ServiceError and NoSubnetAvailable Error +- edbddcfe Update dependencies +- 4027dd6f Update terraform SDK to v2.7.0 + + +## 1.27.0 (June 17, 2021) + +FEATURES: +* `hcloud_firewall` resource & datasource: Support GRE & ESP protocol in firewall rules + +## 1.26.2 (May 28, 2021) + +BUG FIXES: + +* Fix invalid checksum for release 1.26.1 + +## 1.26.1 (May 28, 2021) + +BUG FIXES: +* `hcloud_firewall` datasource: `destination_ips` missed in definition +* `hcloud_certificate` resource: panic when parsing certificate chains + (#359) + +## 1.26.0 (March 30, 2021) + +* **New Resource** `hcloud_managed_certificate` +* **New Resource** `hcloud_uploaded_certificate` +* **Deprecated Resource** `hcloud_certificate` + +## 1.25.2 (March 16, 2021) + +BUG FIXES: +* `hcloud_firewall` resource: plugin normalized CIDRs silently. + +## 1.25.1 (March 10, 2021) + +BUG FIXES: +* `hcloud_firewall` documentation: fix name of `firewall_ids` property. + +## 1.25.0 (March 10, 2021) + +FEATURES: +* **New Resource**: `hcloud_snapshot` +* **New Resource**: `hcloud_firewall` +* **New Data Source**: `hcloud_firewall` + +BUG FIXES: +* `hcloud_server` resource: image had a wrong type (int instead of string) when a server was created from a snapshot +* `hcloud_load_balancer_target` resource: force recreation when changing a target attribute (server_id, ip or label_selector) + +NOTES: +* The provider is now built with Go 1.16 + +## 1.24.1 (February 04, 2021) + +BUG FIXES: +* `hcloud_volume` datasource: id is now marked as computed to allow more setups where the id is unknown +* `hcloud_ssh_key` datasource: id is now marked as computed to allow more setups where the id is unknown +* `hcloud_network` datasource: id is now marked as computed to allow more setups where the id is unknown +* `hcloud_image` datasource: id is now marked as computed to allow more setups where the id is unknown +* `hcloud_certificate` datasource: id is now marked as computed to allow more setups where the id is unknown +* `hcloud_volume` resource: Automount is now working when you attach an already existing volume to a server. + +## 1.24.0 (January 12, 2021) + +FEATURES: +* **New Datasource**: `hcloud_server_type` +* **New Datasource**: `hcloud_server_types` +* New `network` property for `hcloud_server` resource. + +BUG FIXES: +* `hcloud_volume` resource: A race condition was fixed, that was called when you tried to create multiple volumes for a single server +* `hcloud_locations` datasource: Use a stable value as IDs instead of a timestamp. We now use a hash of the concatenation of all location IDs as ID +* `hcloud_datacenters` datasource: Use a stable value as IDs instead of a timestamp. We now use a hash of the concatenation of all datacenters IDs as ID + +Notes: +* This release is tested against Terraform 0.13.x and 0.14.x. Testing on 0.12.x was removed, therefore Terraform 0.12.x is no longer officially supported + +## 1.23.0 (November 03, 2020) + +FEATURES: +* `hcloud_network_subnet` supports vSwitch Subnets + +Notes: +* The provider was updated to use the Terraform Plugin SDK v2. + +## 1.22.0 (October 05, 2020) + +FEATURES: + +* All `hcloud_*` resources are now importable. + +BUG FIXES: +* `hcloud_rdns` resource: It is now possible to import the resource as documented. + +## 1.21.0 (September 09, 2020) + +CHANGED: + +* Un-deprecate `network_id` property of `hcloud_load_balancer_network` and + `hcloud_server_network` resources. +* Change module path from + `github.com/terraform-providers/terraform-provider-hcloud` to + `github.com/hetznercloud/terraform-provider-hcloud` + +## 1.20.1 (August 18, 2020) +BUG FIXES: + +* `hcloud_certificate` resource: Updating the certificate needs to recreate the certificate. + +NOTES: +* The provider is now build with Go 1.15 +* We overhauled parts of the underlying test suite + +## 1.20.0 (August 10, 2020) + +FEATURES: + +* Allow updating/resizing a Load Balancer through the + `load_balancer_type` of `hcloud_load_balancer` resource +* Add support for Load Balancer Label Selector and IP targets. + +## 1.19.2 (July 28, 2020) + +CHANGED: + +* Deprecate `network_id` property of `hcloud_server_network` and + `hcloud_load_balancer_network` resources. Introduce a `subnet_id` + property as replacement. + + Both resources require a subnet to be created. Since `network_id` + references the network and not the subnet there is no explicit + dependency between those resources. This leads to Terraform creating + those resources in parallel, which creates a race condition. Users + stuck with the `network_id` property can create an explicit dependency + on the subnet using `depends_on` to work around this issue. + +BUG FIXES: +* Enable and Disable `proxyprotocol` on a Load Balancer didn't work after creation +* Deleted all Load Balancer services when you changed the `listen_port` of one service +* `hcloud_load_balancer_target` was not idempotent when you add a target that was already defined + +NOTES: +* Update to hcloud-go v1.19.0 to fix the bad request issue + +## 1.19.1 (July 16, 2020) + +NOTES: + +* First release under new terraform registry +* Provider was moved to https://github.com/hetznercloud/terraform-provider-hcloud + +## 1.19.0 (July 10, 2020) + +BUG FIXES: + +* Update to hcloud-go v1.18.2 to fix a conflict issue +* Ensure `alias_ip` retain the same order. + +NOTES: + +* This release uses Terraform Plugin SDK v1.15.0. + +## 1.18.1 (July 02, 2020) + +BUG FIXES + +* Set correct defaults for `cookie_name` and `cookie_lifetime` + properties of `hcloud_load_balancer_service`. +* Remove unsupported `https` protocol from health check documentation. +* Force recreate of `hcloud_network` if `ip_range` changes. + +## 1.18.0 (June 30, 2020) + +FEATURES: + +* **New Resource**: `hcloud_load_balancer_target` which allows to add a + target to a load balancer. This resource extends the `target` property + of the `hcloud_load_balancer` resource. `hcloud_load_balancer_target` + should be preferred over the `target` property of + `hcloud_load_balancer`. + +## 1.17.0 (June 22, 2020) + +FEATURES: + +* **New Datasource**: `hcloud_load_balancer` +* **New Resource**: `hcloud_load_balancer` +* **New Resource**: `hcloud_load_balancer_service` +* **New Resource**: `hcloud_load_balancer_network` + +BUG FIXES: + +* resources/hcloud_network_route: Fix panic when trying to lookup an already deleted Network route + +## 1.16.0 (March 24, 2020) + +BUG FIXES: +* resource/hcloud_ssh_key: Fix panic when we update labels in SSH keys +* resource/hcloud_server_network: Fix alias ips ignored on creation of server network +* resource/hcloud_server: Use first assigned `ipv6_address` as value instead of the network address. **Attention: This can be a breaking change** + +NOTES: +* This release uses Terraform Plugin SDK v1.8.0. + +## 1.15.0 (November 11, 2019) + +IMPROVEMENTS: + +* resources/hcloud_server: Add retry mechanism for enabling the rescue mode. + +NOTES: +* This release uses Terraform Plugin SDK v1.3.0. + +## 1.14.0 (October 01, 2019) + +NOTES: +* This release uses the Terraform Plugin SDK v1.1.0. + +## 1.13.0 (September 19, 2019) + +IMPROVEMENTS: + +* resources/hcloud_floating_ip: Add `name` attribute to get or set the name of a Floating IP. +* datasource/hcloud_floating_ip: Add `name` attribute to get Floating IPs by their name. + +NOTES: + +* This release is Terraform 0.12.9+ compatible. +* Updated hcloud-go to `v1.16.0` +* The provider is now tested and build with Go `1.13` + +## 1.12.0 (July 29, 2019) + +FEATURES: + +* **New Datasource**: `hcloud_ssh_keys` Lookup all SSH keys. + +IMPROVEMENTS: + +* resources/hcloud_server_network: Add `mac_address` attribute to get the mac address of the Network interface. + +BUG FIXES: + +* Fix an error on server creation, when an iso id was given instead of an iso name. + +NOTES: + +* This release is Terraform 0.12.5+ compatible. +* Updated hcloud-go to `v1.15.1` +* Added hcloud-go request debugging when using `TF_LOG`. + +## 1.11.0 (July 10, 2019) + +FEATURES: + +* **New Resource**: `hcloud_network` Manage Networks. +* **New Resource**: `hcloud_network_subnet` Manage Networks Subnets. +* **New Resource**: `hcloud_network_route` Manage Networks Routes. +* **New Resource**: `hcloud_server_network` Manage attachment between servers and Networks. +* **New Datasource**: `hcloud_network` Lookup Networks. + +## 1.10.0 (May 14, 2019) + +NOTES: +* This release is Terraform 0.12-RC1+ compatible. + +## 1.9.0 (March 15, 2019) + +IMPROVEMENTS: + +* datasource/hcloud_server: Add `with_status` attribute to get images by their status. +* datasource/hcloud_image: Add `with_status` attribute to get servers by their status. +* datasource/hcloud_volume: Add `with_status` attribute to get volumes by their status. + +* Added `with_selector` to all datasources that support label selectors. + +NOTES: + +* **Deprecation**: datasource/hcloud_server: `selector`, will be removed in the near future. +* **Deprecation**: datasource/hcloud_floating_ip: `selector`, will be removed in the near future. +* **Deprecation**: datasource/hcloud_image: `selector`, will be removed in the near future. +* **Deprecation**: datasource/hcloud_ssh_key: `selector`, will be removed in the near future. +* **Deprecation**: datasource/hcloud_volume: `selector`, will be removed in the near future. + +## 1.8.1 (March 12, 2019) + +BUG FIXES: +* Fix an error on server creation, when a image id was given instead of a image name. +* Fix an missing error on `terraform plan`, when using an image name which does not exists. + +## 1.8.0 (February 06, 2019) + +FEATURES: +* **New Datasource**: `hcloud_server` Lookup a server. + +IMPROVEMENTS: +* Add API token length validation + +## 1.7.0 (December 18, 2018) + +FEATURES: +* **New Datasource**: `hcloud_location` Lookup a location. +* **New Datasource**: `hcloud_locations` Lookup all locations. +* **New Datasource**: `hcloud_datacenter` Lookup a datacenter. +* **New Datasource**: `hcloud_datacenters` Lookup all datacenters. +* Volume Automounting is now available for `hcloud_volume` and `hcloud_volume_attachment` + +## 1.6.0 (December 03, 2018) + +IMPROVEMENTS: +* datasource/hcloud_image: Add `most_recent` attribute to get the latest image when multiple images has the same label. + +BUG FIXES: +* Fix an error on volume_attachment creation, when server was locked. + +## 1.5.0 (November 16, 2018) + +FEATURES: +* **New Resource**: `hcloud_volume_attachment` Manage the attachment between volumes and servers. + +IMPROVEMENTS: +* resources/hcloud_server: Add `backups` attribute to enable or disable backups. + +NOTES: +* **Read Only**: resources/hcloud_server: `backup_window`, removed the ability to set the attribute. This attribute is now read only. +* Updated hcloud-go to `v1.11.0` + +## 1.4.0 (October 18, 2018) + +FEATURES: + +* **New Resource**: `hcloud_volume` Manage volumes. +* **New Datasource**: `hcloud_volume` Lookup volumes. + +NOTES: + +* **Deprecation**: resource/hcloud_server: `backup_window`, will be removed in the near future. + +## 1.3.0 (September 12, 2018) + +FEATURES: + +- **New Resource**: `hcloud_rnds` Manage reverse DNS entries for servers and Floating IPs. +* **New Resource**: `hcloud_floating_ip_assignment` Manage the association between Floating IPs and servers. +- **New Datasource**: `hcloud_floating_ip` Lookup Floating ips. +- **New Datasource**: `hcloud_image` Lookup images. +- **New Datasource**: `hcloud_ssh_key` Lookup SSH Keys. +- **New Provider Config**: `poll_interval` Configures the interval in which actions are polled by the client. Default `500ms`. Increase this interval if you run into rate limiting errors. + +IMPROVEMENTS: + +* resource/hcloud_server: Add `ipv6_network` attribute. + +NOTES: + +* Updated hcloud-go to `v1.9.0` + +## 1.2.0 (June 07, 2018) + +NOTES: + +* Switched from MIT licence to MPL2 +* removed `reverse_dns` property of `hcloud_floating_ip`, because it was not useable, see https://github.com/hetznercloud/terraform-provider-hcloud/issues/32 +* improved test coverage +* updated terraform to `v0.11.7` +* updated hcloud-go to `v1.6.0` +* added log when waiting for an action to complete + +BUG FIXES: + +* delete records from state that are invalid or are not found by the server +* resource update methods return the result of the read method + +## 1.1.0 (March 2, 2018) + +* Save hashsum of `user_data`, existing state is migrated +* update hcloud-go to v1.4.0 +* update terraform from v0.11.2 to v0.11.3 + +## 1.0.0 (January 30, 2018) + +* Initial release diff --git a/terraform/.terraform/providers/registry.terraform.io/hetznercloud/hcloud/1.57.0/windows_amd64/LICENSE b/terraform/.terraform/providers/registry.terraform.io/hetznercloud/hcloud/1.57.0/windows_amd64/LICENSE new file mode 100644 index 0000000..a612ad9 --- /dev/null +++ b/terraform/.terraform/providers/registry.terraform.io/hetznercloud/hcloud/1.57.0/windows_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/terraform/.terraform/providers/registry.terraform.io/hetznercloud/hcloud/1.57.0/windows_amd64/README.md b/terraform/.terraform/providers/registry.terraform.io/hetznercloud/hcloud/1.57.0/windows_amd64/README.md new file mode 100644 index 0000000..230c408 --- /dev/null +++ b/terraform/.terraform/providers/registry.terraform.io/hetznercloud/hcloud/1.57.0/windows_amd64/README.md @@ -0,0 +1,161 @@ +# Terraform Provider for the Hetzner Cloud + +[![GitHub release](https://img.shields.io/github/tag/hetznercloud/terraform-provider-hcloud.svg?label=release)](https://github.com/hetznercloud/terraform-provider-hcloud/releases/latest) [![Actions Status](https://github.com/hetznercloud/terraform-provider-hcloud/workflows/test/badge.svg)](https://github.com/hetznercloud/terraform-provider-hcloud/actions)[![Actions Status](https://github.com/hetznercloud/terraform-provider-hcloud/workflows/release/badge.svg)](https://github.com/hetznercloud/terraform-provider-hcloud/actions) +[![Codecov](https://codecov.io/gh/hetznercloud/terraform-provider-hcloud/graph/badge.svg?token=og7OhpoV5W)](https://codecov.io/gh/hetznercloud/terraform-provider-hcloud/tree/main) + +- Documentation: https://registry.terraform.io/providers/hetznercloud/hcloud/latest/docs + +## Requirements + +- [Terraform](https://developer.hashicorp.com/terraform/install) or [OpenTofu](https://opentofu.org/docs/intro/install/) + - Our provider tests run with Terraform or OpenTofu releases that are supported upstream. + - Our provider should work with any tool that supports the [terraform plugin protocol version 6](https://developer.hashicorp.com/terraform/plugin/terraform-plugin-protocol#protocol-version-6). +- [Go](https://go.dev/doc/install) 1.21.x (to build the provider plugin) + +## API Stability + +This Go module implements a Terraform Provider for Hetzner Cloud +Services. We thus guarantee backwards compatibility only for use through +Terraform HCL. The actual _Go code_ in this repository _may change +without a major version increase_. + +Currently the code is mostly located in the `hcloud` package. In the +long term we want to move most of the `hcloud` package into individual +sub-packages located in the `internal` directory. The goal is a +structure similar to HashiCorp's [Terraform Provider +Scaffolding](https://github.com/hashicorp/terraform-provider-scaffolding) + +## Using the provider + +If you are building the provider, follow the instructions to [install it as a plugin](https://www.terraform.io/docs/plugins/basics.html#installing-a-plugin). After placing it into your plugins directory, run `terraform init` to initialize it. + +## Building the provider + +Clone repository to: `$GOPATH/src/github.com/hetznercloud/terraform-provider-hcloud` + +```sh +$ mkdir -p $GOPATH/src/github.com/hetznercloud; cd $GOPATH/src/github.com/hetznercloud +$ git clone https://github.com/hetznercloud/terraform-provider-hcloud.git +``` + +Enter the provider directory and build the provider + +```sh +$ cd $GOPATH/src/github.com/hetznercloud/terraform-provider-hcloud +$ make build +``` + +## 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.14+ 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 +... +$ ./bin/terraform-provider-hcloud +... +``` + +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. + +``` +$ make testacc +``` + +You may save your acceptance tests environment variables in the `.env` file, for example: + +```sh +$ cat .env +HCLOUD_TOKEN=YOUR_API_TEST_TOKEN +#TF_ACC=1 +TF_LOG=DEBUG +TF_LOG_PATH_MASK=test-%s.log + +$ go test -v -timeout=30m -parallel=8 ./internal/server +=== RUN TestAccHcloudDataSourceServerTest +# ... +``` + +## Running a local build + +Choose a terraform cli config file path: + +```sh +export TF_CLI_CONFIG_FILE="terraform.tfrc" +``` + +In the terraform cli config file, override the lookup path for the `hetznercloud/hcloud` provider to use the local build: + +```sh +cat <"$TF_CLI_CONFIG_FILE" +provider_installation { + dev_overrides { + "hetznercloud/hcloud" = "$PWD" + } + + direct {} +} +EOF +``` + +Build the provider, resulting in a `terraform-provider-hcloud` binary: + +```sh +make build +``` + +Finally, run your terraform plan to see if it works: + +```sh +tofu plan +``` + +You should see the following warning: + +``` +╷ +│ Warning: Provider development overrides are in effect +│ +│ The following provider development overrides are set in the CLI configuration: +│ - hetznercloud/hcloud in /home/user/code/github.com/hetznercloud/terraform-provider-hcloud +│ +│ The behavior may therefore not match any released version of the provider and applying changes may cause the state to become incompatible with published releases. +╵ +``` + +## Releasing experimental features + +To publish experimental features as part of regular releases: + +- an announcement, including a link to a changelog entry, must be added to the release notes. + +- an `Experimental` notice, must be added to the experimental resource, datasource, and functions descriptions: + + ```go + func (r *Resource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema.MarkdownDescription = ` + Manage a Hetzner Cloud Product. + + See https://docs.hetzner.cloud/reference/cloud#product for more details. + ` + experimental.Product.AppendNotice(&resp.Schema.MarkdownDescription) + } + ``` + +- a `Experimental` warning must be logged when experimental resource, datasource, or functions are being used: + + ```go + func (r *Resource) Configure(_ context.Context, _ resource.ConfigureRequest, resp *resource.ConfigureResponse) { + experimental.Product.AppendDiagnostic(&resp.Diagnostics) + } + ``` diff --git a/terraform/.terraform/providers/registry.terraform.io/hetznercloud/hcloud/1.57.0/windows_amd64/terraform-provider-hcloud_v1.57.0.exe b/terraform/.terraform/providers/registry.terraform.io/hetznercloud/hcloud/1.57.0/windows_amd64/terraform-provider-hcloud_v1.57.0.exe new file mode 100644 index 0000000..c295768 Binary files /dev/null and b/terraform/.terraform/providers/registry.terraform.io/hetznercloud/hcloud/1.57.0/windows_amd64/terraform-provider-hcloud_v1.57.0.exe differ diff --git a/terraform/provider.tf b/terraform/provider.tf index c79540a..8a1fd00 100644 --- a/terraform/provider.tf +++ b/terraform/provider.tf @@ -11,12 +11,18 @@ terraform { } } -variable netbox_token { +variable NETBOX_API_TOKEN { type = string description = "netbox api token" sensitive = true } +variable NETBOX_SERVER_URL { + type = string + description = "netbox server url" + sensitive = false +} + variable hcloud_token { type = string description = "hetzner cloud api token" @@ -24,8 +30,8 @@ variable hcloud_token { } provider "netbox" { - url = "http://91.98.205.65:8000" - token = var.netbox_token + server_url = var.NETBOX_SERVER_URL + api_token = var.NETBOX_API_TOKEN } provider "hcloud" { diff --git a/terraform/terraform.tfstate b/terraform/terraform.tfstate new file mode 100644 index 0000000..2c25993 --- /dev/null +++ b/terraform/terraform.tfstate @@ -0,0 +1,9 @@ +{ + "version": 4, + "terraform_version": "1.14.3", + "serial": 3, + "lineage": "2f42bf18-041f-78d9-24cc-d9a193bc3daf", + "outputs": {}, + "resources": [], + "check_results": null +} diff --git a/terraform/terraform.tfstate.backup b/terraform/terraform.tfstate.backup new file mode 100644 index 0000000..d9c5f53 --- /dev/null +++ b/terraform/terraform.tfstate.backup @@ -0,0 +1,54 @@ +{ + "version": 4, + "terraform_version": "1.14.3", + "serial": 1, + "lineage": "2f42bf18-041f-78d9-24cc-d9a193bc3daf", + "outputs": {}, + "resources": [ + { + "mode": "managed", + "type": "hcloud_firewall", + "name": "production_fw", + "provider": "provider[\"registry.terraform.io/hetznercloud/hcloud\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "apply_to": [], + "id": "10322075", + "labels": {}, + "name": "production-fw", + "rule": [ + { + "description": "", + "destination_ips": [], + "direction": "in", + "port": "", + "protocol": "icmp", + "source_ips": [ + "0.0.0.0/0", + "::/0" + ] + }, + { + "description": "", + "destination_ips": [], + "direction": "in", + "port": "80-85", + "protocol": "tcp", + "source_ips": [ + "0.0.0.0/0", + "::/0" + ] + } + ] + }, + "sensitive_attributes": [], + "identity_schema_version": 0, + "private": "bnVsbA==" + } + ] + } + ], + "check_results": null +} diff --git a/terraform/terraform.tfvars b/terraform/terraform.tfvars index 804db6d..e6b284f 100644 --- a/terraform/terraform.tfvars +++ b/terraform/terraform.tfvars @@ -1,2 +1,3 @@ -netbox_token="7ce0d0b83c87c6ce79ac31a919b0fe9f95ff59de" -hcloud_token="YS7VQRsJwQpPDSbtf3ZWOqjfEJiWHuEznfaq4uOFN5FbHdZBmHzaitArjgxdAIep" \ No newline at end of file +NETBOX_API_TOKEN="7ce0d0b83c87c6ce79ac31a919b0fe9f95ff59de" +hcloud_token="YS7VQRsJwQpPDSbtf3ZWOqjfEJiWHuEznfaq4uOFN5FbHdZBmHzaitArjgxdAIep" +NETBOX_SERVER_URL="http://91.98.205.65:8000" \ No newline at end of file