| Size: 770 Comment:  | Size: 1452 Comment:  | 
| Deletions are marked like this. | Additions are marked like this. | 
| Line 18: | Line 18: | 
| * sudo apt install python-pip | |
| Line 19: | Line 20: | 
| * pip install localstack | |
| Line 20: | Line 22: | 
| * docker run --rm -it -p 4566:4566 -p 4571:4571 localstack/localstack * curl http://localhost:4566/health * pip3 install awscli * pip3 install awscli-local * .local/bin/awslocal kinesis list-streams * .local/bin/awslocal s3api list-buckets * PATH=$PATH:/usr/sbin:~/.local/bin in ~/.bashrc * docker exec -it silly_greider bash * awslocal s3api list-buckets * awslocal s3api create-bucket --bucket my-bucket --region us-east-1 * https://docs.aws.amazon.com/cli/latest/reference/s3api/ * echo "test" > test.txt * awslocal s3api put-object --bucket my-bucket --key dir-1/test.txt --body test.txt | 
AWS
Amazon Web Services
Serverless blog web application architecture
- https://s3.amazonaws.com/aws-lambda-serverless-web-refarch/RefArch_BlogApp_Serverless.png - Amazon Route 53 (routes to specific places based on region)
- Amazon CloudFront (deliver static content per region hosted inside S3) 
- Amazon Simple Storage Service (S3)
- Amazon Cognito (Authentication and authorization)
- Amazon API Gateway (routes requests to backend logic)
- AWS Lambda (backend business logic)
- AWS DynamoDB (managed DB)
 
Localstack in Debian
- sudo apt install python3-pip
- sudo apt install python-pip
- pip3 install localstack
- pip install localstack
- .local/bin/localstack start
- docker run --rm -it -p 4566:4566 -p 4571:4571 localstack/localstack
- pip3 install awscli
- pip3 install awscli-local
- .local/bin/awslocal kinesis list-streams
- .local/bin/awslocal s3api list-buckets
- PATH=$PATH:/usr/sbin:~/.local/bin in ~/.bashrc 
- docker exec -it silly_greider bash
- awslocal s3api list-buckets
- awslocal s3api create-bucket --bucket my-bucket --region us-east-1
- echo "test" > test.txt 
- awslocal s3api put-object --bucket my-bucket --key dir-1/test.txt --body test.txt
