a sandbox project of spring-cloud-aws
$ ./mvnw spring-boot:run
This App uses DefaultAwsCredentialsChain to get aws credentials. Therefore this App looks for credentials in this order.
- environment variable
- Java System Properties
- Credential profiles file at
~/.aws/credentials
- etc...
For more details please read this document. https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/auth/DefaultAWSCredentialsProviderChain.html
Get: http://localhost:8080/s3?bucket=<your bucket name>
hello.txt
file is pushed in the bucket- reference
Get: http://localhost:8080/s3/resources?bucket=<your bucket name>&pattern=<file pattern>
- you can use Ant-style pattern to fetch multiple files in the bucket
- e.g.
*.txt
- e.g.
- reference