webiny-js icon indicating copy to clipboard operation
webiny-js copied to clipboard

Switch places of dev and prod configs for Elasticsearch in the Core pulumi app

Open Pavel910 opened this issue 3 years ago • 0 comments

Version

Presumably, all >=5.29. versions.

What are the steps to reproduce this bug?

Create a new project, use DynamoDB + Elasticsearch setup, and deploy.

What is the expected behavior?

--env=dev should deploy the small development instance, and --env=prod should deploy a production instance.

What do you see instead?

Dev and Prod configs places are switched, so dev deploys a prod config, and vice versa.

Possible solution

Switch places of config getters in this location: https://github.com/webiny/webiny-js/blob/next/packages/pulumi-aws/src/apps/core/CoreElasticSearch.ts#L65

Pavel910 avatar Sep 16 '22 16:09 Pavel910