damp-byte-39631
02/03/2022, 2:02 AMconst lb = new awsx.lb.ApplicationListener("nginx", { port: 80 });
const nginx = new awsx.ecs.FargateService("nginx", {
taskDefinitionArgs: {
containers: {
nginx: {
image: "nginx",
memory: 128,
portMappings: [ lb ], // I'd like to specify a different
// container port here
},
},
},
desiredCount: 2,
});
witty-park-12681
02/03/2022, 8:40 PMRDS
and Elasticache
I posted the details here because I was unsure: https://github.com/pulumi/pulumi-aws/issues/1783
What I notice is that RDS
automatically unwraps the underlying value of its endpoint, while Elasticache
does not. So for Elasticache
one needs to use the apply
operator again in order to use the underlying value of cacheNodes
and get the actual endpoint. This seem like a bug to me - it seems to me that the outputs should be handled in the same way across packages 🤷♀️
Regardless I was able to come up with a workable solution but any comment or feedback is appreciated.high-grass-3103
02/05/2022, 9:33 PMexport * from 'file'
and it imported the file and reexported its exports. Now I have to change it all to import 'file'; export {ex1,ex2} from 'file';
But I can't pinpoint which components change is responsible for itrough-intern-34947
02/07/2022, 4:26 PMmagnificent-address-3498
02/08/2022, 3:47 PM@pulumi/hcloud
using Typescript and k0sproject.
To set up the cluster I need to generate a yaml file containing data from a list of created servers (primaryly the internal IP address of each server) and I am struggling to incorporate the outputs.
Does anybody have a pointer on how to locally generate a file using data from outputs?magnificent-address-3498
02/08/2022, 3:48 PMmagnificent-address-3498
02/08/2022, 3:48 PMconst k0sconfig = pulumi.all(nodes).apply((nodes) =>{
return {
apiVersion: k0sctrl.apiVersion,
kind: k0sctrl.kind,
metadata: {
name: "scip",
},
spec: {
hosts: nodes.map((n) => {
return {
role: n.role,
ssh: {
address: n.ip,
keyPath: "~/.ssh/id_ed25519",
}
};
})
}
};
})
k0sconfig.apply((cfg) => <http://pulumi.log.info|pulumi.log.info>(stringify(cfg)))
magnificent-address-3498
02/08/2022, 3:49 PMCalling [toJSON] on an [Output<T>] is not supported.
To get the value of an Output as a JSON value or JSON string consider either:
1: o.apply(v => v.toJSON())
2: o.apply(v => JSON.stringify(v))
See <https://pulumi.io/help/outputs> for more details.
This function may throw in a future version of @pulumi/pulumi.
magnificent-address-3498
02/08/2022, 3:52 PMcreate
method of the provider fail to import code from `yaml`: error: Package subpath './dist/index.js' is not defined by "exports" in …node_modules/yaml/package.json
(which might be caused bythe function serialization?)mammoth-art-6111
02/08/2022, 4:10 PMwet-soccer-72485
02/09/2022, 2:45 AMancient-eve-13947
02/09/2022, 9:41 AMdependsOn
dependency of the other images, Pulumi doesn't wait to build the other images until the builder is done, instead tries to run them in parallel and of course fails for the other images.
I can't see what I'm doing wrong - anyone any idea?
I'll attach code-snippets of the relevant pulumi code passage and the dockerfiles in the threadgreat-sunset-355
02/17/2022, 8:11 AMmammoth-art-6111
02/18/2022, 3:13 PMmammoth-art-6111
02/18/2022, 4:53 PMmammoth-art-6111
02/18/2022, 4:57 PMbusy-journalist-6936
02/20/2022, 12:05 AMcontrolplane-dktkocdx-kong-cluster
I gave it the label:
<http://konghq.com/service=cluster|konghq.com/service=cluster>
I can find the service name with the command:
kubectl get services -nkong --selector '<http://konghq.com/service=cluster|konghq.com/service=cluster>' -ojsonpath='{.items[*].metadata.name}'
I need this name before I render a child helm chart so I can inject the service name.
How do I write a const which looks up this name so I can use it in the child chart?refined-terabyte-65361
02/20/2022, 5:40 PMrefined-terabyte-65361
02/21/2022, 4:15 PMbusy-journalist-6936
02/24/2022, 12:51 AMtls.SelfSignedCert
to issue an mtls certificate used between a few pods.
It feels like I'm close, but I'm getting the following error. I guess perhaps I need to b64 decode the
Diagnostics:
kubernetes:core/v1:Secret (kong-cluster-cert):
error: Preview failed: resource kong/kong-kong-cluster was not successfully created by the Kubernetes API server : Secret in version "v1" cannot be handled as a Secret: illegal base64 data at input byte 0
And it seems these would be the problematic lines in question.
data: {
"tls.crt": kongClusterCert.certPem,
"tls.key": kongClusterCert.privateKeyPem,
Snippet:
//// Issue certificate for kong cluster mtls
const kongClusterKey = new tls.PrivateKey(`${name}-cluster-mtls-pkey`, {
algorithm: "RSA",
rsaBits: 2048,
});
const kongClusterCert = new tls.SelfSignedCert(`${name}-cluster-mtls-cert`, {
privateKeyPem: kongClusterKey.privateKeyPem,
allowedUses: [
"keyEncipherment",
"digitalSignature",
"serverAuth",
"cert_signing",
"crl_signing",
],
keyAlgorithm: kongClusterKey.algorithm,
subjects: [{ commonName: 'kong_clustering' }],
dnsNames: ['kong_clustering'],
validityPeriodHours: 4870,
isCaCertificate: false,
},{
parent: kongClusterKey,
});
// TODO: Consider Rotation Strategy
const secretKongClusterCert = new k8s.core.v1.Secret(`${name}-cluster-cert`, {
apiVersion: "v1",
kind: "Secret",
type: "tls",
metadata: {
name: "kong-kong-cluster",
namespace: "kong",
},
data: {
"tls.crt": kongClusterCert.certPem,
"tls.key": kongClusterCert.privateKeyPem,
},
}, {
dependsOn: [
nsKong,
],
parent: kongClusterCert,
provider: kubeconfig,
});
refined-terabyte-65361
02/24/2022, 12:52 AMrough-intern-34947
02/24/2022, 1:01 PMelegant-crayon-4967
02/24/2022, 8:56 PMaliases
feature to move a resource from one child library to another?straight-cartoon-24485
02/28/2022, 7:32 PMdefault
inside a Pulumi program? E.g.:
$ kubectl get sc | grep \(default\) # find the default class currently set
$ kubectl patch storageclass openebs-jiva-default -p '{"metadata": {"annotations":{"<http://storageclass.kubernetes.io/is-default-class|storageclass.kubernetes.io/is-default-class>":"false"}}}'
$ kubectl patch storageclass openebs-jiva-csi-default -p '{"metadata": {"annotations":{"<http://storageclass.kubernetes.io/is-default-class|storageclass.kubernetes.io/is-default-class>":"true"}}}'
Right now I run these commands after I run the Pulumi program...
I'm installing the OpenEBS Helm Chart via Pulumi—how do I become aware of the now newly available storage class, and set that as default?refined-terabyte-65361
02/28/2022, 8:32 PMimport * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as awsx from "@pulumi/awsx";
// Create an AWS resource (S3 Bucket)
const bucket = new aws.s3.Bucket("accessRequests3Bucket");
// Export the name of the bucket
export const bucketName = bucket.id;
i am able to see that in my github actions also
pulumi up on dev
Updating (dev):
pulumi:pulumi:Stack s3-dev running
aws:s3:Bucket accessRequestBucket
pulumi:pulumi:Stack s3-dev
Outputs:
bucketName: "accessrequestbucket-6500d31"
Resources:
2 unchanged
Duration: 3s
apologies if this question is not related to pulumi
Thanksbusy-journalist-6936
02/28/2022, 11:27 PMbusy-lion-51883
03/04/2022, 8:07 PMabundant-window-12532
03/07/2022, 11:45 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.
Rather than the expected valuemammoth-art-6111
03/08/2022, 5:41 PMdazzling-coat-30936
03/11/2022, 3:09 PM// current (@pulumi/aws)
content?: pulumi.Input<string>;
// support for Buffer and Uint8Array
content: pulumi.Input<string> | pulumi.Input<Uint8Array> | pulumi.Input<Buffer>;
I was banging my head on the keyboard trying to figure out why my stream was not working turns out we might need additional types to support streams or is there a better option?
Happy to submit a PR if needed. Thanks.