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, 2020 in OpenStack by akhtar
• 38,260 points
1,062 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, 2020 by MD
• 95,460 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
• 58,020 points
1,608 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, 2020 in OpenStack by MD
• 95,460 points
802 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, 2020 in OpenStack by MD
• 95,460 points
2,889 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, 2020 in OpenStack by MD
• 95,460 points
1,201 views
0 votes
1 answer

'terraform' is not recognized as an internal or external command, operable program or batch file.

Hi@akhtar, You have to set an environment variable ...READ MORE

answered Jun 10, 2020 in Terraform by MD
• 95,460 points
29,077 views
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, 2020 in OpenStack by MD
• 95,460 points
1,046 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, 2020 in OpenStack by MD
• 95,460 points
968 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, 2020 in OpenStack by MD
• 95,460 points
2,730 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, 2020 in OpenStack by MD
• 95,460 points
956 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, 2020 in OpenStack by MD
• 95,460 points
1,686 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP