providerConfig: mongoDbAtlas: publicKey: <> privateKey: <> organizationId: <> resources: mainApiGateway: type: http-api-gateway properties: cors: enabled: true mongoDbCluster: type: mongo-db-atlas-cluster properties: clusterTier: M2 savePost: type: function properties: packaging: type: stacktape-lambda-buildpack properties: entryfilePath: ./src/lambdas/save-post.py memory: 512 connectTo: - mongoDbCluster environment: - name: DATABASE_NAME value: posts events: - type: http-api-gateway properties: httpApiGatewayName: mainApiGateway path: /posts method: POST getPosts: type: function properties: packaging: type: stacktape-lambda-buildpack properties: entryfilePath: ./src/lambdas/get-posts.py memory: 512 connectTo: - mongoDbCluster environment: - name: DATABASE_NAME value: posts events: - type: http-api-gateway properties: httpApiGatewayName: mainApiGateway path: /posts method: GET