Skip to content

Commit

Permalink
feat: output ids for kubernetes, dbs, storage (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalo-rodrigues authored Jul 26, 2022
1 parent ef00c76 commit 303ff59
Show file tree
Hide file tree
Showing 21 changed files with 747 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/resources/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ resource "multy_database" "example_db" {

### Read-Only

- `aws` (Object) AWS-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--aws))
- `azure` (Object) Azure-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--azure))
- `connection_username` (String) The username to connect to the database.
- `gcp` (Object) GCP-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--gcp))
- `hostname` (String) The hostname of the RDS instance.
- `id` (String) The ID of this resource.
- `resource_group_id` (String)
Expand All @@ -66,3 +69,29 @@ Optional:
- `project` (String) The project to use for this resource.


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

Read-Only:

- `db_instance_id` (String)
- `db_subnet_group_id` (String)
- `default_network_security_group_id` (String)


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

Read-Only:

- `database_server_id` (String)


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

Read-Only:

- `sql_database_instance_id` (String)


57 changes: 57 additions & 0 deletions docs/resources/kubernetes_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ resource "multy_kubernetes_cluster" "cluster1" {

### Read-Only

- `aws` (Object) AWS-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--aws))
- `azure` (Object) Azure-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--azure))
- `ca_certificate` (String, Sensitive) Base64 encoded certificate data required to communicate with your cluster.
- `endpoint` (String) Endpoint of the kubernetes cluster.
- `gcp` (Object) GCP-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--gcp))
- `id` (String) The ID of this resource.
- `kube_config_raw` (String, Sensitive) Raw Kubernetes config to be used by kubectl and other compatible tools.
- `resource_group_id` (String)
Expand All @@ -61,10 +64,13 @@ resource "multy_kubernetes_cluster" "cluster1" {
Required:

- `availability_zones` (List of Number) Zones to place nodes in. If not set, they will be spread across multiple zones selected by the cloud provider.
- `aws` (Object) AWS-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--default_node_pool--aws))
- `aws_overrides` (Attributes) AWS-specific attributes that will be set if this resource is deployed in AWS (see [below for nested schema](#nestedatt--default_node_pool--aws_overrides))
- `azure` (Object) Azure-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--default_node_pool--azure))
- `azure_overrides` (Attributes) Azure-specific attributes that will be set if this resource is deployed in Azure (see [below for nested schema](#nestedatt--default_node_pool--azure_overrides))
- `cluster_id` (String) Id of the multy kubernetes cluster
- `disk_size_gb` (Number) Disk size used for each node.
- `gcp` (Object) GCP-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--default_node_pool--gcp))
- `id` (String) The ID of this resource.
- `labels` (Map of String) Labels to be applied to each node.
- `max_node_count` (Number) Maximum number of nodes.
Expand All @@ -74,6 +80,15 @@ Required:
- `subnet_id` (String) Subnet to place the node and pods in. Must have access to the Internet to connect with the control plane.
- `vm_size` (String) Size of Virtual Machine used for the nodes. Accepted values are `general_micro`, `general_medium`, `general_large`, `general_nano`, `general_small`, `general_xlarge`, `general_2xlarge`, `compute_large`, `compute_xlarge`, `compute_2xlarge`, `compute_4xlarge`, `compute_8xlarge`, `memory_large`, `memory_xlarge`, `memory_2xlarge`, `memory_4xlarge`, `memory_8xlarge`, `memory_12xlarge` or `memory_16xlarge`

<a id="nestedatt--default_node_pool--aws"></a>
### Nested Schema for `default_node_pool.aws`

Required:

- `eks_node_pool_id` (String)
- `iam_role_arn` (String)


<a id="nestedatt--default_node_pool--aws_overrides"></a>
### Nested Schema for `default_node_pool.aws_overrides`

Expand All @@ -82,6 +97,14 @@ Required:
- `instance_types` (List of String) The instance type to use for nodes.


<a id="nestedatt--default_node_pool--azure"></a>
### Nested Schema for `default_node_pool.azure`

Required:

- `aks_node_pool_id` (String)


<a id="nestedatt--default_node_pool--azure_overrides"></a>
### Nested Schema for `default_node_pool.azure_overrides`

Expand All @@ -90,6 +113,14 @@ Required:
- `vm_size` (String) The size to use for nodes.


<a id="nestedatt--default_node_pool--gcp"></a>
### Nested Schema for `default_node_pool.gcp`

Required:

- `gke_node_pool_id` (String)



<a id="nestedatt--gcp_overrides"></a>
### Nested Schema for `gcp_overrides`
Expand All @@ -99,3 +130,29 @@ Optional:
- `project` (String) The project to use for this resource.


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

Read-Only:

- `eks_cluster_id` (String)
- `iam_role_arn` (String)


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

Read-Only:

- `aks_cluster_id` (String)


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

Read-Only:

- `gke_cluster_id` (String)
- `service_account_email` (String)


28 changes: 28 additions & 0 deletions docs/resources/kubernetes_node_pool.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ resource "multy_kubernetes_node_pool" "node_pool" {

### Read-Only

- `aws` (Object) AWS-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--aws))
- `azure` (Object) Azure-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--azure))
- `gcp` (Object) GCP-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--gcp))
- `id` (String) The ID of this resource.

<a id="nestedatt--aws_overrides"></a>
Expand All @@ -66,3 +69,28 @@ Optional:
- `vm_size` (String) The size to use for nodes.


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

Read-Only:

- `eks_node_pool_id` (String)
- `iam_role_arn` (String)


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

Read-Only:

- `aks_node_pool_id` (String)


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

Read-Only:

- `gke_node_pool_id` (String)


18 changes: 18 additions & 0 deletions docs/resources/network_interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,25 @@ resource "multy_network_interface" "private-nic" {

### Read-Only

- `aws` (Object) AWS-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--aws))
- `azure` (Object) Azure-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--azure))
- `id` (String) The ID of this resource.
- `resource_group_id` (String)

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

Read-Only:

- `eip_association_id` (String)
- `network_interface_id` (String)


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

Read-Only:

- `network_interface_id` (String)


27 changes: 27 additions & 0 deletions docs/resources/network_security_group.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ resource "multy_network_security_group" "nsg" {

### Read-Only

- `aws` (Object) AWS-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--aws))
- `azure` (Object) Azure-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--azure))
- `gcp` (Object) GCP-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--gcp))
- `id` (String) The ID of this resource.
- `resource_group_id` (String)

Expand All @@ -85,3 +88,27 @@ Required:
- `to_port` (Number) To port of network rule port range. Value must be in between 0 and 65535


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

Read-Only:

- `security_group_id` (String)


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

Read-Only:

- `network_security_group_id` (String)


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

Read-Only:

- `compute_firewall_ids` (List of String)


29 changes: 29 additions & 0 deletions docs/resources/object_storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ resource "multy_object_storage" "obj_storage" {

### Read-Only

- `aws` (Object) AWS-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--aws))
- `azure` (Object) Azure-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--azure))
- `gcp` (Object) GCP-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--gcp))
- `id` (String) The ID of this resource.
- `resource_group_id` (String)

Expand All @@ -48,3 +51,29 @@ Optional:
- `project` (String) The project to use for this resource.


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

Read-Only:

- `s3_bucket_arn` (String)


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

Read-Only:

- `private_storage_container_id` (String)
- `public_storage_container_id` (String)
- `storage_account_id` (String)


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

Read-Only:

- `storage_bucket_id` (String)


27 changes: 27 additions & 0 deletions docs/resources/object_storage_object.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,34 @@ resource "multy_object_storage_object" "obj_storage" {

### Read-Only

- `aws` (Object) AWS-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--aws))
- `azure` (Object) Azure-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--azure))
- `gcp` (Object) GCP-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--gcp))
- `id` (String) The ID of this resource.
- `url` (String) URL of object

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

Read-Only:

- `s3_bucket_object_id` (String)


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

Read-Only:

- `storage_blob_id` (String)


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

Read-Only:

- `storage_bucket_object_id` (String)
- `storage_object_access_control` (String)


27 changes: 27 additions & 0 deletions docs/resources/public_ip.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ resource "multy_public_ip" "ip" {

### Read-Only

- `aws` (Object) AWS-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--aws))
- `azure` (Object) Azure-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--azure))
- `gcp` (Object) GCP-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--gcp))
- `id` (String) The ID of this resource.
- `resource_group_id` (String)

Expand All @@ -52,3 +55,27 @@ Optional:
- `project` (String) The project to use for this resource.


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

Read-Only:

- `public_ip_id` (String)


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

Read-Only:

- `public_ip_id` (String)


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

Read-Only:

- `compute_address_id` (String)


27 changes: 27 additions & 0 deletions docs/resources/route_table.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ resource "multy_route_table" "rt" {

### Read-Only

- `aws` (Object) AWS-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--aws))
- `azure` (Object) Azure-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--azure))
- `gcp` (Object) GCP-specific ids of the underlying generated resources (see [below for nested schema](#nestedatt--gcp))
- `id` (String) The ID of this resource.

<a id="nestedblock--route"></a>
Expand All @@ -56,3 +59,27 @@ Required:
- `destination` (String) Destination of route. Accepted values are `internet`


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

Read-Only:

- `route_table_id` (String)


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

Read-Only:

- `route_table_id` (String)


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

Read-Only:

- `compute_route_ids` (List of String)


Loading

0 comments on commit 303ff59

Please sign in to comment.