Code Monkey home page Code Monkey logo

terraform-otc's Introduction

Terraform examples for Open Telekom Cloud

Terraform is a provider agnostic framework to create and maintain infrastructure on public clouds. To interface with actual providers, Terraform comes with a modular architecture. To access the Open Telekom Cloud (OTC) the OpenStack provider can be used as the OTC implements a lot of OpenStack APIs. This project includes example projects for different use cases users can adopt as a starting point for their own installations.

Compatibility List

The examples in this repository are testet with:

  • Terraform: v0.11.7
  • OpenStack Provider: 1.6.0
Terraform Resource Status
Data Sources Working
Block Storage Working
Compute Working
DNS Working
Images Working
Networking Working
Load Balancer Working
Firewall Not working

Update

The floatingip association problem is fixed in the lastest version of Terraforms OpenStack provier (1.6.0). I've used this opprotunity to update all terraform examples to work with the newest version of Terraform (v0.11.7).

Description

There are different examples of Terraform scripts, each with a different purpose:

minimal

A minimal Terraform example with just the components to get a virtual machine running and connect to it with a public ip. If you are new to Terraform, this is the recommended example to start with.

dns

A bit more complex example, inlcuding handling of DNS and additional storage volumes. If you already worked with Terraform or you got the minimal example running and want to explore more, try this example.

objectstorage

An example on how to use the object storage that is included in OTC by utilizing the AWS provider.

provisioner

This based on the minimal example, showing the usage of Terraform's provisioner to execute commands and deploy files on the created instances.

An example on how to use the object storage included in OTC by utilizing the AWS provider.

full

A complete example, showing the full power of terraform. Components can be enabled and disabled via configuration file. This can be used as a template for production grade Terraform scripts.

modules

One strong argument for Terraform is the option to create reusable modules. This example shows how easy it is to create a full infrastructure deployment on the OTC by utilizing the Terraform modules provided in the terraform-otc-module repository.

Quick Start

  1. Install Terraform.
  2. Clone this repository via git clone https://github.com/OpenTelekomCloud/terraform-otc.git.
  3. Switch to terraform directory cd terraform-otc/minimal.
  4. Initialize Terraform provider via terraform init.
  5. Insert your login information into parameter.tvars (see next section).
  6. Check if everything looks fine with terraform plan -var-file=parameter.tvars.
  7. Apply the changes via terraform apply -var-file=parameter.tvars.

Customization

All variables that can be changed are documented in variables.tf. There are reasonable default values for most of the variables in this file. Every variable may be overwritten by passing command line arguments to the Terraform invocation, or simply by passing a parameter file via the -var-file command line parameter. All the examples provide a file parameters.tvars containing all necessary parameters for the example to work (for example your login information). You can add more parameters for any variable existing in the variables.tf file. For more information see Terraform variables documentation.

Authentication

To get the examples to work with you OTC account, you need three information bits:

  • username (user name from My Credential)
  • password (your login password)
  • domain_name (Domain Name from My Credential)

Refer to the OTC Helpcenter documentation article to find authentication details:

How Do I Modify My Credential Information?

How Do I Manage Access Keys?

My Credential

terraform-otc's People

Contributors

andlada avatar crapworks avatar hodigy avatar nils-magnus avatar zsoltn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

terraform-otc's Issues

Terraform tries to change network settings of running compute instances if another is added

Whenever I increase "instance_count" in the minimal example, terraform suggests that all compute instances should be "destroyed and recreated" and the fails applying this change.

I don't understand why running instances have to be destroyed and recreated and this should not fail.

Terraform v0.11.2 + provider.openstack v1.2.0

terraform apply -var-file=parameter.tvars

Warning: openstack_networking_router_v2.router: "external_gateway": [DEPRECATED] use external_network_id instead



openstack_compute_secgroup_v2.secgrp_web: Refreshing state... (ID: 77e7d61b-2170-41da-8b7c-bf562b3f904b)
openstack_networking_network_v2.network: Refreshing state... (ID: 02e2aef9-fb89-47e5-9f9a-231e533a9e70)
openstack_compute_keypair_v2.keypair: Refreshing state... (ID: terraform-terraform_key)
data.openstack_networking_network_v2.extnet: Refreshing state...
openstack_networking_router_v2.router: Refreshing state... (ID: d79b160f-3755-482a-b700-3ee4aa374ddc)
openstack_networking_subnet_v2.subnet: Refreshing state... (ID: c525dc9b-0b95-4978-9e17-9896f76f1d84)
openstack_networking_port_v2.network_port[0]: Refreshing state... (ID: 66d844bc-bba8-4c26-8e5b-13e0e55b90a9)
openstack_networking_port_v2.network_port[1]: Refreshing state... (ID: 43f1abbd-8cb3-4248-a66d-c14d6177b2aa)
openstack_networking_router_interface_v2.interface: Refreshing state... (ID: 9b11f164-c09e-4319-9298-b5823ad2babb)
openstack_compute_instance_v2.webserver[1]: Refreshing state... (ID: 5b4f822e-a1df-40c6-96b2-1b56a4245de4)
openstack_compute_instance_v2.webserver[0]: Refreshing state... (ID: c473ee3e-0ee2-4114-b982-f5600c3b8a99)
openstack_networking_floatingip_v2.fip[0]: Refreshing state... (ID: 6ae22b26-dd1b-433e-9d35-c75239813c61)
openstack_networking_floatingip_v2.fip[1]: Refreshing state... (ID: 80727eb4-243c-4373-b6c3-3c76b7ef2198)

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  + create
  ~ update in-place
-/+ destroy and then create replacement

Terraform will perform the following actions:

-/+ openstack_compute_instance_v2.webserver[0] (new resource required)
      id:                            "c473ee3e-0ee2-4114-b982-f5600c3b8a99" => <computed> (forces new resource)
      access_ip_v4:                  "192.168.10.114" => <computed>
      access_ip_v6:                  "" => <computed>
      all_metadata.%:                "0" => <computed>
      availability_zone:             "eu-de-02" => <computed>
      flavor_id:                     "normal1" => <computed>
      flavor_name:                   "s1.medium" => "s1.medium"
      force_delete:                  "false" => "false"
      image_id:                      "4f3d2811-96f2-4706-ac19-3a022fa37281" => <computed>
      image_name:                    "Standard_Debian_9_latest" => "Standard_Debian_9_latest"
      key_pair:                      "terraform-terraform_key" => "terraform-terraform_key"
      name:                          "terraform-webserver01" => "terraform-webserver01"
      network.#:                     "1" => "1"
      network.0.access_network:      "true" => "true"
      network.0.fixed_ip_v4:         "192.168.10.114" => <computed>
      network.0.fixed_ip_v6:         "" => <computed>
      network.0.floating_ip:         "" => <computed>
      network.0.mac:                 "fa:16:3e:75:45:e9" => <computed>
      network.0.name:                "terraform-network" => <computed>
      network.0.port:                "66d844bc-bba8-4c26-8e5b-13e0e55b90a9" => "${element(openstack_networking_port_v2.network_port.*.id, count.index)}" (forces new resource)
      network.0.uuid:                "02e2aef9-fb89-47e5-9f9a-231e533a9e70" => <computed>
      region:                        "" => <computed>
      security_groups.#:             "1" => <computed>
      stop_before_destroy:           "false" => "false"

-/+ openstack_compute_instance_v2.webserver[1] (new resource required)
      id:                            "5b4f822e-a1df-40c6-96b2-1b56a4245de4" => <computed> (forces new resource)
      access_ip_v4:                  "192.168.10.78" => <computed>
      access_ip_v6:                  "" => <computed>
      all_metadata.%:                "0" => <computed>
      availability_zone:             "eu-de-02" => <computed>
      flavor_id:                     "normal1" => <computed>
      flavor_name:                   "s1.medium" => "s1.medium"
      force_delete:                  "false" => "false"
      image_id:                      "4f3d2811-96f2-4706-ac19-3a022fa37281" => <computed>
      image_name:                    "Standard_Debian_9_latest" => "Standard_Debian_9_latest"
      key_pair:                      "terraform-terraform_key" => "terraform-terraform_key"
      name:                          "terraform-webserver02" => "terraform-webserver02"
      network.#:                     "1" => "1"
      network.0.access_network:      "true" => "true"
      network.0.fixed_ip_v4:         "192.168.10.78" => <computed>
      network.0.fixed_ip_v6:         "" => <computed>
      network.0.floating_ip:         "" => <computed>
      network.0.mac:                 "fa:16:3e:f2:cd:5e" => <computed>
      network.0.name:                "terraform-network" => <computed>
      network.0.port:                "43f1abbd-8cb3-4248-a66d-c14d6177b2aa" => "${element(openstack_networking_port_v2.network_port.*.id, count.index)}" (forces new resource)
      network.0.uuid:                "02e2aef9-fb89-47e5-9f9a-231e533a9e70" => <computed>
      region:                        "" => <computed>
      security_groups.#:             "1" => <computed>
      stop_before_destroy:           "false" => "false"

  + openstack_compute_instance_v2.webserver[2]
      id:                            <computed>
      access_ip_v4:                  <computed>
      access_ip_v6:                  <computed>
      all_metadata.%:                <computed>
      availability_zone:             <computed>
      flavor_id:                     <computed>
      flavor_name:                   "s1.medium"
      force_delete:                  "false"
      image_id:                      <computed>
      image_name:                    "Standard_Debian_9_latest"
      key_pair:                      "terraform-terraform_key"
      name:                          "terraform-webserver03"
      network.#:                     "1"
      network.0.access_network:      "true"
      network.0.fixed_ip_v4:         <computed>
      network.0.fixed_ip_v6:         <computed>
      network.0.floating_ip:         <computed>
      network.0.mac:                 <computed>
      network.0.name:                <computed>
      network.0.port:                "${element(openstack_networking_port_v2.network_port.*.id, count.index)}"
      network.0.uuid:                <computed>
      region:                        <computed>
      security_groups.#:             <computed>
      stop_before_destroy:           "false"

  ~ openstack_networking_floatingip_v2.fip[0]
      port_id:                       "66d844bc-bba8-4c26-8e5b-13e0e55b90a9" => "${element(openstack_networking_port_v2.network_port.*.id, count.index)}"

  ~ openstack_networking_floatingip_v2.fip[1]
      port_id:                       "43f1abbd-8cb3-4248-a66d-c14d6177b2aa" => "${element(openstack_networking_port_v2.network_port.*.id, count.index)}"

  + openstack_networking_floatingip_v2.fip[2]
      id:                            <computed>
      address:                       <computed>
      fixed_ip:                      <computed>
      pool:                          "admin_external_net"
      port_id:                       "${element(openstack_networking_port_v2.network_port.*.id, count.index)}"
      region:                        <computed>
      tenant_id:                     <computed>

  + openstack_networking_port_v2.network_port[2]
      id:                            <computed>
      admin_state_up:                "true"
      all_fixed_ips.#:               <computed>
      all_security_group_ids.#:      <computed>
      device_id:                     <computed>
      device_owner:                  <computed>
      fixed_ip.#:                    "1"
      fixed_ip.0.subnet_id:          "c525dc9b-0b95-4978-9e17-9896f76f1d84"
      mac_address:                   <computed>
      network_id:                    "02e2aef9-fb89-47e5-9f9a-231e533a9e70"
      region:                        <computed>
      security_group_ids.#:          "1"
      security_group_ids.2892412908: "77e7d61b-2170-41da-8b7c-bf562b3f904b"
      tenant_id:                     <computed>


Plan: 5 to add, 2 to change, 2 to destroy.

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

openstack_compute_instance_v2.webserver[1]: Destroying... (ID: 5b4f822e-a1df-40c6-96b2-1b56a4245de4)
openstack_compute_instance_v2.webserver[0]: Destroying... (ID: c473ee3e-0ee2-4114-b982-f5600c3b8a99)
openstack_networking_port_v2.network_port[2]: Creating...
  admin_state_up:                "" => "true"
  all_fixed_ips.#:               "" => "<computed>"
  all_security_group_ids.#:      "" => "<computed>"
  device_id:                     "" => "<computed>"
  device_owner:                  "" => "<computed>"
  fixed_ip.#:                    "" => "1"
  fixed_ip.0.subnet_id:          "" => "c525dc9b-0b95-4978-9e17-9896f76f1d84"
  mac_address:                   "" => "<computed>"
  network_id:                    "" => "02e2aef9-fb89-47e5-9f9a-231e533a9e70"
  region:                        "" => "<computed>"
  security_group_ids.#:          "" => "1"
  security_group_ids.2892412908: "" => "77e7d61b-2170-41da-8b7c-bf562b3f904b"
  tenant_id:                     "" => "<computed>"
openstack_networking_port_v2.network_port[2]: Creation complete after 7s (ID: bdb2c226-beca-49c9-8952-50514817062c)
openstack_compute_instance_v2.webserver[2]: Creating...
  access_ip_v4:             "" => "<computed>"
  access_ip_v6:             "" => "<computed>"
  all_metadata.%:           "" => "<computed>"
  availability_zone:        "" => "<computed>"
  flavor_id:                "" => "<computed>"
  flavor_name:              "" => "s1.medium"
  force_delete:             "" => "false"
  image_id:                 "" => "<computed>"
  image_name:               "" => "Standard_Debian_9_latest"
  key_pair:                 "" => "terraform-terraform_key"
  name:                     "" => "terraform-webserver03"
  network.#:                "" => "1"
  network.0.access_network: "" => "true"
  network.0.fixed_ip_v4:    "" => "<computed>"
  network.0.fixed_ip_v6:    "" => "<computed>"
  network.0.floating_ip:    "" => "<computed>"
  network.0.mac:            "" => "<computed>"
  network.0.name:           "" => "<computed>"
  network.0.port:           "" => "bdb2c226-beca-49c9-8952-50514817062c"
  network.0.uuid:           "" => "<computed>"
  region:                   "" => "<computed>"
  security_groups.#:        "" => "<computed>"
  stop_before_destroy:      "" => "false"
openstack_compute_instance_v2.webserver.1: Still destroying... (ID: 5b4f822e-a1df-40c6-96b2-1b56a4245de4, 10s elapsed)
openstack_compute_instance_v2.webserver.0: Still destroying... (ID: c473ee3e-0ee2-4114-b982-f5600c3b8a99, 10s elapsed)
openstack_compute_instance_v2.webserver.2: Still creating... (10s elapsed)
openstack_compute_instance_v2.webserver.1: Still destroying... (ID: 5b4f822e-a1df-40c6-96b2-1b56a4245de4, 20s elapsed)
openstack_compute_instance_v2.webserver.0: Still destroying... (ID: c473ee3e-0ee2-4114-b982-f5600c3b8a99, 20s elapsed)
openstack_compute_instance_v2.webserver[1]: Destruction complete after 22s
openstack_compute_instance_v2.webserver[1]: Creating...
  access_ip_v4:             "" => "<computed>"
  access_ip_v6:             "" => "<computed>"
  all_metadata.%:           "" => "<computed>"
  availability_zone:        "" => "<computed>"
  flavor_id:                "" => "<computed>"
  flavor_name:              "" => "s1.medium"
  force_delete:             "" => "false"
  image_id:                 "" => "<computed>"
  image_name:               "" => "Standard_Debian_9_latest"
  key_pair:                 "" => "terraform-terraform_key"
  name:                     "" => "terraform-webserver02"
  network.#:                "" => "1"
  network.0.access_network: "" => "true"
  network.0.fixed_ip_v4:    "" => "<computed>"
  network.0.fixed_ip_v6:    "" => "<computed>"
  network.0.floating_ip:    "" => "<computed>"
  network.0.mac:            "" => "<computed>"
  network.0.name:           "" => "<computed>"
  network.0.port:           "" => "43f1abbd-8cb3-4248-a66d-c14d6177b2aa"
  network.0.uuid:           "" => "<computed>"
  region:                   "" => "<computed>"
  security_groups.#:        "" => "<computed>"
  stop_before_destroy:      "" => "false"
openstack_compute_instance_v2.webserver[0]: Destruction complete after 22s
openstack_compute_instance_v2.webserver[0]: Creating...
  access_ip_v4:             "" => "<computed>"
  access_ip_v6:             "" => "<computed>"
  all_metadata.%:           "" => "<computed>"
  availability_zone:        "" => "<computed>"
  flavor_id:                "" => "<computed>"
  flavor_name:              "" => "s1.medium"
  force_delete:             "" => "false"
  image_id:                 "" => "<computed>"
  image_name:               "" => "Standard_Debian_9_latest"
  key_pair:                 "" => "terraform-terraform_key"
  name:                     "" => "terraform-webserver01"
  network.#:                "" => "1"
  network.0.access_network: "" => "true"
  network.0.fixed_ip_v4:    "" => "<computed>"
  network.0.fixed_ip_v6:    "" => "<computed>"
  network.0.floating_ip:    "" => "<computed>"
  network.0.mac:            "" => "<computed>"
  network.0.name:           "" => "<computed>"
  network.0.port:           "" => "66d844bc-bba8-4c26-8e5b-13e0e55b90a9"
  network.0.uuid:           "" => "<computed>"
  region:                   "" => "<computed>"
  security_groups.#:        "" => "<computed>"
  stop_before_destroy:      "" => "false"
openstack_compute_instance_v2.webserver.2: Still creating... (20s elapsed)
openstack_compute_instance_v2.webserver.1: Still creating... (10s elapsed)
openstack_compute_instance_v2.webserver.0: Still creating... (10s elapsed)
openstack_compute_instance_v2.webserver.2: Still creating... (30s elapsed)
openstack_compute_instance_v2.webserver.1: Still creating... (20s elapsed)
openstack_compute_instance_v2.webserver.0: Still creating... (20s elapsed)
openstack_compute_instance_v2.webserver.2: Still creating... (40s elapsed)
openstack_compute_instance_v2.webserver.1: Still creating... (30s elapsed)
openstack_compute_instance_v2.webserver.0: Still creating... (30s elapsed)
openstack_compute_instance_v2.webserver.2: Still creating... (50s elapsed)
openstack_compute_instance_v2.webserver.1: Still creating... (40s elapsed)
openstack_compute_instance_v2.webserver.2: Still creating... (1m0s elapsed)
openstack_compute_instance_v2.webserver.2: Still creating... (1m10s elapsed)
openstack_compute_instance_v2.webserver.2: Still creating... (1m20s elapsed)
openstack_compute_instance_v2.webserver.2: Still creating... (1m30s elapsed)
openstack_compute_instance_v2.webserver[2]: Creation complete after 1m37s (ID: 50d8d14e-e06d-4d9a-9aa8-c3d9ec40c949)

Error: Error applying plan:

2 error(s) occurred:

* openstack_compute_instance_v2.webserver[0]: 1 error(s) occurred:

* openstack_compute_instance_v2.webserver.0: Error trying to get network information from the Network API: Could not find any matching port for port 66d844bc-bba8-4c26-8e5b-13e0e55b90a9
* openstack_compute_instance_v2.webserver[1]: 1 error(s) occurred:

* openstack_compute_instance_v2.webserver.1: Error trying to get network information from the Network API: Could not find any matching port for port 43f1abbd-8cb3-4248-a66d-c14d6177b2aa

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.

Got error when creating an instance on OTC

I was trying to deploy infrastructures with the code you provided, just replaced my credentials, but I got this error:

openstack_networking_network_v2.tf-net: Creating...
  admin_state_up: "" => "true"
  name:           "" => "myvpc2"
  shared:         "" => "<computed>"
  tenant_id:      "" => "<computed>"
openstack_compute_secgroup_v2.secgroup_1: Creating...
  description:                  "" => "my security group"
  name:                         "" => "my_secgroup"
  rule.#:                       "0" => "1"
  rule.836640770.cidr:          "" => "0.0.0.0/0"
  rule.836640770.from_group_id: "" => ""
  rule.836640770.from_port:     "" => "22"
  rule.836640770.id:            "" => "<computed>"
  rule.836640770.ip_protocol:   "" => "tcp"
  rule.836640770.self:          "" => "false"
  rule.836640770.to_port:       "" => "22"
openstack_compute_secgroup_v2.secgroup_1: Creation complete
openstack_networking_network_v2.tf-net: Creation complete
openstack_networking_subnet_v2.tf-subnet: Creating...
  cidr:        "" => "10.7.0.0/16"
  enable_dhcp: "" => "true"
  gateway_ip:  "" => "10.7.0.1"
  ip_version:  "" => "4"
  name:        "" => "tf-subnet"
  network_id:  "" => "3e620335-87a0-4fd8-98d5-85bc391d4921"
  tenant_id:   "" => "<computed>"
openstack_networking_subnet_v2.tf-subnet: Creation complete
openstack_networking_port_v2.port_1: Creating...
  admin_state_up:                "" => "true"
  device_id:                     "" => "<computed>"
  device_owner:                  "" => "<computed>"
  fixed_ip.#:                    "" => "1"
  fixed_ip.0.ip_address:         "" => "<computed>"
  fixed_ip.0.subnet_id:          "" => "3edfe536-90ae-4b45-bb64-7d7b8b003237"
  mac_address:                   "" => "<computed>"
  name:                          "" => "port_1"
  network_id:                    "" => "3e620335-87a0-4fd8-98d5-85bc391d4921"
  security_group_ids.#:          "" => "1"
  security_group_ids.1986013307: "" => "8d61fc05-3239-4c43-9bc9-83e0e917dbfc"
  tenant_id:                     "" => "<computed>"
openstack_networking_port_v2.port_1: Creation complete
openstack_compute_instance_v2.tf-instance: Creating...
  access_ip_v4:               "" => "<computed>"
  access_ip_v6:               "" => "<computed>"
  flavor_id:                  "" => "<computed>"
  flavor_name:                "" => "m1.medium"
  image_id:                   "" => "<computed>"
  image_name:                 "" => "Standard_CentOS_7.2_latest"
  name:                       "" => "tf-instance"
  network.#:                  "" => "1"
  network.0.access_network:   "" => "false"
  network.0.fixed_ip_v4:      "" => "<computed>"
  network.0.fixed_ip_v6:      "" => "<computed>"
  network.0.floating_ip:      "" => "<computed>"
  network.0.mac:              "" => "<computed>"
  network.0.name:             "" => "<computed>"
  network.0.port:             "" => "3767fc6e-e92f-4942-bb5a-d543b3eac9bd"
  network.0.uuid:             "" => "<computed>"
  security_groups.#:          "" => "1"
  security_groups.1986013307: "" => "8d61fc05-3239-4c43-9bc9-83e0e917dbfc"
  stop_before_destroy:        "" => "false"
  volume.#:                   "" => "<computed>"
openstack_compute_instance_v2.tf-instance: Still creating... (10s elapsed)
openstack_compute_instance_v2.tf-instance: Still creating... (20s elapsed)
openstack_compute_instance_v2.tf-instance: Still creating... (30s elapsed)
openstack_compute_instance_v2.tf-instance: Still creating... (40s elapsed)
openstack_compute_instance_v2.tf-instance: Still creating... (50s elapsed)
openstack_compute_instance_v2.tf-instance: Still creating... (1m0s elapsed)
openstack_compute_instance_v2.tf-instance: Still creating... (1m10s elapsed)
openstack_compute_instance_v2.tf-instance: Still creating... (1m20s elapsed)
openstack_compute_instance_v2.tf-instance: Still creating... (1m30s elapsed)
openstack_compute_instance_v2.tf-instance: Still creating... (1m40s elapsed)
Error applying plan:

1 error(s) occurred:

* openstack_compute_instance_v2.tf-instance: Error waiting for instance (698ac43c-36f0-4ddd-a17e-a8848bf8d4da) to become ready: unexpected state 'ERROR', wanted target 'ACTIVE'. last error: %!s(<nil>)

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.

Everything was fine except the instance, did you meet this error before? or do you have any solution?

How to deploy a docker container to otc?

Hi there,

i am trying to deploy an infrastructure with docker containers to otc.
I found several resources in the internet, but all i know so far is that it should be possible.
It is like swimming in a sea of buzzwords.

An example of how to deploy a docker container with terraform to otc would
help me out. Also may I am not the first person looking for this.

Could you please provide an example of how to deploy a docker container to otc via terraform?

Error while using SSH provisioner

Hi,
I am trying out ssh provisioning through ssh agent.
$ eval $(ssh-agent -s)
$ ssh-add ~/.ssh/id_rsa

But constantly getting an error
ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain

Cannot import existing subnet with ID displayed on console

Hi,
I am not able to import a subnet with a ID which is displayed on otc console or CLI. What I found is, when you create a subnet through terraform, terraform output displays entirely different ID from what we see it from console or CLI. And I can import with a ID that is displayed in terraform output.

Thanks,

terraform crashes at first plan (not apply)

Hi, my opentelekomcloud plugin with terraform crashes these days. it worked at one point. i also submitted that crash to terraform, but i have the feeling, the otc plugin is the problem, here my description:

$ terraform -v
Terraform v0.11.7
+ provider.openstack v1.7.0

Terraform Configuration Files

my configuration files are in http://gbks.net/tf.zip (about 20kb size) without credentials of course :>
i use the opentelekom cloud plugin. i am not entirely sure if this is the right bugtracker or if i should go to opentelekomcloud plugin..

Debug Output

after terraform init ; the call for terraform apply fails, the tracelogs for it are in http://gbks.net/tracelogs.zip

Crash Output

crash.log is in the aforementioned http://gbks.net/tf.zip

Expected Behavior

i know that the configuration works. i did it at one time.

Actual Behavior

crash

Steps to Reproduce

  1. use my config and have correct credentials for OTC
  2. terraform init
  3. terraform plan
  4. crash comes.

Additional Context

I use the opentelekomcloud

provider.openstack: Authentication failed

Hello,

I'm trying to use terraform for OpenTelekomCloud infrastructure management,
got auth issue, on primary user with id 14975922 OTC-EU-DE-00000000001000026559

provider.openstack: Authentication failed

After that, I've created a new user with username like testuser, changed username and password values in terraform variables accordingly, all works fine.

So, the question, is it intended behaivour, or some misconfiguration?

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.