amplify-category-api icon indicating copy to clipboard operation
amplify-category-api copied to clipboard

Parametrized environment name

Open ricardoribas opened this issue 1 year ago • 2 comments

Describe the feature you'd like to request

Right now, you need to define a context value for amplifyEnvironmentName to define a suffix for the database tables. In my use case, I have multiple stacks that will generate the same AmplifyGraphqlApi but for different regions. Additionally, i would like to use different namings for the suffix.

Describe the solution you'd like

Add a property in the constructor that may accept an environment, and as a fallback, it would consume from the context as it is right now or NONE if no conditions were met

Describe alternatives you've considered

(No alternatives)

Additional context

No response

Is this something that you'd be interested in working on?

  • [X] 👋 I may be able to implement this feature request

Would this feature include a breaking change?

  • [ ] ⚠️ This feature might incur a breaking change

ricardoribas avatar Sep 25 '24 13:09 ricardoribas