Skip to content

Commit

Permalink
Merge pull request #2 from 7SOATSquad30/feature/lambda
Browse files Browse the repository at this point in the history
Feature/lambda
  • Loading branch information
otavio-code authored Jan 25, 2025
2 parents ff41ac9 + 0b8d66b commit 91db827
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-lambda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1 # Substitua pela sua região AWS
aws-region: us-east-1

- name: Instalar dependências necessárias
run: sudo apt-get update && sudo apt-get install -y xz-utils zip
Expand All @@ -34,7 +34,7 @@ jobs:
- name: Implantar a AWS Lambda
run: |
aws lambda update-function-code \
--function-name nome-da-sua-lambda \
--function-name LambdaProcessadorVideos \
--zip-file fileb://deployment_package.zip
if: success()

Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ venv/
.DS_Store
Thumbs.db

# Dependencies
requirements.txt
requirements-dev.txt

# Deployment packages
deployment_package.zip
target/
Expand Down
26 changes: 26 additions & 0 deletions app/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
aiobotocore==2.15.2
aiohappyeyeballs==2.4.3
aiohttp==3.10.9
aioitertools==0.12.0
aiosignal==1.3.1
attrs==24.2.0
aws-lambda-powertools==3.1.0
botocore==1.35.36
Faker==27.0.0
frozenlist==1.4.1
fsspec==2024.9.0
idna==3.10
jmespath==1.0.1
multidict==6.1.0
numpy==2.1.0
pandas==2.2.2
propcache==0.2.0
python-dateutil==2.9.0.post0
pytz==2024.1
s3fs==2024.9.0
six==1.16.0
typing_extensions==4.12.2
tzdata==2024.1
urllib3==2.2.3
wrapt==1.16.0
yarl==1.14.0
4 changes: 4 additions & 0 deletions infra/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ variable "aws_region" {
variable "lambda_function_name" {
description = "Nome da função Lambda"
type = string
default = "LambdaProcessadorVideos"
}

variable "dynamodb_table_name" {
description = "Nome da tabela DynamoDB"
type = string
default = "tabela_videos"
}

variable "output_s3_bucket" {
Expand All @@ -22,9 +24,11 @@ variable "output_s3_bucket" {
variable "sqs_queue_arn" {
description = "ARN da fila SQS para acionar a Lambda"
type = string
default = "arn:aws:sqs:us-east-1:123456789012:fila_videos"
}

variable "client_email" {
description = "Email do cliente para notificação"
type = string
default = "[email protected]"
}

0 comments on commit 91db827

Please sign in to comment.