Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit e9d1eef

Browse files
Atualizações
1 parent 5230c93 commit e9d1eef

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ services:
5656
- "9070:9070"
5757
- "8080:8080"
5858
environment:
59-
SERVICES: sqs,lambda,cloudwatch
59+
SERVICES: sqs,lambda,cloudwatch,s3
6060
DOCKER_HOST: unix:///var/run/docker.sock
6161
PORT_WEB_UI: 9070
62-
LAMBDA_EXECUTOR: docker
62+
#LAMBDA_EXECUTOR: docker # está dando erro via docker
63+
LAMBDA_EXECUTOR: local
6364
DEBUG: 1
64-
HOSTNAME: localstack
6565
HOSTNAME_EXTERNAL: localstack
6666
networks:
6767
- service-python

examples/lambda_sqs/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@ There are no routes for this project.
3232

3333
## Installation
3434

35+
### Installing AWS CLI
36+
Documentation:
37+
https://docs.aws.amazon.com/pt_br/cli/latest/userguide/install-cliv2.html
38+
39+
Execute the follow command:
40+
```
41+
apt install awscli
42+
apt install zip
43+
app install pip
44+
```
45+
Execute the follow command:
46+
```
47+
aws configure
48+
```
49+
3550
### Creating network
3651
Execute the follow command:
3752
```

examples/lambda_sqs/scripts/localstack/lambda/create-function-from-s3.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ else
9999
--function-name arn:aws:lambda:$REGION:000000000000:function:$FUNCTION_NAME \
100100
--runtime python3.6 --handler $HANDLER --memory-size 128 \
101101
--code S3Bucket=test,S3Key=lambda-full.zip --role arn:aws:iam:awslocal \
102-
--environment {\"Variables\": $ENVIRONMENT_VARIABLES}"
102+
--environment \"{\"Variables\": $ENVIRONMENT_VARIABLES}\""
103103

104104
aws --endpoint-url=http://$HOST:4566 lambda create-function \
105105
--function-name arn:aws:lambda:$REGION:000000000000:function:$FUNCTION_NAME \
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
HOST=0.0.0.0
22
aws --endpoint-url=http://$HOST:4566 lambda list-functions --master-region us-east-1
3+
aws --endpoint-url=http://localhost:4566 lambda list-functions --master-region us-east-2

examples/lambda_sqs/scripts/tools/python/migrate.py

Whitespace-only changes.

0 commit comments

Comments
 (0)