Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Eddú Meléndez Gonzales
    Eddú Meléndez Gonzales
    have been thinking about 2 things looking at the current source code. 1. Remove the @Autowire annotations and go for constructor injection or use ObjectProvide for those with required=false. 2 . Move the cloudwatch support to v2
    Maciej Walkowiak
    Hi @eddumelendez! :+1: to both ideas. I am thinking about solid re-do of configuration classes. For 2.3.x I think we can drop XML support and also drop @Enable classes. This would allow us move all configuration completely to autoconfigure module and use Spring Boot @Conditional annotations. There we could use ObjectProviders
    I'll put today/tomorrow together my thoughts on 2.3.x and 3.x. I see 3.x as move to AWS SDK v2 - this will be a lot of work and I would like to drop everything we don't need and don't want to support just to reduce amount of code to migrate.
    I started working already on 2.3.x but everything is up to discussion and your input @eddumelendez will be extremely welcome!
    Spencer Gibb
    :+1: @eddumelendez
    Hi @maciejwalkowiak !
    Currently looking at the spring cloud messaging. Seems a lot of code are based on spring messaging framework.
    Looking at you reactive-sqs PoC looks more readable and understandable. Of course it's PoC and more features should be implemented.
    Are you considering migration from spring messaging mechanism for sqs/sns support on spring cloud?
    Maciej Walkowiak
    Hi @jarc0der! Ideally we do not migrate away from Spring Messaging as there are some downstream projects that depend on Spring Cloud AWS like Spring Integration AWS and I am afraid we could break them. Perhaps there is a way to use reactive approach and keep it Spring Messaging compatible (just guessing, I am still digging into this topic). Ideally whatever abstraction we come up with should let us build something like Spring Cloud Stream SQS. I did a POC for that long time ago https://github.com/maciejwalkowiak/spring-cloud-stream-binder-sqs but since it's based on Spring Cloud AWS it also has all the flaws of current implementation of SQS listener.
    Philip Riecks
    Hey :wave: I just submitted an issue to optimize the integration test setup(spring-cloud/spring-cloud-aws#572). It would be great if you can share some thoughts on this :thumbsup:
    Philip Riecks
    Does the Intellij_Spring_Boot_Java_Conventions file supersedes the eclipse-code-formatter.xml? While reading the README in the coding conventions it says to install the Eclipse Formatter for IntelliJ while in the IntelliJ IDE setup one should use the coding conventions from Spring Cloud Build?
    Maciej Walkowiak
    @rieckpil IDE setup is another thing that needs to be refreshed. I did not use eclipse-code-formatter plugin at all. Code is being formatter through spring-javaformat Maven plugin automatically when you build the project
    3 replies
    Shawn Johnson
    I feel like I am missing a major concept with the SqsListener - How/where is it determined how frequently the SQS queue is checked?
    Rory Byrne
    Is it possible to register two listeners for a single SQS queue? One or the other should be used to handle the event, depending on the structure of the message body. Example:
    public class MyListener {
      public void handler(Foo foo) {
      public void otherHandler(Bar bar) {
    My queue receives different messages for different events, so I'd like to have a different handler for each event type
    Maciej Walkowiak
    @synek you would need to implement this dispatching logic yourself. It's meant to have single @SqsListener per queue
    Mete Alpaslan Katırcıoğlu
    Hi @maciejwalkowiak I have provided configuration properties for AmazonRdsDatabaseAutoConfiguration as you suggested in spring-cloud/spring-cloud-aws#598 but I couldn't find how I can bind AnnotationAttributes to configuration properties for AmazonRdsInstanceConfiguration. How can I handle that? I would be very happy, if you can guide me.
    Rory Byrne
    Hi folks there's a bug with the Spring Cloud AWS documentation website - code examples are illegible due to the text color matching the background color. https://cloud.spring.io/spring-cloud-aws/2.2.x/reference/html/
    1 reply
    Or is it just me? I suppose it's possible that my browser is broken
    Rory Byrne
    Petar Tahchiev
    Hey everyone, I'm searching all over the internet to see if it possible to delete a file on AWS S3 using the spring-cloud API, and I found this: https://stackoverflow.com/questions/51304075/how-to-delete-file-from-s3-using-spring-cloud-aws
    which claims that is is not possible. Is this really the case??? This seems like a very basic functionality
    2 replies
    Andy Dior VP of Product
    I apologize if this has been covered, but I was looking at the Spring Cloud roadmap and noticed this in the 2020.0.0-M1 release: Spring Cloud AWS and Spring Cloud GCP are no longer part of the release train. They will continue to be part of Hoxton as long as it is supported – at least thru June of 2021. (https://spring.io/blog/2020/04/17/spring-cloud-2020-0-0-m1-released). Having read through a few PRs in the project, it looks like Spring Cloud AWS 3.0 will be a major release. Is it just the case that Spring Cloud AWS is no longer part of the Spring Cloud release train?
    Spencer Gibb
    @DwyerBandEmpire_twitter yes, it will be released on it's own. It will move to a new github org and have a new maven groupid and new package names (all still undecided yet)
    1 reply
    Juan Carlos Ledesma

    Hi guys. I want to implement concurrency (multiple workers) in the SqsListeners. I already have several projects that use that same implementation (as a library). Ideally, keep the implementation with the annotation (@SqsListener) and make the changes in the configuration class

    I read an AWS documentation about that, but it's a bit old, so I don't know if I need to change my implementation, or if there is a way to set the concurrency attributes in the config class.

    Link: https://aws.amazon.com/blogs/developer/using-amazon-sqs-with-spring-boot-and-spring-jms/

    The following is the implementation that I currently have, but I don't know how to set the concurrency attributes:

    Config class

    public class SqsConfig {
        public QueueMessagingTemplate queueMessagingTemplate(AmazonSQSAsync amazonSQSAsync) {
            return new QueueMessagingTemplate(amazonSQSAsync);
        public AmazonSQS sqsClient() {
            return AmazonSQSClientBuilder.defaultClient();

    Consumer class:

    public class Consumer implements ISqsStandardConsumer{
        public void receiveStandardMessage(String message) {

    I really appreciate your comments

    2 replies
    Mete Alpaslan Katırcıoğlu
    spring-cloud-aws is using cloud.aws prefix for configuration properties. Would it be good to rename as spring.cloud.aws in next major release 3.0.0.M1? What do you think? @maciejwalkowiak @eddumelendez
    2 replies
    Pedro Marques

    Hello I don't know if this is a bug or simple spring cloud aws doesn't support this.
    In order to have access to my aws account from AWS CLi, I have to login through a npm app called aws-azure-login and this redirects me to my organization login page and creates and all the information necessary on .aws/config file and .aws/credentials.



[profile landing-zone-iam]





    I can use the cli e.g aws s3 ls - -profile app-dev and I have results

If I try to use spring cloud aws I cannot run the application 





    Caused by: com.amazonaws.SdkClientException: Unable to load region information from any provider in the chain
    at com.amazonaws.regions.AwsRegionProviderChain.getRegion(AwsRegionProviderChain.java:59) ~[aws-java-sdk-core-1.11.792.jar:na]

Does Spring Cloud AWS support this kind of authentication ? 

    Hello all,
    I am trying to figure out if there are any Spring Bean Scopes that work with Spring Cloud AWS for the entire process of a @SqsListener call. I'd like to autowire certain data through the call cycle but it appears like request doesn't work and I don't believe any of the other scopes by default support that.
    Corneil du Plessis

    I'm trying to deploy a Spring Boot application to AWS Beanstalk. A year ago I wrote an article on how to do it but now those same instructions fail: https://www.baeldung.com/spring-boot-deploy-aws-beanstalk
    I've tried with an without Spring Cloud AWS enabled. In the one profile I exclude:


    In the other profile I only excluded:


    So the AmazonRdsDatabaseAutocConfiguration should be active.
    I tried with the RDS database as part of Beanstalk application and as a separate RDS database instance.

    It can't be this difficult.

    Davy De Waele
    I know it is possible to retrieve ec2 instance data : https://cloud.spring.io/spring-cloud-aws/reference/html/#using-instance-metadata) when using spring-cloud-aws, but is there also a way to retrieve ECS / Fargate meta data when your spring boot service is running in an ECS / Fargate container ?
    Gayan Weerakutti

    Adding spring-cloud-starter-aws-secrets-manager-config to 2.3.4.RELEASE - Hoxton.SR8, project throws the following:

    com.amazonaws.util.EC2MetadataUtils : Unable to retrieve the requested metadata (/latest/meta-data/instance-id). 
    Failed to connect to service endpoint: 
    com.amazonaws.SdkClientException: Failed to connect to service endpoint: 
            at com.amazonaws.internal.EC2ResourceFetcher.doReadResource(EC2ResourceFetcher.java:100) ~[aws-java-sdk-core-1.11.792.jar:na]
    Caused by: java.net.SocketTimeoutException: connect timed out

    But downgrading the springCloudVersion to Hoxton.SR6 do fix it.

    @edwardbrighton84 Did you get answer on this? I need similar thing
    Maciej Walkowiak
    @pedrorlmarques_twitter sorry for late reply. I believe this is related to spring-cloud/spring-cloud-aws#617 - but this PR cannot be merged in the current form. If you feel like you can pick it up it would be nice
    @gayanW - this is just a log from the AWS SDK that can and should be disabled. Take a look please at this video: https://youtu.be/Ts2a-YdN6vI?t=393
    @ddewaele I haven't tested it with Fargate/ECS but there was no effort (yet) to make Spring Cloud AWS work in any special way on Fargate
    Jukka Siivonen
    Should org.springframework.cloud:spring-cloud-starter-aws-secrets-manager-config:2.2.5.RELEASE exist in some Maven repository? Can't find it