Slide 33
Slide 33 text
const counterTable = new aws.dynamodb.Table("url-table", {
attributes: [{ name: "id", type: "S" }],
hashKey: "id",
readCapacity: 5,
});
const lambda = new aws.lambda.Function("mylambda", {
code: new pulumi.asset.FileArchive("./app"),
handler: "index.handler",
environment: { variables: {
"COUNTER_TABLE": counterTable.name,
}},
});
const endpoint = new awsx.apigateway.API("short-url", {
routes: [{
path: "/{route+}",
method: "GET",
eventHandler: lambda,
}],
});
Still,
Desired
State!