add iugu postback

This commit is contained in:
2026-01-12 23:30:52 -03:00
parent 29b8305713
commit ad23e9aa51
25 changed files with 191 additions and 29 deletions

View File

@@ -39,7 +39,8 @@ Globals:
ENROLLMENT_TABLE: !Ref EnrollmentTable
COURSE_TABLE: !Ref CourseTable
BUCKET_NAME: !Ref BucketName
IUGU_API_TOKEN: '{{resolve:ssm:/saladeaula/iugu_api_token}}'
# IUGU_API_TOKEN: '{{resolve:ssm:/saladeaula/iugu_api_token}}'
IUGU_API_TOKEN: 419BEF0AD0B4EC180AEF80281BBF3A1CBBCC0EC45C8AE200D8A53ACC994DE639
Resources:
EventLog:
@@ -64,7 +65,6 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: app.lambda_handler
Timeout: 12
LoggingConfig:
LogGroup: !Ref HttpLog
Policies:
@@ -74,7 +74,7 @@ Resources:
Post:
Type: HttpApi
Properties:
Path: /
Path: /{id}/postback
Method: POST
ApiId: !Ref HttpApi