diff --git a/index.html b/index.html index 3d4a7e5..e4bd34d 100644 --- a/index.html +++ b/index.html @@ -206,20 +206,23 @@
terraform {
required_providers {
- aws = { source = "hashicorp/aws", version = "~> 5.0" }
+ openstack = { source = "terraform-provider-openstack/openstack", version = "~> 3.0" }
+ ovh = { source = "ovh/ovh", version = "~> 1.0" }
}
}
-provider "aws" { region = "eu-west-3" }
-
-resource "aws_instance" "web" {
- ami = "ami-0c55b159cbfafe1f0"
- instance_type = "t3.micro"
- tags = { Name = "finistdevs-web" }
+resource "openstack_compute_instance_v2" "web" {
+ name = "finistdevs-web"
+ image_name = "Debian 12"
+ flavor_name = "b3-8"
+ network { name = "Ext-Net" }
}
-output "public_ip" {
- value = aws_instance.web.public_ip
+resource "ovh_domain_zone_record" "web" {
+ zone = "example.com"
+ subdomain = "finistdevs"
+ fieldtype = "A"
+ target = openstack_compute_instance_v2.web.access_ip_v4
}