many-knife-65312
03/17/2023, 8:09 PMmany-knife-65312
03/17/2023, 8:43 PM.get()
function for a k8s resource errors out when it doesn't exist. what's the right way to handle this scenario so that the resource is created if it doesn't exist?gifted-cat-49297
03/20/2023, 12:57 PM.Statuses
it's returning cloudrun.ServiceStatusArrayOutput
but I have no idea what to do with this object.chilly-garage-80867
03/20/2023, 11:19 PMError: invocation of kubernetes:yaml:decode returned an error: failed to initialize discovery client: The gcp auth plugin has been removed.
Please use the "gke-gcloud-auth-plugin" kubectl/client-go credential plugin instead.
See <https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke> for further details
refined-engineer-9827
03/21/2023, 6:31 PMgcp:dns:ManagedZone (brinqa-net-private):
error: 1 error occurred:
* updating urn:pulumi:brinqa-prod::brinqa-net-private::gcp:dns/managedZone:ManagedZone::brinqa-net-private: 1 error occurred:
* Error updating ManagedZone "projects/brinqa-prod/managedZones/brinqa-net-private": googleapi: Error 400: The field 'entity.managedZone.id' cannot be modified., immutableField
Why would Pulumi be trying to update/change the id field of the zone? The diff shows it only trying to update privateVisibilityConfig.networks
refined-engineer-9827
03/21/2023, 7:01 PMrefined-engineer-9827
03/21/2023, 11:09 PMI0321 22:26:42.150801 2409260 log.go:75] Unmarshaling property for RPC[Provider[gcp, 0xc0015a85a0].Update(projects/brinqa-prod/managedZones/brinqa-net-private,urn:pulumi:brinqa-prod::brinqa-net-private::gcp:dns/managedZone:ManagedZone::brinqa-net-private).outputs]: managedZoneId={2.9610687372243656e+18}
managedZoneId is cast as an Int, which is then changed to scientific notation. the problem is 2.9610687372243656e+18
recasts as 2961068737224365600
, whereas the actual id for my zone is: 2961068737224365485
(not to mention there's a rounding error there, but that's another nit to pick).
If someone can point me to the right place to file said bug, I'll be more than happy to do it.adamant-leather-41068
03/22/2023, 12:01 AMgcp.compute.AttachedDisk
say:
Note: When usingHow do I do this? ie, where does this go?you must usegcp.compute.AttachedDisk
on thelifecycle.ignore_changes = ["attached_disk"]
resource that has the disks attached. Otherwise the two resources will fight for control of the attached disk block.gcp.compute.Instance
stocky-restaurant-98004
03/22/2023, 2:34 PMgifted-room-26715
03/23/2023, 5:55 AMmillions-train-91139
03/23/2023, 6:18 AMprehistoric-tailor-40857
03/27/2023, 4:40 AMbusy-lawyer-33856
03/29/2023, 5:34 AMgifted-room-26715
03/30/2023, 8:45 AMswift-oxygen-62602
03/30/2023, 10:53 AMThis Pulumi package is based on the google-beta Terraform Provider.
?gifted-room-26715
04/02/2023, 12:32 PMadamant-leather-41068
04/04/2023, 4:47 AMgoogle-native.compute/alpha.Snapshot
has a sourceSnapshotSchedulePolicy
output property, but it isn't really clear how to set this up.
There's a terraform module that Google points at for doing this, but I don't know how to use that from Pulimi either.
Has anyone done this or have any pointers?gray-train-92590
04/04/2023, 3:52 PMadventurous-apartment-93389
04/05/2023, 9:42 AMelegant-window-55250
04/07/2023, 5:55 PM- uses: cobraz/setup-gke-gcloud-auth-plugin@v1
Feel free to contribute by opening issues and PRs here:
https://github.com/cobraz/setup-gke-gcloud-auth-pluginbrief-football-29481
04/09/2023, 2:57 AMgcp:project
in a file in order to be able to run pulumi up
since then it's visible in your repo...brash-lamp-90149
04/17/2023, 11:15 PMpulumi up -s staging
runs successfully so I dont think I have any errors. Can someone help me understand how to accomplish this?
const registry = new gcp.container.Registry('gcr', {
project: gcp.config.project,
location: 'US',
})
const gcrServiceAccount = new gcp.serviceaccount.Account(
'gcr-service-account',
{
accountId: 'gcr-service-account',
displayName: 'GCR Service Account',
description:
'Service account for CI services that interact with GCR',
}
)
export const storageIAM = new gcp.storage.BucketIAMMember(
'gcr-storage-bucket-iam',
{
bucket: registry.bucketSelfLink,
role: 'roles/storage.admin',
member: gcrServiceAccount.email.apply(
(email) => `serviceAccount:${email}`
),
}
)
adamant-leather-41068
04/19/2023, 12:43 AMaws.ec2.getInstances
. The GCP API (not Pulumi) has new compute.InstancesClient().aggregatedListAsync(...)
but this doesn't seem to be exposed in Pulumi anywhere. Am I missing something?rhythmic-secretary-1287
04/19/2023, 7:55 AMbusy-lawyer-33856
04/20/2023, 9:17 AMcloudrun.DomainMapping
with pulumi.
However, my resource gets a postfix, such that the wanted domain is wrong.
I want: domain.example
I get: domain.example-postfix
In pulumi, my domain mapping resource is:
domain_map = gcp.cloudrun.DomainMapping(
"domain.example",
location=gc_location,
metadata=gcp.cloudrun.DomainMappingMetadataArgs(
namespace=project_id,
),
spec=gcp.cloudrun.DomainMappingSpecArgs(
route_name=service.name,
),
opts=pulumi.ResourceOptions(depends_on=[service]),
)
Anyhelp is greatly appriceated!
Best Regards
Eliasgifted-cat-49297
04/26/2023, 2:15 PMerror: Preview failed: property "projectsId"/"project" not found
. There are no examples for thatechoing-fall-59017
05/10/2023, 2:16 PM* Error creating DNS RecordSet: googleapi: Error 400: Invalid value for 'entity.change.additions[_<http://acme-challenge.gcp.foo.bar.io|acme-challenge.gcp.foo.bar.io>.][CNAME].name': '_<http://acme-challenge.gcp.foo.bar.io|acme-challenge.gcp.foo.bar.io>.', invalid
I redacted some data from the code but it should be pretty similar
Did anyone encounter such issue before? Or knows what this means? Documentation about it is pretty bleakpurple-rocket-49093
05/10/2023, 7:29 PMgcp.cloudfunctionsv2.getFunctionOutput
I can't find examples or make it work. any help is appreciated.busy-lawyer-33856
05/11/2023, 11:21 AMcloudbuild.yaml
file.
I have tried to follow the guide her: https://www.pulumi.com/docs/guides/continuous-delivery/google-cloud-build/
#!/bin/bash
# Download and install required tools.
# pulumi
curl -L <https://get.pulumi.com/> | bash
export PATH=$PATH:$HOME/.pulumi/bin
#Login to starlab project
pulumi login <gs://folder>
#Choose stack
pulumi stack select <stack-name>
#update pulumi
pulumi preview
pulumi login
works properly, however it cannot see the stack in the repo.
It just throws the error:
error: no stack named 'starlab-iac' found
Another problem I have, is that I dont understand how to set my PULUMI_CONFIG_PASSPHRASE
such that it is possible to run pulumi commands in cloudbuild.yaml
such as pulumi up
.
Any help with my problem would be greatly appreciated.
Best Regards
Eliascreamy-guitar-8902
05/12/2023, 11:59 PMid
to work here but what should I use? I don't see it in the outputs in the documentation anywhere...
# First make an external IP
external_ip = gcp.compute.GlobalAddress(
"externalip-%s" % cell_id,
name = "externalip-%s" % cell_id)
# ... later ...
ingress_A_record = gcp.dns.RecordSet(
"ingress-A-record-%s" % cell_id,
managed_zone = dns_zone.name,
name = "ingress.%s." % gcp_domain,
type="A",
rrdatas=[external_ip.id],
ttl=300)