How to set environment variables / app secrets in Google App Engine

Question: how can I set application secrets to make them available inapplication.yml ?

In heroku, I did this simply by setting the environment variable for dyno and getting it as:

server:
  port: ${PORT}
security:
  user:
    password: ${USERPASSWORD}

eureka:
  client:
    register-with-eureka: false
    fetch-registry: false
  instance:
    hostname: localhost
    securePortEnabled: true
  password: ${EUREKAPASSWORD}

How to achieve this in the Google App Engine? I tried with datastore: enter image description here

It is not clear, I do not know how to embed these values ​​in my * .yml file.

EDIT:

Another important thing to add. I use the plugin maven appengineto deploy my application through the CI pipeline, so I don’t have the ability to click a app.yamlfile on App Engine

+4
source share
2

, , - . , .

Khan, . Python, . , .

+1

Source: https://habr.com/ru/post/1672632/


All Articles