在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:aws-samples/aws-java-sample开源软件地址:https://github.com/aws-samples/aws-java-sample开源编程语言:Java 100.0%开源软件介绍:AWS SDK for Java Sample ProjectA simple Java application illustrating usage of the AWS SDK for Java. RequirementsYou have a choice of Maven or Gradle The only requirement of this application is Maven. All other dependencies can be installed by building the maven package:
Otherwise with gradle you can run the gradlew wrapper and all dependencies will be installed:
Basic ConfigurationYou need to set up your AWS security credentials before the sample code is able to connect to AWS. You can do this by creating a file named "credentials" at ~/.aws/ (C:\Users\USER_NAME.aws\ for Windows users) and saving the following lines in the file:
See the Security Credentials page for more information on getting your keys. Running the S3 samplePrerequisitesYou will need to go to IAM policies page, search for the String "S3,"
and "Attach" the "AmazonS3FullAccess" policy to the user whose credentials exist in
your This sample application connects to Amazon's Simple Storage Service (S3), creates a bucket, and uploads a file to that bucket. The code will generate a bucket name for you, as well as an example file to upload. All you need to do is run it. Maven:
Gradle:
When you start making your own buckets, the S3 documentation provides a good overview of the restrictions for bucket names. LicenseThis sample application is distributed under the Apache License, Version 2.0. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论