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

Offline environment #25

Open
5 tasks
mcopik opened this issue Mar 28, 2023 · 2 comments
Open
5 tasks

Offline environment #25

mcopik opened this issue Mar 28, 2023 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@mcopik
Copy link
Collaborator

mcopik commented Mar 28, 2023

At the moment, we support deployment and execution at the AWS cloud only. This has several disadvantages: local environment would provide much quicker testing and development, and would allow others to test the code without having to pay for the AWS cloud.

In the past, we tried using serverless-offline packages, but these did not support triggering Lambda invocations from DynamoDB Streams. Fortunately, We added support for SQS invocations. We should develop a new config aws_offline.yml that will use the available offline components from the Serverless framework to deploy and execute FaaSKeeper locally. Since our system is complex and involves several services, we should build and test this iteratively.

  • Deploy serverless offline Lambda and test that functions can be invoked.
  • Deploy offline SQS and verify that we can use it to trigger functions.
  • Deploy offline DynamoDB and check that system state works.
  • Deploy offline S3 and verify that user data is persisted.
  • Adjust the client library to use the offline deployment when needed.
@mcopik mcopik changed the title Offline environemt Offline environment Mar 28, 2023
@mcopik mcopik mentioned this issue Mar 28, 2023
5 tasks
@mcopik mcopik added enhancement New feature or request good first issue Good for newcomers labels Mar 31, 2023
@useraid
Copy link

useraid commented Apr 1, 2024

For offline verification of AWS, won't tools such as localstack(https://github.com/localstack/localstack) be more useful?
Integration of localstack doesn't seem to be difficult if it is added as an external dependency.

I'd love to contribute to the project, so let me know what do you think about this approach.

@mcopik
Copy link
Collaborator Author

mcopik commented Apr 1, 2024

@useraid Hi! Welcome to FaaSKeeper :-)

I'm fine with both approaches - I have little experience with serverless-offline and no experience with localstack. If you think it's a better choice, then sure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants