feat: add an S3 buckets view

Aperta
#135 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
70/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
aws, rust
Ambito
cli, cloud

Direzione di ricerca

The issue says work is blocked by #132, so check that it has merged before starting. Read docs/recipes/README.md and docs/recipes/add-a-service.md, then use src/aws/sqs.rs as the reference for bounded per-bucket calls. Done means the S3 view, row actions, tests, and listed documentation and changeset are complete, with the required Rust checks passing.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

size: M

Why

Buckets hold ALB access logs, product uploads, and static sites. Glance has no S3 view at all, although aws-sdk-s3 is already a dependency.

Follow docs/recipes/add-a-service.md.

Steps

  1. Follow docs/recipes/add-a-service.md. The crate is already in Cargo.toml; add the client to AwsClients.
  2. list_buckets returns every bucket in the account whatever the region. Use get_bucket_location and only show buckets in the selected region. Note the empty location string means us-east-1.
  3. Model S3BucketInfo: name, region, creation date, public access block fully on (Option<bool>, None when unreadable), has lifecycle rules (Option<bool>), tags via get_bucket_tagging.
  4. Gotcha: a bucket with no lifecycle or no tags returns an error (NoSuchLifecycleConfiguration, NoSuchTagSet), not an empty result. Treat those as "none", and any other error as unknown.
  5. Console: https://s3.console.aws.amazon.com/s3/buckets/<name>?region=<region>. CLI: aws s3api get-bucket-location --bucket <name>.
  6. Palette entry s3 with alias buckets.

Where to look

  • docs/recipes/add-a-service.md
  • src/aws/sqs.rs (bounded concurrency for the per-bucket calls)

Done when

  • S3 view reachable from the command palette
  • Rows carry tags: Tags
  • Describe, console pivot, and CLI pivot work on the selected row
  • A denied or failed fetch shows a status, not an empty table
  • Unit tests for the model helpers and the DescribableResource URLs and CLI command
  • README, docs/architecture.md, docs/aws-service-roadmap.md, and AGENTS.md updated
  • Changeset added (minor)
  • cargo fmt --all, cargo clippy --all-targets -- -D warnings, and cargo test --all pass, with output pasted in the PR

Check against AWS

Optional. Unit tests are enough for this issue.

Blocked by

#132. Start this after that is merged.

Size: M. Read docs/recipes/README.md before starting.

Lingua principale
Rust
Stelle
2
Fork
0
Merge medio
4h 8m
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fells-code/seamless-glance

Tutte le issue di fells-code/seamless-glance

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.