Skip to content

Commit

Permalink
feat: refactor to new split enterprise console (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrwiersma authored Jan 24, 2024
1 parent e39c412 commit f6b1796
Show file tree
Hide file tree
Showing 52 changed files with 816 additions and 747 deletions.
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_region Data Source - terraform-provider-ec"
page_title: "ec_core_region Data Source - terraform-provider-ec"
subcategory: ""
description: |-
Use this data source to access information about an existing Region.
---

# ec_armada_region (Data Source)
# ec_core_region (Data Source)

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

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_region_v1 Data Source - terraform-provider-ec"
page_title: "ec_core_region_v1 Data Source - terraform-provider-ec"
subcategory: ""
description: |-
Use this data source to access information about an existing Region.
---

# ec_armada_region_v1 (Data Source)
# ec_core_region_v1 (Data Source)

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

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_site Data Source - terraform-provider-ec"
page_title: "ec_core_site Data Source - terraform-provider-ec"
subcategory: ""
description: |-
Use this data source to access information about an existing Site.
---

# ec_armada_site (Data Source)
# ec_core_site (Data Source)

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

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_site_v1 Data Source - terraform-provider-ec"
page_title: "ec_core_site_v1 Data Source - terraform-provider-ec"
subcategory: ""
description: |-
Use this data source to access information about an existing Site.
---

# ec_armada_site_v1 (Data Source)
# ec_core_site_v1 (Data Source)

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

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ provider "ec" {
host = "<your armada host url>"
}
resource "ec_armada_site" "test" {
resource "ec_core_site" "test" {
metadata {
name = "test"
}
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/core_environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "ec_core_environment Resource - terraform-provider-ec"
subcategory: ""
description: |-
An Environment provides a connection to deployment capacity.
An Environment provides a mechanism to isolate groups of resources.
---

# ec_core_environment (Resource)

An Environment provides a connection to deployment capacity.
An Environment provides a mechanism to isolate groups of resources.



Expand Down
4 changes: 2 additions & 2 deletions docs/resources/core_environment_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "ec_core_environment_v1 Resource - terraform-provider-ec"
subcategory: ""
description: |-
An Environment provides a connection to deployment capacity.
An Environment provides a mechanism to isolate groups of resources.
---

# ec_core_environment_v1 (Resource)

An Environment provides a connection to deployment capacity.
An Environment provides a mechanism to isolate groups of resources.



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_region Resource - terraform-provider-ec"
page_title: "ec_core_region Resource - terraform-provider-ec"
subcategory: ""
description: |-
A Region determines how Armadas are distributed across Sites.
---

# ec_armada_region (Resource)
# ec_core_region (Resource)

A Region determines how Armadas are distributed across Sites.

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_region_v1 Resource - terraform-provider-ec"
page_title: "ec_core_region_v1 Resource - terraform-provider-ec"
subcategory: ""
description: |-
A Region determines how Armadas are distributed across Sites.
---

# ec_armada_region_v1 (Resource)
# ec_core_region_v1 (Resource)

A Region determines how Armadas are distributed across Sites.

Expand Down
6 changes: 3 additions & 3 deletions docs/resources/armada_site.md → docs/resources/core_site.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "ec_armada_site Resource - terraform-provider-ec"
page_title: "ec_core_site Resource - terraform-provider-ec"
subcategory: ""
description: |-
A Site provides a connection to deployment capacity.
---

# ec_armada_site (Resource)
# ec_core_site (Resource)

A Site provides a connection to deployment capacity.

## Example Usage

```terraform
resource "ec_armada_site" "test" {
resource "ec_core_site" "test" {
metadata {
name = "test"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "ec_armada_site_v1 Resource - terraform-provider-ec"
page_title: "ec_core_site_v1 Resource - terraform-provider-ec"
subcategory: ""
description: |-
A Site provides a connection to deployment capacity.
---

# ec_armada_site_v1 (Resource)
# ec_core_site_v1 (Resource)

A Site provides a connection to deployment capacity.

## Example Usage

```terraform
resource "ec_armada_site_v1" "test" {
resource "ec_core_site" "test" {
metadata {
name = "test"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

// DataSourceArmadaArmada returns the data source resource for an Armada.
func DataSourceArmadaArmada() *schema.Resource {
// DataSourceArmada returns the data source resource for an Armada.
func DataSourceArmada() *schema.Resource {
return &schema.Resource{
Description: "Use this data source to access information about an existing Armada.",
ReadContext: dataSourceArmadaArmadaRead,
ReadContext: dataSourceArmadaRead,
Schema: armadaSchema(),
}
}

func dataSourceArmadaArmadaRead(ctx context.Context, d *schema.ResourceData, m any) diag.Diagnostics {
func dataSourceArmadaRead(ctx context.Context, d *schema.ResourceData, m any) diag.Diagnostics {
name := d.Get("metadata.0.name").(string)
d.SetId(name)

return resourceArmadaArmadaRead(ctx, d, m)
return resourceArmadaRead(ctx, d, m)
}
73 changes: 0 additions & 73 deletions ec/armada/data_source_armada_region_test.go

This file was deleted.

92 changes: 0 additions & 92 deletions ec/armada/data_source_armada_site_test.go

This file was deleted.

Loading

0 comments on commit f6b1796

Please sign in to comment.