able-dentist-35553
03/15/2022, 12:15 AMacoustic-plumber-33876
03/15/2022, 1:19 AMYou can set or update the billing account associated with a project using the [Is the pulumi docs suggesting that we are supposed to use the relevant gcp api to update the billing https://cloud.google.com/billing/docs/reference/rest/v1/projects/updateBillingInfo ? Thank you] (/billing/reference/rest/v1/projects/updateBillingInfo) method.projects.updateBillingInfo
adorable-gpu-98268
03/15/2022, 7:59 AMunix:///var/run/docker.sock
Now when I run pulumi up
, I get an error:
Diagnostics:
docker:index:RegistryImage (hello-world):
error: 1 error occurred:
* Error pushing docker image: Error response from daemon: Bad parameters and missing X-Registry-Auth: EOF
What this is related to and how do I fix it?steep-sundown-32599
03/15/2022, 10:47 AMbillowy-processor-56040
03/15/2022, 1:30 PMagreeable-king-2755
03/15/2022, 2:27 PMError: failed to pull docker imageI'm not sure where to authenticate the docker pull, so any pointers will be appreciated.
bright-helicopter-33718
03/15/2022, 2:42 PMArchiveFunctionApp
?curved-action-42169
03/15/2022, 3:33 PMcurved-action-42169
03/15/2022, 3:36 PMred-football-97286
03/15/2022, 3:41 PMcurved-action-42169
03/15/2022, 4:02 PMnode scripts/install-pulumi-plugin.js resource aws v4.38.1[resource plugin aws-4.38.1] installing Downloading plugin: 0 B / 96.61 MiB 0.00% Downloading plugin: 6.44 MiB / 96.61 MiB 6.66% 2s Downloading plugin: 14.27 MiB / 96.61 MiB 14.77% 2s Downloading plugin: 21.61 MiB / 96.61 MiB 22.37% 2s Downloading plugin: 28.77 MiB / 96.61 MiB 29.77% 1s Downloading plugin: 35.59 MiB / 96.61 MiB 36.83% 1s Downloading plugin: 42.65 MiB / 96.61 MiB 44.14% 1s Downloading plugin: 49.28 MiB / 96.61 MiB 51.01% 1s Downloading plugin: 61.25 MiB / 96.61 MiB 63.40% Downloading plugin: 77.83 MiB / 96.61 MiB 80.55% Downloading plugin: 92.16 MiB / 96.61 MiB 95.39% Downloading plugin: 96.61 MiB / 96.61 MiB 100.00% 2s
node scripts/install-pulumi-plugin.js resource kubernetes v3.16.0[resource plugin kubernetes-3.16.0] installing Downloading plugin: 0 B / 30.27 MiB 0.00% Downloading plugin: 7.33 MiB / 30.27 MiB 24.22% Downloading plugin: 14.56 MiB / 30.27 MiB 48.09% Downloading plugin: 30.27 MiB / 30.27 MiB 100.00% 0s
node scripts/postinstalladded 150 packages from 235 contributors and audited 153 packages in 8.304s 33 packages are looking for funding run
npm fund
for details
found 0 vulnerabilities
[Container] 2022/03/15 155700 Running command npm run build
npm ERR! missing script: build
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-03-15T15_57_00_514Z-debug.log
[Container] 2022/03/15 155700 Command did not exit successfully npmcurved-action-42169
03/15/2022, 4:36 PMversion: 0.2
phases:
install:
commands:
# pulumi
- curl -fsSL <https://get.pulumi.com/> | sh
- export PATH=$PATH:$HOME/.pulumi/bin
build:
commands:
- npm install
- pulumi stack select dev
- pulumi up --yes
red-gold-2376
03/15/2022, 9:37 PMtrue-myth
library
pulumi:pulumi:Stack (wordpress-dev):
TypeError: Symbol.prototype [ @@toPrimitive ] requires that 'this' be a Symbol: TypeError: Symbol.prototype [ @@toPrimitive ] requires that 'this' be a Symbol
at Symbol.[Symbol.toPrimitive] (<anonymous>)
at Object.<anonymous> (<anonymous>:64:21)
at Module._compile (node:internal/modules/cjs/loader:1099:14)
at requireFromString (/home/abukamel/codebases/work/iac/pulumi/programs/wordpress/node_modules/require-from-string/index.js:28:4)
at getProvider (/home/abukamel/codebases/work/iac/pulumi/programs/wordpress/node_modules/@pulumi/cmd/dynamic-provider/index.ts:66:20)
at Object.<anonymous> (/home/abukamel/codebases/work/iac/pulumi/programs/wordpress/node_modules/@pulumi/cmd/dynamic-provider/index.ts:116:26)
at Generator.next (<anonymous>)
at /home/abukamel/codebases/work/iac/pulumi/programs/wordpress/node_modules/@pulumi/pulumi/cmd/dynamic-provider/index.js:21:71
at new Promise (<anonymous>)
at __awaiter (/home/abukamel/codebases/work/iac/pulumi/programs/wordpress/node_modules/@pulumi/pulumi/cmd/dynamic-provider/index.js:17:12)
error: Symbol.prototype [ @@toPrimitive ] requires that 'this' be a Symbol
The code works normally if it was not used directly without pulumi.
export const getOrCreateMonitor = async (fqdn: string): Promise<Result<Monitor, string>> => {
await checkApiKey()
const currentMonitor = await getMonitor(fqdn)
if (currentMonitor.isOk) {
return currentMonitor
}
const alertContacts = await getAlertContacts()
if (alertContacts.isErr) {
return err(alertContacts.error)
}
const formattedAlertContacts = alertContacts.value.map((alertContact: AlertContact) => `${alertContact.id}_5_0`)
const requestData =
qs.stringify({
...sharedRequestData,
type: '1',
alert_contacts: formattedAlertContacts.join('-'),
friendly_name: fqdn,
url: `https://${fqdn}`
})
const response = await <http://axios.post|axios.post>(newMonitorUrl, requestData, sharedRequestConfig)
if (response.data.stat != 'ok') {
return err(response.data.error.message)
}
const newMonitor: Monitor = response.data.monitor
return ok(newMonitor)
}
Is there a way to fix this?busy-island-31180
03/15/2022, 9:49 PMbusy-telephone-91852
03/15/2022, 11:19 PMancient-solstice-62300
03/16/2022, 1:23 AMbusy-island-31180
03/16/2022, 2:51 AMbusy-island-31180
03/16/2022, 2:52 AMpulumi.Resource
interfaceancient-solstice-62300
03/16/2022, 3:47 AMquick-hair-25932
03/16/2022, 9:49 AMmagnificent-lifeguard-15082
03/16/2022, 11:32 AMbillowy-laptop-45963
03/16/2022, 1:41 PMAutomation
document (not Command)? Also is there a way of 'triggering' Automation documents without associating to instance (without dropping to command line) for example to setup a DB or Active Directory users.melodic-controller-83891
03/16/2022, 2:27 PMrough-oyster-77458
03/16/2022, 2:48 PMdamp-holiday-59303
03/16/2022, 3:21 PMpulumi up
and pulumi refresh
to stop working. So I exported the stack, edited the JSON to remove all references to resources or providers in the removed account, and imported the stack.
Now, pulumi refresh
works fine, and the stack looks right in the UI and when I export it and look at the JSON. But when I try to run pulumi up
it still complains because it tries to assume a role in the old account to refresh a resource that no longer exists in the stack. The resource referred to in the error message is not present in the UI, using pulumi stack --show-urns
or when exporting and grepping the stack.json.
How can this be? Why is Pulumi still trying to access that resource that it shouldn’t even know exists at this point?melodic-controller-83891
03/16/2022, 3:57 PMNetwork "network" has no route to the default internet gateway. To fix this, add a route with destRange '0.0.0.0/0' and nextHopGateway 'default-internet-gateway'.
I was able to create a GKE cluster using this network via google console. Does anyone know what the fix is? Thank yousticky-nightfall-24828
03/16/2022, 4:15 PMbright-receptionist-28471
03/16/2022, 9:11 PMrough-oyster-77458
03/16/2022, 9:58 PMbright-needle-80161
03/16/2022, 10:47 PM./main.go:123:3: cannot use arn (type pulumi.StringOutput) as type pulumi.StringMapInput in field value:
pulumi.StringOutput does not implement pulumi.StringMapInput (missing ToStringMapOutput method)
error: an unhandled error occurred: program exited with non-zero exit code: 2
I am trying to create a Kubernetes secret from a secret stored in AWS Secrets Manager. I can lookup the secret in SecretsManager but I don;t know how I can pass the secret data in to the kubernetes secret pulumi module.
func CreateK8sSecret(ctx *pulumi.Context, arn pulumi.StringOutput, label pulumi.StringMap, provider *kubernetes.Provider) error {
found_secret := secretsmanager.LookupSecretOutput(ctx, secretsmanager.LookupSecretOutputArgs{
Arn: arn, # Don't know how I could pass the secret data in
}, nil)
ctx.Export("kubernetes_secret", found_secret)
corev1.NewSecret(ctx, "pulumi-secret", &corev1.SecretArgs{
// Data: pulumi.StringMap{"pulumi": pulumi.String("new environment")},
Data: arn,
Metadata: &metav1.ObjectMetaArgs{
Labels: label,
},
}, pulumi.Provider(provider))
return nil
}