[AWS] Lambda with EFS 구축




EFS용 SG 생성하기

람바다용 IAM 스크롤 막대 만들기





- 위에서 설명한 IAM 드럼으로 드럼 설정




file_path = '/mnt/efs/'
def lambda_handler(event, context):
file_name = 'test-efs.txt'
write_string = 'test-efs'
with open(file_path + file_name, mode='w') as f:
f.write(write_string)
with open(file_path + file_name) as f:
print(f.read())

EC2에서 EFS에 액세스하여 파일, 컨텐트를 구상대로 작성했는지 확인

참조 링크
Reference
이 문제에 관하여([AWS] Lambda with EFS 구축), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/kei1-dev/items/58dcf6ff9f593cbcc14b텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)