Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Andy Czerwinski
    Kyle Anderson
    @czerwina I'd rather take the hit then use completely different components. RabbitMQ is nothing like SQS (even with an abstraction layer), and there's a lot of configuration that is specific to each. That's more config drift than separate AWS environments. And I'm not suggesting you need to deploy to AWS for local testing. You can make use of SQS, S3 and other services while running your app on your laptop. This isn't perfect either but SQS messages cost a miniscule amount.
    Andy Czerwinski
    @kanderson450 didn't think of just exposing the services to the devs. U think via api gateway or vpn to the vpc?
    Kyle Anderson
    @czerwina Depends on the service as they are not all available as private VPC endpoints. For example, SQS is not but S3 is. Your custom application services should be able to run locally all at once using docker-compose.
    The infrastructure services that are AWS specific (e.g. S3, SQS, SNS) can be called remotely from your laptop with Profile specific credentials tied to a completely separate environment (or even a seperate account).
    Steve Nera
    Heya, I was taking a look at RDS configuration support for Aurora and noticed that support for it was explicitly added back in October 2015. I was testing read replica support and it wasn't detecting the read replicas I had created.
    From what I understand, Amazon very recently (in January specifically) updated aws-java-sdk-rds to add a field for properly obtaining Aurora read replicas. The existing API that spring-cloud-aws is using results in an empty list for read replica identifiers if you're using an Aurora cluster.
    Alain Sahli
    Thanks for mentioning that! We are going to look into it.
    Felipe Adorno
    Hy everione, I create a register to create all my aws queus using annotations is interesting make a PR for this?
    I create the SqsConsumer to this and I use the parameters to create a SQS queue
    public @interface SqsConsumer {
        String[] value() default {};
        String delaySeconds() default "0";
        String maximumMessageSize() default "262144";
        String messageRetentionPeriod() default "345600";
        String policy() default "";
        String receiveMessageWaitTimeSeconds() default "0";
        String redrivePolicy() default "";
        String visibilityTimeout() default "30";
    Kyle Anderson

    Are you saying that you want to create the SQS queue if it doesn't exist, wherever the @SqsListener is defined? Something like:

    @SqsListener(value = "myQueue", createQueue=true)
    public void queueListener() {}

    Any clarification you can provide would be great. Thanks.

    Felipe Adorno
    @andersonkyle I'll do this, thanks for reply :)
    Al Grant
    anyone here connected Intellij via the plug to AWS?
    Al Grant
    anyone here using AWS???
    Al Grant
    I have my webapp running in AWS beanstalk. Each time a connection is made it prints the IP address to the console - but its printing - is that because beanstalk is using a proxy or?
    Kyle Anderson
    @bigalnz Yes, definitely an AWS user but I can't say that I've used the IntelliJ plugin...
    Is your question specific to this repository?
    I know this is AWS, but has anyone use Spring-Cloud Zuul and Eureka with Kubernetes?
    Kyle Anderson
    @JonathanAaron Can't say that I have. Are you running into an issue?
    Gaurav Rawat
    Is there any plan to support dimension publication through spring cloud aws actuator . Specially with relation to instance id's in case of multiple ec2 nodes publishing metrics of the same app .
    Nagilla Venkatesh
    Hi all,
    Need spring boot and Amazon redshift integration sample code
    can anyone please help me
    Narayanan Raghavan
    We have an issue with ZuulProxy throwing socketexception every 10 mins on PCF/AWS. Anyone seen this error?
    Prashant Srivastav
    @nagillavenkatesh best to use aws lamda with redshift and integrate with Spring
    it will be rest call to lambda uri and AWS Lambda Amazon Redshift Database Loader
    Felipe Adorno
    Hi all, anyone knows how I can reduce costs using SQSListener? pooling increase my billing a lot
    hi, how can I connect to an Aurora DB cluster replica using the spring-cloud-aws-jdbc? This is my java config: @EnableRdsInstance(dbInstanceIdentifier = "", databaseName = "", username = "", password = "", readReplicaSupport = true).
    On my JPA repository I'm using the @Transactional(readOnly=true).
    The documentation says that the library automatically detects the replica information, but it is not working for me. Additionaly, I think that the dbInstanceIdentifier should be the cluster name instead of the master instance.
    Sanjay Rawat
    Hi everyone, I am getting below error when I start the application. I have one SQS Listener with default config, I am also getting the message from Queue, but this error keeps popping up:
        Exception in thread "XMLGeneratorTaskExecutor-2" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
                at java.lang.String.substring(String.java:1931)
                at org.springframework.cloud.aws.messaging.core.QueueMessageUtils.getNumberValue(QueueMessageUtils.java:93)
                at org.springframework.cloud.aws.messaging.core.QueueMessageUtils.getMessageAttributesAsMessageHeaders(QueueMessageUtils.java:80)
                at org.springframework.cloud.aws.messaging.core.QueueMessageUtils.createMessage(QueueMessageUtils.java:56)
                at org.springframework.cloud.aws.messaging.listener.SimpleMessageListenerContainer$MessageExecutor.getMessageForExecution(SimpleMessageListenerContainer.java:375)
                at org.springframework.cloud.aws.messaging.listener.SimpleMessageListenerContainer$MessageExecutor.run(SimpleMessageListenerContainer.java:336)
                at org.springframework.cloud.aws.messaging.listener.SimpleMessageListenerContainer$SignalExecutingRunnable.run(SimpleMessageListenerContainer.java:392)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
                at java.lang.Thread.run(Thread.java:748)
    Sanjay Rawat
    Also, is anyone able to get the RDS with PostgreSql working with Spring Cloud AWS?
    I am getting error with that as well, Tomcat JDBC pool keeps looking for Mysql driver, even after I set the driverClassName to org.postgresql.Driver
    Maciej Walkowiak
    Hey everyone! I've been playing recently with Spring Cloud AWS ElastiCache support for Redis. I am wondering why it doesn't use RedisCacheManager but SimpleCacheManager instead? I was expecting that it will works just as normal Redis backed cache, but the behaviour is different.
    I am also using AWS elastic cache and using RediCacheManager to store data..

    I just started playing aroung spring cloud aws. i could see an auto configuration option using
    spring-cloud-aws-autoconfigure dependency.
    so after adding that in my application.properties file, i added,


    Iam trying to upload to my bucket using transfer manager
    and am getting the error that,

    Unable to calculate MD5 hash: preview4.jpg (The system cannot find the file specified)",
    try {
                    Upload uploadObject = transferManager.upload("jagadheestest", "TestFile", uploadFile);
                    UploadResult result = uploadObject.waitForUploadResult();
                } catch (AmazonServiceException e) {
    can anyone send me a simple exaple for a file upload. I just followed spring cloud aws
    Sanjay Rawat
    Thanks for the reply. I'll give that a shot
    And wondering y my code didn't worked. Followed the setup in spring cloud aws doc
    Chandrakanth Reddy
    Hi All
    I need some help
    I want to create a Java program using an AWS lambda S3 event which triggers when a file is uploaded in a bucket
    Can anyone please help me in doing it so?
    Hi everyone,
    We need help in a matter.
    We are looking for a deployment solution for the project we are developing. We are using SpringSoft project as our project and MySQl as database. We are using Redis for session storage. We target 100 users in the first stage. In this context, we recommend which deployment solutions to consider pricing. (We developed the frontend with angular and used the amazon S3 service)
    Amazon BeanStalk
    Amazon EC2
    Digital ocean cloud
    Les Hartzman

    Hi All,
    I've got a Spring Boot app that connects to an RDS Aurora instance through the usual spring.datasource property. But I want to now be able to connect to RDS and have access to a read replica. When I added properties for the DB instance and replica support, I got a strange error:
    .ApplicationContextException: Unable to start web server; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servletEndpointRegistrar' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/ServletEndpointManagementContextConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar]: Factory method 'servletEndpointRegistrar' threw exception;

    Does anyone have an example of how to configure the app to hit the master and read-replica?


    Les Hartzman


    More on the error with the Spring Boot/Aurora problem. I'm also getting an AmazonCloudFormationException saying the user is not authorized to perform: cloudformation:DescribeStackResources, and returns a 403. Not sure where this is coming from either.


    Sanjay Rawat
    I don't know about RDS coz I couldn't get it to work for Postgresql but for Cloudformation error I think you need to disable some properties
    cloud.aws.stack.auto=false should work
    Else you'd have to add IAM Roles for Cloudformation and attach it to the EC2 instance running the app
    Les Hartzman
    i just found that too, Sanjay. thanks. i'm going to go ahead and try it.
    Les Hartzman


    I am trying to use an Aurora MySQL cluster of 1 writer and 1 read replica.

    I set up my properties as follows:


    But when I look at processlist for the writer and read-replica hosts, only the writer has had any activity. Do I need additional configuration set up? This is a Spring Boot app integrated with Spring Cloud for AWS.


    (The db instance name matches the master name)