average-lifeguard-69220
07/23/2018, 2:38 PM// Alexa skill - lambda function
const alexaSkill = new cloud.Function("my-alexa-skill", (event, context, callback) => {
// Not a big fan of redeclaring required libraries here - seems to be a limitation?
require('ask-sdk');
require('ask-sdk-core');
require('ask-sdk-model');
require('axios');
require('moment-timezone');
require('timezoner');
require('node-geocoder');
require('lodash');
require('./alexa/my-service');
require('./alexa/utils');
// the alexa/index.js file has the appropriate require statements already
const skill = require('./alexa/index');
skill.handler(event, context, callback);
});
average-lifeguard-69220
07/23/2018, 2:38 PMadamant-restaurant-73893
07/23/2018, 5:45 PMhttps://www.youtube.com/watch?v=R3OfgFHkj3o▾
modern-diamond-82589
07/23/2018, 10:14 PMrestApiId
, stageName
, sdkType
, and destinationDirPath
(all as `pulumi.Input<T>`s, of course), and after pulumi has created/updated the API Gateway in the AWS cloud, the downloader would fetch the generated SDK. I sort of understand the Resource
, CustomResource
, and ComponentResource
hierarchy's division of labor, and it seems like this type of thing fits in somewhere between CustomResource and ComponentResource. For a quick first attempt at getting things working, I subclassed ComponentResource using TypeScript. And it works for downloading the SDK, but it does so too early--during the preview step (which means it probably breaks if the RestApi
and Stage
resources haven't been created during a previous run). Is there a way to perform the download during the update step instead, after the API Gateway resources are created/updated but before the web client's S3 bucket is created/updated? While still implementing all the CRUD logic in TypeScript/JavaScript?stocky-spoon-28903
07/24/2018, 3:38 AMlimited-businessperson-17480
07/24/2018, 9:53 AMhundreds-twilight-49246
07/24/2018, 11:25 AMhundreds-twilight-49246
07/24/2018, 1:09 PM$ pulumi config set azure:clientId <clientID>
$ pulumi config set azure:clientSecret <clientSecret> --secret
$ pulumi config set azure:tenantId <tenantID>
hundreds-twilight-49246
07/24/2018, 1:11 PMerror: no Pulumi.yaml project file found
error: no Pulumi.yaml project file found
error: no Pulumi.yaml project file found
for each command. Any ideas, anyone?happy-forest-75452
07/24/2018, 3:45 PMstocky-spoon-28903
07/24/2018, 6:55 PMadamant-restaurant-73893
07/25/2018, 3:02 PMhttps://www.youtube.com/watch?v=R3OfgFHkj3o▾
adamant-restaurant-73893
07/25/2018, 3:03 PMadamant-restaurant-73893
07/25/2018, 7:24 PMbreezy-agency-15661
07/26/2018, 6:28 AMbreezy-agency-15661
07/26/2018, 6:28 AMshy-garden-29015
07/26/2018, 5:16 PMincalculable-sundown-82514
07/26/2018, 5:18 PMnarrow-elephant-93283
07/26/2018, 6:33 PMshy-garden-29015
07/27/2018, 1:55 AMtall-librarian-49374
07/27/2018, 4:08 PMpanic: fatal: An assertion has failed
on update and Duplicate resource URN...
on refresh)?polite-helicopter-45187
07/27/2018, 7:18 PMstocky-spoon-28903
07/30/2018, 7:54 PMbig-piano-35669
07/31/2018, 5:40 AMfind . -name 'package.json' | xargs sed -i '' 's/"typescript": ".*"/"typescript": "^3.0.0"/g'
🎉strong-helicopter-19655
07/31/2018, 8:08 AMcloud.API
to a production domain like <http://api.example.com|api.example.com>
without getting my hands dirty with aws.acm
and `api.attachCustomDomain`'s certificate content stuff. I don't know how this'd work in a provider-agnostic way…adventurous-jordan-10043
07/31/2018, 8:19 AMstrong-helicopter-19655
07/31/2018, 10:32 AMtall-librarian-49374
07/31/2018, 3:06 PMadventurous-jordan-10043
07/31/2018, 3:16 PMstocky-spoon-28903
07/31/2018, 4:23 PMstocky-spoon-28903
07/31/2018, 4:23 PMcolossal-beach-47527
07/31/2018, 4:26 PMcdk
reacts if two people try to update the same set of resources at the same time. Or version tracking, etc.stocky-spoon-28903
07/31/2018, 4:27 PMcdk synth
command)colossal-beach-47527
07/31/2018, 4:28 PMstocky-spoon-28903
07/31/2018, 4:30 PM