s3.tf 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # -------------
  2. # S3 Bucket
  3. # -------------
  4. resource "aws_s3_bucket" "bucket" {
  5. bucket = "nuxeo-${sha1("${var.stack_name}")}"
  6. acl = "private"
  7. tags {
  8. Name = "nuxeo-${sha1("${var.stack_name}")}"
  9. billing-category = "customers"
  10. billing-subcategory = "${var.stack_name}"
  11. role = "nuxeo.bucket.binstore"
  12. }
  13. }
  14. resource "aws_s3_bucket" "bucket_backup" {
  15. bucket = "nuxeo-backup-${sha1("${var.stack_name}")}"
  16. acl = "private"
  17. tags {
  18. Name = "nuxeo-backup-${sha1("${var.stack_name}")}"
  19. billing-category = "customers"
  20. billing-subcategory = "${var.stack_name}"
  21. role = "nuxeo.bucket.backup"
  22. }
  23. }
  24. resource "aws_s3_bucket" "bucket_logs" {
  25. bucket = "nuxeo-logs-${sha1("${var.stack_name}")}"
  26. acl = "private"
  27. tags {
  28. Name = "nuxeo-logs-${sha1("${var.stack_name}")}"
  29. billing-category = "customers"
  30. billing-subcategory = "${var.stack_name}"
  31. role = "nuxeo.bucket.logs"
  32. }
  33. }