-
Notifications
You must be signed in to change notification settings - Fork 81
Add missing networking example configurations #943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Bhavya Muni (bhavyamuni)
wants to merge
2
commits into
master
Choose a base branch
from
bmuni/add-missing-networking-examples
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
48 changes: 48 additions & 0 deletions
48
examples/configurations/networking/egress-aws-private-link/main.tf
This file contains hidden or 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,48 @@ | ||
| terraform { | ||
| required_providers { | ||
| confluent = { | ||
| source = "confluentinc/confluent" | ||
| version = "2.62.0" | ||
| } | ||
| } | ||
| } | ||
|
|
||
| provider "confluent" { | ||
| cloud_api_key = var.confluent_cloud_api_key | ||
| cloud_api_secret = var.confluent_cloud_api_secret | ||
| } | ||
|
|
||
| resource "confluent_environment" "staging" { | ||
| display_name = "Staging" | ||
|
|
||
| stream_governance { | ||
| package = "ESSENTIALS" | ||
| } | ||
| } | ||
|
|
||
| resource "confluent_gateway" "main" { | ||
| display_name = "aws-egress-private-link-gateway" | ||
| environment { | ||
| id = confluent_environment.staging.id | ||
| } | ||
| aws_egress_private_link_gateway { | ||
| region = var.region | ||
| } | ||
| } | ||
|
|
||
| resource "confluent_access_point" "main" { | ||
| display_name = "aws-egress-private-link-access-point" | ||
| environment { | ||
| id = confluent_environment.staging.id | ||
| } | ||
| gateway { | ||
| id = confluent_gateway.main.id | ||
| } | ||
| aws_egress_private_link_endpoint { | ||
| vpc_endpoint_service_name = var.vpc_endpoint_service_name | ||
| enable_high_availability = var.enable_high_availability | ||
| } | ||
| depends_on = [ | ||
| confluent_gateway.main | ||
| ] | ||
| } | ||
9 changes: 9 additions & 0 deletions
9
examples/configurations/networking/egress-aws-private-link/outputs.tf
This file contains hidden or 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,9 @@ | ||
| output "gateway" { | ||
| description = "The AWS Egress Private Link Gateway" | ||
| value = confluent_gateway.main | ||
| } | ||
|
|
||
| output "access_point" { | ||
| description = "The AWS Egress Private Link Access Point" | ||
| value = confluent_access_point.main | ||
| } |
26 changes: 26 additions & 0 deletions
26
examples/configurations/networking/egress-aws-private-link/variables.tf
This file contains hidden or 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,26 @@ | ||
| variable "confluent_cloud_api_key" { | ||
| description = "Confluent Cloud API Key (also referred as Cloud API ID)" | ||
| type = string | ||
| } | ||
|
|
||
| variable "confluent_cloud_api_secret" { | ||
| description = "Confluent Cloud API Secret" | ||
| type = string | ||
| sensitive = true | ||
| } | ||
|
|
||
| variable "region" { | ||
| description = "The AWS region of the Gateway, for example, us-east-1" | ||
| type = string | ||
| } | ||
|
|
||
| variable "vpc_endpoint_service_name" { | ||
| description = "AWS VPC Endpoint Service Name, for example, com.amazonaws.vpce.us-west-2.vpce-svc-0d3be37e21708ecd3" | ||
| type = string | ||
| } | ||
|
|
||
| variable "enable_high_availability" { | ||
| description = "Whether the Access Point should be provisioned with high availability" | ||
| type = bool | ||
| default = false | ||
| } |
48 changes: 48 additions & 0 deletions
48
examples/configurations/networking/egress-azure-private-link/main.tf
This file contains hidden or 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,48 @@ | ||
| terraform { | ||
| required_providers { | ||
| confluent = { | ||
| source = "confluentinc/confluent" | ||
| version = "2.62.0" | ||
| } | ||
| } | ||
| } | ||
|
|
||
| provider "confluent" { | ||
| cloud_api_key = var.confluent_cloud_api_key | ||
| cloud_api_secret = var.confluent_cloud_api_secret | ||
| } | ||
|
|
||
| resource "confluent_environment" "staging" { | ||
| display_name = "Staging" | ||
|
|
||
| stream_governance { | ||
| package = "ESSENTIALS" | ||
| } | ||
| } | ||
|
|
||
| resource "confluent_gateway" "main" { | ||
| display_name = "azure-egress-private-link-gateway" | ||
| environment { | ||
| id = confluent_environment.staging.id | ||
| } | ||
| azure_egress_private_link_gateway { | ||
| region = var.region | ||
| } | ||
| } | ||
|
|
||
| resource "confluent_access_point" "main" { | ||
| display_name = "azure-egress-private-link-access-point" | ||
| environment { | ||
| id = confluent_environment.staging.id | ||
| } | ||
| gateway { | ||
| id = confluent_gateway.main.id | ||
| } | ||
| azure_egress_private_link_endpoint { | ||
| private_link_service_resource_id = var.private_link_service_resource_id | ||
| private_link_subresource_name = var.private_link_subresource_name | ||
| } | ||
| depends_on = [ | ||
| confluent_gateway.main | ||
| ] | ||
| } |
9 changes: 9 additions & 0 deletions
9
examples/configurations/networking/egress-azure-private-link/outputs.tf
This file contains hidden or 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,9 @@ | ||
| output "gateway" { | ||
| description = "The Azure Egress Private Link Gateway" | ||
| value = confluent_gateway.main | ||
| } | ||
|
|
||
| output "access_point" { | ||
| description = "The Azure Egress Private Link Access Point" | ||
| value = confluent_access_point.main | ||
| } |
26 changes: 26 additions & 0 deletions
26
examples/configurations/networking/egress-azure-private-link/variables.tf
This file contains hidden or 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,26 @@ | ||
| variable "confluent_cloud_api_key" { | ||
| description = "Confluent Cloud API Key (also referred as Cloud API ID)" | ||
| type = string | ||
| } | ||
|
|
||
| variable "confluent_cloud_api_secret" { | ||
| description = "Confluent Cloud API Secret" | ||
| type = string | ||
| sensitive = true | ||
| } | ||
|
|
||
| variable "region" { | ||
| description = "The Azure region of the Gateway, for example, eastus" | ||
| type = string | ||
| } | ||
|
|
||
| variable "private_link_service_resource_id" { | ||
| description = "Resource ID of the Azure Private Link service" | ||
| type = string | ||
| } | ||
|
|
||
| variable "private_link_subresource_name" { | ||
| description = "Name of the subresource for the Private Endpoint to connect to" | ||
| type = string | ||
| default = "" | ||
| } |
This file contains hidden or 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
4 changes: 4 additions & 0 deletions
4
examples/configurations/networking/egress-gcp-private-service-connect/outputs.tf
This file contains hidden or 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,4 @@ | ||
| output "access_point" { | ||
| description = "The GCP Egress Private Service Connect Access Point" | ||
| value = confluent_access_point.private-service-connect | ||
| } |
File renamed without changes.
47 changes: 47 additions & 0 deletions
47
examples/configurations/networking/ingress-aws-private-link/main.tf
This file contains hidden or 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,47 @@ | ||
| terraform { | ||
| required_providers { | ||
| confluent = { | ||
| source = "confluentinc/confluent" | ||
| version = "2.62.0" | ||
| } | ||
| } | ||
| } | ||
|
|
||
| provider "confluent" { | ||
| cloud_api_key = var.confluent_cloud_api_key | ||
| cloud_api_secret = var.confluent_cloud_api_secret | ||
| } | ||
|
|
||
| resource "confluent_environment" "staging" { | ||
| display_name = "Staging" | ||
|
|
||
| stream_governance { | ||
| package = "ESSENTIALS" | ||
| } | ||
| } | ||
|
|
||
| resource "confluent_gateway" "main" { | ||
| display_name = "aws-ingress-private-link-gateway" | ||
| environment { | ||
| id = confluent_environment.staging.id | ||
| } | ||
| aws_ingress_private_link_gateway { | ||
| region = var.region | ||
| } | ||
| } | ||
|
|
||
| resource "confluent_access_point" "main" { | ||
| display_name = "aws-ingress-private-link-access-point" | ||
| environment { | ||
| id = confluent_environment.staging.id | ||
| } | ||
| gateway { | ||
| id = confluent_gateway.main.id | ||
| } | ||
| aws_ingress_private_link_endpoint { | ||
| vpc_endpoint_id = var.vpc_endpoint_id | ||
| } | ||
| depends_on = [ | ||
| confluent_gateway.main | ||
| ] | ||
| } |
9 changes: 9 additions & 0 deletions
9
examples/configurations/networking/ingress-aws-private-link/outputs.tf
This file contains hidden or 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,9 @@ | ||
| output "gateway" { | ||
| description = "The AWS Ingress Private Link Gateway" | ||
| value = confluent_gateway.main | ||
| } | ||
|
|
||
| output "access_point" { | ||
| description = "The AWS Ingress Private Link Access Point" | ||
| value = confluent_access_point.main | ||
| } |
20 changes: 20 additions & 0 deletions
20
examples/configurations/networking/ingress-aws-private-link/variables.tf
This file contains hidden or 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,20 @@ | ||
| variable "confluent_cloud_api_key" { | ||
| description = "Confluent Cloud API Key (also referred as Cloud API ID)" | ||
| type = string | ||
| } | ||
|
|
||
| variable "confluent_cloud_api_secret" { | ||
| description = "Confluent Cloud API Secret" | ||
| type = string | ||
| sensitive = true | ||
| } | ||
|
|
||
| variable "region" { | ||
| description = "The AWS region of the Ingress Private Link Gateway, for example, us-east-1" | ||
| type = string | ||
| } | ||
|
|
||
| variable "vpc_endpoint_id" { | ||
| description = "ID of a VPC Endpoint that will be connected to the VPC Endpoint service, for example, vpce-00000000000000000" | ||
| type = string | ||
| } |
This file contains hidden or 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,49 @@ | ||
| terraform { | ||
| required_providers { | ||
| confluent = { | ||
| source = "confluentinc/confluent" | ||
| version = "2.62.0" | ||
| } | ||
| } | ||
| } | ||
|
|
||
| provider "confluent" { | ||
| cloud_api_key = var.confluent_cloud_api_key | ||
| cloud_api_secret = var.confluent_cloud_api_secret | ||
| } | ||
|
|
||
| resource "confluent_environment" "staging" { | ||
| display_name = "Staging" | ||
|
|
||
| stream_governance { | ||
| package = "ESSENTIALS" | ||
| } | ||
| } | ||
|
|
||
| resource "confluent_gateway" "main" { | ||
| display_name = "aws-private-network-interface-gateway" | ||
| environment { | ||
| id = confluent_environment.staging.id | ||
| } | ||
| aws_private_network_interface_gateway { | ||
| region = var.region | ||
| zones = var.availability_zone_ids | ||
| } | ||
| } | ||
|
|
||
| resource "confluent_access_point" "main" { | ||
| display_name = "aws-private-network-interface-access-point" | ||
| environment { | ||
| id = confluent_environment.staging.id | ||
| } | ||
| gateway { | ||
| id = confluent_gateway.main.id | ||
| } | ||
| aws_private_network_interface { | ||
| network_interfaces = var.network_interface_ids | ||
| account = var.aws_account_id | ||
| } | ||
| depends_on = [ | ||
| confluent_gateway.main | ||
| ] | ||
| } |
This file contains hidden or 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,9 @@ | ||
| output "gateway" { | ||
| description = "The AWS Private Network Interface Gateway" | ||
| value = confluent_gateway.main | ||
| } | ||
|
|
||
| output "access_point" { | ||
| description = "The AWS Private Network Interface Access Point" | ||
| value = confluent_access_point.main | ||
| } |
This file contains hidden or 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,30 @@ | ||
| variable "confluent_cloud_api_key" { | ||
| description = "Confluent Cloud API Key (also referred as Cloud API ID)" | ||
| type = string | ||
| } | ||
|
|
||
| variable "confluent_cloud_api_secret" { | ||
| description = "Confluent Cloud API Secret" | ||
| type = string | ||
| sensitive = true | ||
| } | ||
|
|
||
| variable "region" { | ||
| description = "The AWS region of the Private Network Interface Gateway, for example, us-east-1" | ||
| type = string | ||
| } | ||
|
|
||
| variable "availability_zone_ids" { | ||
| description = "The AWS availability zone IDs for the Private Network Interface Gateway, for example, [\"use1-az1\", \"use1-az2\", \"use1-az4\"]" | ||
| type = list(string) | ||
| } | ||
|
|
||
| variable "network_interface_ids" { | ||
| description = "List of the IDs of the Elastic Network Interfaces" | ||
| type = list(string) | ||
| } | ||
|
|
||
| variable "aws_account_id" { | ||
| description = "The AWS account ID associated with the ENIs, for example, 000000000000" | ||
| type = string | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.