Menu
  • HOME
  • TAGS

AWS Elastic beanstalk scale triggering

amazon-web-services,elastic-beanstalk

This all depends. Different apps need to scale for different reasons. This is why Elastic Beanstalk lets you choose various ways to scale your application. Sure, this is reasonable. Does it work for your application? Not sure. Is your app CPU intensive or is it just serving static content?...

DynamoDB Conditional Check Fail Monitoring

c#,asp.net,amazon-web-services,session-state,amazon-dynamodb

Generally speaking, conditional checks are optimistic concurrency control mechanisms provided by DynamoDB. The basic idea is that every write request can specify conditions on the item being written that must be true for the write to succeed. This section of the AWS DynamoDB documentation talks more about conditional writes. Whenever...

Paperclip image does not visible when save in aws-sdk

ruby-on-rails,amazon-web-services,paperclip

<% @departments.each do |department| %> <%= image_tag(department.attachment.attach.url)%> <%end%> ...

Getting Blank messages in my app from AWS SNS.

android,ruby-on-rails,ruby,amazon-web-services

The message should be a valid JSON string if you want to publish a message to GCM. You can use to_json to serialize a hash object to JSON. Here is a article about using AWS SDK for Ruby http://blog.tryneighborly.com/amazon-sns-for-apns-on-rails/. For more information about Amazon SNS: Send Custom Platform-Specific Payloads in...

Amazon EC2 Storage lacks

amazon-web-services,amazon-ec2

The size of the EBS volume is whatever you set it to be, it's not tied to the instance type. If you click "Volumes" on the left of the dashboard and find the volume that's attached to your instance, you will probably find that it's only 8GB, which is a...

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

amazon-web-services,amazon-ec2,docker,elastic-beanstalk,ec2-container-service

UDP support has been missing still from the GA release of the Amazon EC2 Container Service, see Ports are assumed to be TCP (issue #2) of the Amazon ECS Container Agent. Luckily this surprising gap has already been addressed and the new ECS agent version is pending release - I...

set the OpenSSL_HOME variable

amazon-web-services,https,path,openssl,command-prompt

My openSSL is installed in c:\OpenSSL, so would I write set OpenSSL_HOME=C:\ OpenSSL? Yes, but without the space after C:\: set OpenSSL_HOME=C:\OpenSSL Do I enter such command in Command Prompt? You can. Do note, however, that with this approach, you would be modifying the OpenSSL_HOME environment variable for that...

Eclipse not compiling because of ClassNotFoundException

java,eclipse,amazon-web-services,compilation,aspectj

It seems that your Eclipse doesn't found the library of aspectj. Try to download it again from: https://eclipse.org/aspectj/downloads.php By your stack trace I suppose that the version of aspectj that it is looking for it's the 1.6 so I suppose that you have to search the package in which puts...

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

php,amazon-web-services,hmac,hmacsha1

You can't.* * except with massive pools of servers to run a cracking operation. As this quora answer states when talking about SHA256, "If this is the case, your MacBook Pro will have dissipated into nothingness as part of the heat death of the universe before it finishes cracking that...

How to set a variable using dynamic inventory using Ansible

amazon-web-services,amazon-ec2,ansible,ansible-playbook,rds

I was able to solve my above problem by using something like this set_fact: rds_hostname="{{ groups.rds_mysql[0] }}" Also during my research I found a nice ansible galaxy code which allows you to dump all variables accessible to ansible-playbooks https://galaxy.ansible.com/list#/roles/646 Hope this helps someone :)...

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

jquery,ajax,amazon-web-services

[SOLUTION] It turned out the issue was related to cross domain request. Updating server code to add 'Access-Control-Allow-Origin' header as per the link below solved the problem Javascript - No 'Access-Control-Allow-Origin' header is present on the requested resource...

Xcode + AWS Integration Apple Mach-O Linker Error

ios,xcode,amazon-web-services

Are you importing the AWS Mobile SDK for iOS using both the frameworks and CocoaPods? You cannot import the SDK twice, and that is why you are getting duplicate symbols errors. You need to pick one of them and remove the other one to remove the errors.

Integrate elastic load balancer with autoscaling

amazon-web-services

An autoscaling group is tied to a launch configuration and zero or more scaling policies. It's also tied to zero or more load balancers. This is the "magic" that causes instances to appear inside the ELB without further intervention. The scaling policies are referenced in the alarms- common actionable alarms...

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

That role is created the first time you use the elastic beanstalk console. The CLI also attempts to create it, but your IAM user doesn't have permissions to create it. You can fix this error by logging in to the console and getting to the platform selection page. You will...

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

wordpress,amazon-web-services,amazon-ec2,apache2

With the help of @Giles Hunt and @kittykittybangbang, I add .htaccess to my website whose content is as follows: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> And now it works....

HTML5 Push Notifications - examples of other ways to push

html5,amazon-web-services,azure-mobile-services,service-worker

At the moment push on Chrome is tied to GCM, there is a new standard being actively worked on that will make push services all use the same API. When this happens I'm hoping Chrome and GCM will implement it and you'll then be able to implement a single API....

View EC2 Instance Server Files in AWS Console

amazon-web-services,ssh,amazon-ec2

the short answer is no. you cannot view the files in the AWS console. depending on the instance type, if it's EBS backed you may be able to snapshot the volume and start the machine with a new SSH key pair you do have access to.

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

java,spring-mvc,amazon-web-services,amazon-dynamodb,spring-restcontroller

The problem might be here public String[] getOptions(). Instead of String[] can you use a Set or List. Look at their examples: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/JavaArbitraryDataMappingHLAPI.html http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/JavaDeclarativeTagsList.html http://aws.amazon.com/articles/0802321832592496 They never use arrays....

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

amazon-web-services,amazon-dynamodb,aws-sdk

In a nutshell: BatchGetItem works on tables and uses the hash key to identify the items you want to retrieve. You can get up to 16MB or 100 items in a response Query works on tables, local secondary indexes and global secondary indexes. You can get at most 1MB of...

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

apache,amazon-web-services,nginx,amazon-s3

Does setting Access Control Level to S3 bucket to ALL_USERS ( to authenticated and anonymous users) compromise on data privacy? Absolutely. Don't do it. If I use reverse proxy, there is no way for the user to determine S3 bucket urls. Is the data safe and private? Theoretically, they...

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

amazon-web-services,amazon-ec2,amazon-s3,cloudflare

you want geolocation routing for the api endpoints: http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-geo...

An illustration of AWS hosted zones and buckets

redirect,amazon-web-services,amazon-s3,amazon-route53

I would recommend: In Amazon S3, create a bucket named mysite.com In Amazon Route 53, create a Hosted Zone for mysite.com (and of course, purchase the domain name, or point the current domain name to Route 53) In Route 53, create an A Record for the apex of mysite.com using...

Deleting Data from DynamoDb Table automatically

amazon-web-services,amazon-dynamodb

No, there is no "retention" setting available in DynamoDB. You could run a daily/monthly query that uses a date field to filter results, and use that output to determine which Items to delete. This would need to be implemented in your own programming code. Some users choose to use separate...

Querying DynamoDB table by hash and range key

ruby,amazon-web-services,amazon-dynamodb

The Query operation only allows the following operators on the Range Key: EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN For a Query operation, Condition is used for specifying the KeyConditions to use when querying a table or an index. For KeyConditions, only the following...

Python Amazon Product Api not able to get image

python,amazon-web-services,amazon-product-api

To access the image URLs, you can try to change your code to use one of the following: print book.SmallImage.URL print book.MediumImage.URL print book.LargeImage.URL The error is because there is no "Large" attribute in ItemAttributes. The image URLs are available in a different part of the response. The Large Response...

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

It depends on how you use them. If your app is going to retrieve the images similiar to instagram, or twitter, it's good to download them as the user requested the images via the app. If once the images are retrieved, the application going to use the images again and...

Microservices and cloud resource limitations

amazon-web-services,amazon-ec2,spring-cloud,microservices,amazon-elastic-beanstalk

As mentioned in the above comments, AWS will raise your limits if you have a legit use case - why wouldn't they? they are in the business of selling you services. But since you have asked for suggestion other than increasing those limits, and since you are in the early...

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

python,amazon-web-services,boto,amazon-rds,rds

No, that's probably the best you can do. The RDS API does not support the Stop/Start functionality of EC2 instances.

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

java,amazon-web-services,amazon-ec2,amazon-dynamodb

The schema of DynamoDB tables only specifies the hash key, optional range key, and optional index keys. The schema does not cover attribute fields that are uninvolved in a key or index. I believe that is why your BuruMsg field does not appear in the management console UI. You can...

Cloudfront stream only part of the video

video,amazon-web-services,video-streaming,amazon-cloudfront,rtmp

No, CloudFront does not support this functionality. You will need to point player to the different video in this case.

AWS CLI for EBS snapshots

amazon-web-services,amazon-ec2,aws-cli

Use us-west-2 instead of us-west-2b in your Endpoint URL. Most probably, this would be the value of REGION in your configuration file that was created by running aws configure us-west-2 is a region us-west-2b is an availability Zone in that region. You should be connecting to the Region and not...

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

php,rest,security,amazon-web-services,token

After you've got token from the client you need to check two things: validity of the token and its timestamp. There are two scenarios: Make timestamp part of the token: function getToken($timestamp) { return $timestamp . encrypt(getPKey(), $timestamp); } $token = genToken(time()); And then validate it: $token = $_POST['token']; function...

Keep config file secure using github and Elastic Beanstalk?

amazon-web-services,github,passwords,config,elastic-beanstalk

Your intuition is correct! Definitely keep your keys/passwords/credentials out of your committed codebase. Elastic Beanstalk provides environment variables in the control panel for just this purpose. The official documentation can be found here: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options.html#command-options-ruby These environment variables can be edited through the Elastic Beanstalk UI. You can then reference these...

Call to S3Client::setRegion() fails

php,amazon-web-services,amazon-s3,aws-php-sdk

setRegion isn't a supported method in the version of the AWS SDK you're using. (The docs you linked to are for v2 of the SDK.) You can create a new client and pass in the region in the constructor, e.g., new Aws\S3\S3Client(['version' => $s3->getApi()->getApiVersion(), 'region' => $loc])....

Check Domain Availability using Boto Route53

python,amazon-web-services,boto,amazon-route53

You don't show your code which makes it harder to debug but this line: Route53DomainsConnection.check_domain_availability('example.com',None) looks suspicious. It looks like you are trying to access the check_domain_availability method from the class rather than an instance of the class. I just did the following and it worked for me: In [1]:...

Amazon DynamoDB Mapper - limits to batch operations

amazon-web-services,amazon-dynamodb

Does the mapper split your list of objects into multiple batches and then write each batch separately? Yes, it does batching for you and you can see that it splits the the items to be written into batches of up to 25 items here. It then tries writing each batch...

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

python,amazon-web-services,boto

Make sure you have set properly with ~/.boto and connect to aws, have the boto module ready in python. If not, go through this first: Getting Started with Boto For example, you need assign a new EIP 54.12.23.34 to the instance i-12345678 Make sure, EIP has been allocated(existed) and you...

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

java,amazon-web-services,android-studio,build.gradle

It seems that when you added the Amazon SDK your app reached the maximum method count allowed in Android (over 65K). see here on how to configure your app for multidex: https://developer.android.com/tools/building/multidex.html

Difference between AmazonDynamoDBClient and DynamoDB classes in their java SDK?

java,amazon-web-services,amazon-dynamodb

This is a good question. It looks like DynamoDB is a wrapper to the AmazonDynamoDBClient, providing a different interface. So this may be obvious and not the answer you are looking for but let me describe some of the differences between them. The createTable method in AmazonDynamoDBClient returns back a...

Amazon Machine Learning for sentiment analysis

amazon-web-services,machine-learning,nlp,sentiment-analysis

You can build a good machine learning model for sentiment analysis using Amazon ML. Here is a link to a github project that is doing just that: https://github.com/awslabs/machine-learning-samples/tree/master/social-media Since the Amazon ML supports supervised learning as well as text as input attribute, you need to get a sample of data...

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

mysql,amazon-web-services,amazon-ec2

If you're running MySQL on AWS EC2 as an RDS instance, your database_url will be the RDS instance name (followed by :port of course). See http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ConnectToInstance.html for more info, but this is normally of the form myinstance.123456789012.us-east-1.rds.amazonaws.com (where us-east-1 is the region in this example but might vary depending on...

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

ios,amazon-web-services,amazon-cognito,google-signin

From the error it looks like the clientId is not setup correctly in the identity pool configuration. Google has different client ids for each platform, to support multiple client ids, you should use the Cognito's support for generic OpenID Connect Identity Providers. Please follow these steps: Go to AWS IAM...

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

amazon-web-services,go

You need to provide an AWS access key and secret key to authenticate and use AWS services. See the README here https://github.com/aws/aws-sdk-go#configuring-credentials...

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

ruby,amazon-web-services,amazon-s3,rack,aws-sdk

Cognito is most useful when you delegate to your end users obtaining credentials and making calls to AWS themselves, so it's not usual to need Cognito in the server side. Edit: If you want to implement developer authenticated identities, then it definitely makes sense to use a Cognito service client...

How to use cloudformation to create an ecs cluster?

amazon-web-services,amazon-cloudformation,ec2-container-service

Looks like there is nothing special about ECS that you should not be able to do via cloudformation. here is a ECS quick stack cf template: https://s3.amazonaws.com/amazon-ecs-cloudformation/Amazon_ECS_Quickstart.template Checkout: http://www.cloudtp.com/2015/02/04/getting-started-ec2-container-service-ecs/ The key in the cloud formation template is really the AMI id + ECS_CLUSTER definition in /etc/ecs/ecs.config. If you get that...

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

caching,amazon-web-services,amazon-elasticache,spring-cache

Show your configuration and usage. It seams that you haven't defined defaultCache or used Cacheable without 'value' param set....

Use case HBase on EMR

hadoop,amazon-web-services,hbase,storage,emr

The key question in your use case is how the data should be available between updates. If your goal is to have data accessible through a Hbase interface all the time then a Hbase cluster (like on EMR) would need to be up and running continually. Hbase currently only supports...

Using Java web service on Amazon cloud

java,web-services,amazon-web-services,amazon-ec2

This is pretty standard in terms of deployment. First - create a EC2 box, this will be your server, you'll need to configure the firewall to allow connections over HTTP port 8080. Second - install Tomcat on said EC2 box. Third - upload your war file to said Tomcat instance....

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

python,python-3.x,amazon-web-services,docker

You should install python3-pip in your Dockerfile and then run pip3 install -r requirements.txt

AWS S3 object listing

javascript,node.js,amazon-web-services,amazon-s3

Folders are illusory, but S3 does provide a mechanism to emulate their existence. If you set Delimiter to / then each tier of responses will also return a CommonPrefixes array of the next tier of "folders," which you'll append to the prefix from this request, to retrieve the next tier....

Naked Root Domain Hosting

redirect,amazon-web-services,amazon-s3,amazon-route53

Set up the bucket, named for your domain name. The bucket name has to match exactly the address that shows in the browser's address bar. Then, create an A record at the root (apex) of the domain in Route 53, leaving the hostname empty, selecting "Yes" for Alias, then select...

How do I SSH into EC2 with .pub?

amazon-web-services,ssh,amazon-ec2

It seems that you need to create your key first in the AWS console, this will allow you to download the correct file app.pem which you add to .ssh folder (Mac). You can then resign the new key by doing eb ssh --setup. WARNING This deletes all instances and recreates!...

Enabling SSL on an AWS EC2 instance

apache,ssl,amazon-web-services,amazon-ec2

Great. The error messages helped. You're missing two lines: SSLCertificateFile /directory/to/file.crt SSLCertificateKeyFile /directory/to//file.key Here's a howto on configuring SSL on Apache....

CloudSearch fuzzy matching of whole string doesn't work

amazon-web-services,amazon-cloudsearch

Querying 'Amphitheatre Parkway, Muntain View'~5 is actually performing a fuzzy/sloppy phrase search, where it's searching for those words within 5 words of one another. I don't think that's what you intended. The Miunntain~5 query is really interesting: it does indeed return no results, but miunntain~5 (lowercase m) does: I...

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

I finally figured out how to increase the logging level for Passenger Standalone (blogged here). From the log, I could see that the web server was responding to the Beanstalk health check with 301 redirects. That meant that the load balancer thought the app was dead, so it was sending...

Fetch and Store ISBN Information from Amazon

php,amazon-web-services

You can search by ISBN using the Product Advertising API. The exact method is documenter here http://docs.aws.amazon.com/AWSECommerceService/latest/DG/EX_LookupbyISBN.html In order to use the API you have to sign up with the Amazon stores....

Lifecycle policy on S3 bucket

amazon-web-services,amazon-s3

What you describe sounds normal. Check the storage class of the objects. The correct way to understand the S3/Glacier integration is the S3 is the "customer" of Glacier -- not you -- and Glacier is a back-end storage provider for S3. Your relationship is still with S3 (if you go...

How to configure aws CLI to s3 cp with anonymous user

amazon-web-services,amazon-s3,aws-sdk

you probably have to provide an access keys and secret key, even if you're doing anonymous access. don't see an option for anonymous for the AWS cli. another way to do this, it to hit the http endpoint and grab the files that way. In your case: http://big-data-benchmark.s3.amazonaws.com You will...

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

amazon-web-services,amazon-s3,cron,cron-task,s3cmd

s3cmd uses a configuration file located at ~/.s3cfg. It's probably having trouble picking that up. Pass in --config=/home/username/.s3cfg and see if that helps. In any case, s3cmd isn't consistently maintained. The official commandline client (aws-cli) is much better in many ways. edit: use this as your .sh file, make sure...

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

amazon-web-services,amazon,amazon-cloudfront

You can configure CloudFront to through pass Host header to the origin. It is described here: http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html. Note that in this case it will also be included into the CloudFront's cache key, so use it if you plan to serve different content for different values of Host header.

Spring AWS SQS Reconnect After Losing Connection

spring,amazon-web-services,amazon-sqs,spring-cloud

I just figured out the problem why SQS is not able to reconnect after network connection lost. Actually seems to be a problem in current Spring AWS implementation of org.springframework.cloud.aws.messaging.listener.SimpleMessageListenerContainer.java private class AsynchronousMessageListener implements Runnable { private final QueueAttributes queueAttributes; private final String logicalQueueName; private AsynchronousMessageListener(String logicalQueueName, QueueAttributes queueAttributes) {...

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

amazon-web-services,mechanicalturk

The easiest thing to do is just have one ExternalQuestion HIT that you host on your own server, wherein you serve up different content to each worker. In lieu of your own server, you can do this with javascript as well but the reliability might be reduced and you have...

AWS Kinesis - data source on a third party server

amazon-web-services,amazon-kinesis

assuming you have access to the log file, you could in theory push to kinesis from other machines. the implementation of that might be a bit funny and yes, ideally you would be able to run the kinesis producer on the machine that has the logs

Is AmazonSimpleNotificationServiceClient thread-safe?

.net,amazon-web-services,aws-sdk

They seems to be: The best-known aspect of the AWS SDK for .NET are the various service clients that you can use to interact with AWS. Client objects are thread safe, disposable, and can be reused. ...

Loop through list of AWS-instances shows only first item

ruby-on-rails,amazon-web-services,amazon-ec2,each,aws-sdk

As far as I know, the method in the controller will return the last object in the loop, so if you have 5 objects it will loop through each and will return the last one, cause that's where the controller method ends in your case. You need to pass the...

How can I access Mule ESB Community edition via browser?

amazon-web-services,amazon-ec2,mule,mule-component

If you are trying to access to the Mule Management Console (MMC), that is a separate product from Mule ESB and it is only available to manage Mule ESB Enterprise Edition. In some downloads MMC is included with Mule ESB in a bundle for testing purposes but to run in...

Funnel query with Amazon Redshift / PostgreSQL

sql,postgresql,amazon-web-services,analytics,amazon-redshift

I think the best method might be to add flags to the data for the first visit of each type for each user and then use these for aggregation logic: select sum(case when ts_homepage is not null then 1 else 0 end) as homepage_count, sum(case when ts_productpage > ts_homepage then...

Unable to access files from public s3 bucket with boto

python,amazon-web-services,amazon-s3,boto

The policy you have allows anonymous users access to the bucket. However, in your case Account B is not an anonymous user, it is an authenticated AWS user and if you want that user to have access you would need to grant it explicitly in the policy. Or, you can...

how to uninstall tomcat from AWS linux?

linux,tomcat,amazon-web-services

sudo yum remove tomcat7 tomcat7-webapps.

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

python-2.7,amazon-web-services,amazon-ec2,amazon-s3,boto

This is a slightly difficult request because Security Groups are used by many different resources, including: Amazon EC2 instances Amazon RDS instances VPC Elastic Network Interfaces (ENIs) Amazon Redshift clusters Amazon ElastiCache clusters Amazon Elastic MapReduce clusters Amazon Workspaces ...and most probably other services, too To obtain a list of...

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

java,networking,amazon-web-services,dns

To get InetAddress from Domain name you can use "targetAddress.getHostAddress()". try { InetAddress ip = InetAddress.getByName("domainname.com"); System.out.println("Host Name: " + ip.getHostName()); System.out.println("IP Address: " + ip.getHostAddress()); } catch (Exception e) { System.out.println(e); } ...

Polling Continuously from a SQS queue on AWS

java,amazon-web-services,amazon-sqs

No, its not possible. SQS requires you to poll to see if there are messages waiting for you. If you could uses SNS instead of SQS you could have messages pushed to you instead....

Elastic Beanstalk Prevent Files Overwriting

wordpress,git,caching,amazon-web-services

First of all you are using a very old version of the EB CLI. But that’s irrelevant to your problem/question. how do you only version certain folders with beanstalk is this even possible? No, this is not possible. Let me explain what beanstalk is doing. Elastic Beanstalk stores your files...

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

python,amazon-web-services,amazon-s3,multiprocessing,boto

If it fits your use case, you may want to use the AWS Command-Line Interface (CLI), which can automatically use multi-part upload for you. aws s3 cp file.txt s3://bucket/file.txt...

Xampp Config Files AWS

amazon-web-services,xampp,bitnami

Bitnami developer here, XAMPP includes MySQL and Apache. If you want to connect a remote MySQL, you need to follow this guide: https://wiki.bitnami.com/Components/MySQL#How_to_connect_to_the_MySQL_database_from_a_different_machine.3f But in your case, I think you want to migrate you XAMPP site to your AMI. This guide could help you with that purpose: https://www.apachefriends.org/docs/hosting-xampp-on-aws.html I hope...

AWS EC2: Migrating from Windows to Linux Server

linux,windows,amazon-web-services,amazon-ec2,server

First thing is realizing the main problem is not the server software and operating system but your application. You need to be sure that your application runs on Linux and you don't have any Windows dependent libraries. Then you can create a Linux EC2 instance (Ubuntu, RedHat or any other...

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

ios,node.js,amazon-web-services,express,amazon-s3

You want to choose option 2, have your user upload directly to S3. If you use option 1, you have the possibility of your server going away before it can complete the upload to S3 (think autoscaling, where an instance is taken out of service before it can complete). And...

“undefined method 'value'” when looping

ruby-on-rails,ruby,amazon-web-services

i.tags.any? returns true as soon as tags.compact array is not empty. So, you enter the endless loop and sooner or later t becomes greater than tags.length. Call to tags[tags.length] returns nil, and calling value on nil produces the error you got. The loop you likely wanted looks like: i.tags.each do...

cloudsearch query to boost exact match on range

amazon-web-services,amazon-cloudsearch

Say your fields are 'a' and 'b', and the specified values are a=2 and b=1 (as in your example, except I've named the fields 'a' and 'b' instead of 'one' and 'two'). Here are the various terms of your query. Range Query This is the query for the range a±1...

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

java,amazon-web-services,amazon-sqs,amazon-sns,spring-cloud

You don't have to do it in a Java application. Go to AWS console, select IAM service, choose a user (or create one) and then, under Permissions, you attach Policies. This is how it looks like: Policies (the JSON documents) can be chosen from a list, generated using a wizard...

AWS RDS on Eclipse

eclipse,amazon-web-services,amazon-ec2,amazon-rds

Okay, per the comments on the question, I'm going to give an answer that works around the question. In other words, the straightforward answer is to do an insecure thing (open the database to public). Here's the TLDR on the answer: create a tunnel to an ec2 instance, then tell...

WebSocket connection failed: WebSocket opening handshake was canceled

javascript,amazon-web-services,amazon-ec2,websocket

There was an SSL certificate mismatch between the Haskell server and the Apache server. The Haskell server had to be rebuilt with information concerning the new certificates for the instance. Further complicating this the proper SSL library (libssl0.9.8 libssl-dev) was not installed on the EC2 instance which was causing me...

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

java,spring-mvc,amazon-web-services,amazon-dynamodb

First, you need a Scan operation to read all the items regardless of any key value. Second, you can use a projection expression to specify particular columns of the returned values from server side (to save network bandwidth). See documentation page....

heroku pgbackups:url command is no longer working?

ruby-on-rails,postgresql,ruby-on-rails-4,amazon-web-services,heroku

To download backup b004 use the following syntax: curl -o b004.dump `heroku pg:backups public-url b004` That will download the backup as b004.dump in the current directory....

AWS Beanstalk autoscale user files

amazon-web-services,autoscaling,beanstalk

There are a few options, but in general first you need to understand that in order to scale horizontally (add more servers), your servers have to be "stateless" meaning they can't have any special information on them, including but not limited to user uploaded files. The current "best practice" (and...

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

php,git,amazon-web-services,amazon,elastic-beanstalk

eb init grabs the basic settings from your currently running environment. This includes: Platform Keypair name Everything else is environment specific. If you would like to save your environments configuration to a file, you can use eb config save Typically, you can edit the configurations in place by using eb...

Relation between ec2 and rds

amazon-web-services

Yes you are correct, I think what they are really saying is that RDS instances run on the same infrastructure as the EC2 instances you spinup and use yourself. When you start an RDS instance, it runs on an EC2 instance, but you have no access to that underlying instance...

Configure Dockerfile to set AWS configurations

node.js,amazon-web-services,docker

I think the answers regarding the environment variables are good solutions. To offer an alternative, or if you use a file for aws authentication, you could use docker volumes to mount these. Mount a Host Directory as a Data Volume In addition to creating a volume using the -v flag...

No space left on device [closed]

ruby-on-rails,apache,ubuntu,amazon-web-services,storage

You only have 7.5G of total space. Your /etc folder is using up 3.7G, which seems like waaaay too much, and your home directory is 1.3G. Use du -sh * on each of these directories to find out what is using so much space in them and delete them if...

Get files from amazon s3 buckets sub folder .Net

.net,amazon-web-services,amazon-s3

Just set your bucketname as so: bucketname/foldername. So If you have a bucket called 'MyBucket' and a folder within that bucket called MyFolder, than you would do: var objRequest = new GetObjectRequest { BucketName = "MyBucket/MyFolder", Key = o.Key }; ...