Questions tagged [amazon-web-services]

ONLY QUESTIONS ABOUT PROGRAMMING ARE ON-TOPIC. General server help can be obtained at https://serverfault.com Amazon Web Services (AWS) is a collection of commercial services centered around virtualized tools.

0
votes
0answers
5 views

Signature calculation fails for s3 bucket upload using curl.

I am struggling to upload object on s3 bucket using curl and openssl(which I have to use as required). Please find below my script for upload. #!/bin/bash -e # Upload a file to AWS S3. ...
0
votes
0answers
5 views

Auto mounting EFS on EC2 instance

I created an EC2 instance and an EFS, and was able to mount EFS properly on the instance. I need to auto mount in case the server is rebooted. According to the documentation, i do that following in ...
0
votes
0answers
12 views

How to see the virtual-environment that an AWS Lambda runs in?

Amazon's Lambdas appear to create a new virtualenv (assuming you use lambda-uploader and have a requirements.txt file). I have been trying to see what's in that virtual environment, using pip freeze ...
2
votes
2answers
26 views

How to have the refresh token?

I need to use Google Play Android API, i follow a lot of instructions to be connected with the API but i block at one.(https://developers.google.com/android-publisher/authorization) Exactly at the ...
0
votes
0answers
15 views

AWS C++ SDK, How to send a a custom email using SES?

I'm trying to send and email from my Qt / C++ application using the sendRawEmail function of the AWS / SES library. I will use this function because I will have to send emails with attached documents. ...
1
vote
0answers
13 views

Combining metrics of multiple docker containers of same service

Was wondering if this is possible. I have an Asp net core 2.1 app that is hosted in AWS as ec2 instance. There is an autoscale policy to bring it up to three instances if needed. In this service ...
0
votes
0answers
8 views

AWS service replacement for Cassandra

There is a Asp.Net system which serves request. The system is currently hosted in an in-house server farm. The system generates a unique id for every request that comes to this system. The unique id ...
0
votes
0answers
12 views

Upload File as JSON to S3 using Java SDK causes error [duplicate]

I'm trying to upload files A string to S3 in JSON format. The uploads work fine, but they upload as text. When I download them they have the extension .txt... Here is that code: try { AmazonS3 ...
1
vote
1answer
16 views

ssh to docker container hosted on EC2

I want to run a docker container on EC2 and also I need to ssh into the container for debugging purposes. I have 2 ports open for ssh 22 and 8022 on my EC2 instance(security group applied). The ...
0
votes
0answers
9 views

How to SSH in AWS EC2 instance using Terraform

I am trying to SSH in Linux Ec2 instance and install Nginx on it. To ssh, it asks for private-key and I passed .ppk file but it gives an error message "Failed to read key "PuTTY-User-Key-File-2: ssh-...
0
votes
0answers
10 views

Decode base64 encrypted LogResult of “AWS Lambda invoke” in Windows PowerShell

I am using AWS Lambda Invoke to test my lambda functions from Powershell. Unfortunately I can't manage to get a usefull log result. If I decode the result like this there are not line breaks ...
0
votes
0answers
7 views

AWS PHP SDK Rekognition removing multiple faces from Collection strange behaviour

I am trying to remove multiple faces from a collection (the blurry ones) in a single command, otherwise I get throttled. The strange part is when I send the command with a hardcoded string, it works ...
0
votes
0answers
7 views

Has anybody ever got a Route53 Health Check working with a CloudWatch alarm Terraform?

I've been banging my head against a wall trying to get a CloudWatch alarm working with a Route53 Health Check and it's just not happening. I can manually set things up in the AWS GUI and it works ...
-1
votes
0answers
11 views

Why is coturn server not streaming?

I deployed the kurento and coturn server at first ec2 instance. On the second ec2 instance I downloaded the java examples and correctly passed the ws url. Now when I run hello world example from ...
0
votes
0answers
16 views

Facing issue: scan dynamo DB

I've created apis in nodejs to scan and query dynamoDB table(contains 70K records). I'm stuck with scan api. I've two APIs for scan - 1. Scanning table with limit of 500 - getting proper response 2. ...
1
vote
2answers
13 views

GPU based alorithm on AWS Lambda

I have a function which perform some mathematical operations and need a 16gb GPU system, But this function will not be triggered always and rest of time my system will not be in use. I came to know ...
0
votes
1answer
12 views

how to set text/plain content-type in api gateway

I have an api gateway that is pointed to s3 and it reads the document and sends back the contents, about 5 paragraphs. It works great, however the content-type on the response is binary\octet-stream. ...
0
votes
0answers
6 views

aws glue s3 target - creating partitions of 20 files

By default when I read two three records also from dynamo DB source and target is s3, even then its creating 20 partition files in target and only two are having data and other are empty files. How ...
-1
votes
1answer
36 views

AWS S3 File Download from the client-side

I am currently trying to download the file from the s3 bucket using a button from the front-end. How is it possible to do this? I don't have any idea on how to start this thing. I have tried ...
0
votes
0answers
8 views

Amazon Lex with Lambda function - error 424 Failed Dependency (Python)

I have copied and editied the OrderFlowers Amazon Lex blueprint to ask for a person's first and last name. When testing the Lambda function, I get the correct response but when trying to invoke my ...
-3
votes
1answer
23 views

Get hostName of EC2 instance via Java

I want to find hostName of the EC2 instance, How can achieve the code in Java Thanks in Advance !!
0
votes
0answers
4 views

com.amazonaws.AbortedException while releasing dynamoDB lock

Hi I am implementing dynamoDb locking in my code. I have a method which contains 2 ids and based on the 2 ids i create few entries in the table in dynamoDb. I have implemented the code as below (...
0
votes
1answer
18 views

How can I access data in s3 bucket from one account to process the data using redshift in another account?

There is huge data in one of my AWS account in S3 Bucket and I want to process the data in some another AWS account using Redshift, I want to save the cost of data transfer and storage since I already ...
-1
votes
0answers
7 views

How to move data to HBase from s3 parquet format

I have parquet files in s3 (Rows : ~600mn ,columns: 10[Mix of Array and Strings]), to make this queryable I want to move this to HBase Tables. I am using Amazon AWS. TIA.
0
votes
0answers
16 views

Errno 2: No such file or directory: SSLError while calling s3.get_object()

I'm trying to load a csv file from my S3 bucket through my lambda function. I get following error when I do so. Errno 2: No such file or directory: SSLError Traceback (most recent call last): File "/...
0
votes
1answer
18 views

Disabled ec2-user ssh access by mistake

I have disabled ec2-user ssh access by removing authorization key and turn on public key authentication by mistake. Now I unable to access the server. Is there any way to gain access back?
0
votes
0answers
7 views

What is the provisioned IOPS for AWS Aurora db t2.small instance?

We are using Aurora mysql db t2.small instance for our development environment. I need to find the max limit of IOPs for t2.small instance. I tried verifying all the settings of my db instance in aws ...
-1
votes
1answer
9 views

AWS notification on exceeding limit

I just started using AWS services. I want to receive notifications if any service usage exceeds limit. After searching for the options I found that same can be achieved suing AWS Cloudwatch alarm and ...
0
votes
1answer
8 views

How to set up a local development environment for PySpark ETL to run in AWS Glue?

PyCharm professional supports connecting, deploying and remote debugging of AWS Glue developer endpoint (https://docs.aws.amazon.com/glue/latest/dg/dev-endpoint-tutorial-pycharm.html) , but I can't ...
0
votes
0answers
18 views

Unload a table from redshift to S3 in parquet format without python script

I Found that we can use spectrify python module to convert a parquet format but i want to know which command will unload a table to S3 location in parquet format. one more thing i found that we can ...
0
votes
0answers
20 views

AWS API Gateway Custom Authorizer not invoked

To start off with, i am pretty new to AWS. Started with pretty basic API Gateway + Lambda integration. Below are my use cases. Created a Lambda proxy Integration request with API Gateway, GET request ...
2
votes
1answer
18 views

MWS API Signature does not match R

I am trying to get data from Amazon MWS API using GetMatchingProductForId operation. When I use Amazon MWS Scratchpad it works perfectly fine. I am now trying to replicate the urls that are sent in ...
0
votes
1answer
10 views

Is it possible to reuse the existing classic load balancers for my new EC2 instances?

Is this possible to reuse ELBs so that I can save money. I have 12 running instances , and 20 ELBs ( some are classic ELB and others application ELB) I noticed that in my $900 bill per month, $350 ...
0
votes
0answers
9 views

S3 Bucket Policy for Amplify Front End

I've got a web front end with AWS-Amplify handling authentication through Cognito. Now I'm trying to set up an S3 bucket to let users upload media files to, which works alright when I don't bother ...
0
votes
1answer
16 views

post json directly to amazon s3 bucket from ionic/angular front end

I am struggling to figure out how, or if possible, I can post/put data into an aws s3 bucket from an angular/ionic application... I have a mobile application that has two surveys, one for before ...
0
votes
0answers
5 views

How to add google as a AWS cognito identity provider in AWS CloudFormation template in JSON

I'm using amazon web services. In the AWS CloudFormation I'm creating a template in JSON where I have to add Identity Pool as a resource where I have to use Google as Cognito Identity Provider. If we ...
1
vote
1answer
14 views

aws cli lambda `update-function-configuration` deletes existing environment variables

The documentation on the AWS cil lambda states that ...You provide only the parameters you want to change... Which I assume means that the rest of the settings would still remain the same. However, ...
0
votes
1answer
25 views

DynamoDB. I just want to list items

I am currently working myself through the very helpful Serverless Stack Tutorial. In the tutorial, an AWS Lambda API to DynamoDB is made, with the Endpoints called "create", "get", "list" and so on. ...
-1
votes
2answers
39 views

I have developed am application using PHP7 but on the server there is PHP5 and we cannot upgrade the PHP there

Please help me, I have developed an application using Yii2 Framework which requires PHP5.6 or greater, and while deployment of the application on the test server I have noticed that on the test server ...
0
votes
1answer
19 views

Sending SES email from AWS Lambda - Node JS Error “Cannot find module 'nodemailer”

I have this error message: "errorMessage": "Cannot find module 'nodemailer'" I Googled, and it says install nodemailer. Can someone tell me where exactly do I install this module? I am new to ...
1
vote
0answers
24 views

AWS Lambda access local resource or storage C#

How can I store and access a file in Lambda using C# I used the tmp folder that is available for the lambda but I get an error of could not load file or assembly. How can I solve the error? I used the ...
-1
votes
1answer
9 views

elasticsearch v5 template to v6

I am currently running elasticsearch cluster version 6.3.1 on AWS and here is template file which I need to upload but can't ``` { "template" : "logstash-*", "settings" : { "index....
0
votes
0answers
13 views

Cloudformation intrinsic functions in severless

I would like to use serverless to automate my cloud infrastructure However I can not figure out how to use the intrinsic functions in serverless and I'm wondering should I switch out to ...
0
votes
0answers
14 views

How to debug an Opsworks/Chef cookbook locally on Linux (Debian9) using Centos Vagrant guest (AmazoLinux like)

I search for this since 3 weeks, but didn't found any real answer. The main goal is to save time to test dev Chef cookbooks locally before deploying on production on AWS. All I found is some hints ...
0
votes
1answer
17 views

How to handle consumer execution error in SQS + Lambda?

I configured SQS + Lambda and everything works fine. I am making some simulations and sending messages that create errors. When I do this, the message stays in flight forever and the lambda stays ...
0
votes
0answers
10 views

Start AWS S3 Multipart Upload Java Before Whole File Complete

The problem that I am having is that I am generating a large JSON Object to upload to S3 which is causing memory issues. When I attempt to translate the JSON object to a string so that I can get ...
0
votes
1answer
8 views

AWS EMR on VPC with EC2 Instance

I am doing a reading on AWS EMR on VPC but it seems like it is more of design consideration for AWS EMR Service to access EMR cluster for calls. What I am trying to do is host a VPC with ALB and EC2 ...
0
votes
0answers
2 views

cognito user does not exist when uploading code to elastic beanstalk

aws cognito user not exist i am making angular 5 app with login of aws cognito. Login is working properly with on local when i uploaded it to elastic beanstalk it is giving error User does not exist ...
0
votes
0answers
13 views

additional users to EC2 windows

I have spun up an EC2 windows instance in AWS. I would like to know how to enable login for the users with ssh key pairs in windows? Is it possible or should I just use windows login (username / ...
0
votes
1answer
22 views

How does Java find spark, Hadoop and AWS jars in Intellij

I am running spark application on IntelliJ in Java. I have added spark, Hadoop and AWS dependencies in pom.xml but somehow AWS credentials are not being loaded. The exact error I get is Caused by: ...