module "abacus_airflow_s3_bucket" {
  # checkov:skip=CKV2_AWS_67:S3 bucket is encrypted with AWS managed key
  source = "git@github.com:theorchard/terraform-s3.git//modules/s3_bucket?ref=3.12.1"

  env                 = var.environment
  bucket_name         = var.bucket_name
  application_family  = var.application_family
  s3_read_only_policy = true
  kms_key_enabled     = false
  apply_server_side_encryption_by_default = {
    sse_algorithm = "AES256"
  }
}

#############################################
########### Abacus airflow 2.9.2 ############
#############################################
module "prod_abacus_airflow_s3_bucket" {
  # checkov:skip=CKV2_AWS_67:S3 bucket is encrypted with AWS managed key
  source              = "git@github.com:theorchard/terraform-s3.git//modules/s3_bucket?ref=3.12.1"
  env                 = var.environment
  bucket_name         = var.abacus_airflow_bucket_name
  application_family  = var.application_family
  s3_read_only_policy = true
  kms_key_enabled     = false
  apply_server_side_encryption_by_default = {
    sse_algorithm = "AES256"
  }
}
