Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The "appengine.applications.get" permission is required

I am trying to deploy my first app engine spring boot project using gradle and I am running into the following error when I run "gradle appengineDeploy":

ERROR: (gcloud.app.deploy) Error Response: [403] Operation not allowed
Details: [
  [
    {
      "@type": "type.googleapis.com/google.rpc.ResourceInfo",
      "description": "The \"appengine.applications.get\" permission is required.",
      "resourceType": "gae.api"
    }
  ]
]

Here is my build.gradle:

    buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.2.RELEASE")
        classpath("com.google.cloud.tools:appengine-gradle-plugin:+")
    }
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'com.google.cloud.tools.appengine'
jar {
    baseName = 'gs-spring-boot'
    version =  '0.1.0'
}
repositories {
    mavenCentral()
    maven {
      url 'https://maven-central.storage.googleapis.com'
    }
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
    compile("org.springframework.boot:spring-boot-starter-web")
    // tag::actuator[]
    compile("org.springframework.boot:spring-boot-starter-actuator")
    // end::actuator[]
    // tag::tests[]
    testCompile("org.springframework.boot:spring-boot-starter-test")
    // end::tests[]
    //compile("com.google.cloud.tools:appengine-maven-plugin:1.0.0")
    //appengineSdk 'com.google.appengine:appengine-java-sdk:1.9.50'
    compile('com.google.appengine:appengine:+')
}
appengine {
  deploy {   // deploy configuration
    stopPreviousVersion = true  // default - stop the current version
    promote = true              // default - & make this the current version
  }
}

Please let me know how to proceed.

like image 363
Mzouitni Avatar asked Mar 17 '17 11:03

Mzouitni


People also ask

How do I install Google Appengine?

Download and Install You can download the Google App Engine SDK by going to: http://code.google.com/appengine/downloads.html and download the appropriate install package. Download the Windows installerWindows installerWindows Installer (msiexec.exe, previously known as Microsoft Installer, codename Darwin) is a software component and application programming interface (API) of Microsoft Windows used for the installation, maintenance, and removal of software.https://en.wikipedia.org › wiki › Windows_InstallerWindows Installer - Wikipedia – the simplest thing is to download it to your Desktop or another folder that you remember.

Why is Google Appengine important?

Benefits of GAEGAE is fully managed, so users can write code without considering IT operations and back-end infrastructure. The built-in APIs enable users to build different types of applications. Access to application logs also facilitates debugging and monitoring in production. Pay-per-use pricing.


1 Answers

I got this after updating the google cloud sdk. I just run gcloud init again and entered the same choices.

like image 53
comodoro Avatar answered Oct 08 '22 19:10

comodoro