Skip to content

Commit

Permalink
use environment_type
Browse files Browse the repository at this point in the history
  • Loading branch information
mitch-hamm committed Apr 11, 2024
1 parent 4f53bdf commit 593b8b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cloud/resource_cloud_environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func resourceCloudEnvironment() *schema.Resource {
Description: descriptions["organization"],
ValidateFunc: validateNotBlank,
},
"type": {
"environment_type": {
Type: schema.TypeString,
Required: true,
Description: descriptions["environment_type"],
Expand Down Expand Up @@ -109,7 +109,7 @@ func resourceCloudEnvironment() *schema.Resource {

func resourceCloudEnvironmentCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
namespace := d.Get("organization").(string)
cloudEnvironmentType := d.Get("type").(string)
cloudEnvironmentType := d.Get("environment_type").(string)
region := d.Get("region").(string)
cloudConnectionName := d.Get("cloud_connection_name").(string)
network := d.Get("network").([]interface{})
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/cloud_environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ description: |-
### Required

- `cloud_connection_name` (String) Name of the cloud connection
- `environment_type` (String) Type of the cloud environment, either: dev, test, staging, production, acc, qa or poc
- `network` (Block List, Min: 1) (see [below for nested schema](#nestedblock--network))
- `organization` (String) The organization name
- `region` (String)
- `type` (String) Type of the cloud environment, either: dev, test, staging, production, acc, qa or poc

### Read-Only

Expand Down

0 comments on commit 593b8b4

Please sign in to comment.