---
agentTools:
  projectIndex: https://regscale.readme.io/llms.txt
---

# Simple Storage Service (S3)

# AWS S3

## Overview

AWS S3 integration - `regscale aws sync_s3` - evaluates storage security controls (SC-13, SC-28, AC-3, AC-6, AU-2, AU-9, CP-9).

## Command Syntax

```bash
regscale aws sync_s3 [OPTIONS]
```

## Basic Usage

```bash
# Sync all S3 buckets with evidence
regscale aws sync_s3 --regscale-id 123 --create-evidence

# Filter by bucket name prefix
regscale aws sync_s3 \
  --regscale-id 123 \
  --bucket-name-filter prod- \
  --create-evidence \
  --evidence-control-ids SC-13,SC-28

# Filter by tags
regscale aws sync_s3 \
  --regscale-id 123 \
  --tags Environment=Production \
  --create-evidence
```

## Evidence Collection Options

| Option                                       | Description                                                                                      | Default      |
| -------------------------------------------- | ------------------------------------------------------------------------------------------------ | ------------ |
| `--create-evidence` / `--no-create-evidence` | Create evidence records in RegScale. Turn off with `--no-create-evidence` (CLI 7.0.0 and later). | True         |
| `--create-ssp-attachment`                    | Also attach the evidence to the security plan as a file.                                         | False        |
| `--evidence-control-ids`                     | Comma-separated list of control IDs (e.g., 'SC-13,SC-28,AC-3,AC-6,AU-2,AU-9,CP-9')               | All controls |

### Collect Evidence for Specific Controls

```bash
regscale aws sync_s3 --regscale-id 123 \
    --create-evidence \
    --evidence-control-ids SC-13,SC-28,AC-3,AC-6
```

## NIST 800-53 Controls Assessed

* **SC-13**: Cryptographic Protection
* **SC-28**: Protection of Information at Rest
* **AC-3**: Access Enforcement
* **AC-6**: Least Privilege
* **AU-2**: Audit Events
* **AU-9**: Protection of Audit Information
* **CP-9**: System Backup

## Filter by Bucket Name

Filter S3 buckets by name prefix:

```bash
regscale aws sync_s3 --regscale-id 123 \
    --bucket-name-filter prod- \
    --create-evidence
```

## What Gets Created in RegScale

* **Control Assessments**: SC, AC, AU, CP family controls
* **Evidence**: Bucket configs, encryption, versioning, logging, public access settings
* **Issues**: Unencrypted buckets, public access, no versioning

## Common Use Cases

```bash
# Production bucket audit
regscale aws sync_s3 \
  --regscale-id 123 \
  --tags Environment=Production \
  --create-evidence \
  --evidence-control-ids SC-13,SC-28,AU-2,AU-9,CP-9 \
  --create-issues
```