728x90
반응형

개발/Google Cloud Platform

[Serverless] Google Cloud Functions에서 환경변수 사용하는 방법 (Using Environment variables)

서버리스 프레임워크에서 구글 클라우드 함수(Google Cloud Functions)를 사용할 때 함수에 환경 변수를 추가하고 싶은 경우가 생깁니다. 이러한 상황에서 환경 변수를 추가하는 방법에 대해서 살펴보도록 하겠습니다. 기본적으로 구글 클라우드 함수(Google Cloud Functions)에서 환경 변수를 사용하는 방법은 아래와 같습니다. 환경 변수 사용 | Cloud Functions 문서 | Google Cloud 배포 시 Cloud Functions에 임의의 키-값 쌍을 설정할 수 있습니다. 이러한 키-값 쌍은 런타임 시 코드에서 액세스할 수 있는 리터럴 환경 변수 또는 빌드팩 시스템의 구성 정보로 표시됩니다. 키-값 cloud.google.com 서버리스(Serverless) 프레임워크에서..

2020.12.14 게시됨

개발/Google Cloud Platform

Serverless Framework를 활용해서 Google Cloud Functions 배포하는 방법

Serverless Framework를 활용해서 Google Cloud Functions에 배포하려면 우선 Serverless Framework CLI를 설치해야 됩니다. macOS & Linux curl -o- -L https://slss.io/install | bash Windows choco install serverless YARN or NPM yarn global add serverless // or npm install -g serverless serverless --version을 통해서 Serverless가 정상적으로 설치되었는지 확인합니다. 아래와 같이 Serverless Framework의 정보가 나오면 정상적으로 설치된 것입니다. 자 Serverless를 설치했으니 CLI를 활용해서 ..

2020.03.02 게시됨

728x90
반응형