https://pulumi.com logo
#general
Title
# general
e

enough-house-68209

09/20/2022, 10:40 AM
đź‘‹ Hi everyone! I am new to pulumi, I just got introduced to it today, and I have this issue that I've been stuck with for python and gcp, apologies if it's really newbie the question, but how to fix this error, studying this source code from youtuber ArjanCodes: https://github.com/ArjanCodes/2022-pulumi/tree/main/cloud_func:
Copy code
Type                                      Name               Plan       Info
 +   pulumi:pulumi:Stack                       cloud_func-dev     create
 +   ├─ gcp:storage:Bucket                     cf_demo_bucket     create
 +   ├─ gcp:storage:BucketObject               eta_demo_object    create
     └─ gcp:cloudfunctions/functions:Function  eta_demo_function             1 error
 
Diagnostics:
  gcp:cloudfunctions/functions:Function (eta_demo_function):
    error: unrecognized resource type (Check): gcp:cloudfunctions/functions:Function
b

billowy-plastic-61471

09/20/2022, 10:44 AM
Hey Anthony, show us the code :)
e

enough-house-68209

09/20/2022, 10:44 AM
Okay sure, it comes from this youtuber ArjanCodes for cloud function: https://github.com/ArjanCodes/2022-pulumi/tree/main/cloud_func
l

limited-rainbow-51650

09/20/2022, 10:49 AM
Can you paste the output of
pulumi about
?
e

enough-house-68209

09/20/2022, 10:51 AM
output of pulumi about:
Copy code
CLI          
Version      3.40.0
Go Version   go1.19
Go Compiler  gc

Plugins
NAME    VERSION
gcp     6.37.0
python  unknown

Host
OS       Microsoft Windows 11 Home Single Language
Version  10.0.22000 Build 22000
Arch     x86_64

This project is written in python: executable='C:\Users\aheit\PycharmProjects\infrastructure_as_code_tutorial\venv\Scripts\python.exe' version='3.10.7
'
Dependencies:
NAME        VERSION
pip         22.2.2
pulumi-gcp  6.37.0
setuptools  65.3.0
wheel       0.37.1

Pulumi locates its logs in C:\Users\aheit\AppData\Local\Temp by default
warning: Failed to get information about the current stack: No current stack
l

limited-rainbow-51650

09/20/2022, 11:04 AM
This is something very weird. In your case, it complains about the underlying type token:
gcp:cloudfunctions/functions:Function
Our code has it as token:
gcp:cloudfunctions/function:Function
So, with the word
function
rather than
functions
(plural) just before the last colon. https://github.com/pulumi/pulumi-gcp/blob/master/sdk/python/pulumi_gcp/cloudfunctions/function.py#L1306
e

enough-house-68209

09/20/2022, 11:05 AM
Oh okay that makes sense, should I reinstall pulumi_gcp?
l

limited-rainbow-51650

09/20/2022, 11:06 AM
Yes, can you give that a try? BTW, referring to your initial message, this is not a newbie issue: this shouldn’t happen at all.
🙏 1
e

enough-house-68209

09/20/2022, 11:12 AM
Wow, thank you guys so much, it works now, really weird how that happen, my guess is that our mentor accidentally messed with the type token
l

limited-rainbow-51650

09/20/2022, 11:13 AM
Good to hear that it works. Have fun with your further Pulumi exploration.
e

enough-house-68209

09/20/2022, 11:14 AM
Much thanks to you both @limited-rainbow-51650 and @billowy-plastic-61471, and really enjoying Pulumi , can't wait to learn more, have a great day
👍🏼 1
đź‘Ť 1
b

billowy-plastic-61471

09/20/2022, 11:16 AM
@limited-rainbow-51650 It would be helpful if a Pulumi “StackOverflow” thing would exist - I think this slack channel generates lots of useful solutions to problems - but Slack messages disappear so they’re not really searchable & reliable in the long run. Maybe something like this already exists?
l

limited-rainbow-51650

09/20/2022, 11:19 AM
Well, we have both: • Slack Community Archive: https://www.pulumi.com/blog/announcing-community-slack-archive/ • StackOverflow Pulumi tag (actively tracked): https://stackoverflow.com/questions/tagged/pulumi
🙌 2
b

billowy-plastic-61471

09/20/2022, 11:20 AM
VERY nice :)) Good job you guys I love it !
l

limited-rainbow-51650

09/20/2022, 11:22 AM
The archiving is quite fast. Here is the link to the start of this very thread: https://archive.pulumi.com/t/2683601/very-nice-good-job-you-guys-i-love-it#7c020533-2fab-4294-adca-7ca073ad5ff1
🙌 2
6 Views