# Civo Object Storage

**Arquivo:** `~/.ssh/civo-object-storage`

## Credenciais

| Propriedade | Valor |
|-------------|-------|
| Endpoint | https://objectstore.nyc1.civo.com |
| Bucket | rede5 |
| Access Key | `0UZ69TH03Q292DMTB82B` |
| Secret Key | `JJ5XXZYvoWdnqBCNP5oREjACyrXeH6EgSqeSybT7` |
| Region | NYC1 |

## Dashboard

https://dashboard.civo.com/object-stores/adb27426-51af-43a9-8d50-4d88ff8a28e7

## Configuracao AWS CLI

```bash
# Criar ~/.aws/credentials
[civo]
aws_access_key_id = 0UZ69TH03Q292DMTB82B
aws_secret_access_key = JJ5XXZYvoWdnqBCNP5oREjACyrXeH6EgSqeSybT7

# Criar ~/.aws/config
[profile civo]
region = NYC1
output = json
```

## Configuracao S3CMD

```bash
# Criar ~/.s3cfg
[default]
access_key = 0UZ69TH03Q292DMTB82B
secret_key = JJ5XXZYvoWdnqBCNP5oREjACyrXeH6EgSqeSybT7
host_base = objectstore.nyc1.civo.com
host_bucket = objectstore.nyc1.civo.com
use_https = True
```

## Comandos

```bash
# Listar buckets
aws s3 ls --endpoint-url https://objectstore.nyc1.civo.com --profile civo

# Listar conteudo do bucket
aws s3 ls s3://rede5/ --endpoint-url https://objectstore.nyc1.civo.com --profile civo

# Upload arquivo
aws s3 cp arquivo.txt s3://rede5/vault/ --endpoint-url https://objectstore.nyc1.civo.com --profile civo

# Upload pasta recursivo
aws s3 sync ~/.ssh/ s3://rede5/vault/ssh/ --endpoint-url https://objectstore.nyc1.civo.com --profile civo

# Download
aws s3 sync s3://rede5/vault/ssh/ ~/.ssh/ --endpoint-url https://objectstore.nyc1.civo.com --profile civo

# Deletar
aws s3 rm s3://rede5/vault/ --recursive --endpoint-url https://objectstore.nyc1.civo.com --profile civo
```

## S3CMD Alternative

```bash
# Listar
s3cmd ls s3://rede5/

# Upload
s3cmd put arquivo.txt s3://rede5/vault/

# Sync
s3cmd sync ~/.ssh/ s3://rede5/vault/ssh/

# Download
s3cmd get --recursive s3://rede5/vault/ssh/ ~/.ssh/
```

---

*Atualizado em: 2026-02-21*
