You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

User:Majavah/Terraform: Difference between revisions

From Wikitech-static
Jump to navigation Jump to search
imported>Majavah
(starting a draft)
 
imported>Majavah
No edit summary
Line 9: Line 9:
== Setting up Terraform to work with Cloud VPS ==
== Setting up Terraform to work with Cloud VPS ==
=== Terraform provider ===
=== Terraform provider ===
Since Cloud VPS uses [[:w:OpenStack|OpenStack]], the standard [https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs OpenStack terraform provider] can be used to manage some resources. Note that  
Since Cloud VPS uses [[:w:OpenStack|OpenStack]], the standard [https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs OpenStack terraform provider] can be used to manage some resources. Note that not all OpenStack features are available on Cloud VPS.


There is also a custom Cloud VPS provider for managing Cloud VPS specific features.
There is also a [https://gitlab.wikimedia.org/repos/cloud/cloud-vps/terraform-cloudvps custom Cloud VPS provider] for managing Cloud VPS specific features.


=== Authentication ===
=== Authentication ===

Revision as of 16:08, 10 September 2022

Overview

This page contains instructions and best practices for using Terraform to manage Cloud VPS resources.

This page is heavily in progress and some parts of it requires features that are only available on the Cloud VPS testing environment (also known as codfw1dev). Please be in touch with Taavi if you're interested in being an early tester.

Setting up Terraform to work with Cloud VPS

Terraform provider

Since Cloud VPS uses OpenStack, the standard OpenStack terraform provider can be used to manage some resources. Note that not all OpenStack features are available on Cloud VPS.

There is also a custom Cloud VPS provider for managing Cloud VPS specific features.

Authentication

For security reasons, direct access to the Cloud VPS APIs using a developer account username and password is disabled. Instead, you should create an application credential to work with the APIs.

Example setup

Communication and support

Terraform is not currently officially supported by the Cloud VPS administration team as a first-class management tool. This page and related tooling (such as the Cloud VPS Terraform provider) are maintained by community volunteers, some of which also have administrative access to the Cloud VPS platform itself. If you need help, you can still use the cloud mailing list and related channels.