Last active
July 14, 2021 19:27
-
-
Save Binsabbar/718624be339ff7426bacbe786b14d33a to your computer and use it in GitHub Desktop.
part 3: creating object storage buckets using oci module
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
module "buckets" { | |
source = "github.com/Binsabbar/oracle-cloud-terraform//modules/object-storage?ref=v1.0" | |
buckets = { | |
"public-bucket" = { | |
name = "a-bucket" | |
compartment_id = var.tenancy_ocid | |
storage_tier = "Standard" | |
is_public = true | |
optionals = { | |
object_events_enabled = false | |
versioning_enabled = true | |
} | |
} | |
"private-bucket" = { | |
name = "c-bucket" | |
compartment_id = var.tenancy_ocid | |
storage_tier = "Standard" | |
is_public = false | |
optionals = { | |
versioning_enabled = true | |
} | |
} | |
} | |
} |
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
output "buckets" { | |
value = module.buckets.buckets | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment