Skip to content

Instantly share code, notes, and snippets.

@developer-sdk
Created February 14, 2022 13:34
openstack terraform 프로바이더
# COMMON OPENSTACK ENVS
export OS_INTERFACE=public
export OS_IDENTITY_API_VERSION=3
export OS_COMPUTE_API_VERSION=2.26
export OS_NO_CACHE=1
export OS_AUTH_URL=https://identity.openstack.com/v3
export OS_AUTH_VERSION=3
export OS_AUTH_TYPE=v3applicationcredential
export OS_APPLICATION_CREDENTIAL_ID=AAAAAAAAAA
export OS_APPLICATION_CREDENTIAL_SECRET=BBBBBBBBBB
terraform {
required_version = ">= 0.14.0" # Takes into account Terraform versions from 0.14.0
required_providers {
openstack = {
source = "terraform-provider-openstack/openstack"
version = "~> 1.43.0"
}
}
}
provider "openstack" {
auth_url = "https://identity.openstack.com/v3"
}
resource "openstack_compute_instance_v2" "test-server" {
# ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment