• Stars
    star
    80
  • Rank 404,329 (Top 8 %)
  • Language
    Go
  • License
    MIT License
  • Created about 7 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Edit directly a file on Amazon S3 in CLI

s3-edit

Edit directly a file on Amazon S3 in CLI.

GitHub release CircleCI branch Go Documentation MIT license

Installation

Use go get

$ go get -u github.com/tsub/s3-edit

Install with Homebrew

For macOS and Linux

$ brew install tsub/s3-edit/s3-edit

Get binary from GitHub releases

Download latest binary from https://github.com/tsub/s3-edit/releases

Requirements

  • AWS credentials
  • Upload files to S3 in advance

For examples, use aws-cli

$ aws configure --profile myaccount
$ export AWS_PROFILE=myaccount

Other methods,

$ export AWS_ACCESS_KEY_ID=xxxx
$ export AWS_SECRET_ACCESS_KEY=xxxx
$ export AWS_REGION=ap-northeast-1

Usage

Upload the file to S3 in advance.

$ echo "This is a test file." > myfile.txt
$ aws s3 cp test.txt s3://mybucket/myfile.txt

To directly edit a file on S3, use edit subcommand.

$ s3-edit edit s3://mybucket/myfile.txt

Then, open a file with the default editor specified by $EDITOR.

https://gyazo.com/96c9225da700f91e7b44c04f439fdd23

When you close the editor after edit, a file is automatically re-uploaded to S3.

$ aws s3 cp s3://mybucket/myfile.txt -
This is a test file.
Edited with s3-edit.

Development

Requirements

  • Golang >= 1.17

More Repositories

1

serverless-plugin-subscription-filter

Extend subscription filter events for the Serverless framework ⚡
JavaScript
18
star
2

circleci-build-trigger

[Deprecated] Scheduler to build your CircleCI project with AWS Lambda ⚡
JavaScript
17
star
3

docker-graph-easy

Dockerized graph-easy
Shell
14
star
4

serverless-daily-standup-bot

[under development] ⚡ Asynchronous daily stand-up meeting in Slack
Go
11
star
5

dotfiles

My dotfiles
Ruby
9
star
6

rust-slack-bot

A sample of Slack bot written in Rust.
Rust
9
star
7

fkill

Kill processes with fzf
Shell
8
star
8

fish-fzf-git-recent-branch

Efficient fish keybinding for fzf with git branch
Shell
8
star
9

alfred-datadog-workflow

A Alfred workflow to open Datadog pages
Go
6
star
10

albert-github

Open GitHub repository in browser with Albert
Python
4
star
11

fish-fzf-ghq

Efficient fish keybindinging for fzf with ghq
Shell
4
star
12

echo-sandbox

A sandbox for the echo framework.
Go
4
star
13

serverless-qiita-team-template

[under development] Create a Qiita:Team new post from templates
Go
4
star
14

eks-sandbox

HCL
3
star
15

ecs-sandbox

HCL
2
star
16

circleci-orbs-sandbox

1
star
17

alfred-aws-vault-workflow

A Alfred workflow to open the AWS Management Console with aws-vault
1
star
18

elm-tutorial

Write a sample code of the Elm tutorial
Elm
1
star
19

cockroachdb-sandbox

Go
1
star
20

slides

My slides
Shell
1
star
21

asdf-terraform-build

Terraform plugin with go build for the asdf version manager
Shell
1
star
22

blog

Build with Hugo
Dockerfile
1
star
23

awesome_events

feedforce job training from 2016/5/24 to 2016/6/10
Ruby
1
star
24

homebrew-s3-edit

A Homebrew formula for tsub/s3-edit
Ruby
1
star
25

docker-ghr

Dockerized ghr 🐳
1
star
26

docker-rails-boilerplate

Ruby
1
star
27

go-slack-bot

A sample of Slack bot written in Go.
Go
1
star
28

docker-mruby-cli

Docker image for mruby-cli 🐳
1
star
29

grpc-go-sandbox

The sandbox of the gRPC apps implemented in Go.
Go
1
star
30

docker-write-mime-multipart

Dockerized write-mime-multipart
Shell
1
star