gorgeous-ram-57119
12/07/2022, 3:13 PMconst scheduleHandler = async (
event: aws.cloudwatch.EventRuleEvent
) => {
// I want to access MY_ENV_VAR here
// but it doesnt show up in the logs
console.log("envs", process.env);
}
const lambdaEnvVars: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}> = {};
lambdaEnvVars["MY_ENV_VAR"] = "my value";
const scheduler: aws.cloudwatch.EventRuleEventSubscription =
aws.cloudwatch.onSchedule(
"schedulePublisher",
"cron(* * * * *)",
scheduleHandler,
{
environment: {
variables: {
MY_ENV_VAR: "my value",
},
},
);
careful-book-62830
12/07/2022, 3:42 PMd.ts
files. How to force Pulumi to read these files? Typescript sees them and compiles, but Pulumi doesn’tcold-toothbrush-60276
12/07/2022, 4:15 PM../node_modules/esbuild/bin/esbuild ../src/index.js --bundle --outfile=index.js --platform=node --tsconfig=../tsconfig.json --target=node12
cold-toothbrush-60276
12/07/2022, 4:16 PMerror: Running program 'tmp' failed with an unhandled exception:
ReferenceError: window is not defined
cold-toothbrush-60276
12/07/2022, 4:17 PM// ../node_modules/@pulumi/pulumi/proto/status_pb.js
var require_status_pb = __commonJS({
"../node_modules/@pulumi/pulumi/proto/status_pb.js"(exports2) {
var jspb2 = require_google_protobuf();
var goog2 = jspb2;
var global2 = function() {
return this || window || global2 || self || Function("return this")(); <-----------------
}.call(null);
var google_protobuf_any_pb = require_any_pb();
goog2.object.extend(proto, google_protobuf_any_pb);
goog2.exportSymbol("proto.google.rpc.Status", null, global2);
proto.google.rpc.Status = function(opt_data) {
jspb2.Message.initialize(this, opt_data, 0, -1, proto.google.rpc.Status.repeatedFields_, null);
};
cold-toothbrush-60276
12/07/2022, 4:17 PMwindow
in something that should hardly ever run in a browser?!modern-petabyte-38275
12/08/2022, 12:58 AMdamp-painting-47843
12/08/2022, 5:08 PMpulumi.Input
. It’s not found. I’m importing pulumi using import * as pulumi from "@pulumi/pulumi";
Any reason why Input wouldn’t be defined? pulumi.Output
is but there is no Input
. Pulumi is version 3.46.1.cuddly-napkin-89521
12/09/2022, 2:10 PMArgument of type '{ name: string; resourceGroupName: Output<string>; script_href: string; config_href: string; test_data_href: string; href: string; script_root_path_href: string; language: string; config: { ...; }; }' is not assignable to parameter of type 'WebAppFunctionArgs'.
Object literal may only specify known properties, but 'script_href' does not exist in type 'WebAppFunctionArgs'. Did you mean to write 'scriptHref'?
my code:
const etlFunctionApp = new web.WebAppFunction("fa-horizon-etl-dev-functionapp", {
name: "fa-horizon-etl-dev-functionapp/data_validation",
resourceGroupName: etlResourceGroup.name,
script_href: "<https://func-horizon-dev-etl.azurewebsites.net/admin/vfs/home/site/wwwroot/data_validation/__init__.py>",
config_href: "<https://func-horizon-dev-etl.azurewebsites.net/admin/vfs/home/site/wwwroot/data_validation/function.json>",
test_data_href: "<https://func-horizon-dev-etl.azurewebsites.net/admin/vfs/home/data/Functions/sampledata/data_validation.dat>",
href: "<https://func-horizon-dev-etl.azurewebsites.net/admin/functions/data_validation>",
script_root_path_href: "<https://func-horizona-dev-etl.azurewebsites.net/admin/vfs/home/site/wwwroot/data_validation/>",
language: "python",
config: {
scriptFile: "__init__.py",
bindings: [
{
name: "blob",
type: "blobTrigger",
direction: "in",
path: "uploaded-zone/{name}.json",
connection: "AzureWebJobsStorage"
}
]
},
});
magnificent-pizza-54661
12/11/2022, 1:42 AMcold-toothbrush-60276
12/11/2022, 8:21 PMerror: It looks like the Pulumi SDK has not been installed. Have you run npm install or yarn install?
rough-jordan-15935
12/14/2022, 4:33 PMcrooked-laptop-67565
12/15/2022, 11:32 PM@pulumi/awsx
to 1.0.1
and I'm now getting an error that buildAndPushImage
does not exist on an instance of awsx.ecr.Repository
. The docs refer to the function but their link is broken (shows as [buildAndPushImage]
) and it does seem like the method is missing. Is this a bug?
https://www.pulumi.com/registry/packages/awsx/api-docs/ecr/repository/breezy-laptop-42679
12/20/2022, 2:05 PMkind-room-82948
12/20/2022, 6:45 PMimportant-australia-24045
12/22/2022, 3:21 PMfew-rocket-71683
12/27/2022, 12:32 PMerror creating Connector "pulumi-test-connector": error sending validation request: 401 Unauthorized
while trying to create connector in the confluent cloud. But I am able to create the connector via UI.
Could someone help me resolve this or point to a specific channel where this can be posted? Thanksacoustic-cricket-46601
12/28/2022, 6:34 PMripe-cat-40820
01/03/2023, 3:47 PMpulumi
and I have a question about javascript usage:
// 1.
const image = new docker.Image(...) // promise ?
// 2.
const service = new gcp.cloudrun.Service(, { // promise too
...
image: image.imageName,
...
})
I guess 1. new docker.Image
returns a promise, but how 2. await
for it ?ripe-cat-40820
01/03/2023, 4:33 PMpulumi up
succeeds.
Is there no way to automate any of those 3 extra steps ?blue-mouse-93986
01/05/2023, 3:13 PMexport const name = new aws.dynamodb.Table("name", {
attributes: [
{
name: "sortKeyName",
type: "S",
},
{
name: "partionKeyName",
type: "S",
},
],
hashKey: "partionKeyName",
name: "tempTableDeleteThis",
pointInTimeRecovery: {
enabled: false,
},
rangeKey: "sortKeyName",
readCapacity: 5,
ttl: {
attributeName: "",
},
writeCapacity: 5,
},
{import:"WHAT ID DO I PUT HERE !?!?!?!?!?!?!"}
)
This is the example and disclaimer from the official documentation:
example -
import * as aws from "@pulumi/aws";
let group = new aws.ec2.SecurityGroup("my-sg", {
name: "my-sg-62a569b",
ingress: [{ protocol: "tcp", fromPort: 80, toPort: 80, cidrBlocks: ["0.0.0.0/0"] }],
}, { import: "sg-04aeda9a214730248" });
disclaimer-
Note: Import IDs are resource specific. The ID to use is the same as the ID that gets assigned when Pulumi has provisioned a resource of that type from scratch and can be found in the resource's API docs. We support import IDs for all generally available providers.
any help would be appreciated 🙂faint-balloon-33174
01/06/2023, 7:43 PM@pulumi/awsx
1.0.1 are incorrect, like executionRole
on FargateTaskDefinition
is not pulumi.Output<pulumiAws.iam.Role | undefined>
but instead pulumi.Output<string | undefined>
since when I apply it it is the name of the role, not the role itselfcalm-horse-33012
01/11/2023, 11:04 PMmodule
-field and append that after resource?stocky-sundown-45608
01/12/2023, 4:19 AMstocky-sundown-45608
01/12/2023, 4:19 AMError: invocation of kubernetes:helm:template returned an error: failed to generate YAML for specified Helm chart: failed to create chart from template: execution error at (neo4j-cluster-core/templates/_helpers.tpl:73:16): No node exists in the cluster which has all the below labels (.Values.nodeSelector)
%smap[<http://cloud.google.com/gke-nodepool:primarynodes-1d024b4|cloud.google.com/gke-nodepool:primarynodes-1d024b4>]
at Object.callback (/e/node_modules/@pulumi/runtime/invoke.ts:172:33)
at Object.onReceiveStatus (/node_modules/@grpc/grpc-js/src/client.ts:338:26)
at Object.onReceiveStatus (/node_modules/@grpc/grpc-js/src/client-interceptors.ts:426:34)
at Object.onReceiveStatus (/node_modules/@grpc/grpc-js/src/client-interceptors.ts:389:48)
at /node_modules/@grpc/grpc-js/src/call-stream.ts:276:24
at processTicksAndRejections (node:internal/process/task_queues:77:11)
bitter-chef-49076
01/12/2023, 10:31 AM@pulumi/cloud
still maintained? It’s github repo looks like abandoned.cuddly-dusk-58622
01/13/2023, 1:38 PM@opentelemetry/instrumentation
) and hopefully looking for a solution that isn’t “add all the transitive dependencies to your own dependencies” 😬better-translator-47169
01/16/2023, 2:57 AMnew aws.s3.Bucket
if it exists when running pulumi up
?blue-mouse-93986
01/16/2023, 9:12 AMpulumi.up
(using automation api)
I'm trying to run the operation in parallel
This is my code and it looks like it’s running sequential and not parallel
const opts: UpOptions = {
onEvent: logEventUpdateOutput,
parallel: 2147483647,
}
const upRes: UpResult = await stack.up(opts)
all advice is welcome
Is there something that I can do in order to have faster deployment ? to make it run in parallel ?stocky-sundown-45608
01/16/2023, 3:52 PM