Skip to content

Commit 7478329

Browse files
karencfvsudomateo
andauthored
In-place update for VPC firewall rules (#432)
Fixes: #431 --------- Co-authored-by: Matthew Sanabria <matthew.sanabria@oxide.computer>
1 parent 3f15cea commit 7478329

File tree

14 files changed

+86
-34
lines changed

14 files changed

+86
-34
lines changed

.changelog/0.10.0.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
[[breaking]]
2-
title = "Minimum Terraform version required"
3-
description = "`oxide_silo` [#425](https://github.com/oxidecomputer/terraform-provider-oxide/pull/425). Breaking change due to `tls_certificates` attribute being a
4-
[write-only attribute](https://developer.hashicorp.com/terraform/plugin/framework/resources/write-only-arguments)."
2+
title = "Minimum Terraform version v1.11 required"
3+
description = "Due to the introduction of [write-only attributes](https://developer.hashicorp.com/terraform/plugin/framework/resources/write-only-arguments) in the new `oxide_silo` resoucre, the minimum Terraform version is now v1.11 [#425](https://github.com/oxidecomputer/terraform-provider-oxide/pull/425)."
54

65
[[features]]
76
title = "New resource"
87
description = "`oxide_silo` [#425](https://github.com/oxidecomputer/terraform-provider-oxide/pull/425)."
98

9+
[[features]]
1010
title = "New data resource"
1111
description = "`oxide_vpc_router_route` [#423](https://github.com/oxidecomputer/terraform-provider-oxide/pull/423)."
1212

1313
[[enhancements]]
14-
title = ""
15-
description = ""
14+
title = "VPC firewall rules resource"
15+
description = "In place updates are now supported [#432](https://github.com/oxidecomputer/terraform-provider-oxide/pull/432)"
1616

1717
[[bugs]]
1818
title = ""

.github/workflows/build-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
- name: test
2929
run: make test
3030
- name: lint
31-
run: sudo make lint
31+
run: make lint

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ sdk-version:
113113
# This way linting tools don't need to be downloaded/installed every time you
114114
# want to run the linters.
115115
VERSION_DIR:=$(GOBIN)/versions
116-
VERSION_GOLANGCILINT:=v1.61.0
117-
VERSION_TFPROVIDERDOCS:=v0.9.1
118-
VERSION_TERRAFMT:=v0.5.2
119-
VERSION_TFPROVIDERLINT:=v0.30.0
120-
VERSION_WHATSIT:=7fd2b385f
116+
VERSION_GOLANGCILINT:=v1.64.8
117+
VERSION_TFPROVIDERDOCS:=v0.12.1
118+
VERSION_TERRAFMT:=v0.5.4
119+
VERSION_TFPROVIDERLINT:=v0.31.0
120+
VERSION_WHATSIT:=053446d
121121

122122
tools: $(GOBIN)/golangci-lint $(GOBIN)/tfproviderdocs $(GOBIN)/terrafmt $(GOBIN)/tfproviderlint
123123

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To generate a token, follow these steps:
2121

2222
```hcl
2323
terraform {
24-
required_version = ">= 1.0"
24+
required_version = ">= 1.11"
2525
2626
required_providers {
2727
oxide = {

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Note: Cannot use `profile` with `host` and `token` arguments and vice versa.
2424

2525
```hcl
2626
terraform {
27-
required_version = ">= 1.0"
27+
required_version = ">= 1.11"
2828
2929
required_providers {
3030
oxide = {

docs/resources/oxide_vpc_firewall_rules.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ This resource manages VPC firewall rules.
99
!> Firewall rules defined by this resource are considered exhaustive and will
1010
overwrite any other firewall rules for the VPC once applied.
1111

12+
!> Setting the `rules` attribute to `[]` will delete all firewall rules for the
13+
VPC which may cause undesired network traffic. Please double check the firewall
14+
rules when updating this resource.
15+
1216
## Example Usage
1317

1418
```hcl
@@ -48,7 +52,7 @@ resource "oxide_vpc_firewall_rules" "example" {
4852
### Required
4953

5054
- `vpc_id` (String) ID of the VPC that will have the firewall rules applied to.
51-
- `rules` (Set) Associated firewall rules. Updates require replacement. (see [below for nested schema](#nestedatt--rules))
55+
- `rules` (Set) Associated firewall rules. Set to `[]` to delete all firewall rules. (see [below for nested schema](#nestedatt--rules))
5256

5357
### Optional
5458

examples/demo/demo.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
terraform {
2-
required_version = ">= 1.0"
2+
required_version = ">= 1.11"
33

44
required_providers {
55
oxide = {

examples/disk_resource/disk.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
terraform {
2-
required_version = ">= 1.0"
2+
required_version = ">= 1.11"
33

44
required_providers {
55
oxide = {

examples/instance_resource/instance.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
terraform {
2-
required_version = ">= 1.0"
2+
required_version = ">= 1.11"
33

44
required_providers {
55
oxide = {

examples/vpc_resource/vpc.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
terraform {
2-
required_version = ">= 1.0"
2+
required_version = ">= 1.11"
33

44
required_providers {
55
oxide = {

0 commit comments

Comments
 (0)