Is it possible to create a table in dynamo db from forge app

I tried creating table in dynamo db. But got the below error.

Refused to connect to '’ because it violates the following Content Security Policy directive: "connect-src ‘self’ ws://localhost:* http://localhost:*".

Though i have added the url in my manifest.yml


content: "img-src ‘self’ http://localhost:8000/; connect-src ‘self’ http://localhost:"

Could anyone please help in resolving this.Thanks

Hi @sindhiyaselvaraj,

From where in your app are you connecting to DynamoDB? If you are connecting directly to the database from your front-end, you should keep in mind that this could require loading database credentials in the user’s browser, which could be insecure.

Can you please share the relevant section of your manifest.yml so we can see how you’ve declared this connection?

Is there a particular reason why you are using an external DynamoDB? Forge itself has a key/value store available for you to use -

1 Like

Hi @HeyJoe ,

I have a requirement where we are creating different tables for each client with clientid in the table name. I am able to fetch the id from installed event.
But i dont know how to send this to the back end code (sst framework) where we create the table.
Also, the call back method for the installed event is in index.js. When i try to invoke the backend, i am not getting the call back.
Could you please suggest a way to create the table