-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serving plain-text files with S3 Backend not working #1939
Comments
I'm also hoping to move away from Git to S3 (we're migrating our config server from on-prem to AWS). This Spring Cloud Config reference guide suggests that serving plain text via AWS S3 is possible, but the "additional endpoint" of |
Could you try with 2021.0.3? |
@hpoettker it appears you may have looked into this issue, is this only possible now with the AWS v2 SDK? |
Duplicates #2216 |
We are trying to migrate our Spring Cloud Config Server from a Git Backend to S3. This is working fine for the normal configuration yaml files, but we also use it to serve plain text files and are having problems getting that working.
This is documented here https://docs.spring.io/spring-cloud-config/docs/current/reference/html/#spring-cloud-config-serving-plain-text-aws-s3, but its not clear what URL format to use.
With Git we used
https://config-host/a/b/master/myfile.txt
For S3 I've tried
https://config-host/test/b/c/myfile.txt
which results in this in the logs
(after putting myfile.txt in the test folder in my-bucket)
Possibly there is an issue with the encoding here - ie
test%2Fmyfile.txt
?We are using spring-cloud 2020.0.3 and spring-cloud-aws 2.3.0
Originally raised on stack overflow https://stackoverflow.com/questions/68595665/serving-plain-text-files-from-spring-cloud-config-server-with-s3-backend
The text was updated successfully, but these errors were encountered: