helpful-ice-5738
02/15/2019, 1:05 AMMethodSettings
?brave-angle-33257
02/15/2019, 1:34 AMhelpful-holiday-1475
02/15/2019, 2:10 AMsparse-action-84781
02/15/2019, 4:02 PMcuddly-eye-68174
02/15/2019, 6:26 PMfaint-vegetable-61837
02/15/2019, 9:50 PMhelpful-ice-5738
02/16/2019, 1:12 AMconst demo_usage_plan = new aws.apigateway.UsagePlan("DemoUsagePlan", {
apiStages: [
{
apiId: demo_api.id,
stage: demo_deployment.stageName,
},
],
description: "demo",
the demo_deployment and the demo_api exist.
I ran refresh, no changes to UsagePlan (or api or the stage):
ââ aws:apigateway:UsagePlan DemoUsagePlan
I require an API Key. the API key is associated with the usage plan. The usage plan is not associated with an API --> I cannot use my API with an APIKey. I did have a stack working where this was fine. The code hasnât changed and even if it had, Iâd expect pulumi to err at the stageName if it doesnât exist or something. Any thoughts on what I might have missed or if thereâs a bug here?millions-judge-24978
02/16/2019, 1:25 AMdeleteBeforeReplace
option added in 0.16.14
(with typescript). I have the correct version of the @pulumi/pulumi
package, but it does not seem to have this new option on the CustomResourceOptions
type.powerful-elephant-53462
02/16/2019, 10:32 PMproud-artist-4864
02/17/2019, 1:12 PMbrave-salesmen-42327
02/17/2019, 4:33 PMecr.getAuthorizationToken()
and pass that to docker login
to allow docker to push images. The CLI solution is to execute something like: $(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email)
.
Is this baked into pulumi somewhere or do I need to wrangle all that manually?enough-quill-87570
02/18/2019, 12:26 AMenough-quill-87570
02/18/2019, 1:20 AMpulumi down
resort to pulumi destroy
would be a nice misc. change, with pulumi up
being the apply command đ)fast-boots-34053
02/18/2019, 8:48 AMgifted-island-55702
02/18/2019, 2:04 PMbetter-quill-77184
02/18/2019, 2:39 PMenough-quill-87570
02/18/2019, 10:48 PMenough-quill-87570
02/18/2019, 10:48 PMfreezing-house-86375
02/19/2019, 3:27 AMenough-quill-87570
02/19/2019, 3:30 AMfreezing-house-86375
02/19/2019, 3:55 AMenough-quill-87570
02/19/2019, 3:56 AMenough-quill-87570
02/19/2019, 3:59 AMfreezing-house-86375
02/19/2019, 4:00 AMfreezing-house-86375
02/19/2019, 4:10 AMfreezing-house-86375
02/19/2019, 8:18 AMimport * as cloud from "@pulumi/cloud";
import * as pulumi from "@pulumi/pulumi";
const app = new cloud.API("my-app");
const config = new pulumi.Config();
const test = config.require("sendgrid_apikey");
// Serve a simple REST API on `GET /hello`:
app.get("/hello", async (_, res) => {
res.json({
cred: test
});
});
export let url = app.publish().url;
That code, and this code
import * as cloud from "@pulumi/cloud";
import * as pulumi from "@pulumi/pulumi";
const app = new cloud.API("my-app");
const config = new pulumi.Config();
// Serve a simple REST API on `GET /hello`:
app.get("/hello", async (_, res) => {
res.json({
cred: config.require("sendgrid_apikey")
});
});
export let url = app.publish().url;
The first one works, but the second one throws error like this
2019-02-19T15:13:34.381+07:00[ my-app1c06b73d] (node:1) UnhandledPromiseRejectionWarning: Error: Cannot find module '@pulumi/pulumi/runtime/index.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at /var/task/__index.js:238:23
at __f3.__f4 (/var/task/__index.js:269:6)
at __f3.<anonymous> (/var/task/__index.js:374:24)
at __f3.__f14 (/var/task/__index.js:382:34)
at /var/task/__index.js:451:22
at Generator.next (<anonymous>)
freezing-house-86375
02/19/2019, 8:18 AMfreezing-house-86375
02/19/2019, 8:19 AMfreezing-house-86375
02/19/2019, 8:19 AMbetter-rainbow-14549
02/19/2019, 9:45 AMpublicIpAddressAllocation
to allocationMethod
and it takes absolutely ages. is it getting a new IP? i thought it was just a property rename?