How to connect OpenStack Cloud with Terraform?

0 votes

Hi Guys,

I am new in Terraform. I have my OpenStack Cloud in my system. I want to connect OpenStack with Terraform. How can I do that?

Jul 5 in OpenStack by akhtar
• 17,690 points
42 views

1 answer to this question.

0 votes

Hi@akhtar,

To connect any Cloud, Terraform has a keyword named provider. You need to use this keyword to connect your OpenStack Cloud. You can use the below-given code.

provider "openstack" {
  user_name   = "demo"
  tenant_name = "demo"
  password    = "647a07963bf74375"
  auth_url    = "openstack_url"
  region      = "RegionOne"
}

Copy this code in a file with .tf extension and run the below-given command.

$ terraform init
$ terraform apply -auto-approve

I hope this will give you some ideas.

answered Jul 5 by MD
• 40,740 points

Related Questions In OpenStack

0 votes
1 answer

How to assign public IP to OpenStack instances?

You can have a look at this ...READ MORE

answered Feb 25, 2019 in OpenStack by Priyaj
• 57,550 points
124 views
0 votes
1 answer

How to get OpenStack software for installation?

Hi@akhtar, There are two ways to get OpenStack ...READ MORE

answered Mar 13 in OpenStack by MD
• 40,740 points
41 views
0 votes
1 answer

How to create an image in OpenStack?

Hi@akhtar, Actually this is the fun in OpenStack. ...READ MORE

answered Mar 16 in OpenStack by MD
• 40,740 points
220 views
0 votes
1 answer

How to update an image properties in OpenStack?

Hi@akhtar, You can update your image properties. Follow ...READ MORE

answered Mar 16 in OpenStack by MD
• 40,740 points
42 views
0 votes
1 answer
0 votes
1 answer

How to launch one instance in OpenStack from CLI?

Hi@akhtar, You need to login to your OpenStack ...READ MORE

answered Jul 5 in OpenStack by MD
• 40,740 points
43 views
0 votes
1 answer

How to set static IP in Linux RedHat?

Hi@akhtar, To set a static ip in Red ...READ MORE

answered Feb 24 in OpenStack by MD
• 40,740 points
145 views
0 votes
1 answer

How do I install OpenStack in RHEL 7/CentOS 7?

Hi@akhtar, Follow the below steps to install OpenStack. IP ...READ MORE

answered Mar 13 in OpenStack by MD
• 40,740 points
396 views
0 votes
1 answer

How to login with demo account in OpenStack from CLI?

Hi@akhtar, Packstack program will generate to file when ...READ MORE

answered Jul 3 in OpenStack by MD
• 40,740 points
34 views
0 votes
1 answer

How to launch an instance in OpenStack using Terraform?

Hi@akhtar, You need to use openstack_compute_instance_v2 resource to launch ...READ MORE

answered Jul 5 in OpenStack by MD
• 40,740 points
38 views