6 Answers
Whenever you create a project it will need to be linked to a billing account to use services.
You can do this via console: https://cloud.google.com/billing/docs/how-to/modify-project
or via cloud shell using the gcloud alpha command set: https://cloud.google.com/sdk/gcloud/reference/alpha/billing/accounts/projects/link
should turn out something like this:
gcloud alpha billing accounts projects link
To find your Billing Account ID head to Billing -> Manage Billing Accounts
and find it in the list
All of the above should be doable through the user account if setup as per this course’s introduction.
Hope this helps.
Let me know how you go.
Looks like there is a (hidden or new) limit of only 3 projects on user account within free tier
yes, catching a few people out, including me 🙂
to the OP, if you havent sorted this already, check this thread:
hi all, the issue was i had created several projects for trying out something and never realized that i went above the limit. once i learnt this. i had to delete the unwanted projects and then started all over again. That solved the problem. thank you Ryan, Akin, Matt for sharing your ideas. thanks.
This is now a beta command: gcloud beta billing projects link <project id> --billing-account=<billing id>
https://cloud.google.com/sdk/gcloud/reference/beta/billing/projects
Yep, beta command, i had to log out/login again to even see my new project and then in Console i noted it needed to be linked to billing so figured out the gcloud for that and did the linking and then came here to check the answers to validate. To list your billing id, run "gcloud beta billing accounts list"
In order to be able to create a successful usable project, an identity needs 2 roles: billing account user, and project creator roles. In chapter 6 we created a user account that has both of these roles. You don’t need to create a new billing account to get your project to work, you do however need to link your project to a pre-existing billing account. Billing accounts have quotas on how many projects you can have linked to them, so if you have already reached that quota, then you might need to remove a project or two. Otherwise, you should be able to link your project to your billing account, and have success in using and creating resources.