future-air-70511
11/10/2020, 5:42 PMerror: open \\.\pipe\pulumi1078871896\invoke_req: The system cannot find the path specified.
colossal-australia-65039
11/11/2020, 9:45 PMimport * as aws from "@pulumi/aws"
import * as awsx from "@pulumi/awsx"
const vpc = aws.ec2.Vpc.get('vpc_name', 'vpc-39485703984509')
const listener = new awsx.lb.NetworkListener("nginx", { vpc, port: 80 })
index.ts(18,57): error TS2740: Type 'Vpc' is missing the following properties from type 'Vpc': vpc, initialize, addInternetGateway, addNatGateway, and 12 more.
how can i reference an already-existing resource and use it with crosswalk?steep-angle-29984
11/12/2020, 9:44 AMpulumi.log.debug()
?red-area-47037
11/12/2020, 5:42 PMrepositories: |
- url: git@github.com:group/repo.git
sshPrivateKeySecret:
name: secret-name
key: sshPrivateKey
In Pulumi I use the following code to deploy the ArgoCD chart and try to pass in the relevant configuration for the repositories as part of the values. The values are defined in Javascript Object notation and I don't know how I can define the configration in the expected literal YAML block scalar format...
const argocdChart = new k8s.helm.v3.Chart(
'argocd',
{
chart: 'argo-cd',
namespace: 'argocd',
version: '2.9.3',
fetchOpts: {
repo: '<https://argoproj.github.io/argo-helm>'
},
values: {
configs: {
secret: {
argocdServerAdminPassword: config.argocd.passwordHash
}
},
server: {
config: {
'application.instanceLabelKey': '<http://argocd.argoproj.io/instance|argocd.argoproj.io/instance>',
repositories: `
- url: "<https://github.com/mycorp/myprivaterepo>"
passwordSecret:
name: "${argocdGitHubTokenSecretName}",
key: "password"
usernameSecret:
name: "${argocdGitHubTokenSecretName}",
key: "username"`,
}
}
}
},
{
provider: cluster.provider,
dependsOn: [certmanager]
}
)
I tried different solutions (e.g. Raw string
as you see above or just using js object notation), but somehow nothing so far worked and I am stuck right now 😞 I know this is basically more a Typescript / Javascript question, but I hope someone of you has the right tip.
Thanks,
Andreaswet-soccer-72485
11/14/2020, 6:50 PMkind-addition-90773
11/15/2020, 1:25 AMfor (let i = 0; i < pulumi.output(subnets).apply(x => x.length); i++ ) {
// do something with subnets[i]
}
kind-addition-90773
11/15/2020, 1:27 AMOperator '<' cannot be applied to types 'number' and 'OutputInstance<number>'.ts(2365)
kind-addition-90773
11/15/2020, 1:29 AMdazzling-sundown-39670
11/15/2020, 3:59 AMpulumi.dynamic.Resource
constructor before running super?little-cartoon-10569
11/16/2020, 2:18 AMUnable to deserialize resource urn😛ulumi:stack:😛roject:myproj:aws:MyComponent$aws:iam/role:Role::MyComponent, no module is registered for iam/role.
limited-postman-77982
11/17/2020, 2:18 AMerror: failed to load language plugin node.js: no language plugin 'node.js' found in the workspace or on your $PATH
I've verified that I have nvm installed correctly and I've just set my .nvm in the dir that I'm working in for node lts ...
$ node -v
v14.15.1
This is from that directory.
/.nvm/versions/node/v14.15.1/bin:
I'm omitting my User/name/ but this is in my $PATH ...
I'm sure I'm missing something simple, but thought I'd reach out.
As a note, I have successfully launch numerous aks and other resources on Azure without issue using TS. But this is a new directory and update node.js version, etc.
Any help would be very appreciated!
Thanks!limited-postman-77982
11/17/2020, 2:19 AMlimited-postman-77982
11/17/2020, 2:26 AM$ pulumi plugin install
error: failed to load language plugin node.js: no language plugin 'node.js' found in the workspace or on your $PATH
quiet-wolf-18467
11/17/2020, 2:26 PMquiet-wolf-18467
11/17/2020, 3:58 PMkubernetes.yaml.ConfigFile
and making assertions against the specs? I’m really struggling and would appreciate an assist 🙂quiet-wolf-18467
11/17/2020, 3:59 PMquiet-wolf-18467
11/17/2020, 4:00 PMrhythmic-flag-11093
11/18/2020, 7:39 PMDiagnostics:
pulumi:pulumi:Stack (aws-xxx-local-abdul):
The Pulumi runtime detected that 97 promises were still active
at the time that the process exited. There are a few ways that this can occur:
* Not using `await` or `.then` on a Promise returned from a Pulumi API
* Introducing a cyclic dependency between two Pulumi Resources
* A bug in the Pulumi Runtime
Leaving promises active is probably not what you want. If you are unsure about
why you are seeing this message, re-run your program with the `PULUMI_DEBUG_PROMISE_LEAKS`
environment variable. The Pulumi runtime will then print out additional
debug information about the leaked promises.
I reverted all the changes but the error still persists. Any idea how to "reset"? The code I used was also commented saying it resolved promises
lol ¯¯\_( ͡° ͜ʖ ͡°)_/¯busy-soccer-65968
11/24/2020, 8:53 PMDocker.Image
building during preview. is this typical?salmon-honey-75627
11/24/2020, 10:46 PMlittle-cartoon-10569
11/25/2020, 10:25 PMreturn expect(bucketObject.name.promise()).to.eventually.eql("Joanne.txt");
Is there a way to do something more like this?
return user.name.promise().then(username => expect(bucketObject.name.promise()).to.eventually.eql(`${username}.txt`));
adamant-translator-31969
12/02/2020, 1:11 PMdazzling-sundown-39670
12/02/2020, 2:08 PMnew k8s.core.v1.Namespace(namespaceName)
to new k8s.core.v1.Namespace(namespaceName, {}, { provider: k8sProvider });
recreate the namespace? Is there some way I can avoid recreating it? I really need to put provider there but I don't want to update every single resource in my clusterbreezy-cricket-40277
12/03/2020, 9:54 AM@pulumi/random
and then I have my own method to generate an hash out of it, then base64
encode to put in a k8s secret. My question is, how can I make sure that my hash
method is only called if the RandomPassword
changes?sparse-soccer-23105
12/07/2020, 2:26 PMnew aws.Provider(
`${account}-assume-role-${region}`,
{
assumeRole: {
roleArn: `arn:aws:iam::${acc.Id}:role/automation-role`,
sessionName: "xxxx",
externalId: "xxxx"
},
region
},
{ version: "2.13.1" }
);
gifted-terabyte-92288
12/08/2020, 3:51 PM// file 1 - pulumi.ts
import lambdaFn from './lambda.ts';
const bucket = new aws.s3.Bucket('blake-lambda-bucket');
const endpoint = new awsx.apigateway.API('create', {
routes: [
{
path: '/',
method: 'POST',
eventHandler: lambdaFn
}
]
});
export const lambdaUrl = endpoint.url;
export const bucketId = bucket.id
// file 2 - lambda.ts
import { bucketId } from './pulumi.ts';
async function putStuffInBucket() {
// do things
}
export default putStuffInBucket
File 1 depends on the lambda code in file 2. File 2 depends on file 1 for the bucket name. That seems like a circular dependency, no? I've seen some examples where a string relative path is used to point to a file -- is that the preferred pattern? Can that point to a directory? I've also seen environment variables being set for some lambdas from the Pulumi file and those being consumed via lambda code. Just looking for some guidance on best practices / preferred patterns - thanks!little-cartoon-10569
12/08/2020, 10:33 PMerror TS2339: Property 'promise' does not exist on type 'Output<string>'.
66 resource.arn.promise()
My test file includes this:
declare module '@pulumi/pulumi' {
export interface OutputInstance<T> {
promise(withUnknowns?: boolean): Promise<T>;
}
}
This has worked until 3.17.0, and in theory has nothing to do with pulumi-aws...little-cartoon-10569
12/08/2020, 10:34 PMerror TS7053: Element implicitly has an 'any' type because expression of type '0' can't be used to index type 'Output<string[] | undefined>'.
Property '0' does not exist on type 'Output<string[] | undefined>'.
resource.propertyOfTypeOutputStringArray[0].promise(),
little-cartoon-10569
12/11/2020, 1:24 AMcolossal-easter-73659
12/11/2020, 2:53 PMcolossal-easter-73659
12/11/2020, 2:53 PM