Skip to content

tuckn/docker-aws-cli-tokyo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockerfile: aws-cli-tokyo

Docker image of amazon/aws-cli set in Asia/Tokyo time. Works portable.

What Is the AWS Command Line Interface? - AWS Command Line Interface

Why?

The container of AWS official docker image is UTC+0000, and it does not match the time of the client OS. So I created this image for my OS (UTC+0900 Asia/Tokyo time).

Installation

Install Docker on your PC.

Get Docker | Docker Documentation

Pull this Docker image.

$ docker pull tuckn/aws-cli-tokyo

Move to your portable directory.

$ cd <Your Directory Path>

Configure AWS CLI.

$ docker run --rm -it -v <Your .aws path>:/root/.aws tuckn/aws-cli-tokyo configure
AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE
AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Default region name [None]: us-east-1
Default output format [None]: ENTER

Usage

$ docker run --rm -it -v <Your .aws path>:/root/.aws tuckn/aws-cli-tokyo <command>

Example on Windows

> docker run --rm -it -v %CD%\.aws:/root/.aws tuckn/aws-cli-tokyo s3 ls
2020-01-23 12:34:56 your-bucket-name1
2020-03-27 12:34:56 your-bucket-name2
...

There is a batch file for Windows in this repository ./scripts/aws-jp-portable.cmd, so you can use it as well.

> aws-jp-portable s3 ls

License

MIT

Copyright (c) 2020 Tuckn

About

Docker image of amazon/aws-cli set in Asia/Tokyo time

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published