简体   繁体   中英

How to create S3 bucket in AWS lambda function using Java

I am trying to create a S3 bucket and upload some data into S3 buckets. But I have few questions about AWS Lambda service.

  1. How to create, delete, upload s3 bucket using AWS Lambda function (Java)?
  2. I am using React native as a front-end so I have to call a lambda API call to create the s3 bucket or doing something in the backend. And my question is, can I use different languages in both sides? (ie React is my front end and Java is my backend).

1-You can create/delete/upload by S3 client for Java, for more info check the AWS SDK for Java https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/AmazonS3Client.html

2-Yes, you can write your Lambda function in one of the languages AWS Lambda supports.

  • NodeJs
  • Java
  • Go
  • C#
  • Python

For more info read the following doc https://docs.aws.amazon.com/lambda/latest/dg/programming-model.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM