Skip to content

Commit

Permalink
Merge pull request #323 from sbercloud-terraform/release-1.12.4
Browse files Browse the repository at this point in the history
Preparations to 1.12.4
  • Loading branch information
0ohmresistor authored Oct 14, 2024
2 parents a991547 + 8141462 commit 449f0d1
Show file tree
Hide file tree
Showing 339 changed files with 34,044 additions and 6,834 deletions.
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
TEST?=$$(go list ./... |grep -v 'vendor')
TEST_PARALLELISM?=2
TEST_PARALLELISM?=1
GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
PKG_NAME=sbercloud

Expand Down
56 changes: 56 additions & 0 deletions docs/data-sources/cbh_availability_zones.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
subcategory: "Cloud Bastion Host (CBH)"
layout: "sbercloud"
page_title: "SberCloud: sbercloud_cbh_availability_zones"
description: |-
Use this data source to get the list of CBH availability zones within SberCloud.
---

# sbercloud_cbh_availability_zones

Use this data source to get the list of CBH availability zones within SberCloud.

## Example Usage

```hcl
variable "availability_zone_name" {}
data "sbercloud_cbh_availability_zones" "test" {
name = var.availability_zone_name
}
```

## Argument Reference

The following arguments are supported:

* `region` - (Optional, String) Specifies the region in which to query the CBH availability zones.
If omitted, the provider-level region will be used.

* `name` - (Optional, String) Specifies the name of the availability zone to be queried.

* `display_name` - (Optional, String) Specifies the display name of the availability zone to be queried.

## Attribute Reference

In addition to all arguments above, the following attributes are exported:

* `id` - The data source ID in UUID format.

* `availability_zones` - All availability zones that match the filter parameters.
The [availability_zones](#cbh_availability_zones) structure is documented below.

<a name="cbh_availability_zones"></a>
The `availability_zones` block supports:

* `name` - The name of the availability zone.

* `region_id` - The ID of the region in which the availability zone belongs.

* `display_name` - The display name of the availability zone.

* `type` - The type of the availability zone. The valid values are as follows:
+ **Core**: Core availability zone.
+ **Dedicated**: Exclusive availability zone, only open to internal customers.

* `status` - The status of the availability zone. The value can be **Running**.
85 changes: 85 additions & 0 deletions docs/data-sources/cbh_flavors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
subcategory: "Cloud Bastion Host (CBH)"
layout: "sbercloud"
page_title: "SberCloud: sbercloud_cbh_flavors"
description: ""
---

# sbercloud_cbh_flavors

Use this data source to get the list of CBH specifications.

## Example Usage

```hcl
data "sbercloud_cbh_flavors" "test" {
type = "basic"
}
```

## Argument Reference

The following arguments are supported:

* `region` - (Optional, String) Specifies the region in which to query the data source.
If omitted, the provider-level region will be used.

* `action` - (Optional, String) Specifies the action of querying instances specification information.
The valid values are as follows:
+ **create**: Query instance specification information that can be created.
+ **update**: Query instance specification information that can be updated.

If omitted, the CBH specifications that can be created will be queried.

* `spec_code` - (Optional, String) Specifies the ID of the CBH specification, the query result shows all specifications
that can be changed by this specification. This parameter is required when `action` is set to **update**.

* `flavor_id` - (Optional, String) Specifies the ID of the specification of CBH.
At present, CBH provides two functional versions: standard version and professional version.
The standard version is equipped with asset specifications of 10(for example the `flavor_id` is: **cbh.basic.10**),
20, 50, 100, 200, 500, 1000, 2000, 5000, and 10000.
The professional version is equipped with 10(for example the `flavor_id` is: **cbh.enhance.10**),
20, 50, 100, 200, 500, 1000, 2000, 5000, 10000 asset specifications.
The specification 'enhance' is more advanced than the specification 'basic'.

* `type` - (Optional, String) Specifies the type of CBH specification. The value can be:
+ **basic**: Standard version.
+ **enhance**: Professional version.

* `asset` - (Optional, Int) Specifies the number of CBH assets.

* `memory` - (Optional, Int) Specifies the memory size of the CBH, in GB.

* `vcpus` - (Optional, Int) Specifies the number of CPU cores of the CBH.

* `max_connection` - (Optional, Int) Specifies the maximum number of connections to the CBH.

## Attribute Reference

In addition to all arguments above, the following attributes are exported:

* `id` - The data source ID.

* `flavors` - Indicates the list of CBH specification.
The [flavor](#CbhFlavors_flavor) structure is documented below.

<a name="CbhFlavors_flavor"></a>
The `flavor` block supports:

* `id` - Indicates the ID of the specification.

* `ecs_system_data_size` - The disk size of the CBH system disk, in GB.

* `vcpus` - The number of CPU cores of the CBH.

* `memory` - The memory size of the CBH, in GB.

* `asset` - The number of CBH assets.

* `max_connection` - The maximum number of connections to the CBH.

* `type` - The type of CBH specification. The value can be:
+ **basic**: Standard version.
+ **enhance**: Professional version.

* `data_disk_size` - The size of the CBH data disk, in TB.
80 changes: 80 additions & 0 deletions docs/data-sources/cbh_instances.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
subcategory: "Cloud Bastion Host (CBH)"
layout: "sbercloud"
page_title: "SberCloud: sbercloud_cbh_instances"
description: ""
---

# sbercloud_cbh_instances

Use this data source to get the list of CBH instance.

## Example Usage

```hcl
variable "vpc_id" {}
variable "subnet_id" {}
variable "security_group_id" {}
data "sbercloud_cbh_instances" "test" {
name = "test_name"
vpc_id = var.vpc_id
subnet_id = var.subnet_id
security_group_id = var.security_group_id
}
```

## Argument Reference

The following arguments are supported:

* `region` - (Optional, String) Specifies the region in which to query the data source.
If omitted, the provider-level region will be used.

* `name` - (Optional, String) Specifies the instance name.

* `vpc_id` - (Optional, String) Specifies the ID of a VPC.

* `subnet_id` - (Optional, String) Specifies the ID of a subnet.

* `security_group_id` - (Optional, String) Specifies the ID of a security group.

* `flavor_id` - (Optional, String) Specifies the specification of the instance.

* `version` - (Optional, String) Specifies the current version of the instance image.

## Attribute Reference

In addition to all arguments above, the following attributes are exported:

* `id` - The data source ID.

* `instances` - Indicates the list of CBH instance.
The [instances](#CbhInstances_Instance) structure is documented below.

<a name="CbhInstances_Instance"></a>
The `instances` block supports:

* `id` - Indicates the ID of the instance.

* `public_ip_id` - Indicates the ID of the elastic IP.

* `public_ip` - Indicates the elastic IP address.

* `name` - Indicates the instance name.

* `private_ip` - Indicates the private IP address of the instance.

* `status` - Indicates the status of the instance.

* `vpc_id` - Indicates the ID of a VPC.

* `subnet_id` - Indicates the ID of a subnet.

* `security_group_id` - Indicates the ID of a security group.

* `flavor_id` - Indicates the specification of the instance.

* `availability_zone` - Indicates the availability zone name.

* `version` - Indicates the current version of the instance image.
48 changes: 48 additions & 0 deletions docs/resources/cbh_asset_agency_authorization.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
subcategory: "Cloud Bastion Host (CBH)"
layout: "sbercloud"
page_title: "SberCloud: sbercloud_cbh_asset_agency_authorization"
description: |-
Manages a CBH asset agency authorization resource within SberCloud.
---

# sbercloud_cbh_asset_agency_authorization

Manages a CBH asset agency authorization resource within SberCloud.

-> After you enable CSMS credentials and KMS key agency authorization, you need to wait about `10` minutes, the CBH
instance can obtain a token with agency permissions. Destroying resources will not change the current asset
agency authorization status.

## Example Usage

```hcl
resource "sbercloud_cbh_asset_agency_authorization" "test" {
csms = true
kms = true
}
```

## Argument Reference

The following arguments are supported:

* `region` - (Optional, String, ForceNew) Specifies the region in which to create the CBH asset agency authorization.
If omitted, the provider-level region will be used. Changing this parameter will create a new resource.

* `csms` - (Required, Bool) Specifies whether to enable CSMS credential agency authorization. The value can be **true**
or **false**.
If set to **true** to enable agency authorization, the CBH service will have the permission to query your CSMS
credential list. You can select credentials as resource accounts on the CBH instance.

* `kms` - (Required, Bool) Specifies whether to enable KMS key agency authorization. The value can be **true** or
**false**.
If set to **true** to enable agency authorization, the CBH service will have the permission to use the KMS interface
to obtain the CSMS credential value. You can use this credential value to log in to the managed host on the CBH
instance.

## Attribute Reference

In addition to all arguments above, the following attributes are exported:

* `id` - The resource ID in UUID format.
Loading

0 comments on commit 449f0d1

Please sign in to comment.