microscopic-florist-85263
07/18/2018, 12:37 AMmicroscopic-florist-85263
07/18/2018, 12:37 AMpulumi config set cloud:provider aws
and for some reason it spit out an errorwhite-balloon-205
pulumi update --logtostderr -v 9
in DM?microscopic-florist-85263
07/18/2018, 12:37 AMmicroscopic-florist-85263
07/18/2018, 12:38 AMmicroscopic-florist-85263
07/18/2018, 12:38 AMmicroscopic-florist-85263
07/18/2018, 12:38 AMwhite-balloon-205
microscopic-florist-85263
07/18/2018, 12:38 AMmicroscopic-florist-85263
07/18/2018, 12:39 AMmicroscopic-florist-22719
microscopic-florist-85263
07/18/2018, 12:57 AMmicroscopic-florist-85263
07/18/2018, 12:58 AMmicroscopic-florist-85263
07/18/2018, 12:59 AMmicroscopic-florist-85263
07/18/2018, 12:59 AMearly-napkin-64960
07/18/2018, 2:24 AMincalculable-sundown-82514
07/18/2018, 2:32 AMadventurous-jordan-10043
07/18/2018, 6:53 AMadventurous-jordan-10043
07/18/2018, 6:53 AMadventurous-jordan-10043
07/18/2018, 6:55 AMadventurous-jordan-10043
07/18/2018, 6:56 AMExecution failed due to configuration error: Invalid permissions on Lambda function
adventurous-jordan-10043
07/18/2018, 6:58 AMbig-piano-35669
adventurous-jordan-10043
07/18/2018, 2:46 PMadventurous-jordan-10043
07/18/2018, 2:50 PMadventurous-jordan-10043
07/18/2018, 3:04 PMindex.ts
I declare a Dynamo table. I then export it's name export const slotsTableName = slotsTable.name
. I have an aws/dynamo.ts
file containing some functions to interact with my Table. I also have a lambda.ts
file. lambda.ts
is imported in index.ts
as a Lambda handler for my API.
const api = new serverless.apigateway.API('api', {
routes: [
{method: 'GET', path: '/events', handler: lambda} // imported from `lambda.ts`
]
})
Internally, lambda.ts
references aws/dynamo.ts
and aws/dynamo.ts
references `index.ts to import the Dynamo table name.
Pulumi can successfully deploy this infra but the dynamo table name import from 'index.ts' to aws/dynamo.ts
is failing because index.ts is not serialized in the final Lambda.
I realize that my architecture is a bit complex and I think that I will have to fallback to lambda env variables and use the lower level package for my Lambdas.adamant-restaurant-73893
07/18/2018, 3:27 PMadamant-restaurant-73893
07/18/2018, 3:27 PM