Added required versions

This commit is contained in:
Michele Cereda
2023-02-11 14:13:06 +01:00
parent ab4a45ba65
commit 8196f366a7
3 changed files with 21 additions and 1 deletions

View File

@@ -10,5 +10,5 @@ source_id = "ocid1.image.oc1.eu-amsterdam-1.aaaaaaaavmra3s4va4fqd4vlcrqc5v5jyqov
ssh_authorized_keys = <<-EOT
ssh-ed25519 key-1 comment
ssh-ed25519 key-n comment
ssh-ed25519 key-N comment
EOT

View File

@@ -1,3 +1,14 @@
terraform {
required_version = "1.2.9"
required_providers {
oci = {
source = "oracle/oci"
version = "4.107.0"
}
}
}
# See https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/core_vcn
resource "oci_core_vcn" "this" {
compartment_id = var.compartment_id

View File

@@ -1,9 +1,18 @@
####################
# Oracle Cloud Account
####################
variable "availability_domain" {
type = string
}
variable "compartment_id" {
type = string
}
####################
# Instance
####################
variable "shape" {
type = string
default = "VM.Standard.A1.Flex"