-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement VPC shell import Create global scenario test file
- Loading branch information
Showing
21 changed files
with
1,109 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "timescale_vpcs Resource - terraform-provider-timescale" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# timescale_vpcs (Resource) | ||
|
||
|
||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `cidr` (String) The IPv4 CIDR block | ||
- `region_code` (String) The region for this service. Currently supported regions are us-east-1, eu-west-1, us-west-2, eu-central-1, ap-southeast-2 | ||
|
||
### Optional | ||
|
||
- `name` (String) VPC Name is the configurable name assigned to this vpc. If none is provided, a default will be generated by the provider. | ||
|
||
### Read-Only | ||
|
||
- `created` (String) | ||
- `error_message` (String) | ||
- `id` (Number) The ID of this resource. | ||
- `project_id` (String) | ||
- `provisioned_id` (String) | ||
- `status` (String) | ||
- `updated` (String) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
terraform { | ||
required_providers { | ||
timescale = { | ||
source = "registry.terraform.io/providers/timescale" | ||
version = "~> 1.0" | ||
} | ||
} | ||
} | ||
|
||
variable "ts_access_token" { | ||
type = string | ||
} | ||
|
||
variable "ts_project_id" { | ||
type = string | ||
} | ||
|
||
provider "timescale" { | ||
access_token = var.ts_access_token | ||
project_id = var.ts_project_id | ||
} | ||
|
||
resource "timescale_vpcs" "new_vpc" { | ||
name = "test-vpc" | ||
cidr = "10.0.0.0/19" | ||
region_code = "us-east-1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
mutation CreateVPC($projectId: ID!, $name: String!, $cidr: String!, $regionCode: String!) { | ||
createVpc(data:{ | ||
projectId:$projectId, | ||
name:$name, | ||
cidr:$cidr, | ||
cloudProvider: AWS, | ||
regionCode:$regionCode | ||
}){ | ||
id | ||
projectId | ||
cidr | ||
name | ||
created | ||
updated | ||
# peeringConnections { | ||
# id | ||
# vpcId | ||
# peerVpc { | ||
# id | ||
# accountId | ||
# regionCode | ||
# cidr | ||
# } | ||
# errorMessage | ||
# status | ||
# } | ||
errorMessage | ||
status | ||
regionCode | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
mutation DeleteVPC($projectId: ID!, $vpcId: ID!) { | ||
deleteVpc (data:{ | ||
vpcId: $vpcId, | ||
projectId: $projectId | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
mutation RenameVPC($projectId: ID!, $forgeVpcId: ID!, $newName: String!) { | ||
renameVpc (data:{ | ||
projectId: $projectId, | ||
forgeVpcId: $forgeVpcId, | ||
newName: $newName | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
query GetVPC($vpcId: ID!) { | ||
getVpc(vpcId: $vpcId) { | ||
id | ||
projectId | ||
cidr | ||
name | ||
created | ||
updated | ||
# peeringConnections { | ||
# id | ||
# vpcId | ||
# peerVpc { | ||
# id | ||
# accountId | ||
# regionCode | ||
# cidr | ||
# } | ||
# errorMessage | ||
# status | ||
# } | ||
errorMessage | ||
status | ||
regionCode | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
query GetVPCByName($projectId: ID!, $name: String!) { | ||
getVpcByName (data:{ | ||
projectId: $projectId | ||
vpcName: $name, | ||
}) { | ||
id | ||
projectId | ||
cidr | ||
name | ||
created | ||
updated | ||
# peeringConnections { | ||
# id | ||
# vpcId | ||
# peerVpc { | ||
# id | ||
# accountId | ||
# regionCode | ||
# cidr | ||
# } | ||
# errorMessage | ||
# status | ||
# } | ||
errorMessage | ||
status | ||
regionCode | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.