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

Test development workflow with Localstack #17

Closed
teaglebuilt opened this issue Dec 15, 2019 · 4 comments · Fixed by #59
Closed

Test development workflow with Localstack #17

teaglebuilt opened this issue Dec 15, 2019 · 4 comments · Fixed by #59
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@teaglebuilt
Copy link
Collaborator

LocalStack is a service that enables local interaction with AWS Services without associated costs and real accounts. This is available through docker and for the purpose of developing keywords without having to use personal accounts. This is not a must.

In fact, it has not even been tested. What needs to be verified is the interaction with boto3 and if it will be a positive attribute to the development workflow. We can still use our AWS accounts with Boto3 to build out our keywords. Though this might prove to be a better option? At this point I have no idea...

Questions:

  1. Does it work with boto3?
  2. Can or how could it be used for accurate unit testing?
  3. Do we want to use it?
@teaglebuilt teaglebuilt added enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Dec 15, 2019
@adrianyorke
Copy link
Collaborator

adrianyorke commented Dec 15, 2019

Looks good! I have been testing with my work AWS account so far but I agree a local solution would be great and this solution does seem to be very popular/active. It should definitely work with boto3 and AWS CLI, otherwise I guess there is no point? Credentials are interesting (see the article below).

There's a good write-up here on how to get LocalStack up and running on your machine:
https://dev.to/goodidea/how-to-fake-aws-locally-with-localstack-27me

My issue is that I can't run Docker containers at the same time as VMs. My database and OSX development machines are VMs.

@teaglebuilt
Copy link
Collaborator Author

ok, i think this would just be an option then. No tests should rely on the container then.

@adrianyorke
Copy link
Collaborator

Actually, I think it's a good idea. Perhaps have a look how other projects are doing it? I just have some challenges on my local machine but I could install LocalStack elsewhere on another machine for example or switch to docker mode when working on aws stuff. It would be great to have CI tests that use LocalStack as a way of checking syntax for example.

@adrianyorke
Copy link
Collaborator

Also consider s3mock: https://hub.docker.com/r/adobe/s3mock

Mentioned in PR24: #24

@samuelpcabral samuelpcabral linked a pull request Aug 18, 2024 that will close this issue
@samuelpcabral samuelpcabral removed a link to a pull request Aug 21, 2024
@samuelpcabral samuelpcabral linked a pull request Aug 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants