Skip to content

Commit

Permalink
split out
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWoolfenden committed Apr 6, 2022
1 parent 7a7b957 commit 5406d83
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 22 deletions.
22 changes: 0 additions & 22 deletions terraform/oracle/bucket.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,5 @@ resource "oci_objectstorage_bucket" "secretsquirrel" {
storage_tier = "Standard"
}

resource "oci_identity_compartment" "tf-compartment" {
compartment_id = var.tenancy_id
description = "Compartment for Terraform resources."
name = "third-compartment"
enable_delete = true
}

data "oci_objectstorage_namespace" "example" {
compartment_id = oci_identity_compartment.tf-compartment.id
}

variable "tenancy_id" {
description = "value supplied by env var"
default = ""
}

provider "oci" {
#these to be provided by env vars
# private_key_path
# fingerprint
# tenancy_ocid
# user_ocid
region = "uk-london-1"
}
6 changes: 6 additions & 0 deletions terraform/oracle/compartment.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
resource "oci_identity_compartment" "tf-compartment" {
compartment_id = var.tenancy_id
description = "Compartment for Terraform resources."
name = "third-compartment"
enable_delete = true
}
3 changes: 3 additions & 0 deletions terraform/oracle/data.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
data "oci_objectstorage_namespace" "example" {
compartment_id = oci_identity_compartment.tf-compartment.id
}
8 changes: 8 additions & 0 deletions terraform/oracle/provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
provider "oci" {
#these to be provided by env vars
# private_key_path
# fingerprint
# tenancy_ocid
# user_ocid
region = "uk-london-1"
}
4 changes: 4 additions & 0 deletions terraform/oracle/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
variable "tenancy_id" {
description = "value supplied by env var"
default = ""
}

0 comments on commit 5406d83

Please sign in to comment.