elastic / elastic-package

elastic-package - Command line tool for developing Elastic Integrations
Other
44 stars 107 forks source link

[Serverless] Support testing against serverless projects #1808

Open kpollich opened 2 weeks ago

kpollich commented 2 weeks ago

Ref draft PR https://github.com/elastic/elastic-package/pull/1766 Ref previous PR https://github.com/elastic/elastic-package/pull/1231

To support package development for serverless, elastic-package should support spinning up Elasticsearch and Kibana in serverless mode in its local stack, e.g.

elastic-package stack up --serverless

We could also add serverless: true as a profile setting instead of using a CLI argument.

kpollich commented 2 weeks ago

cc @jsoriano @ruflin

I created this issue to capture discussion as it's not clear what the intended result is here based on the existing PR's. I believe elastic-package stack can already be used to manage serverless projects, they're just not local Docker containers. @jsoriano do we have any docs on that process?

jsoriano commented 2 weeks ago

@jsoriano do we have any docs on that process?

Umm, unfortunately it looks like we only have some documentation about the variables that can be used with the serverless provider (here), but not about this provider itself. @mrodm do you remember if we have some documentation about stack providers?

jsoriano commented 2 weeks ago

FTR, serverless support was added in https://github.com/elastic/elastic-package/pull/1374.

mrodm commented 2 weeks ago

@mrodm do you remember if we have some documentation about stack providers?

AFAIK I think there is no documentation about the stack providers available in elastic-package (e.g. serverless) :( Just the list of options that you already linked.

ruflin commented 2 weeks ago

elastic-package stack up is used for local development of integrations but also for testing latest snapshot builds quickly. Like it is done today for stateful, it should be as simple to setup a stateless setup (at least view, feature set) on your local machine to do the testing.