Created
February 22, 2021 17:55
-
-
Save recursivecodes/a580207795bf2a0b6d1467ba804c78fe to your computer and use it in GitHub Desktop.
demo.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "compartment_ocid" { | |
default = "ocid1.compartment.oc1..[redacted]" | |
} | |
variable "region" { | |
default = "us-phoenix-1" | |
} | |
variable "bucket_namespace" { | |
default = "toddrsharp" | |
} | |
variable "bucket_name" { | |
default = "resource_manager_demo_bucket" | |
} | |
provider "oci" { | |
region = var.region | |
} | |
resource "oci_objectstorage_bucket" "create_bucket" { | |
# required | |
compartment_id = var.compartment_ocid | |
name = var.bucket_name | |
namespace = var.bucket_namespace | |
# optional | |
access_type = "NoPublicAccess" # <---- updated from "ObjectRead" | |
} | |
output "new_bucket" { | |
value = oci_objectstorage_bucket.create_bucket | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment