shivannakarthik commented on issue #28023:
URL: https://github.com/apache/airflow/issues/28023#issuecomment-1335216900

   @italovinicius18
   I was able to create a dataproc cluster using the cluster create operator 
using the following configs.
   From the [GCP 
doc](https://cloud.google.com/python/docs/reference/dataproc/latest/google.cloud.dataproc_v1.types.ShieldedInstanceConfig),
 it is not very clear if the value should be a string (True or False) or 
numeric bool (0 or 1). I tried providing True and it gave me a  TypeError - 
"TypeError('an integer is required (got type str)')"}. I then gave an int and 
the cluster came up with VMs having the Shield configs enabled.
   
   `    'cluster_config': {
           'software_config': {
               'image_version': '1.5'
           },
           'gce_cluster_config': {
               "shielded_instance_config": {
                   "enable_secure_boot": 1,
                   "enable_vtpm": 1,
                   "enable_integrity_monitoring": 1
               }
           } `
   
   
   The same should work for ClusterGenerator.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to