Skip to content

Commit

Permalink
feat: support environments (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrwiersma authored Nov 24, 2023
1 parent 7099e68 commit 99b722b
Show file tree
Hide file tree
Showing 63 changed files with 1,236 additions and 355 deletions.
22 changes: 22 additions & 0 deletions docs/data-sources/armada_armada.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Use this data source to access information about an existing Armada.
Optional:

- `annotations` (Map of String) An unstructured map of keys and values stored on an object.
- `environment` (String) The name of the environment the object belongs to.
- `labels` (Map of String) A map of keys and values that can be used to organize and categorize objects.
- `name` (String) The unique object name within its scope.

Expand All @@ -50,6 +51,7 @@ Required:

Optional:

- `autoscaling` (Block List, Max: 1) AutoscalingInterval defines the autoscaling strategy. (see [below for nested schema](#nestedblock--spec--autoscaling))
- `description` (String) Description is the optional description of the armada.

<a id="nestedblock--spec--distribution"></a>
Expand Down Expand Up @@ -77,6 +79,7 @@ Optional:
Optional:

- `annotations` (Map of String) An unstructured map of keys and values stored on an object.
- `environment` (String) The name of the environment the object belongs to.
- `labels` (Map of String) A map of keys and values that can be used to organize and categorize objects.
- `name` (String) The unique object name within its scope.

Expand Down Expand Up @@ -397,3 +400,22 @@ Optional:
- `int_val` (Number)
- `str_val` (String)
- `type` (Number)






<a id="nestedblock--spec--autoscaling"></a>
### Nested Schema for `spec.autoscaling`

Optional:

- `fixed_interval` (Block List, Max: 1) FixedInterval defines a fixed interval autoscaling strategy. (see [below for nested schema](#nestedblock--spec--autoscaling--fixed_interval))

<a id="nestedblock--spec--autoscaling--fixed_interval"></a>
### Nested Schema for `spec.autoscaling.fixed_interval`

Optional:

- `seconds` (Number) Seconds defines how often the auto-scaler will re-evaluate the number of game servers.
22 changes: 22 additions & 0 deletions docs/data-sources/armada_armada_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Use this data source to access information about an existing Armada.
Optional:

- `annotations` (Map of String) An unstructured map of keys and values stored on an object.
- `environment` (String) The name of the environment the object belongs to.
- `labels` (Map of String) A map of keys and values that can be used to organize and categorize objects.
- `name` (String) The unique object name within its scope.

Expand All @@ -50,6 +51,7 @@ Required:

Optional:

- `autoscaling` (Block List, Max: 1) AutoscalingInterval defines the autoscaling strategy. (see [below for nested schema](#nestedblock--spec--autoscaling))
- `description` (String) Description is the optional description of the armada.

<a id="nestedblock--spec--distribution"></a>
Expand Down Expand Up @@ -77,6 +79,7 @@ Optional:
Optional:

- `annotations` (Map of String) An unstructured map of keys and values stored on an object.
- `environment` (String) The name of the environment the object belongs to.
- `labels` (Map of String) A map of keys and values that can be used to organize and categorize objects.
- `name` (String) The unique object name within its scope.

Expand Down Expand Up @@ -397,3 +400,22 @@ Optional:
- `int_val` (Number)
- `str_val` (String)
- `type` (Number)






<a id="nestedblock--spec--autoscaling"></a>
### Nested Schema for `spec.autoscaling`

Optional:

- `fixed_interval` (Block List, Max: 1) FixedInterval defines a fixed interval autoscaling strategy. (see [below for nested schema](#nestedblock--spec--autoscaling--fixed_interval))

<a id="nestedblock--spec--autoscaling--fixed_interval"></a>
### Nested Schema for `spec.autoscaling.fixed_interval`

Optional:

- `seconds` (Number) Seconds defines how often the auto-scaler will re-evaluate the number of game servers.
19 changes: 19 additions & 0 deletions docs/data-sources/armada_armadaset.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Use this data source to access information about an existing ArmadaSet.
Optional:

- `annotations` (Map of String) An unstructured map of keys and values stored on an object.
- `environment` (String) The name of the environment the object belongs to.
- `labels` (Map of String) A map of keys and values that can be used to organize and categorize objects.
- `name` (String) The unique object name within its scope.

Expand All @@ -49,6 +50,7 @@ Required:

Optional:

- `autoscaling` (Block List, Max: 1) AutoscalingInterval defines the autoscaling strategy for all armadas. (see [below for nested schema](#nestedblock--spec--autoscaling))
- `description` (String) Description is the optional description of the armada set.
- `override` (Block List) Override overrides configuration for named armadas. (see [below for nested schema](#nestedblock--spec--override))

Expand Down Expand Up @@ -91,6 +93,7 @@ Optional:
Optional:

- `annotations` (Map of String) An unstructured map of keys and values stored on an object.
- `environment` (String) The name of the environment the object belongs to.
- `labels` (Map of String) A map of keys and values that can be used to organize and categorize objects.
- `name` (String) The unique object name within its scope.

Expand Down Expand Up @@ -417,6 +420,22 @@ Optional:



<a id="nestedblock--spec--autoscaling"></a>
### Nested Schema for `spec.autoscaling`

Optional:

- `fixed_interval` (Block List, Max: 1) FixedInterval defines a fixed interval autoscaling strategy. (see [below for nested schema](#nestedblock--spec--autoscaling--fixed_interval))

<a id="nestedblock--spec--autoscaling--fixed_interval"></a>
### Nested Schema for `spec.autoscaling.fixed_interval`

Optional:

- `seconds` (Number) Seconds defines how often the auto-scaler will re-evaluate the number of game servers.



<a id="nestedblock--spec--override"></a>
### Nested Schema for `spec.override`

Expand Down
19 changes: 19 additions & 0 deletions docs/data-sources/armada_armadaset_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Use this data source to access information about an existing ArmadaSet.
Optional:

- `annotations` (Map of String) An unstructured map of keys and values stored on an object.
- `environment` (String) The name of the environment the object belongs to.
- `labels` (Map of String) A map of keys and values that can be used to organize and categorize objects.
- `name` (String) The unique object name within its scope.

Expand All @@ -49,6 +50,7 @@ Required:

Optional:

- `autoscaling` (Block List, Max: 1) AutoscalingInterval defines the autoscaling strategy for all armadas. (see [below for nested schema](#nestedblock--spec--autoscaling))
- `description` (String) Description is the optional description of the armada set.
- `override` (Block List) Override overrides configuration for named armadas. (see [below for nested schema](#nestedblock--spec--override))

Expand Down Expand Up @@ -91,6 +93,7 @@ Optional:
Optional:

- `annotations` (Map of String) An unstructured map of keys and values stored on an object.
- `environment` (String) The name of the environment the object belongs to.
- `labels` (Map of String) A map of keys and values that can be used to organize and categorize objects.
- `name` (String) The unique object name within its scope.

Expand Down Expand Up @@ -417,6 +420,22 @@ Optional:



<a id="nestedblock--spec--autoscaling"></a>
### Nested Schema for `spec.autoscaling`

Optional:

- `fixed_interval` (Block List, Max: 1) FixedInterval defines a fixed interval autoscaling strategy. (see [below for nested schema](#nestedblock--spec--autoscaling--fixed_interval))

<a id="nestedblock--spec--autoscaling--fixed_interval"></a>
### Nested Schema for `spec.autoscaling.fixed_interval`

Optional:

- `seconds` (Number) Seconds defines how often the auto-scaler will re-evaluate the number of game servers.



<a id="nestedblock--spec--override"></a>
### Nested Schema for `spec.override`

Expand Down
1 change: 1 addition & 0 deletions docs/data-sources/armada_region.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Use this data source to access information about an existing Region.
Optional:

- `annotations` (Map of String) An unstructured map of keys and values stored on an object.
- `environment` (String) The name of the environment the object belongs to.
- `labels` (Map of String) A map of keys and values that can be used to organize and categorize objects.
- `name` (String) The unique object name within its scope.

Expand Down
1 change: 1 addition & 0 deletions docs/data-sources/armada_region_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Use this data source to access information about an existing Region.
Optional:

- `annotations` (Map of String) An unstructured map of keys and values stored on an object.
- `environment` (String) The name of the environment the object belongs to.
- `labels` (Map of String) A map of keys and values that can be used to organize and categorize objects.
- `name` (String) The unique object name within its scope.

Expand Down
1 change: 1 addition & 0 deletions docs/data-sources/armada_site.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Use this data source to access information about an existing Site.
Optional:

- `annotations` (Map of String) An unstructured map of keys and values stored on an object.
- `environment` (String) The name of the environment the object belongs to.
- `labels` (Map of String) A map of keys and values that can be used to organize and categorize objects.
- `name` (String) The unique object name within its scope.

Expand Down
1 change: 1 addition & 0 deletions docs/data-sources/armada_site_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Use this data source to access information about an existing Site.
Optional:

- `annotations` (Map of String) An unstructured map of keys and values stored on an object.
- `environment` (String) The name of the environment the object belongs to.
- `labels` (Map of String) A map of keys and values that can be used to organize and categorize objects.
- `name` (String) The unique object name within its scope.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "ec_armada_branch_v1 Data Source - terraform-provider-ec"
page_title: "ec_container_branch Data Source - terraform-provider-ec"
subcategory: ""
description: |-
Use this data source to access information about an existing Branch.
---

# ec_armada_branch_v1 (Data Source)
# ec_container_branch (Data Source)

Use this data source to access information about an existing Branch.

Expand All @@ -30,6 +30,7 @@ Use this data source to access information about an existing Branch.
Optional:

- `annotations` (Map of String) An unstructured map of keys and values stored on an object.
- `environment` (String) The name of the environment the object belongs to.
- `labels` (Map of String) A map of keys and values that can be used to organize and categorize objects.
- `name` (String) The unique object name within its scope.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "ec_armada_branch Data Source - terraform-provider-ec"
page_title: "ec_container_branch_v1 Data Source - terraform-provider-ec"
subcategory: ""
description: |-
Use this data source to access information about an existing Branch.
---

# ec_armada_branch (Data Source)
# ec_container_branch_v1 (Data Source)

Use this data source to access information about an existing Branch.

Expand All @@ -30,6 +30,7 @@ Use this data source to access information about an existing Branch.
Optional:

- `annotations` (Map of String) An unstructured map of keys and values stored on an object.
- `environment` (String) The name of the environment the object belongs to.
- `labels` (Map of String) A map of keys and values that can be used to organize and categorize objects.
- `name` (String) The unique object name within its scope.

Expand Down
49 changes: 49 additions & 0 deletions docs/data-sources/core_environment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "ec_core_environment Data Source - terraform-provider-ec"
subcategory: ""
description: |-
Use this data source to access information about an existing Environment.
---

# ec_core_environment (Data Source)

Use this data source to access information about an existing Environment.



<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `metadata` (Block List, Max: 1) Standard object's metadata. (see [below for nested schema](#nestedblock--metadata))
- `spec` (Block List, Max: 1) Spec configures the environment. (see [below for nested schema](#nestedblock--spec))

### Read-Only

- `id` (String) The ID of this resource.

<a id="nestedblock--metadata"></a>
### Nested Schema for `metadata`

Optional:

- `annotations` (Map of String) An unstructured map of keys and values stored on an object.
- `environment` (String) The name of the environment the object belongs to.
- `labels` (Map of String) A map of keys and values that can be used to organize and categorize objects.
- `name` (String) The unique object name within its scope.

Read-Only:

- `revision` (String) An opaque resource revision.
- `uid` (String) A unique identifier for each an object.


<a id="nestedblock--spec"></a>
### Nested Schema for `spec`

Optional:

- `description` (String) Description is the description of the environment.
- `display_name` (String) DisplayName is friendly name of the environment.
49 changes: 49 additions & 0 deletions docs/data-sources/core_environment_v1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "ec_core_environment_v1 Data Source - terraform-provider-ec"
subcategory: ""
description: |-
Use this data source to access information about an existing Environment.
---

# ec_core_environment_v1 (Data Source)

Use this data source to access information about an existing Environment.



<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `metadata` (Block List, Max: 1) Standard object's metadata. (see [below for nested schema](#nestedblock--metadata))
- `spec` (Block List, Max: 1) Spec configures the environment. (see [below for nested schema](#nestedblock--spec))

### Read-Only

- `id` (String) The ID of this resource.

<a id="nestedblock--metadata"></a>
### Nested Schema for `metadata`

Optional:

- `annotations` (Map of String) An unstructured map of keys and values stored on an object.
- `environment` (String) The name of the environment the object belongs to.
- `labels` (Map of String) A map of keys and values that can be used to organize and categorize objects.
- `name` (String) The unique object name within its scope.

Read-Only:

- `revision` (String) An opaque resource revision.
- `uid` (String) A unique identifier for each an object.


<a id="nestedblock--spec"></a>
### Nested Schema for `spec`

Optional:

- `description` (String) Description is the description of the environment.
- `display_name` (String) DisplayName is friendly name of the environment.
Loading

0 comments on commit 99b722b

Please sign in to comment.