Comments (3)
I've hit the same thing.
Instance is the main part of all the cloud.
from terraform-otc.
hi, I fixed it by changing the line 1290 of builtin/providers/openstack/resource_openstack_compute_instance_v2.go
from
imageId := server.Image["id"].(string)
to
imageId := server.ID
see my repo: https://github.com/cricketlong/terraform
example code:
provider "openstack" {
user_name = "<your username>"
password = "<your password>"
tenant_name = "eu-de"
domain_name = "OTC00000000001000000XXX"
auth_url = "https://iam.eu-de.otc.t-systems.com:443/v3"
}
resource "openstack_compute_keypair_v2" "test" {
name = "testkey0"
public_key = "<your public key>"
}
resource "openstack_compute_instance_v2" "test" {
name = "lamp"
region = "eu-de"
flavor_name = "s1.medium"
image_id = "de96e213-ba92-4ed9-af21-3edc43c6a4ad"
admin_pass = "password123$"
key_pair = "${openstack_compute_keypair_v2.test.name}"
network {
uuid = "dd834465-98f1-47ab-8da0-8f8465bd24b3"
access_network = true
}
}
from terraform-otc.
Please use the 1.1 code.
from terraform-otc.
Related Issues (10)
- Use of existing VPC and subnet HOT 5
- Error while using SSH provisioner HOT 5
- Cannot import existing subnet with ID displayed on console HOT 2
- Terraform tries to change network settings of running compute instances if another is added HOT 1
- How to deploy a docker container to otc? HOT 8
- provider.openstack: Authentication failed HOT 1
- terraform crashes at first plan (not apply) HOT 2
- issues integrating VPC with compute instance or network resource with elastic loadbalancer(classic)
- variables.tf is incomplete HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-otc.