breezy-lamp-49479
04/05/2021, 8:07 PMgentle-monitor-55086
04/05/2021, 8:08 PMbrave-angle-33257
04/05/2021, 10:37 PMenough-leather-70274
04/06/2021, 5:27 AMpulumi/pulumi-python:latest
image, but pulumi preview
is throwing errors as that image uses Python 3.7. What's the best way to resolve this?stocky-lion-64552
04/06/2021, 7:51 AMupsert
for the pulumi github action with the awskms
secret provider? I see there's an option to add PULUMI_CONFIG_PASSPHRASE
as env var, but I don't see an env var for the secret-providerhandsome-state-59775
04/06/2021, 8:49 AMbetter-shampoo-48884
04/06/2021, 9:19 AMlemon-monkey-228
04/06/2021, 12:22 PMDeployment
, Secret
, and Service
lemon-monkey-228
04/06/2021, 12:22 PMlemon-monkey-228
04/06/2021, 12:23 PMDeployment
, if I want to make any amendments to the spec.template.imagePullSecrets
, I have do something like
(((deployment.spec as appsv1.DeploymentSpec).template as corev1.PodTemplateSpec).spec as corev1.PodSpec).imagePullSecrets = []
rapid-vr-73761
04/06/2021, 12:43 PMjolly-lunch-12979
04/06/2021, 1:23 PMpulumi state delete
is there a way to pass in multiple resources to delete from the state? Doing it one at a time is pretty slow.rich-action-28775
04/06/2021, 2:11 PMpulumi up
using the CLI, I'll have something like the following (python):
main.py
from pulumi import client
from pulumi_aws import s3
# Initialize the Pulumi client
pulumi_client = PulumiClient()
# Provision a S3 bucket
web_bucket = s3.Bucket('s3-example-bucket')
pulumi_client.up()
pulumi_client.destroy()
Now instead of running pulumi up
followed by a pulumi destroy
, running this piece of code can be done by running: python main.py
This is a very raw example, so please tell me if there's anything else you'd like me to elaborate on.
Thanks in advance! :)gifted-island-55702
04/06/2021, 4:33 PMmodern-monkey-67919
04/06/2021, 7:05 PMRun pulumi/actions@v2
with:
command: preview
stack-name: ***
work-dir: ./
comment-on-pr: false
parallel: 2147483647
target-dependents: false
refresh: false
upsert: false
env:
NODE_ENV: production
PULUMI_ACCESS_TOKEN: ***
PULUMI_STACK_NAME: ***
npm_config_yes: true
pulumi preview on ***
Error: ENOENT: no such file or directory, open '/tmp/automation-logs-preview-WtufVl/eventlog.txt'
I looked around in the respective repos for any similar issues reported by the community but I couldn't find it.
It looks like the Pulumi bot reports a success after this error.. so that's strange.flat-chef-39475
04/06/2021, 10:45 PMflat-chef-39475
04/06/2021, 10:46 PM"use strict";
const fs = require("fs");
const pulumi = require("@pulumi/pulumi");
const aws = require("@pulumi/aws");
const awsx = require("@pulumi/awsx");
const htmlTemplate = `<!DOCTYPE html>
<html lang="en">
<head></head>
<body>
<h1>Hi from Pulumi!</h1>
<img src="{object}"></img>
</body>
</html>`
// Create an AWS resource (S3 Bucket)
const bucket = new aws.s3.Bucket("my-bucket", {
website: {
indexDocument: "index.html"
}
});
const imgObject = new aws.s3.BucketObject("roo.jpg", {
bucket,
source: new pulumi.asset.FileAsset("roo.jpg"),
acl: "public-read",
contentType: "image/jpeg"
})
const imgUrl = pulumi.interpolate`http://${bucket.bucketEndpoint}/roo.jpg`
const html = htmlTemplate.replace("{object}", imgUrl)
fs.writeFileSync("index.html", html)
const indexObject = new aws.s3.BucketObject("index.html", {
bucket,
source: new pulumi.asset.FileAsset("index.html"),
acl: "public-read",
contentType: "text/html"
})
// Export the name of the bucket
exports.bucketName = bucket.id;
exports.bucketEndpoint = pulumi.interpolate`http://${bucket.websiteEndpoint}`;
flat-chef-39475
04/06/2021, 10:46 PM<!DOCTYPE html>
<html lang="en">
<head></head>
<body>
<h1>Hi from Pulumi!</h1>
<img src="Calling [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."></img>
</body>
</html>
flat-chef-39475
04/06/2021, 10:47 PMflat-chef-39475
04/06/2021, 11:05 PMflat-chef-39475
04/06/2021, 11:06 PMpulumi.interpolate`http://${bucket.websiteEndpoint}/roo.jpg`
produces the correct result.flat-chef-39475
04/06/2021, 11:08 PMflat-chef-39475
04/06/2021, 11:45 PMjolly-vr-53742
04/07/2021, 3:06 AMkubeletExtraConfig:
kubeReserved:
memory: "64Mi"
kubeReservedCgroup: "/kube-reserved"
systemReserved:
memory: "13Mi"
evictionHard:
memory.available: "25Mi"
featureGates:
DynamicKubeletConfig: true
jolly-vr-53742
04/07/2021, 3:12 AMNo value exists in scope for the shorthand property 'kubeletExtraArgs'. Either declare one or provide an initializer.ts(18004)
flat-mechanic-75334
04/07/2021, 6:13 AMbland-lamp-16797
04/07/2021, 9:52 AMPULUMI_CONFIG_PASSPHRASE_FILE
, how safe would be so store ciphertext publicly?
Didn't look at code/docs, which encryption does it use?
This question also applys if i store it with KMS (gcp/aws)?jolly-lunch-12979
04/07/2021, 3:24 PMPulumi.AzureNative.Web.WebApp
is causing pulumi preview
to seemingly hang indefinitely. It prints the resource and shows there's a diff, but then never finishes. -v=9
shows a ton of Registering resource monitor end
at the end of the logs which sounds like it's doing everything it needs to, but just never finishing up the preview. Any ideas on what to do?jolly-lunch-12979
04/07/2021, 3:44 PMbumpy-summer-9075
04/07/2021, 3:57 PMbumpy-summer-9075
04/07/2021, 3:57 PMgreen-musician-49057
04/07/2021, 4:01 PMbillowy-army-68599
04/07/2021, 4:17 PMvpc.get()
bumpy-summer-9075
04/07/2021, 5:05 PMbillowy-army-68599
04/07/2021, 5:06 PMbumpy-summer-9075
04/07/2021, 5:31 PMcommon
(which has the VPC resource), and another stack s3-website
which consumes that VPC id.
If I were to checkout the stack s3-website
and try to apply it on a brand new AWS account, it wouldn't work because the VPC would not exist.
If they were both in the same stack, this would not happenbillowy-army-68599
04/07/2021, 5:33 PMbumpy-summer-9075
04/07/2021, 5:34 PMcommon
stack is not deployed is perfect, fail fast!billowy-army-68599
04/07/2021, 5:37 PMthrow
is the stack output is not resolved 🙂bumpy-summer-9075
04/07/2021, 5:39 PMlocals {
# Abusing the 'file' function to fail if the specified environment does not match the workspace
assert_environment_matches_workspace = terraform.workspace != var.environment ? file("ERROR: Environment needs to match the workspace") : null
}