Questions tagged [amazon-web-services]
19296 questions
1
votes
1
answer
900
Views
Using AWS services to create subdomains on the fly to host a site on S3
INFO: I am working on an app built in php which facilitates users to create HTML templates and publish them on web.As the templates would be static I thought of using amazon S3 for storing them as it can host static websites and has good infrastructure overall for the application.br/>
QUERY: I am fa...
0
votes
1
answer
5
Views
How to get URL of 302 redirect on Elastic Load Balancer health check?
An app is deployed on Elastic Beanstalk with an Application Load Balancer.
The health checks fail and in the dashboard under ECS2 > Load Balancing > Target Groups I see the response code mismatch is due to a 302 temporary redirect.
But where can I find the actual log that also shows to which URL the...
4
votes
0
answer
65
Views
How to deploy a rules kjar to S3 bucket from within the kie workbench?
I am trying to use a S3 bucket as a remote maven repository via which to distribute the rules jar, created with the kie workbench UI, to where they are needed.
If i package the rules with maven from my IDE, i can successfully upload the jar to s3 with the usage of Maven S3 wagon extension and distr...
1
votes
1
answer
1.4k
Views
Programmatically setting up a static website using Amazon S3 and Route 53 APIs
Assume I already have purchased a domain example.com with IP address 203.0.113.2. Using C# and the The Amazon Web Services SDK for .NET 2.0.2.2, I'd like to create a static website using a custom domain using Amazon S3 and Route 53. The manual process is described in the Amazon documentation.
Whe...
1
votes
3
answer
1k
Views
How do you use Amazon Route 53 to redirect a subdomain to a specific page?
I would like to redirect my subdomain "subdomain.example.com" to a specific page on my site "example.com/specific-page" using Amazon Route 53. Is this possible?
I saw this answer and tried it (Set up DNS based URL forwarding in Amazon Route53) but that appears to only allow you to redirect to root d...
1
votes
2
answer
5.8k
Views
Can't connect to AWS Redshift using RPostgreSQL
I'm not able to connect to my AWS Redshift database using RPostgreSQL.
Does anyone have an example of code that would work?
library (RPostgreSQL)
drv
1
votes
2
answer
995
Views
How to reply to the email received from AWS SNS service?
I am using AWS SNS Service to send notification. I am able to send notification through eMail. But now I want to get reply on that sent mail from the receiver.
Example:
User A (Sender) using AWS SNS sends eMail to User B (Receiver). User B is getting mail without any issue in their mail account....
1
votes
2
answer
48
Views
Domain + AWS EC2: How to make www.mydomain.com point to my EC2 server?
I'm trying to create a website and I just bought a domain at domain.com. I also launched an EC2 instance in AWS. Which one of the options would I choose below so that going to www.edmundscoolsite.com would point to my EC2 instance?
0
votes
0
answer
2
Views
What is a resource server in AWS cognito exactly?
My understanding is that if you provide your web page for example in the "identifier" section and your routes in the "scope" section, you can protect your routes?
1
votes
1
answer
382
Views
Is there any difference on the url you use to Amazon S3 files?
I noticed that there are two urls to open my files on amazon s3 buckets:
1) http://BUCKETNAME.s3.amazonaws.com/FOLDER/FILE.jpg
2) http://s3-sa-east-1.amazonaws.com/BUCKETNAME/FOLDER/FILE.jpg
Is there any difference on the way the files are accessed, charged or anything?
Thanks.
1
votes
1
answer
127
Views
Rolling updates for websites hosted on Amazon's Elastic Beanstalk
I've deployed my application to Elastic Beanstalk, and configured it with the Rolling Updates feature. This sounds pretty cool because it keeps a certain number of servers in the farm at all times while others are swapped out for upgrades - so it seems an outage-less upgrade is achievable.
But by my...
0
votes
1
answer
61
Views
Why does AWS Lambda CFN S3-response returns 403 upon Delete event?
I'm using serverless to deploy an application where I use a Custom Resource to migrate a RDS database.
Everything works while I deploy, but when I delete the stack the Custom Resource timeouts after an hour with the message "Custom Resource failed to stabilize in expected time.". The request to the...
0
votes
1
answer
49
Views
EMR conf spark-default settings
I am using configuration file according to guides Configure Spark to setup EMR configuration on AWS, for example, changing the spark.executor.extraClassPath is via the following settings:
{
"Classification": "spark-defaults",
"Properties": {
"spark.executor.extraClassPath": "/home/hadoop/mongo-hadoo...
0
votes
0
answer
4
Views
How to access parameter from aws parameter store using function in lambda
I'm trying to pull a parameter value from the Parameter Store using the following code:
let ssm = new AWS.SecretsManager();
emailParam = { Path: '/myPath/Service/DestinationEmail'};
destinationEmail = ssm.getParametersByPath(emailParam, function(err, data){
if(err){
console.log(err, err.stack);
} e...
1
votes
1
answer
1.7k
Views
Running cudaHashcat-1.33 on AWS g2.2xlarge - Error cuModuleLoad() 209 when trying cudaExample0.sh
As it says in the description I have installed cudaHashcat-1.33 on an AWS g2.2xlarge instance.
I've used the .run file to install the CUDA Toolkit and then performed this test: deviceQuery ; as explained here in the official documentation (http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-...
1
votes
1
answer
1.8k
Views
Amazon Redshift doing Hash Join even when joined on column that is both Dist Key and Sort Key
I have a fact table in Redshift having about 1.3 Billion rows with DISTribution key c1 and sort key c1, c2.
I need to join this table with itself with a join clause on c1 (i.e. c1 from 1st instance of table = c1 from 2nd instance of table).
As I see query plan of my query, Redshift appears to be doi...
1
votes
1
answer
831
Views
How can i install puppet cluster on Amazon EC2 instances?
I'm using ubuntu 12.04 AMI in EC2 for creating puppet cluster and i'm facing problems while configuring it.
The problem is that the master is not able to recognize the slaves.
Do i need more packages other than mysql
/etc/mysql/my.cnf
what changes do i need in the above file?
1
votes
1
answer
449
Views
Is it mandatory for EC2 instance in AWS VPC to have IP addresses starting with 10.0.0.0?
My networking knowledge is somewhat poor. I have created one VPC in AWS for which I have given CIRD block as "21.0.0.0/16". I have re-created network ACLs, security groups and subnets according one more VPC we have. All these settings in new and old VPC are exactly the same.
Then I created bastion...
0
votes
0
answer
2
Views
AWS Glue writing a small dataframe to S3 taking too long
I have a glue job to perform some aggregations on json data and write the results to s3. The results file I'm trying to write is less than 1 KB. With 20 dpu's the time it's taking to write a single file is 5 mins which is not acceptable. Anyone knows what could be a possible reason for the slowness?...
1
votes
2
answer
1.7k
Views
Amazon AWS S3 file upload. How to set file permissions?
I'm uploading a file using Amazon's AWS SDK (S3), and everything is working fine. Below is my code:
final AWSCredentials credentials = new AWSCredentials() {
@Override
public String getAWSAccessKeyId() {
return "...myAccessKey...";
}
@Override
public String getAWSSecretKey() {
return "...mySecretKey...
1
votes
1
answer
1.3k
Views
Can I limit the size of an object put into S3 via the JavaScript API?
It is possible to use JavaScript APIs to upload objects to S3 and it is possible to have a fine-grain authorization using IAM policies. For instance, see this policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"s3:PutObject",
"s3:PutObjectAcl"
],
"Resource": [
"arn:aws:s3:::YOU...
1
votes
1
answer
342
Views
custom credential provider plugin
To retrieve the credentials (aws_access_key, aws_secret_access_key, aws_session_token) to access AWS services via the cli, we have to call a custom service first to get our temporary credentials. If the credentials have expired we need to retrieve new credentials.
Using boto it is possible to write...
1
votes
1
answer
383
Views
How to use newer versions of HBase on Amazon Elastic MapReduce?
Amazon's Elastic MapReduce tool seems to only have support for HBase v0.92.x and v0.94.x.
The documentation for the EMR AMIs and HBase is seemingly out-of-date and there is no information about HBase on the newest release label emr-4.0.0.
Using this example from an AWS engineer, I was able to conco...
1
votes
1
answer
7.7k
Views
I am trying to map an Amazon EC2 drive to a local machine
I am trying to map an Amazon EC2 instance to my local machine. I have read that it is possible via VPN but I need it to work without a VPN. Essentially I would like to make drives in the EC2 instance available similar to the way DropBox folders are available. I know that I could just use Dropbox but...
0
votes
0
answer
2
Views
How to load a csv file into AWS Aurora Database (Relationional database) usign AWS Glue?
I have a csv file which will be present (daily new file) in S3 bucket. From here I am trying to use AWS Glue to extract, transform & load in AWS Aurora Database. Aurora DB is designed as a normalized relational database, I have to load the csv into this relational database with information mapped be...
0
votes
0
answer
4
Views
AWS API Gateway WebSocket Connection Error
I created an API by AWS API Gateway and Lambda that is same 'https://github.com/aws-samples/simple-websockets-chat-app'. But the API not working trust. I get an error when i try to connect. Its message is "WebSocket connection to 'wss://b91xftxta9.execute-api.eu-west-1.amazonaws.com/dev' failed: Err...
-1
votes
1
answer
18
Views
Pricing: AWS Dynamo db vs AWS Cloudwatch
Does Cloudwatch cost more than Dynamodb for storage or my understanding is wrong?
From the pricing pages:
https://aws.amazon.com/cloudwatch/pricing/ - From this, in the logs section of us-east-1, it looks like it is costing 0.50$/GB
https://aws.amazon.com/blogs/aws/dynamodb-price-reduction-and-new-r...
-1
votes
2
answer
73
Views
EC2 experiencing very high bandwidth
I have reported to AWS of my very high bandwidth billing an they say it originates request to my EC2 instance.
All they can provide is an excel report on bandwidth consumption (it doesnt tell where it originates from) and ask to look at this document.
https://docs.aws.amazon.com/AWSEC2/latest/UserG...
0
votes
0
answer
5
Views
How to sync local directory with Amazon storage using aws s3api?
The local directory content can be sync with aws storage using the following command:
aws s3 sync . s3://mybucket-0000002
Is there a similar command line available with aws s3api?
Thank you.
0
votes
0
answer
5
Views
How do I make a Flask application serve another Flask application on AWS?
I have a Flask application running on an Elastic Beanstalk instance. This is a simple web app that uses Flask for the backend and HTML + CSS + plain JS for the frontend. It's really simple.
Now I want to add a login page to the web app. The login and dashboard (which is what the user will be able t...
1
votes
1
answer
2.1k
Views
DynamoDB Primary Key strategy
I'm dabbling with DynamoDB (using boto3) for the first time, and I'm not sure how to define my Partition Key. I'm used to SQL, where you can use AUTO_INCREMENT to ensure that the Key will always increase.
I haven't seen such an option in DynamoDB - instead, when using put_item, the "primary key attr...
1
votes
1
answer
208
Views
Easiest way to configure a proxy for static Amazon S3 content and dynamic heroku content
My mobile app consists of a dynamic portion on heroku (foo.herokuapp.com) which serves up our API and web views for some content we expose to users who don't have the app installed. There is also of course a static landing page (http://foo.co) which is hosted on S3.
Currently, I have DNS setup to r...
1
votes
1
answer
1.7k
Views
EC2: Unable to rvm install ruby
I am following this tutorial and am stuck at trying to install ruby using rvm (scroll down to see the command in the link)
I have searched online for a variety of solutions but nothing seems to work. How can I resolve the issues below?
rvm install ruby
Searching for binary rubies, this might take s...
0
votes
0
answer
3
Views
How do I calculate S3 pricing for short-lived files?
If I understand correctly, S3 prices which say are GB/Month, are actually GB/hour right? So if I'm using S3 as a middleware between a client server and a file-generating lambda, my files would last 1-2 minutes, how can I properly calculate my costs then? The S3 calculator doesn't consider these vari...
1
votes
1
answer
852
Views
Unable to connect to AWS RDS through PDO
I set up a MySQL RDS instance in AWS. After instantiating the instance I tried to connect it from my EC2's command line and it works with no issue. However, when I try connecting through my PHP code I get erros. Below is the sample code that I tried to test my connectivity.
1
votes
2
answer
2k
Views
Crontab in AWS CloudFormation Userdata
How to set crontab when using AWS CloudFormation Userdata?
I am setting
(crontab -l ; echo "0 * * * * wget -O - -q http://www.example.com/cron.php") | crontab -
But the cron is not setting. Is there a specific format which I should be using?
1
votes
1
answer
480
Views
400 from Eureka js client with Amazon
For some reason Im getting a 400 back when registering with a Eureka on Amazon. At first I thought it had to do with the known issue with eureka js client, however, after apply the fixes for that issue it works locally, but not when datacenter object is Amazon. It seems to fetch the metadata from...
1
votes
1
answer
183
Views
AWS Let's encrypt Wildcard certificate
I’m trying to create an HTTPS Wildcard certificate for all my subdomains * .booda.me
My server is hosted on Amazon web services on an “Amazon Linux AMI”.
When I run certbot with this command:
letsencrypt certonly --manual --preferred-challenges dns --register -d booda.me -d * .booda.me
I’m a...
4
votes
3
answer
24
Views
How can we make DNS entries using Route53 to a domain hosted with an external (third party) domain provider
We have purchased a domain lets say "xyz.com" from a third party domain provider. We have our resources in two AWS regions and we want to implement failover between the two regions using Route53.
We have created a hosted zone with the same name as of our domain i.e. "xyz.com" and created record set...
1
votes
2
answer
3.1k
Views
how can I get raw body string in Lambda (API gateway Lambda proxy)
After enabled CORS on API gateway, here is the request I sent to the http end point:
$.ajax({
type: 'put',
url: 'https://xxxxx.execute-api.us-east-1.amazonaws.com/dev/artist/application/julian_test',
data: {params: {param1: "543543", param2: "fdasghdfghdf", test: "yes"}},
success: function(msg){
co...