Giter VIP home page Giter VIP logo

terraform-netskope-publisher-gcp's Introduction

Netskope Publisher GCP Module

A Terraform Module that creates Netskope Publishers in GCP.

Usage

Single Netskope Publisher

module "publisher_gcp" {
  source  = "netskopeoss/publisher-gcp/netskope"
  
  publisher_name        = var.publisher_name
  zone                  = var.zone
  network_interface     = var.network_interface
  project               = var.project

}

Multiple Netskope Publishers

module "publisher_gcp" {
  source  = "netskopeoss/publisher-gcp/netskope"

  for_each = toset(["01", "02", "03"])

  publisher_name = "${var.publisher_name}-${each.key}"
  zone                  = var.zone
  network_interface     = var.network_interface
  project               = var.project

}

Requirements

Name Version
terraform >= 1.1.7
google >= 4.0
netskope >= 0.2.1

Providers

Name Version
google >= 4.0
netskope >= 0.2.1
template n/a

Modules

No modules.

Resources

Name Type
google_compute_instance.NPAPublisher resource
netskope_publishers.Publisher resource
template_cloudinit_config.config data source

Inputs

Name Description Type Default Required
associate_public_ip_address Publisher Assigned Public IP or Not bool true no
block_project_ssh_keys Block Project SSH Keys bool true no
machine_type GCP Machine Type - e2-medium is the reccomended instance size. string "e2-medium" no
network_interface GCP Network Interface string n/a yes
project GCP Project ID string n/a yes
public_key Public Key String string "AAAABBBBCCCC.." no
publisher_name Netskope Publisher Name string n/a yes
ssh_user SSH User string "ubuntu" no
zone GCP Zone string n/a yes

Outputs

Name Description
publisher_internal_ip Internal IP of the Publisher
publisher_name Name of the Publisher
publisher_nat_ip Public IP of the Publisher
publisher_token Publisher Token

terraform-netskope-publisher-gcp's People

Contributors

ns-sbrown avatar

Watchers

 avatar  avatar

terraform-netskope-publisher-gcp's Issues

output nat_ip is not conditional

  • Error message seen when setting the var associate_public_ip_address to false (true by default)

Error: Invalid index │ │ on .terraform/modules/publisher_gcp/[outputs.tf](http://outputs.tf/) line 14, in output "publisher_nat_ip": │ 14: value = "${google_compute_instance.NPAPublisher.network_interface.0.access_config.0.nat_ip}" │ ├──────────────── │ │ google_compute_instance.NPAPublisher.network_interface[0].access_config is empty list of object │ │ The given key does not identify an element in this collection value: the collection has no elements.

suggestion:

output "publisher_nat_ip" {
description = "Public IP of the Publisher"
value = var.associate_public_ip_address ? google_compute_instance.NPAPublisher.network_interface.0.access_config.0.nat_ip : null
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.