FAQ Database Discussion Community


Cannot marshall type class without a custom marshaler or @DynamoDBDocument annotation

java,spring-mvc,amazon-web-services,amazon-dynamodb,spring-restcontroller
Error: com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMappingException: Cannot marshall type class [Ljava.lang.String; without a custom marshaler or @DynamoDBDocument annotation. I want to store data to DynamoDB from java Spring MVC REST. I am making the post request which calls a method to load all the data to Amazon DynamoDB. Here is my code. RestController: @RestController...

ajax GET request times out for URL when browser and CURL work

jquery,ajax,amazon-web-services
I see one similar question but it does not have an accepted response. The following ajax request times out. But GET request on the same URL using browser or curl work fine. Note this is a cross domain AJAX since the code sits on a different server and URL is...

How can I retrieve all the values from a particular column in amazon DynamoDB?

java,spring-mvc,amazon-web-services,amazon-dynamodb
For example, if my Question table has columns question_id, options,timestamp, I must retrieve all the values of only 'question_id'. Is it possible?...

How do I Start/Stop AWS RDS Instances using Boto?

python,amazon-web-services,boto,amazon-rds,rds
I had a question about Amazon RDS. I wanted to Start/Stop AWS RDS Instances at my need . AWS Console does not allow me to do so. The Only method I know is to take a snapshot of the rds instance and delete it and when I need it then...

Error with not existing instance profile while trying to get a django project running on AWS Beanstalk

django,python-2.7,amazon-web-services,beanstalk
I`m trying to deploy a django project to AWS Beanstalk following this tutorial. I executed eb create and after a while I get the error The instance profile aws-elasticbeanstalk-ec2-role associated with the environment does not exist. I`m new to the Amazon cloud and can not interprete this error. Can somebody...

Error when using AWS-SDK-GO (NoCredentialProviders: no valid providers in chain)

amazon-web-services,go
I've recently started using the aws-sdk-go package. Walking through the instructions, my folder structure is as follows: bin/ , pkg/ (as always) src/ app/main.go (code taken from the docs) github.com/aws Now when I run go install, and then execute the app.exe (using windows here), I'm getting the following error: panic:...

What's the difference between BatchGetItem and Query in DynamoDB?

amazon-web-services,amazon-dynamodb,aws-sdk
I've been going through AWS DynamoDB docs and, for the life of me, cannot figure out what's the core difference between batchGetItem() and Query(). Both retrieve items based on primary keys from tables and indexes. The only difference is in the size of the items retrieved but that doesn't seem...

Cloudfront stream only part of the video

video,amazon-web-services,video-streaming,amazon-cloudfront,rtmp
I'm using AWS Cloudfront RTMP protocol to stream my videos on website. In some cases I need to present preview of video to my users. For example: I display only 60 seconds of 2 hour video and if user likes and buys it, then I give full video. I know...

How to configure aws CLI to s3 cp with anonymous user

amazon-web-services,amazon-s3,aws-sdk
I need to download files recursively from a s3 bucket. The s3 bucket lets anonymous access. How to list files and download them without providing AWS Access Key using an anonymous user? My command is: aws s3 cp s3:[email protected]/pavlo/text/tiny/rankings/uservisits uservisit --region us-east --recursive The aws compains that: Unable to locate...

Xcode + AWS Integration Apple Mach-O Linker Error

ios,xcode,amazon-web-services
I have a very simple Xcode project that I started and am now trying to integrate the Amazon Web Service (AWS) SDK into my project. I followed the instructions posted on their instruction page and everything looks good EXCEPT that I've got the following output... duplicate symbol _OBJC_CLASS_$_XMLDictionaryParser in: /Volumes/Macintosh...

set the OpenSSL_HOME variable

amazon-web-services,https,path,openssl,command-prompt
I am trying to configuring HTTPS based on this tutorial: Configuring HTTPS for your Elastic Beanstalk Environment I am stuck at the following section: To set the OpenSSL_HOME variable Enter the path to the OpenSSL installation: c:\ set OpenSSL_HOME=path_to_your_OpenSSL_installation My openSSL is installed in c:\OpenSSL, so would I write set...

Running Java Program on AWS (Amazon Web Services)

java,eclipse,amazon-web-services
I have a Java program which does not use any AWS services and solely communicates with a DBaaS outside of AWS, in my case IBM's Cloudant DBaaS. To host this java program on an AWS EC2 instance would I still be required to use the AWS SDK for Java or...

AWS Beanstalk autoscale user files

amazon-web-services,autoscaling,beanstalk
I have setup AWS Beanstalk instance where a server app is deployed. In the backend users can change files in images/ directory. But when autoscaling the instances, the user files are not mirrored. How to solve this requirement? Can I setup AWS Ec2 to create new AMI each night based...

Microservices and cloud resource limitations

amazon-web-services,amazon-ec2,spring-cloud,microservices,amazon-elastic-beanstalk
I am at the beginning of a large migration from a single monolithic web service to a collection of microservices using Spring Cloud/Spring Cloud Netflix. Through my research of microservices I understand that the lines of demarcation between services should mirror the separations of concerns between them. An additional factor...

Amazon EC2 Storage lacks

amazon-web-services,amazon-ec2
I have launched Amazon EC2 instance of "m3.large" type. According to this page, m3.large should have 2vCPUs, 7.5GiB Memory and 1x32GB SSD Storage. But df -ah returns following results. It seems that the instance lacks the volume. Filesystem Size Used Avail Use% Mounted on /dev/xvda1 7.9G 797M 6.7G 11% /...

Python Amazon Product Api not able to get image

python,amazon-web-services,amazon-product-api
I'm using python amazon product api and I can't seem to get the url for the image of the product. Here is my code so far for book in amz_api.item_search('Books', Keywords='cookies', ResponseGroup='Large', limit=10): print book.ItemAttributes.Large But I get this reply AttributeError: no such child: {http://webservices.amazon.com/AWSECommerceService/2011-08-01}Large Any help would be apprecicated...

How can I access Mule ESB Community edition via browser?

amazon-web-services,amazon-ec2,mule,mule-component
I am trying to access it via browser, I had no issue with EE but CE is proving difficult. On Putty I have it saying: Mule is already running. And when I go to http://ec2----.us-west-2.compute.amazonaws.com:8585/ it won't load properly. I do have the port 8585 open for inbound traffic as...

Which is a better way: retrieve images from AWS S3 or download it and store locally in a temp folder to be displayed?

objective-c,core-data,amazon-web-services,amazon-s3,awss3transfermanager
Problem: Retrieve image from S3 and load into UIButton. I'm currently doing my research on this issue and can't seem to make up my mind. Which is a better way to do it in terms of performance and security issue? Also, do I need to do caching or store these...

Understanding server architecture: Delivering content from AWS S3 using Nginx reverse-proxy or Apache server

apache,amazon-web-services,nginx,amazon-s3
The purpose of this question is to understand the strategy while designing server side architecture. Use case: I want to build a http server for an app which allow users to upload and download multimedia content (images, videos etc.) Large number of concurrent users (say, around 50k) are expected to...

Amazon Machine Learning for sentiment analysis

amazon-web-services,machine-learning,nlp,sentiment-analysis
How flexible or supportive is the Amazon Machine Learning platform for sentiment analysis and text analytics?

Except homepage, the requested URL was not found on this server (AWS EC2 wordpress)

wordpress,amazon-web-services,amazon-ec2,apache2
I host two wordpress on AWS EC2 (say site1 and site2). The site1 works perfectly, but the site2 can only access the homepage, for other pages, encountering the following error: Not Found The requested URL /just-for-test/ was not found on this server. Apache/2.4.7 (Ubuntu) Server at site2.com Port 80 Both...

Best Way to Limit Groups of HITs to One Worker Per Any HIT Included in the Group?

amazon-web-services,mechanicalturk
I would like to limit a group of MTURK HITs such that if a worker has taken any previous HIT included in the group, he or she cannot take any future hits included in the group. I have seen two distinct methods of doing this described here on StackOverflow. Use...

cloudsearch query to boost exact match on range

amazon-web-services,amazon-cloudsearch
In a cloudsearch structured query. I have a couple of fields I am searching on. On field one, the user selects "2" On field two the user selects "1" I am wanting to run this as a range query, so that the results that are returned are -1 to +1...

HTML5 Push Notifications - examples of other ways to push

html5,amazon-web-services,azure-mobile-services,service-worker
At Google IO 2015, there was a lot of talk of the push notifications for Chrome with HTML5 and service workers. It's early days, and examples are thin on the ground. I'm looking for server side examples of how to implement the push from platforms other than Google Cloud Messaging...

Get files from amazon s3 buckets sub folder .Net

.net,amazon-web-services,amazon-s3
I am downloading some files from amazon s3 like this private static readonly IAmazonS3 _amazonS3Client = AWSClientFactory.CreateAmazonS3Client( AccessKey, SecretKey, Config ); var request = new ListObjectsRequest {BucketName = BucketName}; ListObjectsResponse response = _amazonS3Client.ListObjects(request); foreach (S3Object o in response.S3Objects) { var objRequest = new GetObjectRequest { BucketName = BucketName, Key =...

“undefined method 'value'” when looping

ruby-on-rails,ruby,amazon-web-services
I am trying to loop through a list of tags returned from AWS API, but I'm getting "undefined method 'value'. I can provide further information if needed. This is my simple loop: @instances.each do |i| t = 0 while i.tags.any? do puts i.tags[t].value t += 1 end end ...

Deleting Data from DynamoDb Table automatically

amazon-web-services,amazon-dynamodb
Is there any kind of life retention period concept in DynamoDB. I mean is there any way such that data inside a table will be deleted after some time like we can set some retention period in S3. Thanks,...

Lifecycle policy on S3 bucket

amazon-web-services,amazon-s3
I have an S3 bucket on which I've configured a Lifecycle policy which says to archive all objects in the bucket after 1 day(s) (since I want to keep the files in there temporarily but if there are no issues then it is fine to archive them and not have...

Configure Dockerfile to set AWS configurations

node.js,amazon-web-services,docker
I've just started looking at Docker. I have a node app that resizes and image and then sends an SQS message to aws when finished. I have managed to create a docker image of my app, copying it from my local machine, but run into the issue that I can't...

Querying DynamoDB table by hash and range key

ruby,amazon-web-services,amazon-dynamodb
I want to query DynamoDB table by hash and range key, using AWS SDK for Ruby V2. Following code can work. dynamodb = Aws::DynamoDB::Client.new(region: 'somewhere') dynamodb.query( table_name: TABLE_NAME, key_conditions: { HASH_KEY_NAME => { attribute_value_list: ['hoge'], comparison_operator: 'EQ' }, RANGE_KEY_NAME => { attribute_value_list: ['foo'], comparison_operator: 'EQ' } } ) But, I...

Is it impossible to use AWS CloudFront for downloading my private image on S3?

ios,amazon-web-services,amazon-s3,amazon-cloudfront,aws-sdk
I'm making a global iOS App with AWS SDK. And there is a function for users to get image files; only if the requester is a friend of the image files' uploader. For this function, I use AWS S3 for storage service with private access. And I want to use...

Missing Perl dependencies not actually missing

perl,amazon-web-services,amazon-ec2,otrs
I'm trying to install OTRS Help Desk on an EC2 instance of Amazon Web Services. I'm following the installation instructions here. But when I try to install otrs, I get the following errors: Error: Package: otrs-4.0.8-02.noarch (/otrs-4.0.8-02.noarch) Requires: perl(Archive::Zip) Error: Package: otrs-4.0.8-02.noarch (/otrs-4.0.8-02.noarch) Requires: perl(Template) You could try using --skip-broken...

AWS RDS on Eclipse

eclipse,amazon-web-services,amazon-ec2,amazon-rds
I know this question seems a repeat, but it's not and I have tried all the solutions I could find PROBLEM: I am running an AWS RDS instance for the database. It works fine when I connect to it using AWS EC2 instance(uses linux) but when I try it with...

AWS Kinesis - data source on a third party server

amazon-web-services,amazon-kinesis
New to AWS Kinesis. We're trying to evaluate whether it makes sense or even possible to place events captured in a log file which is located on a third party server into AWS Kinesis stream, given that we only have a VPN access to this server where the log file...

Keep config file secure using github and Elastic Beanstalk?

amazon-web-services,github,passwords,config,elastic-beanstalk
I am using github (public) to keep track of my web app and about to deploy it to Elastic Beanstalk. Is there a good way to keep my config file secure which has RDS username/password? I have to add the file to git in order to push it to Elastic...

eb cli 3.0 is not putting my settings from my existing environment after connecting it

php,git,amazon-web-services,amazon,elastic-beanstalk
I created a customized Elastic Beanstalk environment from the web interface with configuration for VPC and other things. I now have a local repo that I want to connect to this created environment. I ran eb init and was able to spot my environment and selected it. I then ran...

How do I SSH into EC2 with .pub?

amazon-web-services,ssh,amazon-ec2
When I create a new Elastic Beanstalk environment it asked me if wanted to create a new keypair. I say yes, and it created two file in my .ssh folder locally called app and app.pub. Normally to ssh into an instance I use a app.pem file. i.e ssh -i app.pem...

Polling Continuously from a SQS queue on AWS

java,amazon-web-services,amazon-sqs
I have a java class that connects to an SQS queue and I would like it to respond to messages that are sent to the SQS queue. Is that possible without running the java class continuously, sending receiveMessageRequests?

Getting Blank messages in my app from AWS SNS.

android,ruby-on-rails,ruby,amazon-web-services
I want to send push notification to individual using android GCM. have created the app in SNS. I am using aws-sdk v1.4 for Ruby. When I send through Amazon web interface I receive the messages, but When I publish it through using the code below, I get blank messages. what...

Paperclip image does not visible when save in aws-sdk

ruby-on-rails,amazon-web-services,paperclip
Hi I have included this in my gemfile gem 'paperclip', '~> 4.2' gem 'aws-sdk', '< 2.0' and having these models with association: class Department < ActiveRecord::Base has_one :attachment, as: :attachable accepts_nested_attributes_for :attachment end another model is : class Attachment < ActiveRecord::Base belongs_to :attachable, polymorphic: true has_attached_file :attach, :storage => :s3,...

Assign role to instance in .ebextensions

amazon-web-services,elastic-beanstalk,iam
tl;dr Instance gets assumed-role instead of what I set in configuration. I deploy a java application in docker into elastic-beanstalk; I actually set a specific role with my custom policies in .ebextensions/instance.config: - namespace: aws:autoscaling:launchconfiguration option_name: IamInstanceProfile value: custom-profile When I deploy with eb init && eb create --tier worker...

Use case HBase on EMR

hadoop,amazon-web-services,hbase,storage,emr
I read the documentation on AWS, but a point is still unclear. Is S3 the primary storage of EMR cluster? or does the data are in EC2 and S3 is just a copy? In the doc : "HBase on Amazon EMR provides the ability to back up your HBase data...

Enabling SSL on an AWS EC2 instance

apache,ssl,amazon-web-services,amazon-ec2
On an EC2 instance that services multiple domains via Virtual Hosts, I have set up a Load Balancer that forwards HTTPS traffic from port :443 to :8443 for one of the domains, in part following this example: http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/ My working httpd.conf Virtual Hosts look like this: NameVirtualHost *:80 <VirtualHost *:80>...

AWS EC2 Container Service / Elastic Beanstalk Docker Container Port udp binding

amazon-web-services,amazon-ec2,docker,elastic-beanstalk,ec2-container-service
According to the documentation of ECS task definitions, this is how we define port mappings. "portMappings": [ { "containerPort": integer, "hostPort": integer } ... ] By default this is binding port over tcp. How to achieve udp port bindings to docker containers running in AWS Elastic Beanstalk (Multi-container) or with...

Difference between AmazonDynamoDBClient and DynamoDB classes in their java SDK?

java,amazon-web-services,amazon-dynamodb
I am using Amazon's DynamoDB java SDK and want to know the difference between the AmazonDynamoDBClient and DynamoDB classes. I can't seem to find anything on them since there appears to be very little documentation. Is there any reason I should use one or the other? Are their any major...

s3cmd not working as cron-task when echos/dates are added

amazon-web-services,amazon-s3,cron,cron-task,s3cmd
I have a Digital Ocean Droplet (VPS) running Ubuntu 14.04. I have installed s3cmd and am able to run a sync successfully with this command: s3cmd sync --recursive --preserve /srv s3://MY-BUCKET-NAME And if I put that same command in to a .sh to run as a cron-task every minute, it...

No space left on device [closed]

ruby-on-rails,apache,ubuntu,amazon-web-services,storage
I can no longer generate new columns in my database. My stack is below. I am new to managing my own server and am unfamiliar with Apache, Ubuntu and AWS. Currently I am receiving an error saying that I have no space left. It looks like my folder /dev/xvda1 is...

Amazon DynamoDB Mapper - limits to batch operations

amazon-web-services,amazon-dynamodb
I am trying to write a huge number of records into a dynamoDB and I would like to know what is the correct way of doing that. Currently, I am using the DynamoDBMapper to do the job in a one batchWrite operation but after reading the documentation, I am not...

how to use AWS cognito with custom authentication to create temporary s3 upload security token

amazon-web-services,amazon-cognito
So I'm a bit confused by the Amazon documentation on Cognito concerning one of their stated use cases: "use your own identity system... allowing your apps to save data to the AWS cloud". In my case I want to give them aws tokens to upload directly to s3 from the...

Fetch and Store ISBN Information from Amazon

php,amazon-web-services
I'm looking to allow users to submit an ISBN number and have a script search a Amazon web service and return the book name, author, description, and cover. Would anyone know what service or API would let me accomplish this, and if possible what script would I use to fetch...

Loop through list of AWS-instances shows only first item

ruby-on-rails,amazon-web-services,amazon-ec2,each,aws-sdk
I am working on a simple customer frontend for AWS. I want a list of all the users machines for start/stopping the EC2s. While the logic works I can only show the first of the machines in my view. I guess it's related to the AWS APIs pageable response format,...

Installing Python 3 Docker Ubuntu error command 'x86_64-linux-gnu-gcc

python,python-3.x,amazon-web-services,docker
I'm trying to create a dockerfile that uses Python 3. FROM ubuntu:14.04 RUN apt-get update RUN apt-get install -y python3 python3-dev python-pip RUN apt-get install -y libxml2-dev libxslt1-dev libpq-dev libjpeg-dev libfreetype6-dev zlib1g-dev RUN cd /var/projects/apps && pip install -r requirements.txt I get the error fatal error: Python.h: No such file...

Eclipse not compiling because of ClassNotFoundException

java,eclipse,amazon-web-services,compilation,aspectj
After following an AWS tutorial for Eclipse, my code no longer compiles and runs. I decided to undo what the tutorial told me, so I may have changed some settings that I forgot to unchanged but I really cannot find the root of my problem. Eclipse seems to be back...

How do I use a v2 authentication header with Amazon PHP SDK v3?

php,amazon-web-services,amazon-s3
Here's my code: $client = new S3Client([ 'credentials' => [ 'key' => 'xxx', 'secret' => 'xxx', ], 'version' => 'latest', 'region' => 'US', 'endpoint' => 'https://storage.googleapis.com', 'signature_version' => 'v2', ]); And I get this error: UnresolvedSignatureException in SignatureProvider.php line 61: Unable to resolve a signature for v2/s3/US. Valid signature versions...

How can I know the database url of AWS EC2 MySQL?

mysql,amazon-web-services,amazon-ec2
I would like to import gtfs files into mysql by using a tool from github, runing the follwoing command: gtfsdb-load --database_url <db url> <gtfs file | url> How can I get the database_url of mysql located in AWS EC2?...

View EC2 Instance Server Files in AWS Console

amazon-web-services,ssh,amazon-ec2
Is it possible to browse server files (.php, etc.) inside the AWS Console (in the browser) and not via a SSH or FTP client? For example; view files just like in CPanel on a regular web host. I am working on a EC2 instance of a Debian OS that was...

How to set a variable using dynamic inventory using Ansible

amazon-web-services,amazon-ec2,ansible,ansible-playbook,rds
I am looking for method to set a variable in ansible playbook using inventory information received from dynamic inventory. For example if we have a sample playbook like --- - hosts: localhost connection: local tasks: - set_fact: rds_hostname="{{ rds_mysql }}" #set rds endpoint from ec2.py - debug: var=rds_hostname I am...

How to use cloudformation to create an ecs cluster?

amazon-web-services,amazon-cloudformation,ec2-container-service
I would like to use a cloudformation template to create my ecs cluster instead of spinning it up by hand, but I have yet to find a way. Is this simply not implemented yet, where you can create an ecs cluster as a resource in your cloudformation template, seems a...

PHP: Secure a Rest Service with a Token mixed with Timestamp

php,rest,security,amazon-web-services,token
I have a rest service that my website calls it and I want to secure it from calling outside of my website as much as possible. I want to create a token mixed with timestamp, so the user can only call the service in 10 minutes (for example) with the...

Amazon DynamoDB table w/ Elastic Beanstalk not setting up correct parameters

java,amazon-web-services,amazon-ec2,amazon-dynamodb
I have an example Dynamodb project from Amazon that when uploaded to an instance of Elastic Beanstalk environment, generates a Dynamodb table. Howevever, after generating the table is missing a few parameters. Here is the code to the Elastic Beanstalk instance: /* * Copyright 2010-2013 Amazon.com, Inc. or its affiliates....

Xampp Config Files AWS

amazon-web-services,xampp,bitnami
I've setup my Bitnami AMI on AWS. I now want to know if there is a way I can change my Xammp config files to access apache and MySQL on the AWS server. Please help....

AWS CLI for EBS snapshots

amazon-web-services,amazon-ec2,aws-cli
I am trying to get AWS CLI going to backup my EC2 instances. I can't see why AWS don't make it easy to schedule this via the console but they don't so I am pushing ahead with CLI. I installed on one of my instances. Problem 1, it won't work...

Multithreading in Ruby in EC2 causing weird behavior

ruby-on-rails,ruby,multithreading,amazon-web-services,amazon-ec2
I have the following code that I run in a rake task in rails: 10.times do |i| Thread.new do puts "#{i}" end end When I run this locally, I get the following: 0 3 5 1 7 8 2 4 9 6 (with new lines) However, when I run the...

Is AmazonSimpleNotificationServiceClient thread-safe?

.net,amazon-web-services,aws-sdk
I'm developing a class library in .NET that uses Amazon AWS SDK to queue notifications with Amazon SNS, as well as to create new mobile push endpoints. You do this by making requests with a client object that you create like this: var client = new AmazonSimpleNotificationServiceClient(...); The ... is...

Gradle Compilation Errors when adding 'com.amazonaws:aws-java-sdk:1.10.1'

java,amazon-web-services,android-studio,build.gradle
I am running Android Studio and my app has been running perfect until I do the following. When I add "compile 'com.amazonaws:aws-java-sdk:1.10.1'" to my gradle file, I get the following warnings when I do a project re-build. Warning:Dependency commons-logging:commons-logging:1.1.3 is ignored for debug as it may be conflicting with the...

Call to S3Client::setRegion() fails

php,amazon-web-services,amazon-s3,aws-php-sdk
I'm using "aws/aws-sdk-php": "3.0.3" via composer to access some S3 buckets in different regions, but I can't seem to get S3Client to change regions using the setRegion() function without it generating the error: PHP Catchable fatal error: Argument 2 passed to Aws\AwsClient::getCommand() must be of the type array, string given,...

AWS S3 object listing

javascript,node.js,amazon-web-services,amazon-s3
I am using aws-sdk using node.js. I want to list images in specified folder e.g. I want to list all files and folder in this location but not folder (images) content. There is list Object function in aws-sdk but it is listing all the nested files also. Here is the...

How to find Unused Security Groups of all AWS Security Groups?

python-2.7,amazon-web-services,amazon-ec2,amazon-s3,boto
How to find all the used security groups attached with all the aws resources using Boto? Currently the following script which is giving only ec2 instances- sec_grps = ec2_conn.get_all_security_groups() for group in sec_grps: print group, " Instances attached ", group.instances() Is there any way to get all security groups which...

Creating a lambda function in AWS from zip file

javascript,node.js,amazon-web-services,aws-lambda
I am trying to create a simple lambda function, and I'm running into an error. My code is basically console.log('Loading function'); exports.handler = function(event, context) { console.log('value1 =', event.key1); console.log('value2 =', event.key2); console.log('value3 =', event.key3); context.succeed(event.key1); // Echo back the first key value // context.fail('Something went wrong'); } in a...

How to get Cloudfront subdomain from the request on the custom origin?

amazon-web-services,amazon,amazon-cloudfront
How does one get the AWS Cloudfront subdomain from the request on the custom origin that I've created. The only header that comes close is the Via header but it doesn't contain any useful information It looks like: Via: 1.1 1026589cc7887e7a0dc7827b4example.cloudfront.net (CloudFront) Note that 1026589cc7887e7a0dc7827b4example is not the original subdomain...

I forgot my AmazonAWS secret key, but I have a couple HMAC signed requests. How can I

php,amazon-web-services,hmac,hmacsha1
The signing function is as follows, $sig = base64_encode(hash_hmac('sha256', "{$method}\n{$server}\n{$uri}\n{$query_string}", MY_PRIVATE_KEY, true)); $signature = str_replace("%7E", "~", rawurlencode($sig)); How can I deduce MY_PRIVATE_KEY, when I have all these parts {$method}\n{$server}\n{$uri}\n{$query_string} and $signature, if possible at all?...

Using Java web service on Amazon cloud

java,web-services,amazon-web-services,amazon-ec2
I want to make a web service in java which will take arguments and do processing and return a json response. I am not been able to figure out how to deploy this service on amazon ie (on ec2 or some where else) . what will be the url to...

How to route traffic by proximity from Route 53 to closest NGINX server?

amazon-web-services,amazon-ec2,amazon-s3,cloudflare
I'm trying to set up a web server stack in the following way: Use Route 53 for my DNS Serve static content with Cloudflare from S3 buckets Route API calls to nearest NGINX server that sits in front of some Nodejs servers. So all static content is done easily enough...

Spring AWS SQS Reconnect After Losing Connection

spring,amazon-web-services,amazon-sqs,spring-cloud
I am using Spring Cloud AWS (1.0.1.RELEASE) with Spring Boot to run a SQS consumer. The application runs fine, but when it looses network connection (for instance if I switch my WIFI off on my laptop when it runs on it), I see errors on the console and the application...

Getting cross client id token for AWS from Google Sign-In SDK

ios,amazon-web-services,amazon-cognito,google-signin
I'm trying to integrate Google with Amazon Cognito in an iOS application using the Google Sign-In SDK but I can't seem to figure out how to obtain the JWT id token correctly. Everything is set up correctly, I believe, as both Google Sign-In and Cognito work independently. I am setting...

Integrate elastic load balancer with autoscaling

amazon-web-services
Im studying about elastic load balancer and autoscaling and I have a doubt. For example, I create a autoscaling group, this autoscaling group will just start if I create a cloud watch alarm with some conditions right? Its not supossed to create an autoscaling group and start an instance and...

AWS Beanstalk - Passenger Standalone not serving web pages after Rails 4.2.1 migration

ruby-on-rails,ruby-on-rails-4,amazon-web-services,passenger,elastic-beanstalk
My Rails 3.2.21 app was running fine on AWS Beanstalk under Passenger Standalone 4.0.53. I migrated the app to Rails 4.2.1 and got it passing all tests on my local development machine (Ubuntu, WEBrick). I deployed it to Beanstalk (aws.push), the deploy succeeds (copied from /ondeck to /current) and: nothing....

DynamoDB Conditional Check Fail Monitoring

c#,asp.net,amazon-web-services,session-state,amazon-dynamodb
I have used dynamodb-session to set DynamoDB for Asp.net Session state provider. In my ASP.NET_SessionState table in DynamoDb There is "Conditional CheckFailed " monitoring. My question is: In what condition these exceptions happen and how can I reduce them?...

Why is this python boto S3 multipart upload code not working?

python,amazon-web-services,amazon-s3,multiprocessing,boto
I am trying to upload a 10 GB file to AWS S3, and someone said to use S3 Multipart Upload, so I stumbled upon someone's github gist: import os import sys import glob import subprocess import contextlib import functools import multiprocessing from multiprocessing.pool import IMapIterator from optparse import OptionParser from...

WebSocket connection failed: WebSocket opening handshake was canceled

javascript,amazon-web-services,amazon-ec2,websocket
I have recently setup an EC2 instance (in a VPC with no load balancer) and admittedly the configuration is a bit odd, but it is what is required for the web application we're running. The web server (in Haskell) is running on port 4433 (standard ports are reserved for an...

Unable to access files from public s3 bucket with boto

python,amazon-web-services,amazon-s3,boto
I recently created a new AWS account (let's call it "Account A") and created an S3 bucket in this account (let's call it "bucketa"), uploading a file foo.txt. Following advice from the internet, I set up what I believe to be the most permissive bucket policy possible (it should allow...

“client not initialized” error when using SSMCache with AWS elasticache autodiscovery

caching,amazon-web-services,amazon-elasticache,spring-cache
I am using Spring cache with AWS elasticache provider. I get this warning: WARN c.g.code.ssm.spring.SSMCache - An error has occurred for cache defaultCache and key java.lang.IllegalStateException: Client is not initialized at net.spy.memcached.MemcachedClient.checkState(MemcachedClient.java:1623) ~[elasticache-java-cluster-client.jar:na] at net.spy.memcached.MemcachedClient.enqueueOperation(MemcachedClient.java:1617) ~[elasticache-java-cluster-client.jar:na] at net.spy.memcached.MemcachedClient.asyncGet(MemcachedClient.java:1013)...

How can I use Amazon Web Services policy statement in my Java application?

java,amazon-web-services,amazon-sqs,amazon-sns,spring-cloud
I want to send Amazon SNS Messages to Amazon SQS Queues from the backend Java application. According to SNS Developer Guide (http://docs.aws.amazon.com/sns/latest/dg/sns-dg.pdf), in the section "Sending Amazon SNS Messages to Amazon SQS Queues", under the topic - "Step 2. Give permission to the Amazon SNS topic to send messages to...

AWS EC2: Migrating from Windows to Linux Server

linux,windows,amazon-web-services,amazon-ec2,server
I am currently using Amazon Web Services EC2 Windows 2012 instance for my application. I want to migrate over to an EC2 Linux server. What's the best way do this? I have been unable to find sufficient resources on this topic. We are currently using Hibernate and Spring frameworks with...

heroku pgbackups:url command is no longer working?

ruby-on-rails,postgresql,ruby-on-rails-4,amazon-web-services,heroku
How do I download my dump directly from Amazon AWS S3 if heroku pgbackups:url b004 isn't working? Specifically, when I run this command it returns: ! Please add the pgbackups addon first via: ! heroku addons:add pgbackups And then when I run this command I get: ! No such add-on...

Is it possible to enable CloudWatch on a running EC2 instance?

amazon-web-services,amazon-ec2,amazon-cloudwatch,amazon-iam
It looks like Amazon has a ready-built IAM role to grant instances CloudWatch write access. ( A more restrictive one could also be created if necessary) But it appears you cannot attach an IAM role to a running instance. Am I missing something? Do I really have to re-instantiate my...

AWS Elastic beanstalk scale triggering

amazon-web-services,elastic-beanstalk
I set the following parameters in my elastic beanstalk environment: Do you think this settings are reasonable? I didn't understand the breach duration parameter. What does it means? is 5 minutes is reasonable? Thanks...

Check Domain Availability using Boto Route53

python,amazon-web-services,boto,amazon-route53
I love using Boto API for Amazon Web Services but now I'm not capable of finding where is the error. I'm using AWS for check domain availability and I have created a script in Python that includes the class at this link: https://www.codatlas.com/github.com/boto/boto/develop/boto/route53/domains/layer1.py?line=67 I call the method check_domain_availability() on passing...

how to uninstall tomcat from AWS linux?

linux,tomcat,amazon-web-services
What is the equivalent of sudo yum install tomcat7 tomcat7-webapps but for uninstalling tomcat7? Is there a straight forward method and that leaves no trace behind?

Use Reserved instance and autoscaling group

amazon-web-services,autoscaling
I would like to know if it would possible to create an architecture with both reserved instance (RI) and auto-scaling group to serve web pages. The idea would be to have one RI serving 24/7 and launching on demand instances in an auto-scaling group when the CPU of the RI...

Elastic Beanstalk Prevent Files Overwriting

wordpress,git,caching,amazon-web-services
So a little background i am trying to setup a local staging and production environment using Elastic Beanstalk and Wordpress. So i have a local environment setup with git and i have the following in the .gitignore. ################# ## WordPress ################# .git-rewrite/ local-config.php .elasticbeanstalk/ Linux/ I have the ELB CLI...

Naked Root Domain Hosting

redirect,amazon-web-services,amazon-s3,amazon-route53
The usual approach calls for pointing mysite.com to www.mysite.com. But suppose that I would like not to redirect. In other words, I would like to set up a naked root domain, without setting up any sub-domains, not even www.mysite.com. I am using Route53 and S3. Presumably I would need just...

Should I instantiate an object every request or once upon app launch?

ruby,amazon-web-services,amazon-s3,rack,aws-sdk
In my Rack app, I need to use an AWS Cognito Client for signup & login requests. Should I initialize: a separate client (assigned to a local variable inside the call method) for each request? one client (assigned to a global variable outside the call method) for all requests? Concerns:...

An illustration of AWS hosted zones and buckets

redirect,amazon-web-services,amazon-s3,amazon-route53
After more than a few experiments with hosted zones and buckets, it seems I'm getting failures due to unexpired caches even though I may well have set up everything correctly. Before proceeding, I'd like to summarize using two sketches the lengthy (and frankly, tedious) AWS documentation, and ask whether these...

Secure file upload directly to s3 or server to s3 (from iOS app) [closed]

ios,node.js,amazon-web-services,express,amazon-s3
I need to upload sensitive images to s3 from an iOS app. I'm wondering which option is better: Upload to my server first, then upload to s3. Upload to s3 directly, then upload metadata to my server. ...

How to change the IP address of Amazon EC2 instance using boto library

python,amazon-web-services,boto
How can I assign a new IP address (or Elastic IP) to an already existing AWS EC2 instance using boto library.

How do I get an ip address from a domain name in Java?

java,networking,amazon-web-services,dns
How do I get an ip address corresponding to a domain name in Java? Like if I have "domainName.com", how do I get "10.123.97.4"?

Funnel query with Amazon Redshift / PostgreSQL

sql,postgresql,amazon-web-services,analytics,amazon-redshift
I'm trying to analyze a funnel using event data in Redshift and have difficulties finding an efficient query to extract that data. For example, in Redshift I have: timestamp action user id --------- ------ ------- 2015-05-05 12:00 homepage 1 2015-05-05 12:01 product page 1 2015-05-05 12:02 homepage 2 2015-05-05 12:03...

Relation between ec2 and rds

amazon-web-services
I'm studying RDS, and I have a question. I'm reading in some places that rds relies on the ec2 infrastructure. But I don't understand why, what is the relation with rds and ec2? I know that after we create an rds instance we can connect to rds instance from a...

CloudSearch fuzzy matching of whole string doesn't work

amazon-web-services,amazon-cloudsearch
I have set up an Amazon CloudSearch domain with records that hold addresses. I want to do a fuzzy text search on an address field. Say I have a record with the following address: 1600 Amphitheatre Parkway, Mountain View, CA 94043. If I search for 'Amphitheatre Parkway, Muntain View'~5 I...