Skip to main content

Posts

Showing posts with the label S3

S3 Bucket Security

Enabling Block Public Access on an Amazon S3 bucket is an essential security measure to prevent accidental exposure of your data to the public. In addition to Block Public Access, here are some other security improvements you can implement and their considerations: Limiting Source IP: By configuring bucket policies or access control lists (ACLs) to allow access only from specific IP addresses or IP ranges, you can further restrict access to your bucket. This helps mitigate the risk of unauthorized access from unknown or potentially malicious sources. Considerations include: Ensure that you accurately define and maintain the allowed IP addresses or ranges to avoid inadvertently blocking legitimate access. Regularly review and update the IP restrictions as needed, considering changes in your infrastructure or authorized users' locations. Versioning : Enabling versioning for your S3 bucket allows you to retain multiple versions of an object over time. This feature provides added secu

Tips mengamankan S3 Bucket

 1. Dengan VPC endpoint dengan ini s3 hanya bisa diakses secara private menggunakan VPC endpoint, isolated didalam VPC access, tidak perlu akses dari internet. contoh konfig: bucket policy {     "Version": "2012-10-17",     "Statement": [         {             "Effect": "Allow",             "Principal": "*",             "Action": [                 "s3:GetObject",                 "s3:PutObject",                 "s3:ListBucket"             ],             "Resource": [                 "arn:aws:s3:::my-bucket",                 "arn:aws:s3:::my-bucket/*"             ],             "Condition": {                 "StringEquals": {                     "aws:SourceVpce": "vpce-1234567890abcdef"                 }             }         }     ] } membuat VPC endpoint aws ec2 create-vpc-endpoint --vpc-id vpc-1234567890abcd