04/02/2021, 7:54 AM
Hello everyone, I am a beginner in Pulumi and I am testing I have configured everything well, except that when I do my pulumi up it gives me this : error: Configuration 'gcp-py-network-component:subnet_cidr_blocks' value '' is not a valid 'JSON object' error: an unhandled error occurred: Program exited with non-zero exit code: 1 Do you know the exact syntax to declare a cidr in the pulumi config file? I typed this command : pulumi config set gcp-py-network-component:subnet_cidr_blocks '' And here is the return in my file :
gcp-py-network-component:subnet_cidr_blocks: ''
Would you have an idea ? Thanks in advance for your answer


04/02/2021, 3:07 PM
Hi @boundless-artist-3489, You need to set the config value for the `subnet_cidr_blocks`` as follows:
pulumi config set --path 'subnet_cidr_blocks[0]'
This is because the code is written such that it is looking for a structured configuration setting so as to allow one to configure multiple subnet CIDRs. (See for more info.) Regardless, I’ll submit an update to the example so that the README provides this instruction.


04/02/2021, 3:08 PM
Yes i try this at the moment it's work thank you so much for your response 🙂