Skip to content

Commit

Permalink
CDPCP-11620 - fixing lack of compute property for encryption_at_host …
Browse files Browse the repository at this point in the history
…field, with newly generated docs as well (#94)
  • Loading branch information
gregito authored Mar 14, 2024
1 parent 3228495 commit 6e36497
Show file tree
Hide file tree
Showing 8 changed files with 93 additions and 11 deletions.
1 change: 1 addition & 0 deletions docs/resources/datalake_aws_datalake.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ Optional:

Optional:

- `async` (Boolean) Boolean value that specifies if Terraform should wait for resource creation/deletion.
- `polling_timeout` (Number) Timeout value in minutes that specifies for how long should the polling go for resource creation/deletion.


Expand Down
3 changes: 2 additions & 1 deletion docs/resources/datalake_azure_datalake.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ A Data Lake is a service which provides a protective ring around the data stored

### Optional

- `database_type` (Number) The type of the azure database. FLEXIBLE_SERVER is the next generation managed PostgreSQL service in Azure that provides maximum flexibility over your database, built-in cost-optimizations. SINGLE_SERVER is a fully managed database service with minimal requirements for customizations of the database.
- `database_type` (String) The type of the azure database. FLEXIBLE_SERVER is the next generation managed PostgreSQL service in Azure that provides maximum flexibility over your database, built-in cost-optimizations. SINGLE_SERVER is a fully managed database service with minimal requirements for customizations of the database.
- `enable_ranger_raz` (Boolean)
- `image` (Attributes) (see [below for nested schema](#nestedatt--image))
- `java_version` (Number)
Expand Down Expand Up @@ -65,6 +65,7 @@ Optional:

Optional:

- `async` (Boolean) Boolean value that specifies if Terraform should wait for resource creation/deletion.
- `polling_timeout` (Number) Timeout value in minutes that specifies for how long should the polling go for resource creation/deletion.


Expand Down
8 changes: 3 additions & 5 deletions docs/resources/datalake_gcp_datalake.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ Optional:

Optional:

- `async` (Boolean) Boolean value that specifies if Terraform should wait for resource creation/deletion.
- `polling_timeout` (Number) Timeout value in minutes that specifies for how long should the polling go for resource creation/deletion.


Expand All @@ -127,10 +128,7 @@ Optional:

Required:

- `instance_group_name` (String)
- `recipe_names` (Attributes Set) (see [below for nested schema](#nestedatt--recipes--recipe_names))

<a id="nestedatt--recipes--recipe_names"></a>
### Nested Schema for `recipes.recipe_names`
- `instance_group_name` (String) The name of the designated instance group.
- `recipe_names` (Set of String) The set of recipe names that are going to be applied on the given instance group.


25 changes: 25 additions & 0 deletions docs/resources/environments_aws_environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,35 @@ Optional:
- `os` (String)
- `recipes` (Set of String)

Read-Only:

- `instances` (Attributes Set) (see [below for nested schema](#nestedatt--freeipa--instances))

<a id="nestedatt--freeipa--instances"></a>
### Nested Schema for `freeipa.instances`

Read-Only:

- `availability_zone` (String)
- `discovery_fqdn` (String)
- `instance_group` (String)
- `instance_id` (String)
- `instance_status` (String)
- `instance_status_reason` (String)
- `instance_type` (String)
- `instance_vm_type` (String)
- `life_cycle` (String)
- `private_ip` (String)
- `public_ip` (String)
- `ssh_port` (Number)
- `subnet_id` (String)



<a id="nestedatt--polling_options"></a>
### Nested Schema for `polling_options`

Optional:

- `async` (Boolean) Boolean value that specifies if Terraform should wait for resource creation/deletion.
- `polling_timeout` (Number) Timeout value in minutes that specifies for how long should the polling go for resource creation/deletion.
27 changes: 27 additions & 0 deletions docs/resources/environments_azure_environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ output "crn" {
- `description` (String)
- `enable_outbound_load_balancer` (Boolean)
- `enable_tunnel` (Boolean)
- `encryption_at_host` (Boolean)
- `encryption_key_resource_group_name` (String)
- `encryption_key_url` (String)
- `endpoint_access_gateway_scheme` (String) The scheme for the endpoint gateway. PUBLIC creates an external endpoint that can be accessed over the Internet. Defaults to PRIVATE which restricts the traffic to be internal to the VPC.
Expand Down Expand Up @@ -153,9 +154,34 @@ Optional:
- `image_id` (String)
- `instance_count_by_group` (Number)
- `instance_type` (String)
- `multi_az` (Boolean)
- `os` (String)
- `recipes` (Set of String)

Read-Only:

- `instances` (Attributes Set) (see [below for nested schema](#nestedatt--freeipa--instances))

<a id="nestedatt--freeipa--instances"></a>
### Nested Schema for `freeipa.instances`

Read-Only:

- `availability_zone` (String)
- `discovery_fqdn` (String)
- `instance_group` (String)
- `instance_id` (String)
- `instance_status` (String)
- `instance_status_reason` (String)
- `instance_type` (String)
- `instance_vm_type` (String)
- `life_cycle` (String)
- `private_ip` (String)
- `public_ip` (String)
- `ssh_port` (Number)
- `subnet_id` (String)



<a id="nestedatt--new_network_params"></a>
### Nested Schema for `new_network_params`
Expand All @@ -170,4 +196,5 @@ Required:

Optional:

- `async` (Boolean) Boolean value that specifies if Terraform should wait for resource creation/deletion.
- `polling_timeout` (Number) Timeout value in minutes that specifies for how long should the polling go for resource creation/deletion.
37 changes: 33 additions & 4 deletions docs/resources/environments_gcp_environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ output "shared_project_id" {
- `enable_tunnel` (Boolean) Whether to enable SSH tunneling for the environment.
- `encryption_key` (String) Key Resource ID of the customer managed encryption key to encrypt GCP resources.
- `endpoint_access_gateway_scheme` (String) The scheme for the endpoint gateway. PUBLIC creates an external endpoint that can be accessed over the Internet. Defaults to PRIVATE which restricts the traffic to be internal to the VPC.
- `freeipa` (Attributes) The FreeIPA creation request for the environment. (see [below for nested schema](#nestedatt--freeipa))
- `freeipa` (Attributes) (see [below for nested schema](#nestedatt--freeipa))
- `log_storage` (Attributes) GCP storage configuration for cluster and audit logs. (see [below for nested schema](#nestedatt--log_storage))
- `polling_options` (Attributes) Polling related configuration options that could specify various values that will be used during CDP resource creation. (see [below for nested schema](#nestedatt--polling_options))
- `proxy_config_name` (String) Name of the proxy config to use for the environment.
Expand Down Expand Up @@ -123,9 +123,37 @@ Required:

Optional:

- `instance_count_by_group` (Number) The number of FreeIPA instances to create per group when creating FreeIPA in the environment.
- `instance_type` (String) Custom instance type of FreeIPA instances.
- `recipes` (Set of String) The recipes for the FreeIPA cluster.
- `catalog` (String)
- `image_id` (String)
- `instance_count_by_group` (Number)
- `instance_type` (String)
- `multi_az` (Boolean)
- `os` (String)
- `recipes` (Set of String)

Read-Only:

- `instances` (Attributes Set) (see [below for nested schema](#nestedatt--freeipa--instances))

<a id="nestedatt--freeipa--instances"></a>
### Nested Schema for `freeipa.instances`

Read-Only:

- `availability_zone` (String)
- `discovery_fqdn` (String)
- `instance_group` (String)
- `instance_id` (String)
- `instance_status` (String)
- `instance_status_reason` (String)
- `instance_type` (String)
- `instance_vm_type` (String)
- `life_cycle` (String)
- `private_ip` (String)
- `public_ip` (String)
- `ssh_port` (Number)
- `subnet_id` (String)



<a id="nestedatt--log_storage"></a>
Expand All @@ -146,6 +174,7 @@ Optional:

Optional:

- `async` (Boolean) Boolean value that specifies if Terraform should wait for resource creation/deletion.
- `polling_timeout` (Number) Timeout value in minutes that specifies for how long should the polling go for resource creation/deletion.


Expand Down
1 change: 1 addition & 0 deletions resources/environments/schema_azure_environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ var AzureEnvironmentSchema = schema.Schema{
},
"encryption_at_host": schema.BoolAttribute{
Optional: true,
Computed: true,
Default: booldefault.StaticBool(false),
},
"environment_name": schema.StringAttribute{
Expand Down
2 changes: 1 addition & 1 deletion resources/environments/schema_azure_environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ var schemaElements = []SchemaTestCaseStructure{
{
name: "encryption_at_host should exist and be valid",
field: "encryption_at_host",
computed: false,
computed: true,
shouldBeRequired: false,
},
{
Expand Down

0 comments on commit 6e36497

Please sign in to comment.