Skip to content

Latest commit

 

History

History
40 lines (36 loc) · 1.54 KB

README.md

File metadata and controls

40 lines (36 loc) · 1.54 KB

Ververica Cloud AWS Private Connection Terraform Module

Ververica Cloud offers the capability to establish private connections with AWS services. This set of modules is used to create VPC endpoint services and IAM Role on a user's AWS account that is later used by Ververica Cloud to allow accessing resources from Flink jobs in their AWS Account, like a RDS for MySQL or MSK.

Usage

private-connection:

module "private_connection" {
  source                       = "ververica/ververica-cloud/aws//modules/private-connection"
  
  role_name                    = "VervericaCloudIAMRole"
  ververica_cloud_workspace_id = "my-workspace-id"
  enable_elasticache           = true
  endpoint_services = {
    redis = {
      vpc_id                     = "vpc-1234567890abcdefg"
      create_security_group_rule = true
      security_group_id          = "sg-1234567890abcdefg"
      port                       = 6379
      nodes = [
        # To get the ip you can use something like: dig +short <dns_endpoint>
        {
          ip_address   = "172.31.40.27"
          dns_endpoint = "demo-cluster-1-0001-001.abcdef.0001.euc1.cache.amazonaws.com"
          subnet_id    = "subnet-1234567890abcdefg"
        },
        {
          ip_address   = "172.31.11.25"
          dns_endpoint = "demo-cluster-1-0002-001.abcdef.0001.euc1.cache.amazonaws.com"
          subnet_id    = "subnet-1234567890abcdefg"
        }
      ]
      tags = {
        Description = "Used for Ververica Cloud"
      }
    }
  }
}