refined-pilot-4558408/09/2023, 9:10 AM
However I get the following error message when I do a Pulumi Up:
name: pulumi-project runtime: go description: it builds some infra config: gcp:project: description: The Google Cloud project to deploy into
Additionally I would then try and retrieve the prodiders project ID by reading it into another variable as follows:
Configuration key 'gcp:project' is namespaced and must provide an attribute 'value'
Is this the correct approach to access the providers project value? High Level Objectives: • Force users to set the Google Cloud Project ID in the Provider; • Access the Project ID programatically in the Pulumi Function.
gcpProjectId := cfg.Require("gcp:project")
echoing-dinner-1953108/09/2023, 10:29 AM
refined-pilot-4558408/09/2023, 10:31 AM
echoing-dinner-1953108/09/2023, 10:31 AM
refined-pilot-4558408/09/2023, 10:33 AM
salmon-account-7457208/09/2023, 1:40 PM
Granted, I wrote this a while ago, but I just ran
awsRegion := config.Require("aws:region") keyPair := config.Require("keypairname")
with no issues (Go 1.19, Pulumi 3.76.1).