Skip to content

Instantly share code, notes, and snippets.

@yuvalif
Created December 7, 2023 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuvalif/f10177f1a1788c4235c09103cf6089ec to your computer and use it in GitHub Desktop.
Save yuvalif/f10177f1a1788c4235c09103cf6089ec to your computer and use it in GitHub Desktop.

Setup

  • start cluster using vstart
  • create bucket and log bucket:
aws --endpoint-url http://localhost:8000 s3 mb s3://fish
aws --endpoint-url http://localhost:8000 s3 mb s3://fish-log
  • create bucket logging conf:
aws --endpoint-url http://localhost:8000 s3api put-bucket-logging --bucket fish \
  --bucket-logging-status '{"LoggingEnabled": {"TargetBucket": "fish-log", "TargetPrefix": "log/"}}'
  • get bucket logging conf:
aws --endpoint-url http://localhost:8000 s3api get-bucket-logging --bucket fish
  • delete bucket logging conf:
aws --endpoint-url http://localhost:8000 s3api put-bucket-logging --bucket fish --bucket-logging-status '{}'

Test

TODO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment