aws-amplify / amplify-category-api

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development. This plugin provides functionality for the API category, allowing for the creation and management of GraphQL and REST based backends for your amplify project.
https://docs.amplify.aws/
Apache License 2.0
82 stars 71 forks source link

Dependency between custom stacks #2574

Open mkaya95 opened 1 month ago

mkaya95 commented 1 month ago

Is this feature request related to a new or existing Amplify category?

api

Is this related to another service?

No response

Describe the feature you'd like to request

Hi, I have multiple stacks in the /amplify/backend/api/mygqapi/stacks folder such as CustomResources.json, UserResources.json, TranslationResources.json ... However, I need to set up a dependency between resources. For example, a pipeline in TranslationResources.json uses an appsync function from UserResources.json. Unfortunately, I could not do this with the current capabilities of Amplify even when I tried to add a dependency from extensibility CDK. However, when I try to access the API stack, it does not list my custom stacks. when

Describe the solution you'd like

I want to add a dependency to my custom stack to another one.

Describe alternatives you've considered

Maybe we can have an option in transform.conf.json like StackMapping. or we can let CDK to access custom stacks

Additional context

No response

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

Would this feature include a breaking change?

ykethan commented 1 month ago

Hey👋 thanks for raising this! I'm going to transfer this over to our API repository for better assistance 🙂

AnilMaktala commented 1 month ago

Hi @mkaya95 , Thanks for raising this. We will mark it as a feature request for the team to evaluate further.