Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add kinesis log stream #74

Closed
wants to merge 2 commits into from
Closed

Conversation

vasco-santos
Copy link
Contributor

@vasco-santos vasco-santos commented Dec 8, 2022

Adds kinesis ucan log stream to ucanto service. Once a UCAN invocation is handled by the service, it is sent to Amazon Kinesis data streams for post processing (JSON with invocation CID, invocation bytes, and decoded invocation).

Kinesis log stream has its own stack named UcanStreamStack which will include resources needed for post processing of ucan stream ops. ApiStack depends on UcanStreamStack given it will use its stream, as well as its data further down the line to get content like user facing stats

Per https://www.notion.so/UCAN-LOG-0f3870fc4b404f5cbf646bf16b463365

Other notes:

@seed-deploy
Copy link

seed-deploy bot commented Dec 8, 2022

View stack outputs

@vasco-santos vasco-santos mentioned this pull request Dec 8, 2022
1 task
@seed-deploy seed-deploy bot temporarily deployed to pr74 December 8, 2022 15:57 Inactive
@vasco-santos vasco-santos marked this pull request as ready for review December 8, 2022 16:00
@seed-deploy seed-deploy bot temporarily deployed to pr74 December 8, 2022 16:12 Inactive
const stream = new KinesisStream(stack, 'ucan-stream', {
cdk: {
stream: {
retentionPeriod: Duration.days(365)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seed-deploy seed-deploy bot temporarily deployed to pr74 December 8, 2022 16:27 Inactive
@vasco-santos vasco-santos requested review from olizilla and alanshaw and removed request for olizilla and alanshaw December 8, 2022 16:30
@vasco-santos
Copy link
Contributor Author

@alanshaw FYI we need some changes by our discussion last night. So, removed review until I sort it out

@vasco-santos
Copy link
Contributor Author

SST is having a bad time. Need to close to wipe out cloudformation...

@vasco-santos vasco-santos deleted the feat/add-kinesis-log-stream branch December 9, 2022 15:20
@vasco-santos vasco-santos restored the feat/add-kinesis-log-stream branch December 9, 2022 15:21
@seed-deploy seed-deploy bot temporarily deployed to pr86 December 9, 2022 15:21 Inactive
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.

None yet

1 participant