cloud-platform | Documentation on the MoJ cloud platform
kandi X-RAY | cloud-platform Summary
kandi X-RAY | cloud-platform Summary
This is the MoJ Cloud Platform team's repository for public facing documentation, feature work, enhancements, and issues. ZenHub users can add issues through GitHub Issues or directly on our ZenHub board. It's best to search our board before adding new Issues in an effort to reduce duplicates and encourage activity on existing conversations.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of cloud-platform
cloud-platform Key Features
cloud-platform Examples and Code Snippets
Community Discussions
Trending Discussions on cloud-platform
QUESTION
Using Terraform I spin up the following resources for my primary using a unique service account for this cluster:
...ANSWER
Answered 2022-Mar-25 at 10:08Not sure if you intended to use Node auto-provisioning (NAP) (which I highly recommend you use unless it does not meet your needs), but the cluster_autoscaling
argument for google_container_cluster
actually enables this. It does not enable the cluster autoscaler for individual node pools.
If your goal is to enable cluster autoscaling for the node pool you created in your config and not use NAP, then you'll need to delete the cluster_autoscaling
block and add an autoscaling block under your google_container_node_pool
resource and change node_count
to initial_node_count
:
QUESTION
Wanted to call out one GCP api from my python code, following is that method -
...ANSWER
Answered 2022-Mar-21 at 19:14google.auth.transport
is a package, not a module, so the correct way to import it would be
QUESTION
Since some time around March 4, suddenly I have not been able to create a Cloud TPU node.
When I attempt to create a TPU node/VM via GUI, it crashes upon choosing TPU type with any region. I get tons of JS errors in the console:
...ANSWER
Answered 2022-Mar-11 at 16:01I was able to create a TPU VM via Cloud Console by using --service-account instead of --scopes.
The GUI still crashes, but you can somehow create a node by repeatedly clicking at preemptible checkbox. I think the possible cause is that they removed scopes from TPU VM and something in their backend now is incompatible with the current GUI code.
QUESTION
I am following this tutorial,
I installed Docker and WSL2(Ubuntu 20.04.4 LTS) on my windows system, as shown in image below,
When i am trying to run Laravel project using command,
...ANSWER
Answered 2022-Mar-17 at 00:45Instead of:
QUESTION
To preface I'm fairly new to Docker, Airflow & Stackoverflow.
I've got an instance of Airflow running in Docker on an Ubuntu (20.04.3) VM.
I'm trying to get Openpyxl installed on build in order to use it as the engine for pd.read_excel
.
Here's the Dockerfile with the install command:
...ANSWER
Answered 2022-Mar-03 at 15:56We've had some problems with Airflow in Docker so we're trying to move away from it at the moment.
Some suggestions:
- Set the version of openpyxl to a specific version in requirements.txt
- Add openpyxl twice to requirements.txt
- Create a
requirements.in
file with your main components, and create arequirements.txt
off that using pip-compile. This will add subcomponents too - Try specifying a python version as well
Hopefully one of these steps will help.
QUESTION
For some reason, I can't use the Flutterfire CLI to configure an ios app on firebase. I've done this before but this time I'm gettings this error
...ANSWER
Answered 2022-Feb-15 at 16:08It's an authentication issue. Just logout firebase CLI and log in again.
To logout :
QUESTION
I am having some trouble combining two requirements that were communicated to me.
The initial requirement I had was to handle exceptions in the GCP Cloud Function I had created to insert JSON data into BigQuery. The basic logic was as follows:
...ANSWER
Answered 2022-Feb-27 at 21:44Building on John's comment. You want to raise the exception in the code you have and then add a try-except to catch/handle the exception and return the error.
QUESTION
I'm creating a Dataproc cluster, and it is timing out when i'm adding the connectors.sh in the initialization actions.
here is the command & error
...ANSWER
Answered 2022-Feb-01 at 20:01It seems you are using an old version of the init action script. Based on the documentation from the Dataproc GitHub repo, you can set the version of the Hadoop GCS connector without the script in the following manner:
QUESTION
I'll premise that I've already googled and read the documentation before writing, I've noticed that it's a popular discussion here on StackOverflow as well, but none of the answers already given have helped me.
I created a Google Cloud account to use the API: Google Vision.
To do this I followed the steps of creating the project, adding the above API and finally creating a service account with a key.
I downloaded the key and put it in a folder in the java project on the PC.
Then, since it is a maven project I added the dependencies to the pom as described in the tutorials.
At this point I inserted the suggested piece of code to start using the API.
Everything seemed to be OK, everything was read, the various libraries/interfaces were imported.
But an error came up as soon as I tried to run the program:
The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials.
I must admit I didn't know what 'Google Compute Engine' was, but since there was an alternative and I had some credentials, I wanted to try and follow that.
So I follow the instructions:
After creating your service account, you need to download the service account key to your machine(s) where your application runs. You can either use the GOOGLE_APPLICATION_CREDENTIALS environment variable or write code to pass the service account key to the client library.
OK, I tried the first way, to pass the credentials via environment variable:
- With powershell -> no response
ANSWER
Answered 2022-Jan-10 at 17:56Your approach is correct.
To authenticate code, you should use a Service Account.
Google provides a useful mechanism called Application Default Credentials (ADCs). See finding credentials automatically. When you use ADCs, Google's SDKs use a predefined mechanism to try to authenticate as the Service Account:
- Checking
GOOGLE_APPLICATION_CREDENTIALS
in your environment. As you've tried; - When running on a GCP service (e.g. Compute Engine) by looking for the service's (Service Account) credentials. With Compute Engine, this is done by checking the so-called Metadata service.
For #1, you can either use GOOGLE_APPLICATION_CREDENTIALS
in the process' environment or you can manually load the file as you appear to be trying in your code.
That all said:
- I don't see where
GoogleCredentials
is being imported by your code? - Did you grant the Service Account a suitable role (permissions) so that it can access any other GCP services that it needs?
You should be able to use this List objects example.
The link above, finding credentials automatically, show show to create a Service Account, assign it a role and export
it.
You will want to perhaps start (for development!) with roles/storage.objectAdmin
(see IAM roles for Cloud Storage) and refine before deployment.
QUESTION
I spent 4 days already testing all configurations from kubernetes terraform gcp module and I can't see the metrics of my workloads, It never shows me CPU nor Memory (and even the standard default created kubernetes in the GUI has this activated.
Here's my code:
...ANSWER
Answered 2021-Dec-21 at 10:08As I mentioned in the comment to solve your issue, you must add google_service_account_iam_binding
module and grant your Service Account
specific role - roles/monitoring.metricWriter
. In comments I mention that you can also grant role/compute.admin
but after another test I've run it's not necessary.
Below is a terraform snippet I've used to create a test cluster with Service Account
called sa
. I've changed some fields in node config
. In your case, you would need to add the whole google_project_iam_binding
module.
Terraform Snippet
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cloud-platform
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page