gergelyke / gergelyke.github.io

Personal website for nemethgergely.com
23 stars 2 forks source link

Using Skaffold and LocalStack to Develop Cloud Applications Locally #17

Open gergelyke opened 6 years ago

tarasowski commented 6 years ago

Hi Gergely,

thank you for your intro to localstack. What do you think, what is currently the best workflow for developing serverless apps on AWS?

Thanks, Dimitri

gergelyke commented 6 years ago

Hi Dimitri,

thanks! For serverless, I'd use the Serverless Framework

I hope that helps!

efi-mk commented 6 years ago

Hello @gergelyke , In your original article you mentioned "Should each developer create a development environment for themselves in the cloud?" and answered that there is a drawback to this method, can you elaborate a bit more ? Is it complicated ? does it cost a lot of money ? What are the main obstacles for a developing firm to this that method ?

Thank you

gergelyke commented 6 years ago

Hi @efi-mk!

There can be a list of drawbacks for setting up development environments for everybody in the cloud:

I hope this answers your question! Please let me know if it did not, and I am happy to provide more details.

efi-mk commented 6 years ago

Thank you @gergelyke, I completely agree, but I have couple of problems with using only localstack for testing:

For me it looks like testing in the actual native serverless environment is a must before actual deployment. Makes sense ?

Do you think that off-the-shelf solution would make tools like LocalStack obsolete ?

gergelyke commented 6 years ago

Hi @efi-mk - yeah, that makes sense, I agree with your concerns. As i see, you have to distinguish between local development versus automated testing.

For local development, I'd use LocalStack with Skaffold - for automated testing, I'd provision everything on AWS, and run the functional tests on that infrastructure.

Does that make sense?

efi-mk commented 6 years ago

Makes sense. @gergelyke is there a way to contact you directly? I have couple of questions regarding your testing methodology.

Thank you for your advice

gergelyke commented 6 years ago

My DMs are open on twitter: https://twitter.com/nthgergo

demisx commented 5 years ago

Hi @gergelyke. Thank you for a very helpful post. I was able to get the localstack running with skaffold v0.29, but I don't see any logs in the output, even though I set the `DEBUG env var (see below) and I've confirmed that this var is set in the container too. Any idea how to get to the localstack logs? Thank you.

     env:
            - name: SERVICES
              value: 's3:30572,lambda:30574'
            - name: PORT_WEB_UI
              value: '32000'
            - name: DEBUG
              value: '1'
demisx commented 5 years ago

I think I got it going. Looks like in order to for logs to start showing up in skaffold output, the Docker image must be built by skaffold itself, even if the Dockerfile contains just one line:

FROM localstack/localstack
gergelyke commented 5 years ago

hi @demisx - glad to hear that you liked the post! Since the writing of the article, I've barely used localstack, so I am not sure if I can help, I am sorry

demisx commented 5 years ago

@gergelyke Yeah, I've got the log part going, but it's not a smooth ride switching endpoint from AWS to localstack. And lack of documentation doesn't help either. I see errors popping up left and right and my AWS usage is very light. Did you find a better alternative to the localstack by any chance?

lxm7 commented 5 years ago

Can Scaffold or the more recent LocalStack get round issue of supporting multi regions these days? If not can anyone suggest a good alternative to these in order to cater for multi regional setups? Thanks