Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/secure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
trivy:
runs-on: ubuntu-24.04
container:
image: aquasec/trivy:0.69.3
image: aquasec/trivy:0.72.0
permissions:
contents: read
security-events: write
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 8.2.3 (July 10, 2026)

* Update documentation for `selectel_vpc_public_port_v1` resource ([#408](https://github.com/selectel/terraform-provider-selectel/pull/408))

## 8.2.2 (July 9, 2026)

BUG FIXES:
Expand Down
24 changes: 12 additions & 12 deletions website/docs/r/vpc_public_port_v1.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Creates and manages a direct public IP address (public port) in VPC using public
```hcl
resource "selectel_vpc_public_port_v1" "port_1" {
project_id = selectel_vpc_project_v2.project_1.id
region = "ru-3"
region = "ru-6"
description = "my-own-direct-public-ip-port"
admin_state_up = false
security_group_ids = [openstack_networking_secgroup_v2.sg_1.id]
Expand All @@ -24,25 +24,25 @@ resource "selectel_vpc_public_port_v1" "port_1" {

## Argument Reference

* `project_id` - (Required) Unique identifier (no-hyphens) of the associated project. Changing this creates a new public port. Retrieved from the [selectel_vpc_project_v2](https://registry.terraform.io/providers/selectel/selectel/latest/docs/resources/vpc_project_v2) resource. Learn more about [Projects](https://docs.selectel.ru/en/control-panel-actions/projects/about-projects/).
* `project_id` (Required) Unique identifier of the associated project. Changing this creates a new public port. Retrieved from the [selectel_vpc_project_v2](https://registry.terraform.io/providers/selectel/selectel/latest/docs/resources/vpc_project_v2) resource. Learn more about [Projects](https://docs.selectel.ru/en/control-panel-actions/projects/about-projects/).

* `region` - (Required) Pool where the public port is located, for example, `ru-3`. Changing this creates a new public port. Learn more about available pools in the [Availability matrix](https://docs.selectel.ru/en/control-panel-actions/availability-matrix/).
* `region` (Required) Pool where the public port is located, for example, `ru-6`. Changing this creates a new public port. Learn more about available pools in the [Availability matrix](https://docs.selectel.ru/en/control-panel-actions/availability-matrix/).

* `description` - (Optional) Public port description. The default value is empty string.
* `description` (Optional) Public port description. The default value is an empty string.

* `admin_state_up` - (Optional) Enables (`true`) or disables (`false`) the public port administratively. The default value is (`true`).
* `admin_state_up` (Optional) Enables (`true`) or disables (`false`) the public port administratively. The default value is `true`.

* `security_group_ids` - (Optional) List of OpenStack security group identifiers to associate with the public port. Learn more about the [openstack_networking_secgroup_v2](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/resources/networking_secgroup_v2) resource in the official OpenStack documentation. The default value is identifier of default security group in the project.
* `security_group_ids` (Optional) List of OpenStack security group identifiers to associate with the public port. Learn more about the [openstack_networking_secgroup_v2](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/resources/networking_secgroup_v2) resource in the official OpenStack documentation. The default value is the identifier of the default security group in the project.

## Attributes Reference

* `network_id` - Identifier of the network where the public port is allocated
* `network_id` Identifier of the service network to which the public port is attached.

* `ip_address` - Direct public IP address assigned to the public port.
* `ip_address` Direct public IP address assigned to the public port.

* `subnet` - CIDR of the subnet where the public port is allocated.
* `subnet` CIDR of the subnet in which the public port IP address is allocated.

* `gateway` - IP address of the subnet gateway.
* `gateway` IP address of the subnet gateway.

## Import

Expand All @@ -64,5 +64,5 @@ where:
* `<username>` — Name of the service user. To get the name, in the top right corner of the [Control panel](https://my.selectel.ru/profile/users_management/users?type=service), go to the account menu ⟶ **Profile and Settings** ⟶ **User management** ⟶ the **Service users** tab ⟶ copy the name of the required user. Learn more about [Service users](https://docs.selectel.ru/control-panel-actions/users-and-roles/user-types-and-roles/).
* `<password>` — Password of the service user.
* `<selectel_project_id>` — Unique identifier of the associated project. To get the project ID, in the [Control panel](https://my.selectel.ru/vpc/), go to **Cloud Platform** ⟶ project name ⟶ copy the ID of the required project. Learn more about [Projects](https://docs.selectel.ru/en/control-panel-actions/projects/about-projects/).
* `<selectel_pool>` — Pool where the public port is located, for example, `ru-3`. To get information about the pool, in the [Control panel](https://my.selectel.ru/vpc/), go to **Cloud Platform** ⟶ **Network** ⟶ the **Direct Public IP** tab ⟶ copy the name of the required pool in the dropdown list.
* `<public_port_id>` — Unique identifier of the public port, for example, `b311ce58-2658-46b5-b733-7a0f418703f2`. To get the public port ID, in the [Control panel](https://my.selectel.ru/vpc/), go to **Cloud Platform** ⟶ **Network** ⟶ the **Direct Public IP** tab ⟶ copy the ID of the required public port.
* `<selectel_pool>` — Pool where the public port is located, for example, `ru-6`. To get information about the pool, in the [Control panel](https://my.selectel.ru/vpc/default/networks), go to **Cloud Platform** ⟶ **Network** ⟶ the **Direct public IP addresses** tab. The pool is under the IP address.
* `<public_port_id>` — Unique identifier of the public port, for example, `b311ce58-2658-46b5-b733-7a0f418703f2`. To get the public port ID, in the [Control panel](https://my.selectel.ru/vpc/default/networks), go to **Cloud Platform** ⟶ **Network** ⟶ the **Direct public IP addresses** tab ⟶ copy the ID of the public port on the right side of the public port card.
Loading