little-cartoon-10569
09/17/2020, 3:07 AMastonishing-tiger-81216
09/17/2020, 11:51 AMaws.wafv2
object which doesn’t appear to be present in my current version.
Has anyone done this before? Did it go well?nutritious-flower-51098
09/23/2020, 3:50 PMclean-breakfast-29827
09/23/2020, 10:44 PMgraphql
example, started with awsx.apigateway.API
but I'm wondering if I should switch to appsync
https://github.com/pulumi/examples/blob/master/aws-ts-appsync/index.ts
atm I'm using apollo-server-lambda -> new ApolloServer({ typeDefs, resolvers })
but this is starting to feel kind of redundant anybody have any thoughts there?millions-furniture-75402
09/28/2020, 3:22 PMconstructor(bucketName: string) {
super(bucketName);
}
salmon-ghost-86211
09/29/2020, 9:34 PMerror: aws:efs/fileSystemPolicy:FileSystemPolicy resource 'policy' has a problem: "policy" contains an invalid JSON: invalid character '\n' in string literal
I have copied the example exactly from here <https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/aws/efs/#FileSystemPolicy>
except for fixing the invalid reference aws_efs_file_system.test.arn
.
I also converted the leading spaces in the policy string to tabs in case that made a difference. It didn't.
pulumi: v2.10.2
pulumi aws plugin: 3.5.0
node: v12.* (tried several versions to see of that mattered)
Any ideas?salmon-ghost-86211
09/29/2020, 9:36 PMnutritious-flower-51098
10/07/2020, 2:05 PMpulumi.interpolate
doesn’t help. Is there any pattern to follow for this kind of functionality?adamant-translator-31969
10/09/2020, 2:08 PMmocha -r ts-node/register ec2tests.ts
with mocha this message appears ERROR: Error: Cannot find module 'ts-node/register'
Require stack:
numerous-psychiatrist-20856
10/13/2020, 7:34 AMpulumi.Input<KeyValuePair[]>
and also want to add some extra variables to that array, but not sure how to correctly work with the input types to be able to concat two arrays at the endnumerous-psychiatrist-20856
10/13/2020, 7:34 AMadamant-translator-31969
10/13/2020, 3:27 PMcalm-greece-42329
10/15/2020, 7:23 PMcalm-greece-42329
10/15/2020, 7:24 PMretetionInDays
is readonlybrash-scientist-65555
10/15/2020, 9:26 PMcalm-greece-42329
10/16/2020, 5:34 PMlittle-cartoon-10569
10/20/2020, 9:53 PMpulumi up
I'm getting ENOENT errors about a missing package.json.
I could probably copy the defunct project's package.json, but I'd rather build a new one. How do I force npm or Pulumi to build a new package.json for use by the lambda-deploying code?brainy-policeman-17905
10/21/2020, 2:41 PMOutput
Input
data structure, I've run this example
import * as pulumi from "@pulumi/pulumi";
const x: pulumi.Output<string> = pulumi.output("testing")
console.log(x.apply(x => x))
I was expecting to have a console.log
saying "testing" when I run pulumi preview
in the terminal nut instead I got
pulumi:pulumi:Stack (ww-pulumi-dev):
OutputImpl {
__pulumiOutput: true,
resources: [Function],
allResources: [Function],
isKnown: Promise { <pending> },
isSecret: Promise { <pending> },
promise: [Function],
toString: [Function],
toJSON: [Function]
}
I guess my question is how can I output stuff to the terminal based in a Output
object?brainy-policeman-17905
10/21/2020, 2:43 PMaverage-kilobyte-47828
10/21/2020, 9:28 PMwet-soccer-72485
10/23/2020, 9:13 PMconst k8sCluster = new gcp.container.Cluster();
k8sCluster.on('update', () => {
pulumi.log.warn(
`NOTE: It takes upwards of 35 minutes to update the Cluster. The current timeout for updates and deletes is hardcoded and the supplied create timeout is "${clusterTimeout}"`,
this.k8sCluster
);
});
colossal-school-15171
10/25/2020, 2:54 AM$ pulumi up
Previewing update (identity)
View Live: <https://app.pulumi.com/dangersorus/k8s-az-identity/identity/previews/7d98c3c1-8011-4cef-af17-b168d33489e7>
Type Name Plan Info
+ pulumi:pulumi:Stack k8s-az-identity-identity create 1 error
Diagnostics:
pulumi:pulumi:Stack (k8s-az-identity-identity):
error: Running program '/Users/admin/Documents/workspace/k8s-cluster/01-identity' failed with an unhandled exception:
TSError: ⨯ Unable to compile TypeScript:
index.ts(114,39): error TS2339: Property 'objectId' does not exist on type 'Promise<GetClientConfigResult>'.
index.ts(139,13): error TS2339: Property 'objectId' does not exist on type 'Promise<GetUserResult>'.
at createTSError (/Users/admin/Documents/workspace/k8s-cluster/01-identity/node_modules/ts-node/src/index.ts:261:12)
at getOutput (/Users/admin/Documents/workspace/k8s-cluster/01-identity/node_modules/ts-node/src/index.ts:367:40)
at Object.compile (/Users/admin/Documents/workspace/k8s-cluster/01-identity/node_modules/ts-node/src/index.ts:558:11)
at Module.m._compile (/Users/admin/Documents/workspace/k8s-cluster/01-identity/node_modules/ts-node/src/index.ts:439:43)
at Module._extensions..js (node:internal/modules/cjs/loader:1112:10)
at Object.require.extensions.<computed> [as .ts] (/Users/admin/Documents/workspace/k8s-cluster/01-identity/node_modules/ts-node/src/index.ts:442:12)
at Module.load (node:internal/modules/cjs/loader:948:32)
at Function.Module._load (node:internal/modules/cjs/loader:789:14)
at Module.require (node:internal/modules/cjs/loader:972:19)
at require (node:internal/modules/cjs/helpers:88:18)
and then a different error code here
$ pulumi stack select
Please choose a stack, or create a new one: infra
$ pulumi up
Previewing update (infra)
View Live: <https://app.pulumi.com/dangersorus/k8s-az-infra/infra/previews/55b69106-e31c-4dc9-902a-3f804174a9cb>
Type Name Plan Info
+ pulumi:pulumi:Stack k8s-az-infra-infra create 1 error
Diagnostics:
pulumi:pulumi:Stack (k8s-az-infra-infra):
error: Running program '/Users/admin/Documents/workspace/k8s-cluster/02-managed-infra' failed with an unhandled exception:
TSError: ⨯ Unable to compile TypeScript:
index.ts(1,24): error TS2307: Cannot find module '@pulumi/azure'.
at createTSError (/Users/admin/Documents/workspace/k8s-cluster/node_modules/ts-node/src/index.ts:261:12)
at getOutput (/Users/admin/Documents/workspace/k8s-cluster/node_modules/ts-node/src/index.ts:367:40)
at Object.compile (/Users/admin/Documents/workspace/k8s-cluster/node_modules/ts-node/src/index.ts:558:11)
at Module.m._compile (/Users/admin/Documents/workspace/k8s-cluster/node_modules/ts-node/src/index.ts:439:43)
at Module._extensions..js (node:internal/modules/cjs/loader:1112:10)
at Object.require.extensions.<computed> [as .ts] (/Users/admin/Documents/workspace/k8s-cluster/node_modules/ts-node/src/index.ts:442:12)
at Module.load (node:internal/modules/cjs/loader:948:32)
at Function.Module._load (node:internal/modules/cjs/loader:789:14)
at Module.require (node:internal/modules/cjs/loader:972:19)
at require (node:internal/modules/cjs/helpers:88:18)
bitter-zebra-93800
10/26/2020, 10:14 PMstocky-helicopter-22690
10/27/2020, 5:48 PMArgument of type '{ import: any; }' is not assignable to parameter of type 'ComponentResourceOptions'.
Object literal may only specify known properties, and 'import' does not exist in type 'ComponentResourceOptions'
wet-soccer-72485
10/31/2020, 4:59 AMCalling [toString] on an [Output<T>] is not supported. To get the value of an Output<T> as an Output<string> consider either: 1: o.apply(v => `prefix${v}suffix`) 2: pulumi.interpolate `prefix${v}suffix` See <https://pulumi.io/help/outputs> for more details. This function may throw in a future version of @pulumi/pulumi.-file-run-pulumi-up an hour ago
mysterious-portugal-46322
11/03/2020, 9:20 AMcreamy-traffic-12121
11/03/2020, 2:38 PM$ pulumi up
. The bucket in question does have versioning enabled.proud-spoon-58287
11/06/2020, 1:01 PMDiagnostics:
pulumi:pulumi:Stack (platform-data-kafka-stage-stage):
error: Running program '/Users/sdicola/IdeaProjects/property-xyz/platform-data-kafka-stage' failed with an unhandled exception:
Error: providerCredentialOpts and AWS_PROFILE must be set together
careful-architect-87653
11/08/2020, 2:22 PMSecret outputs cannot be captured by a closure.
error.
AFAIK, closure here means the code that gets serialized into Lambda?
How am I supposed to access config secrets?quiet-wolf-18467
const projectID = getProject({
projectId: config.require("projectID"),
}).then(project => project.id);
Why is projectID still a promise? 😂 I feel so stupid