adamant-motorcycle-38425
11/18/2019, 2:22 PMindex.ts
. It returns a promise. How can I do:
const someAwsValue = await new AWS().someService().someMethod().promise();
or similar in index.ts? Or even:
new AWS().someService().someMethod(params, (someAwsValue)=> {
// do Pulumi things in here, referencing someAwsValue in scope
})
Pulumi won't let me wrap everything in a top-level async function without dying. I tried looking in the docs how to use aws-sdks or perform async things inside of a Pulumi project, not sure how to proceed. šbillowy-laptop-45963
11/18/2019, 3:47 PMconst p = new aws.Provider(`main-provider`, {profile: profile, region: region})
am I correct in that there is no way of getting the profile/region on p?numerous-dream-98392
11/18/2019, 5:56 PMnumerous-dream-98392
11/18/2019, 5:58 PMpulumi plugin rm resource gcp 1.5.0
pulumi plugin install resource gcp 1.6.0
and setting "@pulumi/gcp": "^1.6.0"
in packages.json
doesn't seem to make a difference - pulumi up
still automatically downloads 1.5.0careful-market-30508
11/18/2019, 9:33 PMmillions-judge-24978
11/18/2019, 10:23 PMwarning: Synchronous call made to "aws:index/getAvailabilityZones:getAvailabilityZones" with an unregistered provider.
I do not have any calls to this in my code. Would it be possible to get this warning from new awsx.ec2.Vpc(...)
potentially?billowy-laptop-45963
11/18/2019, 10:29 PMaws.getCallerIdentity({provider: provider})
in ten different places with the same provider will it cause 10 api calls?square-rocket-59657
11/19/2019, 7:16 AMvar AWSXRay = require('aws-xray-sdk-core');
var AWS = AWSXRay.captureAWS(require('aws-sdk'));
I came across this open issue: https://github.com/pulumi/pulumi-cloud/issues/46 but wanted to ask before diving deeperfresh-potato-86877
11/19/2019, 7:55 AMbrave-angle-33257
11/19/2019, 6:09 PMpulumi.stackReference
in any way without using the pulumi cloud backend (like with s3)? passing in a state file or something similar?handsome-truck-95168
11/19/2019, 8:28 PMmicroscopic-actor-66009
11/19/2019, 9:09 PMtall-carpet-41250
11/19/2019, 9:11 PMbright-apple-15972
11/19/2019, 9:32 PMtall-carpet-41250
11/19/2019, 9:38 PMtall-carpet-41250
11/19/2019, 10:06 PMrm
but now I canāt create a project with the same name. Any way to delete that project from pulumiās state when the project doesnāt exist?quaint-queen-45003
11/19/2019, 10:43 PMmillions-judge-24978
11/20/2019, 12:09 AMpulumi
github org? There seem to be several references that do not get replaced by make prepare
and Iām having a hard time getting the provider to build.limited-rain-96205
11/20/2019, 1:06 AMpulumi new --help
, we should use `--stack`:
-s, --stack string The stack name; either an existing stack or stack to create; if not specified, a prompt will request it
However, if I do that with an existing stack, it gives an error:
$ pulumi new -n p3 --stack dev
Please choose a template: gcp-typescript A minimal Google Cloud TypeScript Pulumi program
This command will walk you through creating a new Pulumi project.
Enter a value or leave blank to accept the (default), and press <ENTER>.
Press ^C at any time to quit.
project description: (A minimal Google Cloud TypeScript Pulumi program)
Created project 'p3'
Enter your passphrase to protect config/secrets:
Re-enter your passphrase to confirm:
error: stack 'dev' already exists
numerous-dream-98392
11/20/2019, 4:47 PMmost-lighter-1731
11/20/2019, 10:11 AMecs.EC2Service
?incalculable-engineer-92975
11/20/2019, 1:39 PMnumerous-dream-98392
11/20/2019, 4:50 PMcool-egg-852
11/20/2019, 5:29 PMvault.Policy
requires the policy
property as a string instead of an object?tall-carpet-41250
11/20/2019, 6:19 PMcool-egg-852
11/20/2019, 6:29 PMPlan apply failed: inputs to import do not match the existing resource
?straight-insurance-27894
11/20/2019, 8:19 PMstraight-insurance-27894
11/20/2019, 8:20 PMstraight-insurance-27894
11/20/2019, 8:20 PMstraight-insurance-27894
11/20/2019, 8:20 PM