Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Nagilla Venkatesh
    @nagillavenkatesh
    Hi all,
    Need spring boot and Amazon redshift integration sample code
    can anyone please help me
    Narayanan Raghavan
    @naruraghavan
    We have an issue with ZuulProxy throwing socketexception every 10 mins on PCF/AWS. Anyone seen this error?
    Prashant Srivastav
    @iamprashant
    @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
    @FelipeAdorno
    Hi all, anyone knows how I can reduce costs using SQSListener? pooling increase my billing a lot
    pipe
    @lfpipe_twitter
    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
    @RawSanj
    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
    @RawSanj
    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
    @maciejwalkowiak
    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.
    tandonraghav
    @tandonraghav
    I am also using AWS elastic cache and using RediCacheManager to store data..
    MohanJagadheeswaran
    @MohanJagadheeswaran

    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,

    cloud.aws.credentials.secretKey=xxx
    cloud.aws.credentials.instanceProfile=true
    cloud.aws.region.auto=true
    cloud.aws.region.static=ap-south-1
    server.port=8881

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

    MohanJagadheeswaran
    @MohanJagadheeswaran
    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();
    
                    //uploadObject.waitForCompletion();
                } catch (AmazonServiceException e) {
                    System.err.println(e.getErrorMessage());
                }
    can anyone send me a simple exaple for a file upload. I just followed spring cloud aws
    Sanjay Rawat
    @RawSanj
    MohanJagadheeswaran
    @MohanJagadheeswaran
    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
    @CHANDRAKANTHREDDY93
    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?
    Ghost
    @ghost~5810adcfd73408ce4f30f99f
    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
    @lhartzman_gitlab

    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:
    code
    .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;
    code

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

    Les

    Les Hartzman
    @lhartzman_gitlab

    All,

    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.

    Les

    Sanjay Rawat
    @RawSanj
    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
    @lhartzman_gitlab
    i just found that too, Sanjay. thanks. i'm going to go ahead and try it.
    Les Hartzman
    @lhartzman_gitlab

    All,

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

    I set up my properties as follows:

    cloud.aws.rds.db-write-instance.username=ABCD
    cloud.aws.rds.db-write-instance.password=pass
    cloud.aws.rds.db-write-instance.readReplicaSupport=true
    cloud.aws.rds-db-write-instance.databaseName=mydb

    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.

    Thanks.

    (The db instance name matches the master name)

    Maciej Walkowiak
    @maciejwalkowiak
    @mehmetranas digital ocean most likely can be cheaper than AWS, but AWS does a lot for you so you have to worry about less things. I would recommend to go with Beanstalk. We can chat privately if you need more guidance.
    @FelipeAdorno regarding SQS polling, consider increasing wait time on SimpleMessageListernerContainer. There is an issue related to it spring-cloud/spring-cloud-aws#319
    Sanjay Rawat
    @RawSanj
    Hey @maciejwalkowiak just saw your tweet about PR on spring-cloud-aws, if you've time then please look into the RDS Support.
    It wasn't working for any other database other than Mysql
    So I ignored the RDS support and used the url, password directly in th app
    Maciej Walkowiak
    @maciejwalkowiak
    Hi @RawSanj! First I want to tackle SQS and messaging in general and then look at RDS and caching support. But I am just a regular contributor, I have no rights to actually push anything to master branch.
    Have you considered digging into the issue and submiting PR with fix?
    Sanjay Rawat
    @RawSanj
    I wanted to but got super busy with the project work in office.
    Maciej Walkowiak
    @maciejwalkowiak
    Sure, understood. I used RDS just using classic Spring Boot + Spring Data integration. But no transparent replica support then.
    Sanjay Rawat
    @RawSanj
    Oh ok. I ended up doing the same and it is working fine for now.
    Maciej Walkowiak
    @maciejwalkowiak
    Can you file an issue on Github regarding running with other databases? (if it’s not there yet). Including your setup and exception you’re getting. Would be helpful for investigation.
    Sanjay Rawat
    @RawSanj
    I think there's already one but if not I'll create it as soon as I get time
    Ghost
    @ghost~5810adcfd73408ce4f30f99f
    @maciejwalkowiak thanks for answer
    ashish gupta k
    @ashishguptak
    hello, Spring cloud Sleuth and Zipkin packages do not support SQS Senders, only RabbitMq and Kafka streams. I am planning to add https://github.com/openzipkin/zipkin-aws/tree/master/sender-sqs to spring-cloud-sleuth-zipkin-1.3.3.RELEASE.jar and include in my gradle package. Do you recommend this approach? Or is there a library which already does it?
    Quantum Fusion
    @quantum-fusion
    Are there any tech recruiters in here?
    Quantum Fusion
    @quantum-fusion
    Is anyone using Athena on AWS for serverless database with AWS Lambda serverless?
    Gaurav Rawat
    @gauravbrills
    Hi have there been any changes to the sqs functionality from Finchley.M9 to Finchley.RELEASE . AS post upgrade we have started getting connection timeout errors while polling SQS . Are the changes somehow overriding our default AWS clientconfigurations ?
    Jorge Luiz Reis Tavares
    @jorgetavares89
    Hi folks, I had a problem with spring cloud aws auto configuration, the project was not recognize the aws region (setted on application.yml) and throw a "com.amazonaws.SdkClientException:Unable to find a region via the region provider chain. Must provide an explicit region in the builder or setup environment to supply a region." when I try to configure a AWSSimpleSystemsManagement client, some one can help me? I have an example in my github for exemplify my problem, follow https://github.com/omundodebob/springcloud-aws-config-poc. Note: The accessKey and secretKey is a fake, just to test this problem :).
    rajat katyal
    @rajatkatyal1986_twitter
    @here I want to use Spring cloud config with AWS EC2(Application). Could somebody recommend whether it will be wise to use that or maintaining the configurations in the applications is better?
    Currently we have the configurations in the DB and want to migrate this to the cloud config.