Amazon Web Services

[API Gateway] Lambda의 Alias 별로 Stage Deploy 하기.

혀뇽뇽이·2020년 2월 20일·조회 32,153

 Lambda에는 Alias를 여러개를 생성할 수 있다.

그러나 API Gateway 1개에서 Labmda의 각 Alias로 Stage를 배포를 하고 싶을 때가 있다.

 그럴 경우, Method를 삭제/생성을 반복하는 작업으로 할 수도 있고,

신규로 Stage를 배포하고 Stage Variables에 Name: lambdaAlias, Value: {Lambda의 Alias}를 추가하여서 설정할 수 있다.

 자세한 내용은 다음의 링크를 참고하면 된다.

 https://stackoverflow.com/questions/54011015/how-to-point-aws-api-gateway-stage-to-specific-lambda-function-alias

댓글 0

로그인 후 댓글을 남길 수 있습니다.

아직 댓글이 없습니다.