This section describes how to setup your local environment.
You need aws
a CLI to issue command to AWS.
We'll also use a sanctioned alternate version of docker
that can handle deployment on AWS.
Installing or updating the latest version of the AWS CLI
sudo apt install unzip
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
export PATH=$HOME/bin/aws:$PATH
Configuration and credential file settings
In, Create your AWS Access Key you will generate your aws_access_key_id
and aws_secret_access_key
.
$HOME/.aws/credentials
[default]
aws_access_key_id=AKIAIOSFODNN7EXAMPLE
aws_secret_access_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
NRC requires that the AWS Services be located in Canada.
We configure our default region to be ca-central-1
.
$HOME/.aws/config
[default]
region=ca-central-1
output=json
complete -C "$(which aws_completer)" aws
wget https://github.com/docker/compose-cli/releases/download/v1.0.24/docker-linux-amd64
chmod u+x docker-linux-amd64
ln -s /usr/bin/docker com.docker.cli
Make sure the new docker
works and that it has Cloud integration
.
./docker-linux-amd64 version
Client: Docker Engine - Community
Cloud integration: v1.0.24
Version: 20.10.11
API version: 1.41
Go version: go1.16.9
Git commit: dea9396
Built: Thu Nov 18 00:37:06 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.11
API version: 1.41 (minimum version 1.12)
Go version: go1.16.9
Git commit: 847da18
Built: Thu Nov 18 00:35:15 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.12
GitCommit: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
runc:
Version: 1.0.2
GitCommit: v1.0.2-0-g52b36a2
docker-init:
Version: 0.19.0
GitCommit: de40ad0
- Create the AWS services under
aws/
. - Under
audio_processing/layer/
, create the images that contain the tooling and AWS Lambda Layers. - Use audio processing to deploy to AWS our Common-Voice audio processing.