refined-pilot-45584
08/09/2023, 9:10 AMname: pulumi-project
runtime: go
description: it builds some infra
config:
gcp:project:
description: The Google Cloud project to deploy into
However I get the following error message when I do a Pulumi Up:
Configuration key 'gcp:project' is namespaced and must provide an attribute 'value'
Additionally I would then try and retrieve the prodiders project ID by reading it into another variable as follows:
gcpProjectId := cfg.Require("gcp:project")
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.echoing-dinner-19531
08/09/2023, 10:29 AMconfig.Get(ctx, "gcp:project")
refined-pilot-45584
08/09/2023, 10:31 AMechoing-dinner-19531
08/09/2023, 10:31 AMrefined-pilot-45584
08/09/2023, 10:33 AMsalmon-account-74572
08/09/2023, 1:40 PMawsRegion := config.Require("aws:region")
keyPair := config.Require("keypairname")
Granted, I wrote this a while ago, but I just ran pulumi up
with no issues (Go 1.19, Pulumi 3.76.1).