SageMaker cannot create first user - amazon-sagemaker

I need to create first user to getting start, but Amazon won't let me.
ResourceLimitExceeded The account-level service limit 'Maximum number
of user profiles per domain' is 0 UserProfiles, with current
utilization of 0 UserProfiles and a request delta of 1 UserProfiles.
Please contact AWS support to request an increase for this limit.
I cannot get pass the quickstart guide.
How should I fix ? What did I miss ?

I experienced this same issue. To resolve you just need to request a limit increase via https://us-east-1.console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase
Limit type: SageMaker Studio
Limit: Max User Profiles Per Account
New Limit: 1 (or more)

Related

Gmail API token limits

Can someone tell me if the tokens from Gmail are limited for applications or for users ?
For example I will create a SAAS where users will be able to log in with their Gmail account.
The tokens are limited for the website owner or for website users ?
Thanks
Gmail's usage limits are applied to all requests made from your application, as well as per-user rate limits:
Daily Usage: 1,000,000,000 quota units per day
Per User Rate Limit: 250 quota units per user per second, moving average (allows short bursts)
For more information, see the docs: https://developers.google.com/gmail/api/v1/reference/quota

Insufficient tokens for quota 'administrator' and limit 'CLIENT_PROJECT-100s' of service 'pubsub.googleapis.com' for consumer 'project_number:#'

I sometimes get the following error when creating a subscription:
Insufficient tokens for quota 'administrator' and limit 'CLIENT_PROJECT-100s' of service 'pubsub.googleapis.com' for consumer 'project_number:'
Waiting it out does the trick, but I'd like to increase the quota. In the IAM & Admin section of the Google Cloud Console, I can filter on the Pub/Sub API, but can't find the limit...
You are running up against the quota for administrative operations. In the Quotas page, under "Quota type," select "All quotas," then under "Service" select "Google Cloud Pub/Sub API." The quota you want to increase is "Administrator operations per 100 seconds," which you can update up to the maximum allowed limit of 10,000 per 100 seconds, as detailed on the Pub/Sub quota page. Here is a screenshot of the entity you need to update:
I was hitting a similar error.
I checked the quota section — as per Kamal Aboul-Hosn's suggestion — however it was already maxed out.
A work around was to put a sleep function in the code so the API wouldn't get hammered over a hundred second period. I hope that helps.
According to AboulHosen on the GCP Slack:
"It does look like quota is pooled across users of the default application credentials and that the quota is significantly lower for users authenticated in this way. I believe when going to app engine, a service account is created (https://cloud.google.com/appengine/docs/flexible/python/access-control#using_service_accounts), so I would not anticipate this error happening when running on app engine."
So the reason this is happening is because the quota for your admin credentials is being consumed elsewhere, and as far as I know, there is no way to increase this!

Getting "Rate Limit Exceeded" when trying to add new API Project

I have 27 API Projects currently set up on one Google User account, via https://console.developers.google.com. I am needing to add more, but whenever I try I get the following error "Rate Limit Exceeded". I can see from the Requests column that the current projects hardly make any requests at all. I can't see why we would have hit any limit. Is there a limit to the total number of Projects you can set up against one Google User account?
Thanks!
There is a limit of 25 free projects to one google account.
Source
How many applications can I create with Google App Engine?
Each account can host 25 free applications and an unlimited number of
paid applications. If you reach the free limit, you can delete
existing applications to create more. Note that you can't re-register
an application ID.

Is there a maximum number of service accounts that a project can have in the google cloud platform?

I'd like to dynamically generate service accounts/clients and there is a possibility that I would generate a lot of them. Is there a maximum number of client ids / service accounts that a google cloud platform project can have?
I know this is too late but came across this FAQ in Google cloud docs which answers this question as follows:
You can create 100 service accounts in a project. Contact your account manager
if you need to create more than 100 service accounts in a project.
I don't know of a limit on the number of service accounts, but there is a limit to the number of refresh tokens for a given service account:
There is a limit to the total number of refresh tokens that your service account can have at any one point in time. Currently, this limit is 600. If this limit is reached, Google Compute Engine will not be able to create an instance which requires a new refresh token, and you will get a SERVICE_ACCOUNT_TOO_MANY_TOKENS error. For example, if you have reached the refresh token limit, and you attempt to create an instance with a new, unique set {default, scope1, scope2, scope3, scope4), the action fails and you will receive the SERVICE_ACCOUNT_TOO_MANY_TOKENS error.
There is a limit on the number of service accounts per project.
However, you could increase this limit through the quota page.
In your project's quota page edit the following to increase limit on the number of service accounts per project.
'Quota type': All quotas
'Service' : Identity and Access Management (IAM) API
'Metric' : Service Account Count

How to send mail to all users in an app engine application

I work on a google app engine application which currently has about 4000 users and I want to write a handler to send email to all users.
The problem is that app engine has limitations on getting entities from datastore. For example, the max number of rows which can be returned from datastore is 1000.
I can get all users incrementally by using a loop and limit, offset parameters of gql. But this time the max lifetime of a handler which is 30 seconds limits me.
I made some research to overcome this problem and I have ended up with backends. But it seems to me backends usage is different I mean it is not appropriate for this operation.
How can I achieve this task?
Thanks in advance..
from google.appengine.api import mail
mail.send_mail(sender="Example.com Support <support#example.com>",
to="Albert Johnson <Albert.Johnson#example.com>",
subject="Your account has been approved",
body="""
Dear Albert:
Your example.com account has been approved. You can now visit
http://www.example.com/ and sign in using your Google Account to
access new features.
Please let us know if you have any questions.
The example.com Team
""")
Task Queues give you a 10-minute deadline. See the documentation
You can get more than 1000 items in one request. Just avoid using fetch and try this:
entities = Entity.all() # <-- no fetch
for e in entities:
mail.send_mail()
This will keep on getting users until the 10 minute limit run out: a lot of entities and more than enough for 4000 users.

Resources