https://github.com/pcpratheesh/s3filescopier
AWS lambda function to copy a file from s3 to remote server
https://github.com/pcpratheesh/s3filescopier
Last synced: about 2 months ago
JSON representation
AWS lambda function to copy a file from s3 to remote server
- Host: GitHub
- URL: https://github.com/pcpratheesh/s3filescopier
- Owner: pcpratheesh
- Created: 2020-09-27T07:03:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-08-23T10:37:40.000Z (almost 5 years ago)
- Last Synced: 2025-01-29T00:36:10.619Z (over 1 year ago)
- Language: Go
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# s3FilesCopier
A simple AWS lambda function to copy a file from s3 bucket intto remote server.
# Deployment
- Download the deployment file from https://github.com/pratheeshpcplpta/s3FilesZipper
- Build the go with the following command - **env GOOS=linux go build -o main main.go && zip deployment.zip main**
- Upload the deployment file to lambda
- Set the configuration
Handler function name: main
# Configurations
You have to provide the configuration as base64 encoded format. Add **CONFIG** in lambda configuration variable
Use https://www.base64encode.org/ to encode the configurations
```json
{
"region" : "Region",
"user" : "Remote server access user",
"password" : "Remote server access password - ",
"host" : "Remote host",
"port" : "Remote access port",
"authkeybucket" : "Optional - If trying to access ssh with pem key : Pem key file stored bucket",
"authkeypath" : "Optional - If trying to access ssh with pem key : pem key file path",
"sourcebucket" : "File Source Bucket",
"sourcefilepath" : "File path",
"filedestinationfolder" :"Folder path where you want to copy the files at remote host"
}
```