Closed rpostulart closed 4 months ago
Hello, @rpostulart 👋 and thanks for opening this issue. With Gen 2 still being in "developer preview", the support for REST API's or custom outputs to the Amplify config is not yet available.
We'd also want to make sure this feature request gets captured on the amplify-backend
, as I didn't see one related to this yet. I'll transfer this issue there to get better assistance and ensure it's seen!
thanks @cwomack . Ok great, I will wait for that feature. As I create a file cdk-exports.json manually and add the resources like:
{
"CdkGatewayStack": {
"ACGatewayEndpointD9037AB1": "https://1sdfsdsdfg8.execute-api.eu-central-1.amazonaws.com/prod/"
}
}
When I combine this with amplifyconfiguration.json then it's working.
So I expect the feature is there only when npx run sandbox is hit, it should create or update the cdk-export.json file
We now have the backend.addOutput
mechanism to add additional outputs to the client config file
https://docs.amplify.aws/gen2/build-a-backend/add-aws-services/rest-api/
Before opening, please confirm:
JavaScript Framework
Next.js
Amplify APIs
Not applicable
Amplify Categories
Not applicable
Environment information
Describe the bug
When adding a CDK custom resource stack (https://docs.amplify.aws/gen2/build-a-backend/add-aws-services/custom-resources/), for example like API gateway. There is no cdk-export.json created which can be used together with amplifyconfiguration.json in Amplify.congifure().
And amplifyconfiguration.json also does not contain the CDK created resources.
Expected behavior
I expect a file which can be used in your Amplify project
Reproduction steps
Run npx amplify sandbox
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response