late-printer-99022
01/21/2022, 9:06 PMfresh-furniture-72056
01/25/2022, 8:37 AMnew cloudrun.Service('my-service-name', {})
pulumi adds a 7 character long randomized suffix to the service name my-service-name-abcdef
. Is there a way to override this and have the name/id be exactly what we specify?lemon-monkey-228
01/25/2022, 4:40 PMgoogle-native
provider, but it looks like it's trying to use the same google credentials (GOOGLE_CREDENTIALS
) I'm using for the Pulumi backend (I hope I'm using the right terms)lemon-monkey-228
01/25/2022, 4:40 PMlemon-monkey-228
01/25/2022, 4:41 PMpulumi-state
GCP project and my resources will live in a completely separate project.lemon-monkey-228
01/26/2022, 1:18 PMlemon-monkey-228
01/26/2022, 1:20 PMlimited-rainbow-51650
01/26/2022, 2:59 PMUpdate to support the latest resource definitions and the latest Pulumi SDK
late-printer-99022
01/30/2022, 10:30 AMType Name Plan Info
pulumi:pulumi:Stack codma-app-gcp-codma-prod 2 errors
Diagnostics:
pulumi:pulumi:Stack (codma-app-gcp-codma-prod):
error: Running program '/Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app' failed with an unhandled exception:
TypeError: Cannot read properties of undefined (reading 'length')
at /Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/kubernetesx/kx.js:225:25
at /Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/output.ts:383:31
at Generator.next (<anonymous>)
at /Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/pulumi/output.js:21:71
at new Promise (<anonymous>)
at __awaiter (/Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/pulumi/output.js:17:12)
at applyHelperAsync (/Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/pulumi/output.js:229:12)
at /Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/output.ts:302:65
at processTicksAndRejections (node:internal/process/task_queues:96:5)
error: Running program '/Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app' failed with an unhandled exception:
TypeError: Cannot read properties of undefined (reading 'length')
at /Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/kubernetesx/kx.js:225:25
at /Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/output.ts:383:31
at Generator.next (<anonymous>)
at /Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/pulumi/output.js:21:71
at new Promise (<anonymous>)
at __awaiter (/Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/pulumi/output.js:17:12)
at applyHelperAsync (/Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/pulumi/output.js:229:12)
at /Users/narendra/Coding/yugam-tech/codma-backend/deploy/codma-app/node_modules/@pulumi/output.ts:302:65
at processTicksAndRejections (node:internal/process/task_queues:96:5)
late-printer-99022
01/30/2022, 10:34 AMthankful-table-80113
02/01/2022, 2:23 PMthankful-table-80113
02/01/2022, 2:24 PMthankful-table-80113
02/01/2022, 7:53 PM$ pulumi import gcp:compute/instance:Instance default nodes-153d93na/us-east1-b/node-820c50ba --diff
Previewing import (dev):
pulumi:pulumi:Stack: (same)
[urn=urn:pulumi:dev::nodes-gcp::pulumi:pulumi:Stack::nodes-gcp-dev]
error: gcp:compute/instance:Instance resource 'default' has a problem: ConflictsWith: "boot_disk.0.disk_encryption_key_raw": conflicts with boot_disk.0.kms_key_self_link. Examine values at 'Instance.BootDisk.DiskEncryptionKeyRaw'.
error: gcp:compute/instance:Instance resource 'default' has a problem: Computed attribute cannot be set. Examine values at 'Instance.BootDisk.DiskEncryptionKeySha256'.
error: gcp:compute/instance:Instance resource 'default' has a problem: ConflictsWith: "boot_disk.0.kms_key_self_link": conflicts with boot_disk.0.disk_encryption_key_raw. Examine values at 'Instance.BootDisk.KmsKeySelfLink'.
error: gcp:compute/instance:Instance resource 'default' has a problem: Computed attribute cannot be set. Examine values at 'Instance.NetworkInterfaces[0].Ipv6AccessType'.
error: gcp:compute/instance:Instance resource 'default' has a problem: Computed attribute cannot be set. Examine values at 'Instance.NetworkInterfaces[0].Name'.
error: gcp:compute/instance:Instance resource 'default' has a problem: expected network_interface.0.nic_type to be one of [GVNIC VIRTIO_NET], got . Examine values at 'Instance.NetworkInterfaces[0].NicType'.
error: Preview failed: one or more inputs failed to validate
error: preview failed
Resources:
11 unchanged
thankful-table-80113
02/02/2022, 5:48 PMbillions-glass-17089
02/03/2022, 6:06 PMkubectl
?billions-glass-17089
02/03/2022, 8:25 PMsparse-carpet-63783
02/04/2022, 5:47 PMdry-engine-17210
02/13/2022, 5:40 PMeager-wall-56838
02/14/2022, 6:25 AMeager-wall-56838
02/14/2022, 6:12 PMrepo1
for example) or even better the registry address (like <http://us-docker.pkg.dev/p1/repo1/|us-docker.pkg.dev/p1/repo1/>
) from a gcloud.artifactregistry.v1.Repository
resource? As far as I can tell I can only do resource.id
which is of the format projects/p1/locations/us-central1/repositories/repo1
. I realize I could parse this and extract repo1
but I'm wondering if there's a better way...sparse-intern-71089
02/15/2022, 4:51 AMfuture-nail-59564
02/15/2022, 3:33 PMlemon-wire-69305
02/17/2022, 2:29 AMconst org = gcp.organizations.getOrganization({
domain: "my-org-name",
});
const myRole = new gcp.organizations.IAMCustomRole("role-xyz", {
description: "xyz",
orgId: org.then(o => o.orgId),
permissions: [
"storage.objects.create",
"storage.objects.delete",
"storage.objects.get",
"storage.objects.list",
"storage.objects.update",
],
roleId: "my-role-id",
title: "My New Role",
});
When I pulumi up
I get the following error:
* Unable to verify whether custom org role organizations/<my-org-id>/roles/my-role-id already exists and must be undeleted: Error when reading or editing Custom Organization Role "organizations/<my-org-id>/roles/my-role-id": googleapi: Error 400: The role name must be in the form "roles/{role}", "organizations/{organization_id}/roles/{role}", or "projects/{project_id}/roles/{role}"., badRequest
Any idea what's happening? The error message contains the correct org id, and I've checked in GCP Console and no role has been created.
Thanks for your help!lemon-wire-69305
02/23/2022, 11:57 PMeager-thailand-33661
02/28/2022, 9:30 AMget-o40-entry-export : {
integrated_system : "CLOUD_PUBSUB"
linked_resource : "//pubsub.googleapis.com/projects/mathem-m-test/topics/o40-topic"
name : "projects/mathem-m-test/locations/global/entryGroups/@pubsub/entries/cHJvamVjdHMvbWF0aGVtLW0tdGVzdC90b3BpY3MvbzQwLXRvcGlj"
source_system_timestamps : {
create_time: "2022-02-25T17:08:36.192Z"
update_time: "2022-02-25T17:08:36.192Z"
}
type : "DATA_STREAM"
}
Since that datacatalog entry already exists, I want to import it to Pulumi but then I get a response that the resource doesn't exist.
pulumi import google-native:datacatalog/v1:Entry o40-entry projects/mathem-m-test/locations/global/entryGroups/@pubsub/entries/cHJvamVjdHMvbWF0aGVtLW0tdGVzdC90b3BpY3MvbzQwLXRvcGlj
=>
Type Name Plan Info
pulumi:pulumi:Stack datapipelines-prod 1 error
= └─ google-native:datacatalog/v1:Entry o40-entry import 1 error
Diagnostics:
google-native:datacatalog/v1:Entry (o40-entry):
error: Preview failed: resource 'projects/mathem-m-test/locations/global/entryGroups/@pubsub/entries/cHJvamVjdHMvbWF0aGVtLW0tdGVzdC90b3BpY3MvbzQwLXRvcGlj' does not exist
Should I use a different resource name for the entry? The Entry resource seems to be referenced by a combination of an entry_group_id and an entry_id when using the getEntry function or when creating a custom Entry.
Running gcloud data-catalog also returns that entry:
gcloud data-catalog entries describe cHJvamVjdHMvbWF0aGVtLW0tdGVzdC90b3BpY3MvbzQwLXRvcGlj --location=global --entry-group=@pubsub
=>
integratedSystem: CLOUD_PUBSUB
linkedResource: //pubsub.googleapis.com/projects/mathem-m-test/topics/o40-topic
name: projects/mathem-m-test/locations/global/entryGroups/@pubsub/entries/cHJvamVjdHMvbWF0aGVtLW0tdGVzdC90b3BpY3MvbzQwLXRvcGlj
sourceSystemTimestamps:
createTime: '2022-02-25T17:08:36.192Z'
updateTime: '2022-02-25T17:08:36.192Z'
type: DATA_STREAM
modern-tent-49484
02/28/2022, 2:06 PMmodern-tent-49484
03/01/2022, 10:09 AMgoogle-native
provider?modern-tent-49484
03/01/2022, 10:09 AMenvironment: staging
for examplefuture-window-78560
03/01/2022, 7:36 PMcuddly-father-4905
03/04/2022, 4:51 PM@pulumi/google-native
(Node.js, if that makes a difference), I'm attempting to import an existing project
I'm using
const project = new Project('foo', {
// config
}, {
import: '<project-id>'
});
but I get an error saying error: resource '<project-id>' does not exist
If I run gcloud projects list
then I can see the project
When importing the project, do I need to provide the identifier in a different format?
For reference, I've also tried importing the project number, but didn't have any luck with that either
Any suggestions would be much appreciated, thanks 🙂