・latest (versions/beta/Dockerfile)
・beta (versions/beta/Dockerfile)
(日本語はこちら)
cat << EOF >> ~/.bashrc
function chalice () {
docker run --rm -v \$(pwd):/app \\
-e AWS_ACCESS_KEY_ID \\
-e AWS_SECRET_ACCESS_KEY \\
-e AWS_DEFAULT_REGION \\
pottava/chalice \$@
}
EOF
source ~/.bashrc
cat << EOF >> ~/.bashrc
function chalice () {
docker run --rm -v \$(pwd):/app \\
-v $HOME/.aws/credentials:/root/.aws/credentials \\
pottava/chalice \$@
}
EOF
source ~/.bashrc
Set environment variables if you needed.
$ export AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
$ export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
$ export AWS_DEFAULT_REGION=us-east-1
$ chalice --help
$ chalice new-project <project-name>
$ cd <project-name>
$ chalice deploy
$ cd <project-name>
$ chalice logs