Skip to content

Instantly share code, notes, and snippets.

@recursivecodes
Created February 22, 2021 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save recursivecodes/9891f4d486282565ef87c677f4738a1e to your computer and use it in GitHub Desktop.
Save recursivecodes/9891f4d486282565ef87c677f4738a1e to your computer and use it in GitHub Desktop.
apply.sh
$ terraform apply test    
oci_objectstorage_bucket.create_bucket: Creating...
oci_objectstorage_bucket.create_bucket: Creation complete after 1s [id=n/toddrsharp/b/my_new_bucket]
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
The state of your infrastructure has been saved to the path
below. This state is required to modify and destroy your
infrastructure, so keep it safe. To inspect the complete state
use the <code class="code-inline">terraform show</code> command.
State path: terraform.tfstate
Outputs:
new_bucket = {
  "access_type" = "ObjectRead"
  "approximate_count" = "0"
  "approximate_size" = "0"
  "bucket_id" = "ocid1.bucket.oc1.[redacted]"
  "compartment_id" = "ocid1.compartment.oc1..[redacted]"
  "created_by" = "ocid1.user.oc1..[redacted]"
  "defined_tags" = tomap({
    "Oracle-Tags.CreatedBy" = ""
    "Oracle-Tags.CreatedOn" = "2021-02-02T14:00:30.661Z"
  })
  "etag" = "b92e2a05-8d63-466b-afe3-0932605f0ce7"
  "freeform_tags" = tomap({})
  "id" = "n/toddrsharp/b/my_new_bucket"
  "is_read_only" = false
  "kms_key_id" = tostring(null)
  "metadata" = tomap(null) /* of string */
  "name" = "my_new_bucket"
  "namespace" = "toddrsharp"
  "object_events_enabled" = false
  "object_lifecycle_policy_etag" = tostring(null)
  "replication_enabled" = false
  "retention_rules" = toset([])
  "storage_tier" = "Standard"
  "time_created" = "2021-02-02 14:00:30.676 +0000 UTC"
  "timeouts" = null /* object */
  "versioning" = "Disabled"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment