proud-tiger-5743
02/20/2019, 8:50 PMfull-dress-10026
02/20/2019, 9:10 PM8880
would be invalid? It'd be much more helpful if the stack trace pointed to something in my code.
error: Running program '/home/kenny/compute_software/infrastructure/pulumi-src' failed with an unhandled exception:
error: Error: Invalid port: 8880
at pulumi.all.apply (/home/kenny/compute_software/infrastructure/pulumi-src/node_modules/@pulumi/elasticloadbalancingv2/application.ts:142:28)
at Output.<anonymous> (/home/kenny/compute_software/infrastructure/pulumi-src/node_modules/@pulumi/awsx/node_modules/@pulumi/pulumi/resource.js:277:47)
at next (native)
at /home/kenny/compute_software/infrastructure/pulumi-src/node_modules/@pulumi/awsx/node_modules/@pulumi/pulumi/resource.js:20:71
at __awaiter (/home/kenny/compute_software/infrastructure/pulumi-src/node_modules/@pulumi/awsx/node_modules/@pulumi/pulumi/resource.js:16:12)
at promise.then (/home/kenny/compute_software/infrastructure/pulumi-src/node_modules/@pulumi/awsx/node_modules/@pulumi/pulumi/resource.js:264:62)
error: Running program '/home/kenny/compute_software/infrastructure/pulumi-src' failed with an unhandled exception:
error: Error: Invalid port: 8880
at pulumi.all.apply (/home/kenny/compute_software/infrastructure/pulumi-src/node_modules/@pulumi/elasticloadbalancingv2/application.ts:142:28)
at Output.<anonymous> (/home/kenny/compute_software/infrastructure/pulumi-src/node_modules/@pulumi/awsx/node_modules/@pulumi/pulumi/resource.js:277:47)
at next (native)
at /home/kenny/compute_software/infrastructure/pulumi-src/node_modules/@pulumi/awsx/node_modules/@pulumi/pulumi/resource.js:20:71
at __awaiter (/home/kenny/compute_software/infrastructure/pulumi-src/node_modules/@pulumi/awsx/node_modules/@pulumi/pulumi/resource.js:16:12)
at promise.then (/home/kenny/compute_software/infrastructure/pulumi-src/node_modules/@pulumi/awsx/node_modules/@pulumi/pulumi/resource.js:264:62)
error: an unhandled error occurred: Program exited with non-zero exit code: 1
brave-salesmen-42327
02/20/2019, 9:44 PMproud-tiger-5743
02/20/2019, 9:48 PMcloud.Task
?proud-tiger-5743
02/20/2019, 9:48 PMconst ffmpegThumbnailTask = new cloud.Task("ffmpegThumbTask", {
build: "./", // folder containing the Dockerfile
memoryReservation: 512,
});
millions-judge-24978
02/20/2019, 11:45 PMk8s.Provider
as an input? Taking a pulumi.Input<k8s.Provider>
runs into issues with then being able to pass it along to resources provisioned in the module.
The provider is originally a pulumi.Output<k8s.Provider>
from a different module.brainy-magician-83981
02/21/2019, 1:53 AMbrainy-magician-83981
02/21/2019, 3:22 AMsourceCodeHash
and sourceCodeSize
for aws.lambda.Function?brainy-magician-83981
02/21/2019, 3:35 PMbillions-farmer-62339
02/21/2019, 4:34 PMchilly-photographer-60932
02/21/2019, 5:05 PMexports
from pulumi
object especially string and write it to a bucket for other API’s to consume.
{ IstioIngressIPAddress:
Output {
__pulumiOutput: true,
isKnown: Promise { <pending> },
resources: [Function],
promise: [Function],
apply: [Function],
get: [Function] },
IdentityIngressIPAddress:
Output {
__pulumiOutput: true,
isKnown: Promise { <pending> },
resources: [Function],
promise: [Function],
apply: [Function],
get: [Function] },
ExternalNATIPAddress: '[object Object]' }
I am trying to serialize using JSON.stringify
. How do I get a proper serialized json object?salmon-morning-96600
02/21/2019, 6:43 PM/project/app/index.ts
/project/app/Pulumi.dev.yml
/project/infra/index.ts
/project/infra/Pulumi.dev.yml
One of the outputs from the app project is the repository url as repositoryUrl
. I would like to access this from the infra project. This is what I tried pulumi.StackReference("../app/dev").getOutput("repositoryUrl")
, but I realise this is not the way to do it. How would I go about doing this using the local state implementation?calm-greece-42329
02/21/2019, 6:46 PMfaint-vegetable-61837
02/21/2019, 7:02 PMexport const credentials = k8s.core.v1.Secret.get("jenkins-credentials", `${namespace}/jenkins-operator-credentials-${jenkinsName}`, {
provider: kubernetes
}).data;
The code above does not output anything, because the secret is not created yet. Should I try to poll the secret? Is there a code example for that?damp-pillow-67781
02/21/2019, 9:35 PMpulumi-eks
, looks like pulumi won’t clean up kubernetes apis created when deleting resources, and when re-installing the helm chart I got error like:
kubernetes:apiregistration:APIService (kube-system/v1beta1.custom.metrics.k8s.io):
error: Plan apply failed: <http://apiservices.apiregistration.k8s.io|apiservices.apiregistration.k8s.io> "<http://v1beta1.custom.metrics.k8s.io|v1beta1.custom.metrics.k8s.io>" already exists
damp-pillow-67781
02/21/2019, 9:35 PMkubectl
myself.modern-diamond-82589
02/21/2019, 9:38 PMaws.lambda.Function
instance to an SNS topic that was created external to a pulumi stack? The topic ARN would be passed in as a config parameter; i.e. an instance of aws.sns.Topic
is not immediately available.salmon-morning-96600
02/22/2019, 8:13 AMaws:elasticloadbalancingv2/listener:Listener resource 'redactedListener' has a problem: "load_balancer_arn": required field is not set
- I am following the example from the aws-ts-airflow
samplefew-processor-86645
02/22/2019, 9:13 AMif (fs.existsSync(fullFileName)) {
// On the build server, I update the blob with the new artifact
const blob = new azure.storage.Blob("myblob-b", {
name: fileName,
source: fullFileName,
resourceGroupName: resourceGroup.name,
storageAccountName: storageAccount.name,
storageContainerName: zipDeployContainer.name,
type: "block"
})
} else {
// On my local machine, the artifact does not exists but I want to keep it
const stackRef = new pulumi.StackReference(`${organization}/${projectName}/${stackName}`);
// How do I tell pulumi keep the resource from the stack reference
const srblob = stackRef.getOutput("zipblob");
}
export const zipblob = blob;
brave-salesmen-42327
02/22/2019, 3:12 PMpowerful-elephant-53462
02/22/2019, 5:29 PMworried-engineer-33884
02/22/2019, 6:47 PMincalculable-diamond-5088
02/22/2019, 7:09 PMincalculable-diamond-5088
02/22/2019, 7:09 PMincalculable-diamond-5088
02/22/2019, 7:12 PMconst eksCluster = aws.eks.getCluster({name: 'cluster-name'})
const ns = new k8s.core.v1.Namespace('pulumi-test', {}, { provider: eksCluster.getProvider() })
However the getCluster
fails with Error: Missing required property 'roleArn'
lemon-wall-81522
02/22/2019, 7:23 PM~/.aws/credentials
, but unless I move it to default
, commands like pulumi update
fail with
error: error validating provider credentials: error calling stsGetCallerIdentity InvalidClientTokenId: The security token included in the request is invalid.
powerful-elephant-53462
02/22/2019, 9:06 PM(calculate semver)
-> (build container, tag w/ semver, push to docker registry)
-> (static analysis & long-running tests)
-> (package helm chart w/ semver, publish to helm repo )
I was thinking I’d have a separate CD pipeline that ran the Pulumi program for deploying the service (triggered by the above CI pipeline completing).
In that Pulumi program, the version of a microservice would be a part of the stack configuration. I’m assuming the Helm provider just passes the version
string down to the helm cli, so I could use semver ranges to specify which version of a service belongs in each stack...
something like, in the Pulumi program for svcA it’d have a config variable svcA:version
, and it’d be set differently in each stack:
dev: >=1.1.0 # always grab the latest, even breaking changes
test: >=1.1.0,<2.0.0 # new features, but not breaking changes
staging: >=1.1.0,<1.2.0 # new bug fixes, but not new features.
production: 1.1.0 # pinned to 1.1.0
Am I setting myself up for future pain? Should I be thinking about the problem in a different way?incalculable-diamond-5088
02/22/2019, 10:38 PMenough-quill-87570
02/22/2019, 10:39 PMcalm-greece-42329
02/22/2019, 11:06 PM@pulumi/kubernetes
doesn’t have apiextensions.v1beta1.CustomResource
but it looks like its in the `v0.20.3`release I am using: https://github.com/pulumi/pulumi-kubernetes/blob/v0.20.3/sdk/nodejs/provider.ts#L3098