Skip to content

Commit

Permalink
oci lifecycle depends on bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
chadgeary committed Feb 6, 2022
1 parent 201114f commit a7bca01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion etc/oci-with-cloudoffice/oci-cb-storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ resource "oci_objectstorage_object_lifecycle_policy" "ph-bucket-lifecycle" {
time_amount = 30
time_unit = "DAYS"
}
depends_on = [oci_identity_policy.ph-id-storageobject-policy]
depends_on = [oci_identity_policy.ph-id-storageobject-policy, oci_objectstorage_bucket.ph-bucket]
}

2 changes: 1 addition & 1 deletion oci/oci-storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ resource "oci_objectstorage_object_lifecycle_policy" "ph-bucket-lifecycle" {
time_amount = 30
time_unit = "DAYS"
}
depends_on = [oci_identity_policy.ph-id-storageobject-policy]
depends_on = [oci_identity_policy.ph-id-storageobject-policy, oci_objectstorage_bucket.ph-bucket]
}

0 comments on commit a7bca01

Please sign in to comment.