Skip to content

This Repository contains the "vcd_security_tag" Terraform Module. You can use this Module to deploy Security Tags into a VMware Cloud Director (VCD) Environment.

Notifications You must be signed in to change notification settings

global-vmware/vcd_security_tag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VCD Security Tag Terraform Module

This Terraform module allows you to create Security Tags and associate them with Virtual Machines (VMs) in an existing VMware Cloud Director (VCD) Environment. This module can be used to provision new Security Tags into Rackspace Technology SDDC Flex VCD Data Center Regions.

Requirements

Name Version
terraform ~> 1.2
vcd ~> 3.8.2

Resources

Name Type
vcd_vm Data Source
vcd_security_tag Resource

Inputs

Name Description Type Default Required
vdc_org_name The name of the organization in VCD string "Organization Name Format: <Account_Number>-<Region>-<Account_Name>" yes
vdc_name Cloud Director VDC Name string "Virtual Data Center Name Format: <Account_Number>-<Region>-<VDC_Name>" Yes
security_tags Map of security tags and their corresponding VM names map(list(string)) {} yes
vm_names List of VM names that the security tag is going to be applied to list(string) [] yes

Outputs

Name Description
tag_vm_mapping Mapping of security tags and associated VM names. The output is a map where the keys are the tag names and the values are the associated VM names.

Example Usage

This is an example of a main.tf file that uses the VCD Security Tag Terraform Module to create security tags and associate them with VMs in VMware Cloud Director:

module "vcd_security_tags" {
  source            = "github.com/global-vmware/vcd_security_tag.git?ref=v1.2.1"

  vdc_org_name      = "<US1-VDC-ORG-NAME>"
  vdc_name          = "<US1-VDC-NAME>"

  security_tags = {
    "pd-app-web"    = ["Prod App Web Server 01", "Prod App Web Server 02"]
  }
  
  vm_names          = ["Prod App Web Server 01", "Prod App Web Server 02"]
}

Authors

This module is maintained by the Global VMware Cloud Automation Services Team.

About

This Repository contains the "vcd_security_tag" Terraform Module. You can use this Module to deploy Security Tags into a VMware Cloud Director (VCD) Environment.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages