Skip to content

[AECOS-25] feat(create_events): add POST /event API endpoint - #4

Open
kevin20021214 wants to merge 3 commits into
aws-educate-tw:AECOS-25-Backend-POST-eventfrom
kevin20021214:AECOS-25-Backend-POST-event
Open

[AECOS-25] feat(create_events): add POST /event API endpoint #4
kevin20021214 wants to merge 3 commits into
aws-educate-tw:AECOS-25-Backend-POST-eventfrom
kevin20021214:AECOS-25-Backend-POST-event

Conversation

@kevin20021214

Copy link
Copy Markdown

【概要】

新增 Create Event Lambda 函式與 API Gateway POST /event 端點
使用 Terraform 部署:
DynamoDB table (test_service_events)
ECR image build & push
Lambda (container image) 與 IAM Role
API Gateway
【測試步驟】
cd \src\event_service\terraform
terraform init -reconfigure -backend-config=local-dev.tfbackend
terraform plan -var-file=local-dev.tfvars
terraform apply -var-file=local-dev.tfvars
curl -X POST "https://5oin2bz4mk.execute-api.us-west-2.amazonaws.com/local-dev/event" --data-binary "@sample_event.json"
確認 DynamoDB test_service_events 有對應資料

@kevin20021214
kevin20021214 marked this pull request as draft May 7, 2025 03:11
@kevin20021214
kevin20021214 marked this pull request as ready for review May 7, 2025 03:12
@kevin20021214
kevin20021214 marked this pull request as draft May 7, 2025 03:12
@kevin20021214
kevin20021214 marked this pull request as ready for review May 11, 2025 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant