-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Object Storage] fix: fix payload bucket lifecycle
- Loading branch information
hoanglm
committed
Nov 15, 2024
1 parent
a997f3a
commit ae40d24
Showing
10 changed files
with
119 additions
and
38 deletions.
There are no files selected for viewing
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
4 changes: 2 additions & 2 deletions
4
examples/data-sources/fptcloud_object_storage/datasource_list_bucket_static_website.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
data "fptcloud_object_storage_static_website" "example_bucket_static_website" { | ||
data "fptcloud_object_storage_bucket_static_website" "example_bucket_static_website" { | ||
vpc_id = "your_vpc_id" | ||
region_name = "your_region_name" | ||
bucket_name = "your_bucket_name" | ||
} | ||
|
||
output "bucket_static_website" { | ||
value = data.fptcloud_object_storage_static_website.example_bucket_static_website | ||
value = data.fptcloud_object_storage_bucket_static_website.example_bucket_static_website | ||
} |
12 changes: 12 additions & 0 deletions
12
examples/resources/fptcloud_object_storage/resource_bucket_lifecycle.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
resource "fptcloud_object_storage_bucket_lifecycle" "example_bucket_lifecycle" { | ||
bucket_name = "your_bucket_name" | ||
region_name = "your_region_name" | ||
vpc_id = "your_vpc_id" | ||
|
||
# Option 1: Load policy from file | ||
life_cycle_rule_file = file("${path.module}/your_bucket_lifecycle.json") | ||
} | ||
|
||
output "bucket_lifecycle" { | ||
value = fptcloud_object_storage_bucket_lifecycle.example_bucket_lifecycle | ||
} |
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
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
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
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
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
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
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