Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/cloud/automation/snippets/download_provider_linux.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
curl -o ./terraform-provider-eventstorecloud.zip -L \
https://github.com/kurrent-io/terraform-provider-eventstorecloud/releases/download/v1.5.12/terraform-provider-eventstorecloud_1.5.12_linux_amd64.zip
unzip ./terraform-provider-eventstorecloud.zip
mv ./terraform-provider-eventstorecloud ~/.terraform.d/plugins/terraform-provider-eventstorecloud
curl -o ./terraform-provider-kurrentcloud.zip -L \
https://github.com/kurrent-io/terraform-provider-kurrentcloud/releases/download/v2.0.0/terraform-provider-kurrentcloud_2.0.0_linux_amd64.zip
unzip ./terraform-provider-kurrentcloud.zip
mv ./terraform-provider-kurrentcloud ~/.terraform.d/plugins/terraform-provider-kurrentcloud
8 changes: 4 additions & 4 deletions docs/cloud/automation/snippets/download_provider_macos.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
curl -o ./terraform-provider-eventstorecloud.zip -L \
https://github.com/kurrent-io/terraform-provider-eventstorecloud/releases/download/v1.5.12/terraform-provider-eventstorecloud_1.5.12_darwin_amd64.zip
unzip ./terraform-provider-eventstorecloud.zip
mv ./terraform-provider-eventstorecloud ~/.terraform.d/plugins/terraform-provider-eventstorecloud
curl -o ./terraform-provider-kurrentcloud.zip -L \
https://github.com/kurrent-io/terraform-provider-kurrentcloud/releases/download/v2.0.0/terraform-provider-kurrentcloud_2.0.0_darwin_amd64.zip
unzip ./terraform-provider-kurrentcloud.zip
mv ./terraform-provider-kurrentcloud ~/.terraform.d/plugins/terraform-provider-kurrentcloud
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$source="https://github.com/kurrent-io/terraform-provider-eventstorecloud/releases/download/v1.5.12/terraform-provider-eventstorecloud_1.5.12_windows_amd64.zip"
$zip= "./terraform-provider-eventstorecloud.zip"
$tfPlugin="$env:APPDATA/terraform.d/plugins/terraform-provider-eventstorecloud/"
$source="https://github.com/kurrent-io/terraform-provider-kurrentcloud/releases/download/v2.0.0/terraform-provider-kurrentcloudcloud_2.0.0_windows_amd64.zip"
$zip= "./terraform-provider-kurrentcloud.zip"
$tfPlugin="$env:APPDATA/terraform.d/plugins/terraform-provider-kurrentcloud/"
Invoke-WebRequest -Uri $source -OutFile $zip
Expand-Archive -Path $zip -DestinationPath $tfPlugin

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
data "eventstorecloud_project" "production" {
data "kurrentcloud_project" "production" {
name = "Production Project"
}

resource "eventstorecloud_network" "production" {
resource "kurrentcloud_network" "production" {
name = "Production Network"
project_id = data.eventstorecloud_project.production.id
project_id = data.kurrentcloud_project.production.id
resource_provider = "aws"
region = "us-west-2"
cidr_block = "172.21.0.0/16"
}

resource "eventstorecloud_managed_cluster" "production" {
resource "kurrentcloud_managed_cluster" "production" {
name = "Production Cluster"
project_id = eventstorecloud_project.Production.project_id
network_id = eventstorecloud_network.Production.id
project_id = kurrentcloud_project.Production.project_id
network_id = kurrentcloud_network.Production.id
topology = "three-node-multi-zone"
instance_type = "F1"
disk_size = 10
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
data "eventstorecloud_project" "production" {
data "kurrentcloud_project" "production" {
name = "Production Project"
}

resource "eventstorecloud_network" "production" {
resource "kurrentcloud_network" "production" {
name = "Production Network"
project_id = data.eventstorecloud_project.production.id
project_id = data.kurrentcloud_project.production.id
resource_provider = "azure"
region = "westus2"
cidr_block = "172.21.0.0/16"
}

resource "eventstorecloud_managed_cluster" "production" {
resource "kurrentcloud_managed_cluster" "production" {
name = "Production Cluster"
project_id = eventstorecloud_project.Production.project_id
network_id = eventstorecloud_network.Production.id
project_id = kurrentcloud_project.Production.project_id
network_id = kurrentcloud_network.Production.id
topology = "three-node-multi-zone"
instance_type = "F1"
disk_size = 10
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
data "eventstorecloud_project" "production" {
data "kurrentcloud_project" "production" {
name = "Production Project"
}

resource "eventstorecloud_network" "production" {
resource "kurrentcloud_network" "production" {
name = "Production Network"
project_id = data.eventstorecloud_project.production.id
project_id = data.kurrentcloud_project.production.id
resource_provider = "gcp"
region = "us-central1"
cidr_block = "172.21.0.0/16"
}

resource "eventstorecloud_managed_cluster" "production" {
resource "kurrentcloud_managed_cluster" "production" {
name = "Production Cluster"
project_id = eventstorecloud_project.Production.project_id
network_id = eventstorecloud_network.Production.id
project_id = kurrentcloud_project.Production.project_id
network_id = kurrentcloud_network.Production.id
topology = "three-node-multi-zone"
instance_type = "F1"
disk_size = 10
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
resource "eventstorecloud_project" "production" {
resource "kurrentcloud_project" "production" {
name = "Production Project"
}
resource "eventstorecloud_network" "production_network" {
resource "kurrentcloud_network" "production_network" {
name = "Production Network"
project_id = data.eventstorecloud_project.production.id
project_id = data.kurrentcloud_project.production.id
resource_provider = "aws"
region = "us-west-2"
cidr_block = "172.21.0.0/16"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
resource "kurrentcloud_project" "production" {
name = "Production Project"
}

resource "kurrentcloud_network" "production" {
name = "Production Network"

project_id = data.kurrentcloud_project.production.id

resource_provider = "aws"
region = "us-west-2"
cidr_block = "172.21.0.0/16"
}

resource "kurrentcloud_peering" "production" {
name = "Peering from AWS into Production Network"

project_id = kurrentcloud_network.Production.project_id
network_id = kurrentcloud_network.Production.id

peer_resource_provider = kurrentcloud_network.Production.resource_provider
peer_network_region = kurrentcloud_network.Production.region

peer_account_id = "<Customer AWS Account ID>"
peer_network_id = "<Customer VPC ID>"
routes = ["<Address space of the customer VPC>"]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
resource "kurrentcloud_project" "production" {
name = "Production Project"
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This assumes a project with the name "Production" exists
data "eventstorecloud_project" "production" {
data "kurrentcloud_project" "production" {
name = "Production Project"
}
output "project_id" {
value = data.eventstorecloud_project.production.id
value = data.kurrentcloud_project.production.id
}
8 changes: 0 additions & 8 deletions docs/cloud/automation/snippets/providers_eventstore.tf.hcl

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
terraform {
required_providers {
kurrentcloud = {
source = "kurrent-io/kurrentcloud"
version = "~>2.0.0"
}
}
}
Loading