Skip to content

Instantly share code, notes, and snippets.

@torumakabe
Created April 4, 2015 11:53
Show Gist options
  • Save torumakabe/977209064bcfda66d085 to your computer and use it in GitHub Desktop.
Save torumakabe/977209064bcfda66d085 to your computer and use it in GitHub Desktop.
Minimum Terraform configuration for OpenStack
# Configure the OpenStack Provider
provider "openstack" {
}
# Create a sample server
resource "openstack_compute_instance_v2" "sample-server" {
name = "tf-sample"
image_id = "your_image_id"
flavor_id = "your_flavor_id"
key_pair = "your_keypair"
security_groups = ["your_sg"]
floating_ip = "your_fip"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment