kubevela.github.io/docs/end-user/components/cloud-services/terraform/aws-s3-log-storage.md

5.6 KiB

title
AWS S3-LOG-STORAGE

Description

This module creates an S3 bucket suitable for receiving logs from other AWS services such as S3, CloudFront, and CloudTrail

Specification

Properties

Name Description Type Required Default
ignore_public_acls Set to false to disable the ignoring of public access lists on the bucket bool false
restrict_public_buckets Set to false to disable the restricting of making the bucket public bool false
allow_ssl_requests_only Set to true to require requests to use Secure Socket Layer (HTTPS/SSL). This will explicitly deny access to HTTP requests bool false
bucket_notifications_prefix Prefix filter. Used to manage object notifications string false
lifecycle_configuration_rules A list of S3 bucket v2 lifecycle rules, as specified in terraform-aws-s3-bucket"\nThese rules are not affected by the deprecated lifecycle_rule_enabled flag.\nNOTE: Unless you also set lifecycle_rule_enabled = false you will also get the default deprecated rules set on your bucket.\n list(object({\n enabled = bool\n id = string\n\n abort_incomplete_multipart_upload_days = number\n\n # filter_and is the and configuration block inside the filter configuration.\n # This is the only place you should specify a prefix.\n filter_and = any\n expiration = any\n transition = list(any)\n\n noncurrent_version_expiration = any\n noncurrent_version_transition = list(any)\n })) false
source_policy_documents List of IAM policy documents that are merged together into the exported document.\nStatements defined in source_policy_documents must have unique SIDs.\nStatement having SIDs that match policy SIDs generated by this module will override them.\n list(string) false
versioning_enabled Enable object versioning, keeping multiple variants of an object in the same bucket bool false
sse_algorithm The server-side encryption algorithm to use. Valid values are AES256 and aws:kms string false
bucket_notifications_type Type of the notification configuration. Only SQS is supported. string false
force_destroy When true, permits a non-empty S3 bucket to be deleted by first deleting all objects in the bucket.\nTHESE OBJECTS ARE NOT RECOVERABLE even if they were versioned and stored in Glacier.\nMust be set false unless force_destroy_enabled is also true.\n bool false
kms_master_key_arn The AWS KMS master key ARN used for the SSE-KMS encryption. This can only be used when you set the value of sse_algorithm as aws:kms. The default aws/s3 AWS KMS master key is used if this element is absent while the sse_algorithm is aws:kms string false
allow_encrypted_uploads_only Set to true to prevent uploads of unencrypted objects to S3 bucket bool false
block_public_acls Set to false to disable the blocking of new public access lists on the bucket bool false
block_public_policy Set to false to disable the blocking of new public policies on the bucket bool false
access_log_bucket_prefix Prefix to prepend to the current S3 bucket name, where S3 access logs will be sent to string false
s3_object_ownership Specifies the S3 object ownership control. Valid values are ObjectWriter, BucketOwnerPreferred, and 'BucketOwnerEnforced'. string false
force_destroy_enabled When true, permits force_destroy to be set to true.\nThis is an extra safety precaution to reduce the chance that Terraform will destroy and recreate\nyour S3 bucket, causing COMPLETE LOSS OF ALL DATA even if it was stored in Glacier.\n\nWARNING: Upgrading this module from a version prior to 0.27.0 to this version\n will cause Terraform to delete your existing S3 bucket CAUSING COMPLETE DATA LOSS\n unless you follow the upgrade instructions on the Wiki here.\n See additional instructions for upgrading from v0.27.0 to v0.28.0 here.\n\n bool false
bucket_key_enabled Set this to true to use Amazon S3 Bucket Keys for SSE-KMS, which reduce the cost of AWS KMS requests.\n\nFor more information, see: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-key.html\n bool false
bucket_notifications_enabled Send notifications for the object created events. Used for 3rd-party log collection from a bucket bool false
bucket_name Bucket name. If provided, the bucket will be created with this name\ninstead of generating the name from the context.\n string false
acl The canned ACL to apply. We recommend log-delivery-write for compatibility with AWS services string false
access_log_bucket_name Name of the S3 bucket where S3 access logs will be sent to string false
writeConnectionSecretToRef The secret which the cloud resource connection will be written to writeConnectionSecretToRef false

writeConnectionSecretToRef

Name Description Type Required Default
name The secret name which the cloud resource connection will be written to string true
namespace The secret namespace which the cloud resource connection will be written to string false