Lambda 시작하기 #3 Lambda 버전 관리/별칭 설정
3239 단어 APIGateway람다AWS
참고 URL
클래스 메소드의 다음 URL을보고 학습했습니다.
htps : // v.ぁsss d. jp / c ぉ d / 아 ws / ゔ r 시온 - 마나게 멘 t ぃ th - 아피가 테와 y - an d - mb이다 /
Lambda 버전 관리/별칭 설정
위의 URL을 따라 함수를 만들어갑니다.
이제, 이 근처는 벌써 전회까지의 조작으로 익숙한 느낌이군요.

지정된 문자를 출력하는 함수를 작성합니다.
테스트 코드import json
def lambda_handler(event, context):
return "version1"

기사에도 기재되어 있는 대로, 함수는 작성한 단계에서는, 버전은 작성되어 있지 않은 상태가 됩니다.

버전을 만들려면 다음과 같이 동작에서 새 버전 게시를 선택합니다.
작성한 버전의 내용은 변경할 수 없습니다.


버전이 생성되었음을 다음과 같이 확인할 수 있습니다.

특정 버전에 대해 별칭을 설정할 수 있습니다.

별칭을 설정하여 버전에 대한 의미를 정의할 수 있습니다.

풀다운 메뉴도 별칭: dev로 표시됩니다.

방금 만든 버전 1을 production으로 별칭을 설정해 봅니다.

버전 1은 변경할 수 없고, 프로덕션 설정이라고 하는 위치설정이군요.

오늘은 지쳐 버렸기 때문에, 여기까지.
큰 일은 할 수 없지만, 또 내일도 계속하겠습니다!
Reference
이 문제에 관하여(Lambda 시작하기 #3 Lambda 버전 관리/별칭 설정), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/Blue2012/items/c8fb164e913f084aa83d
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
import json
def lambda_handler(event, context):
return "version1"
Reference
이 문제에 관하여(Lambda 시작하기 #3 Lambda 버전 관리/별칭 설정), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/Blue2012/items/c8fb164e913f084aa83d텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)