Open solomonshorser opened 1 year ago
Hi @solomonshorser Would you be able to provide more information regarding how you're configuring your dataproc cluster? In particular, it seems like the config field is improperly set from that error message. A minimal code chunk to reproduce this issue would be great!
@rquitales Code sample below:
const cluster = new gcp.dataproc.v1.Cluster('my_cluster', {
clusterName: config.dataProc.cluster.name,
config: {
autoscalingConfig: policy,
softwareConfig: {
imageVersion: config.dataProc.imageVersion,
optionalComponents: config.dataProc.optionalComponents,
},
masterConfig: {
diskConfig: {
bootDiskSizeGb: config.dataProc.cluster.master.bootDiskSizeGb,
bootDiskType: config.dataProc.cluster.master.bootDiskType
},
machineTypeUri: config.dataProc.cluster.master.machineType,
numInstances: config.dataProc.cluster.master.numInstances,
},
workerConfig: {
diskConfig: {
bootDiskSizeGb: config.dataProc.cluster.worker.bootDiskSizeGb,
bootDiskType: config.dataProc.cluster.worker.bootDiskType,
},
machineTypeUri: config.dataProc.cluster.worker.machineType,
numInstances: config.dataProc.autoscale.workerConfig.minInstances,
},
secondaryWorkerConfig: {
numInstances: 0
},
gceClusterConfig: {
subnetworkUri: `projects/${config.hostProject.id}/regions/${config.region}/subnetworks/${config.dataProc.subnet}`,
internalIpOnly: false,
tags: [config.dataProc.cluster.tag],
shieldedInstanceConfig: {
enableIntegrityMonitoring: true,
enableSecureBoot: true,
enableVtpm: true
},
// required for secret manager access
serviceAccountScopes: [
"https://www.googleapis.com/auth/cloud-platform"
]
},
endpointConfig: {
enableHttpPortAccess: true
},
configBucket: config.buckets.config.name,
tempBucket: config.buckets.temp.name,
encryptionConfig: {
gcePdKmsKeyName: `projects/${config.commonProject.id}/locations/${config.region}/keyRings/${config.keyRing}/cryptoKeys/${config.dataProc.kms}`
},
initializationActions: [
{
executableFile: pulumi.interpolate`gs://${config.buckets.artifacts}/${config.dataProc.bootstrap.path}/${config.dataProc.bootstrap.version}`,
executionTimeout: config.dataProc.bootstrap.timeout
}
]
},
project: config.commonProject.id,
region: config.region
},
{
dependsOn: [
configBucket,
tempBucket
],
});
(This worked long ago when the cluster was first created)
What happened?
I ran
pulumi up
, to make some changes to the configuration of a dataproc cluster, but it failed.Expected Behavior
I expected Pulumi to update my dataproc cluster's configuration.
Steps to reproduce
pulumi up
Output of
pulumi about
CLI Version 3.55.0 Go Version go1.20 Go Compiler gc
Plugins NAME VERSION gcp 6.50.0 gcp 5.26.0 google-native 0.28.0 google-native 0.26.1 kubernetes 3.24.1 nodejs unknown random 4.2.0
Host OS darwin Version 13.2.1 Arch x86_64
This project is written in nodejs: executable='/usr/local/bin/node' version='v19.0.1'
Dependencies: NAME VERSION @pulumi/pulumi 3.55.0 @pulumi/random 4.2.0 @types/node 10.17.60 @pulumi/gcp 6.50.0 @pulumi/google-native 0.28.0
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).