1.Motivation | 起因 A requirement from the product department requires download image from AWS S3 bucket, for achieving this requirement, I should set the image content MIME header as Content-Disposition:Attachment. 产品部门有一项需求是从S3上下载图片,为了完成这一需求,需要把图片的MI
云存储服务 2.1 为网站打开属性 属性和权限设置 设置bucket属性,打开功能:Static website hosting(静态网站托管) 设置bucket权限,Permissions ----> Bucket Policy ----> 策略生成器(左下角) ARN should follow the following format: arn:aws:s3:::<bucket_name>/<key_name>. Use a comma to separate m
1. Install AWS CLI first, windows download link https://s3.amazonaws.com/aws-cli/AWSCLI64.msi 2. Then create a bat file Cd "C:\Program Files\Amazon\AWSCLI\" aws configure set AWS_ACCESS_KEY_ID AKIAO**********************LLIUA aws configure set A
Install the SDK The recommended way to use the AWS SDK for Java in your project is to consume it from Maven. Import the aws-java-sdk-bom and specify the SDK Maven modules that your project needs in the dependencies. Importing the BOM <dependencyManag