instance
julienlevasseur/instance/openstack
Terraform OpenStack Instance Module
README Provide a basic configuration to describe an OpenStack instance with Terraform. Usage ``bash export TF_VAR_os_network='foo' ` `HCL variable "os_network" {} variable "instance_name" { default = "foo" } variable "instance_image_name" { default = "foo" } variable "instance_flavor_name" { default = "foo" } variable "instance_key_pair" { default = "foo" } module "openstack_instance" { source = "julienlevasseur/instance/openstack" name = "${var.instance_name}" image_name = "${var.instance_image_name}" flavor_name = "${var.instance_flavor_name}" key_pair = "${var.instance_key_pair}" security_groups = "${list(module.openstack_secgroup_ssh.sg_name)}" network = "${var.os_network}" } `` Authors Julien Levasseur (https://github.com/julienlevasseur)
| Name | Type | Description | Default |
|---|---|---|---|
| name | any | A unique name for the resource | required |
| image_name | any | The name of the desired image for the server | required |
| flavor_name | any | The name of the desired flavor for the server | required |
| key_pair | any | The key pair must already be created and associated with the tenant's account | required |
| security_groups | any | An array of one or more security group names to associate with the server | required |
| network | any | An array of one or more networks to attach to the instance | required |
name — The name of the instance resourceaccess_ip_v4 — The ip of the instance resource