proud-cricket-86351
05/03/2022, 8:29 PMfaint-hair-23828
05/05/2022, 6:49 PMpulumi up
command and my hunch is that this problem is related to the memory available for the TS compilation. These errors don't have much information:
@ previewing update....
Resources:
1 unchanged
error: an unhandled error occurred: Program exited with non-zero exit code: -1
Has anyone experienced this before and found a solution? (which isn't bumping the memory - since in this case I cannot do)most-lighter-95902
05/05/2022, 10:43 PMcore.v1.Container
?most-lighter-95902
05/05/2022, 10:44 PMimport
them into my code.most-lighter-95902
05/05/2022, 10:44 PMfew-easter-31331
05/06/2022, 5:25 PMpulumi
with aws-ssm
. I am creating the resource for the Parameter store in SSM but pulumi keeps adding extra unique identification number to the name of the resource and hence changes the name of the key
in the Parameter store. How can I get rid of the extra (unique id attached to each resource's name)?
eg. my key would be "/abc/def"
but pulumi adds this resource instead "/abc/def-aj39872"
, so it becomes impossible to get the key-value pair from the parameter storeabundant-match-36405
05/10/2022, 5:10 PMapiVersion: <http://networking.istio.io/v1alpha3|networking.istio.io/v1alpha3>
kind: EnvoyFilter
metadata:
name: test
spec:
workloadLabels:
app: test
filters:
- listenerMatch:
portNumber: 80
listenerType: SIDECAR_INBOUND
listenerProtocol: HTTP
filterName: envoy.lua
filterType: HTTP
filterConfig:
inlineCode: |
function envoy_on_request(request_handle)
headers = request_handle:headers()
request_handle:headers():add("client-id", headers:get("jwt"))
request_handle:headers():remove("jwt")
end
bland-camera-22041
05/11/2022, 12:51 PMgreat-sunset-355
05/11/2022, 1:34 PMaws.lambda.CallbackFunction
?
Is the CallbackFucntion
intelligent enough to not package the content of the layers?
https://www.datadoghq.com/blog/datadog-lambda-layer/
I'm just starting out the research so all pointers appreciatedgreat-sunset-355
05/13/2022, 1:21 PMtsconfig.json
"paths": {
"datadog-lambda-js": ["/opt/nodejs/node_modules/datadog-lambda-js"]
}
This is the error
{
"errorType": "Error",
"errorMessage": "Cannot find module 'datadog-lambda-js/dist/index.js'\nRequire stack:\n- /var/task/__index.js\n- /opt/nodejs/node_modules/datadog-lambda-js/runtime/user-function.js\n- /opt/nodejs/node_modules/datadog-lambda-js/runtime/index.js\n- /opt/nodejs/node_modules/datadog-lambda-js/handler.js\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js",
"trace": [
"Error: Cannot find module 'datadog-lambda-js/dist/index.js'",
"Require stack:",
"- /var/task/__index.js",
"- /opt/nodejs/node_modules/datadog-lambda-js/runtime/user-function.js",
"- /opt/nodejs/node_modules/datadog-lambda-js/runtime/index.js",
"- /opt/nodejs/node_modules/datadog-lambda-js/handler.js",
"- /var/runtime/UserFunction.js",
"- /var/runtime/index.js",
" at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)",
" at Module.Hook.Module.require (/opt/nodejs/node_modules/dd-trace/packages/dd-trace/src/ritm.js:51:29)",
" at require (internal/modules/cjs/helpers.js:101:18)",
" at /var/task/__index.js:24:50",
" at Object.__f2 [as handler] (/var/task/__index.js:67:6)",
" at /var/task/__index.js:78:36",
" at Generator.next (<anonymous>)",
" at /var/task/__index.js:14:71",
" at new Promise (<anonymous>)",
" at Object.<anonymous> (/var/task/__index.js:10:12)"
]
}
fast-easter-23401
05/13/2022, 8:41 PMbrave-scientist-99340
05/16/2022, 7:59 PMError serializing '() => provider...
basically meaning that the dynamic provider could not be serialized (I expected this).
But I cannot for the life of me figure out how to exclude the @prisma/client
package from being serialized. I tried:
• Custom typescript compilation
• Using await("@prisma/client")
• deploymentOnlyModule
(found this in the code, but does not seem to work)
• runtimeDependencies
(pretty sure this only applies to the serialized lambda functions)
• I tried to search for the code that excludes aws-sdk
to piggyback on that, but I could not actually find it...
Any help is appreciated!polite-king-94596
05/17/2022, 3:53 AM* Error putting IAM role policy fargate-role-policy: MalformedPolicyDocument: Partition "
1" is not valid for resource "arn:
1: o.apply(v => v.toJSON())
2: o.apply(v => JSON.stringify(v))
const fargateTaskRole = fargateTaskDefinition.taskRole;
const fargateTaskRoleId = fargateTaskRole!.id
const fargateRolePolicy = new aws.iam.RolePolicy(
`fargate-role-policy`,
{
role: fargateTaskRoleId,
policy: JSON.stringify({
Version: '2012-10-17',
Statement: [
{
Action: ['s3:ListBucket', 's3:PutObject'],
Effect: 'Allow',
Resource: [someBucket.bucket.apply(bucket => "arn:aws:s3:::${bucket}/*")],
},
],
}),
},
);
Any help appreciated!rough-window-15889
05/17/2022, 6:56 PMancient-eve-13947
05/18/2022, 11:32 AMget
? as in
export interface IScalerRule {
get kedaDefinition(): object;
createSecretAndAuthentication(): pulumi.Resource
}
i'm getting all kinds of errors when I run pulumi preview, and only since I added code using getters:
TSError: ⨯ Unable to compile TypeScript:
keda.ts(8,5): error TS1131: Property or signature expected.
keda.ts(8,9): error TS1005: ';' expected.
keda.ts(8,25): error TS1005: ';' expected.
keda.ts(9,36): error TS1005: ';' expected.
keda.ts(10,1): error TS1128: Declaration or statement expected.
keda.ts(8,5): error TS2304: Cannot find name 'get'.
keda.ts(8,9): error TS2304: Cannot find name 'kedaDefinition'.
keda.ts(8,27): error TS2552: Cannot find name 'object'. Did you mean 'Object'?
keda.ts(9,5): error TS2304: Cannot find name 'createSecretAndAuthentication'.
keda.ts(150,47): error TS2339: Property 'createSecretAndAuthentication' does not exist on type 'IScalerRule'.
keda.ts(151,43): error TS2339: Property 'kedaDefinition' does not exist on type 'IScalerRule'.VSCode is fine with the code, though.
prehistoric-london-9917
05/19/2022, 5:20 AM"@pulumi/aws": "^5",
"@pulumi/awsx": "^0.40",
And something that used to work (a while back) now doesn’t, and I can’t figure out how to update my code to make it work again.
I have an awsx.ec2.Vpc
(notice it’s the CrossWalk VPC), and I’m trying to map the private subnet CIDR blocks so I can use them in a security group ingress rule. This code used to work.
privateCidrBlocks
resolves to Promise<pulumi.Output<string | undefined>[]>
and cidrBlocks
now expects pulumi.Input<pulumi.Input<string>[]>
.
I’d love a suggestion for how to get the CIDR blocks from the vpc.privateSubnets
into a format that I can feed into the cidrBlocks
input for the security group ingress. Any ideas?agreeable-window-77899
05/20/2022, 12:53 PMable-diamond-20131
05/22/2022, 1:02 PMlet instance = new aws.ec2.Instance( ......);
instance.onReplace((_) => {myCodeHere;})
Is this possible with Pulumi ?victorious-church-57397
05/23/2022, 8:49 AMerror: configuring policy pack "aws-mandatory-tags" at "./policy": invalid enforcement level ""
white-chef-55657
05/24/2022, 5:11 PMabstract
*class* myComponent extends pulumi.ComponentResource
and then many implementations of it
I’d like to define an interface that has a property that is typeof myComponent
so I can instantiate it
but when I do I get an error that I cannot init an abstract class
how do I refer implementations of an abstract class?shy-mouse-88505
05/25/2022, 6:10 PMapply
?
const db = new aws.rds.Instance(`postgresdb-${stage}`, {
...
});
export const dbEndpoint = db.endpoint.apply((e) => `${e}`);
But I'm still getting an output
Outputs:
+ dbEndpoint : output<string>
powerful-room-57148
05/26/2022, 6:15 PMpreview
or an up
operation… any chance there’s some way to do this?icy-controller-6092
05/26/2022, 11:41 PMquaint-chef-50700
05/29/2022, 12:02 PM/**
* Custom k8s node taints to be attached to each worker node. Adds the given taints to the `--register-with-taints`
* kubelet argument.
*/
taints?: {
[key: string]: Taint;
};
For example, when defining a NodeGroup:
.
.
.
taints: {
"workload": {value: "gpu", effect: "NoSchedule"},
},
.
.
.
The unfortunate thing with this structure is, it makes it impossible to define two effects for the same taint key:
.
.
.
taints: {
"workload": {value: "gpu", effect: "NoSchedule"},
"workload": {value: "gpu", effect: "NoExecute"},
},
.
.
.
The above is not valid JavaScript (Typescript) because an object cannot have two keys with the same value.
In my opinion, the taints should’ve been an array of Taint
objects, where the Taint
also contains a `key`:
.
.
.
taints: [
{key: "workload", value: "gpu", effect: "NoSchedule"},
{key: "workload", value: "gpu", effect: "NoExecute"},
],
.
.
.
Am I missing anything?
Is there a workaround to have the intended taints with the current structure?
What is the best place to open this as an issue and potentially contribute a fix?lively-painting-61118
05/31/2022, 11:51 PMpulumi up
that needs to check resources, etc.agreeable-window-77899
06/01/2022, 10:25 AMnew awsx.ec2.Vpc
to create a VPC for my application and I need to get the security group id which Pulumi Crosswalk automatically creates so that I can attach the security group to my RDS instance.
What is right way to fetch the auto-created security group details in Pulumi? Do I have to explicitly create the Security group on my own to do this?helpful-easter-62786
06/01/2022, 11:36 PMpulumi config set thing:setting <value>
helpful-kangaroo-55332
06/02/2022, 1:00 PMpulumi preview
with a creation of new Azure Service Bus Topic with subscriptions won't show the subscriptions? Only the Topic is shown in preview mode (pulumi up
works correctly), but since they're not shown they don't allow to manipulate the subscriptions in the same run (eg. adding rules to subscriptions)little-cartoon-10569
06/02/2022, 11:28 PMmicroscopic-cpu-38113
06/06/2022, 12:33 PM