eager-keyboard-30823
04/05/2022, 7:16 AMpulumi preview
it complains about something that looks like missing properties - but I’m not sure why, as those properties were not included in the C# code that was generated by the import command. Any tips for what to look for?pulumi:pulumi:Stack: (same)
[urn=urn:pulumi:dev::test-pulumi::pulumi:pulumi:Stack::test-pulumi-dev]
error: gcp:composer/environment:Environment resource 'composer-env' has a problem: AtLeastOne: "config.0.software_config": one of `config.0.database_config,config.0.encryption_config,config.0.environment_size,config.0.maintenance_window,config.0.master_authorized_networks_config,config.0.node_config,config.0.node_count,config.0.private_environment_config,config.0.software_config,config.0.web_server_config,config.0.web_server_network_access_control,config.0.workloads_config` must be specified. Examine values at 'Environment.Config.SoftwareConfig'.
error: gcp:composer/environment:Environment resource 'composer-env' has a problem: AtLeastOne: "config.0.maintenance_window": one of `config.0.database_config,config.0.encryption_config,config.0.environment_size,config.0.maintenance_window,config.0.master_authorized_networks_config,config.0.node_config,config.0.node_count,config.0.private_environment_config,config.0.software_config,config.0.web_server_config,config.0.web_server_network_access_control,config.0.workloads_config` must be specified. Examine values at 'Environment.Config.MaintenanceWindow'.
error: gcp:composer/environment:Environment resource 'composer-env' has a problem: AtLeastOne: "config.0.node_count": one of `config.0.database_config,config.0.encryption_config,config.0.environment_size,config.0.maintenance_window,config.0.master_authorized_networks_config,config.0.node_config,config.0.node_count,config.0.private_environment_config,config.0.software_config,config.0.web_server_config,config.0.web_server_network_access_control,config.0.workloads_config` must be specified. Examine values at 'Environment.Config.NodeCount
error: gcp:composer/environment:Environment resource 'composer-env' has a problem: AtLeastOne: "config.0.web_server_network_access_control": one of `config.0.database_config,config.0.encryption_config,config.0.environment_size,config.0.maintenance_window,config.0.master_authorized_networks_config,config.0.node_config,config.0.node_count,config.0.private_environment_config,config.0.software_config,config.0.web_server_config,config.0.web_server_network_access_control,config.0.workloads_config` must be specified. Examine values at 'Environment.Config.WebServerNetworkAccessControl'.
error: gcp:composer/environment:Environment resource 'composer-env' has a problem: AtLeastOne: "config.0.workloads_config": one of `config.0.database_config,config.0.encryption_config,config.0.environment_size,config.0.maintenance_window,config.0.master_authorized_networks_config,config.0.node_config,config.0.node_count,config.0.private_environment_config,config.0.software_config,config.0.web_server_config,config.0.web_server_network_access_control,config.0.workloads_config` must be specified. Examine values at 'Environment.Config.WorkloadsConfig'.
error: gcp:composer/environment:Environment resource 'composer-env' has a problem: AtLeastOne: "config.0.environment_size": one of `config.0.database_config,config.0.encryption_config,config.0.environment_size,config.0.maintenance_window,config.0.master_authorized_networks_config,config.0.node_config,config.0.node_count,config.0.private_environment_config,config.0.software_config,config.0.web_server_config,config.0.web_server_network_access_control,config.0.workloads_config` must be specified. Examine values at 'Environment.Config.EnvironmentSize'.
error: gcp:composer/environment:Environment resource 'composer-env' has a problem: AtLeastOne: "config.0.master_authorized_networks_config": one of `config.0.database_config,config.0.encryption_config,config.0.environment_size,config.0.maintenance_window,config.0.master_authorized_networks_config,config.0.node_config,config.0.node_count,config.0.private_environment_config,config.0.software_config,config.0.web_server_config,config.0.web_server_network_access_control,config.0.workloads_config` must be specified. Examine values at 'Environment.Config.MasterAuthorizedNetworksConfig'.
error: gcp:composer/environment:Environment resource 'composer-env' has a problem: AtLeastOne: "config.0.node_config": one of `config.0.database_config,config.0.encryption_config,config.0.environment_size,config.0.maintenance_window,config.0.master_authorized_networks_config,config.0.node_config,config.0.node_count,config.0.private_environment_config,config.0.software_config,config.0.web_server_config,config.0.web_server_network_access_control,config.0.workloads_config` must be specified. Examine values at 'Environment.Config.NodeConfig'.
error: gcp:composer/environment:Environment resource 'composer-env' has a problem: AtLeastOne: "config.0.database_config": one of `config.0.database_config,config.0.encryption_config,config.0.environment_size,config.0.maintenance_window,config.0.master_authorized_networks_config,config.0.node_config,config.0.node_count,config.0.private_environment_config,config.0.software_config,config.0.web_server_config,config.0.web_server_network_access_control,config.0.workloads_config` must be specified. Examine values at 'Environment.Config.DatabaseConfig'.
error: gcp:composer/environment:Environment resource 'composer-env' has a problem: AtLeastOne: "config.0.encryption_config": one of `config.0.database_config,config.0.encryption_config,config.0.environment_size,config.0.maintenance_window,config.0.master_authorized_networks_config,config.0.node_config,config.0.node_count,config.0.private_environment_config,config.0.software_config,config.0.web_server_config,config.0.web_server_network_access_control,config.0.workloads_config` must be specified. Examine values at 'Environment.Config.EncryptionConfig'.
error: gcp:composer/environment:Environment resource 'composer-env' has a problem: AtLeastOne: "config.0.private_environment_config": one of `config.0.database_config,config.0.encryption_config,config.0.environment_size,config.0.maintenance_window,config.0.master_authorized_networks_config,config.0.node_config,config.0.node_count,config.0.private_environment_config,config.0.software_config,config.0.web_server_config,config.0.web_server_network_access_control,config.0.workloads_config` must be specified. Examine values at 'Environment.Config.PrivateEnvironmentConfig'.
error: gcp:composer/environment:Environment resource 'composer-env' has a problem: AtLeastOne: "config.0.web_server_config": one of `config.0.database_config,config.0.encryption_config,config.0.environment_size,config.0.maintenance_window,config.0.master_authorized_networks_config,config.0.node_config,config.0.node_count,config.0.private_environment_config,config.0.software_config,config.0.web_server_config,config.0.web_server_network_access_control,config.0.workloads_config` must be specified. Examine values at 'Environment.Config.WebServerConfig'.
Resources:
1 unchanged
echoing-dinner-19531
04/05/2022, 7:56 AMeager-keyboard-30823
04/05/2022, 7:58 AMechoing-dinner-19531
04/05/2022, 7:59 AMeager-keyboard-30823
04/05/2022, 8:09 AMechoing-dinner-19531
04/05/2022, 8:17 AM-v9 --logtostderr --logflow
and you can email them to fraser@pulumi.com or post to gist, it looks like either somethings getting broken in serialization but there's multiple layers of that and not clear which one is causing this.eager-keyboard-30823
04/05/2022, 8:21 AMechoing-dinner-19531
04/05/2022, 8:47 AMUnmarshaling property for RPC[ResourceMonitor.RegisterResource(gcp:composer/environment:Environment,default)]: config={map[]}
So either you've got the subtlest little bug in your program that means Config isn't actually being assigned, or there's an SDK bug that's causing it to be droppedeager-keyboard-30823
04/05/2022, 9:09 AMprogram.fs
is just this:
module Program
open Pulumi.FSharp
let infra () =
let environments = Composer.environments ()
dict []
Deployment.run infra |> ignore
echoing-dinner-19531
04/05/2022, 9:10 AMeager-keyboard-30823
04/05/2022, 9:55 AMinput
in front of every value, but it is necessaryConfig = input (Environment(…)),
echoing-dinner-19531
04/05/2022, 10:06 AMeager-keyboard-30823
04/05/2022, 10:08 AM