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
6 views

Recreate SecurityGroup if cloudformation stack is deleted and the same security group already exists

I deleted a cloudformation stack but retained a few of the resources like the security groups. Now when I try to deploy the stack again it isn't able to create the security groups again since they ...
0
votes
0answers
7 views

ECS Task definition by tag

we have automated creation of fargate services and task definitions from our CI system. Everything is named except task definitions, which just get a generated ID. We tag them with the ...
0
votes
0answers
11 views

Not all bytes were read from the S3ObjectInputStream, aborting HTTP connection WARNING

I am trying to read a very big file (almost 1 GB) from S3. However the getobject fails to read the file with the error WARNING: Not all bytes were read from the S3ObjectInputStream, aborting HTTP ...
0
votes
1answer
4 views

Try to get details from AWS beanstalk configration files

I am adding SNS to applications on AWS Beanstalk. I want to know which SNS topics the application/environment is attaching to. I tried aws --region us-east-1 elasticbeanstalk describe-environments ...
0
votes
0answers
12 views

No nodes available in AWS EKS

I am trying to setup an AWS EKS cluster and followed the instructions in https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html. But while trying to setup the dashboard I realized I do ...
0
votes
1answer
8 views

Queue is needed when I use aws api gateway/lambda as web server?

I am learning Apache Kafka as Queue. I can understand queue is needed when I run web server not to drop burst traffic. Queue can help not to drop data for rush hours. Unless using Queue, the only ...
0
votes
1answer
8 views

How to get Cognito Identity Id in Post Confirmation Lambda Trigger in Python using Amplify React?

I'm working on a ReactJS project and using Amplify for Signup/Signin. On signup, I have a post confirmation lambda trigger in Python that stores the user information (username, cognito id, etc.) in an ...
0
votes
0answers
7 views

Only the creator user can manage AWS kubernetes cluster (EKS) from kubectl?

We have two clusters, named: MyCluster (created by me) OtherCluster (not created by me) Where "me" is my own AWS IAM user. I am able to manage the cluster I created, using kubectl: >>> ...
0
votes
0answers
7 views

API connection to redshift in a private subnet?

I want to setup a connection between an on premise environment for an API connection with redshift in my VPC. This requires Redshift to have a public ip and endpoint. What is the optimal and ...
0
votes
0answers
6 views

How to use Aws Temporary credentials in Nifi

I have to use aws temporary credentials AccessKey, SecretKey and Token within nifi process to access S3 objects. AccessKey, SecretKey and Token will be provided by an Api call. How to use these ...
0
votes
1answer
18 views

Sending message from webpage hosted in S3 to SQS queue

I'm trying to figure out a way to do my first project on AWS. I have this page http://nlprism.sciusanalytics.com/ hosted in an S3 bucket. After the user writes a URL and posts it, I want to pass this ...
-1
votes
0answers
12 views

AWS lambda function python/pysparkl

I have a lambda function that triggers when an object hits specific folder in s3 bucket and moves to different folder in the same s3 bucket. But i am trying to modify the lambda function where the ...
-1
votes
0answers
9 views

dockerfile building correctly in AWS ec2 but not building locally

I am unable to load an application through localhost using docker on my local machine but the same Dockerfile works perfectly on an AWS EC2 instance. Here is the Dockerfile: FROM ubuntu:12.04 RUN ...
0
votes
0answers
13 views

Does AWS Snowball use SSD or HDD storage?

I glanced at the specifications page: https://docs.aws.amazon.com/snowball/latest/ug/specifications.html But I could not find a clear answer to this question.
0
votes
0answers
8 views

Is it possible to whitelist the IP addresses dynamically in AWS API Gateway

I have set up AWS API Gateway for the lambda and Http endpoints and applying service availability features. I can whitelist the IP address based on the range and add rate limiting, but Is there a way ...
0
votes
1answer
15 views

How should I post a file to AWS Lambda function, process it, and return a file to the client?

I'm using serverless-http to make an express endpoint on AWS Lambda - pretty simple in general. The flow is basically: POST a zip file via a multipart form to my endpoint Unzip the file (which ...
0
votes
0answers
24 views

Is there a required way of importing Laravel Log Class?

A Laravel project is working locally well but fails when deployed to an EC2 instance using ElasticBeanstalk. The error is: PHP Fatal error: Uncaught Error: Class 'Log' not found in /var/app/current/...
0
votes
0answers
15 views

Execute shell scrip from Git in specific EC2 instance

I have a shell script. Per rule in my organization we should save all the code in GitHub and use it from there. How can I run this script in a specific set of EC2 instances from GitHub using Jenkins?
-1
votes
0answers
11 views

How to create EMR cluster with EC2 spot fleet bidding instead of on demand or spot price using terraform [on hold]

I'm new to the terraform, can somebody provide me a sample terraform (.tf) file for creating the EMR cluster using ec2 spot fleet instead of on demand or spot instance.
1
vote
1answer
18 views

Is dynamoDB' item available for querying immediately?

I added some items to dynamoDB table using DynamoDBMapper.save. I then queried the item immediately. Will I definitely get the saved item? Or I should put thread.sleep() before querying the item? In ...
0
votes
0answers
11 views

Laravel Illuminate \ Database \ QueryException could not find driver SQL

I have an EC2 linux2 ami instance set up and running on aws. I am needing to connect to a SQL server DB that lives in Azure. I followed the instructions to install the MSSQL driver, but I'm still ...
0
votes
0answers
11 views

Transferring files generated to AWS - Google Colab

Trying to retrieve (transfer to another server) some processed data in the form of GBs of images. Is there a way to scp or otherwise transfer files generated in Colab to AWS? Or, another web endpoint?...
0
votes
0answers
12 views

AWS cloundfront video speed loading

I have s3 bucket and cloundfront connected to it. I use afterglow player to load html5 videos from cloundfront on my website. The file has 60mb in mp4 format. It lags few seconds after few seconds. ...
0
votes
0answers
11 views

AWS API Gateway + Firehose package multiple records

We have an application which accepts 10K requests/second, put them into S3 and then process them. Currently we're using Kafka but we would like to replace it with Firehose for different reasons (...
0
votes
0answers
8 views

AWS API Gateway Custom Base Path Mapping Cannot Invoke Authorizer

My Lambda Authorizer is of the "request" type. I have many working endpoints using this authorizer. I have a Custom domain name and several base path mappings, for example: /dev v1:* /prod v1:...
0
votes
0answers
6 views

aws mobilehub no-sql batch update with append set

I am trying to update attributes of fields of two different tables in dynamodb via android application. After searching a lot I found this:- dynamoDBMapper.batchSave(modelObj1, modelObj2); This ...
1
vote
0answers
18 views

Unable to register ECS task from boto3

I am trying to create a basic cloud infrastructure which can run through any AWS account. I am using python boto3 module to create a cluster,task definition and a service, which are created ...
0
votes
1answer
16 views

Soft memory limit for AWS ECS task defined by docker-compose.yaml

Amazon provides ebs-cli compose command which can set up task from docker-compose.yaml But I am not able to declare memory limits (especially soft one) for such task. Deploy option is not supported. ...
0
votes
0answers
10 views

Error: route table and network gateway belong to different networks

I'm trying to connect a route table and an internet gateway in the AWS VPC dashboard. It's serving me this error: route table and network gateway belong to different networks Specifically, I'm ...
1
vote
0answers
18 views

AWS Classic ELB instantly returning 504 to the client(apache commons or native java client only) without the backend receiving the request

I am encountering a strange behavior where AWS Classic ELB is sending an indeterministic 504 response to the client instantly. The backend server (running on a K8S cluster) never receives a request. ...
0
votes
1answer
16 views

How to format images for web file transfer

I am trying to write an app which sends images from a phone to an Amazon S3 bucket. Currently I am testing the app with png files. Everything seems to work accept the images are not being formatted ...
0
votes
0answers
13 views

how to create IAM role for a spring boot rest api web service deployed in aws ec2 instance

I am new to AWS. What I have done : created a spring boot rest web service with a few rest api exposed checked out the api in aws ec2 instance execute the spring boot application I have enabled ...
0
votes
1answer
16 views

Aws Rekognition Text detect

I have been trying to use the Rekognition API to detect text in an image. I have enabled full access for the Rekognition API (IAM), and am configuring the credentials and region in config of my app. ...
0
votes
0answers
16 views

error when publish data to aws IoT using BG96 and MQTT protocol

I'm trying to publish my data to Amazon web services using BG96 (NB-IoT device that use AT commands) I'm following the official documentation (Quectel) so I configure SSL parameters ( with the ...
0
votes
0answers
24 views

How to build a Request AWS .net

I want to use CostExplorer to get the usage report to know information about consumption of services. To do that I am creating a AmazonCostExplorerClient object and using the GetCostAndUsage method. ...
-1
votes
0answers
18 views

Java Autoscaling AWS instances

I need to sale up instances of existing Auto Scaling Group by setting desired instances using the java springboot api. I am nto sure where I should start. I check Autoscaling group, but most of the ...
1
vote
0answers
13 views

How to get a built docker image within a codepipeline to the deploy step with blue/green-deployment

I've got a flow where I want a codepipeline to trigger on git commits on Github, go via some test and build steps and end in a codedeploy step where the code will be deployed on a ECS cluster with ...
0
votes
1answer
29 views

AWS Lambda function increasing Max Memory Used

I have an AWS Lambda function built in .NET Core 2.1. Which is triggered by a SQS Queue. This function has a Max Memory of 512MB and a timeout of 2 min. Looking into the CloudWatch logs I'm seeing ...
0
votes
0answers
15 views

Scheduling an AWS Lambda function to execute every X minutes on specific days of the month

I have an AWS Lambda function that I'd like to be automatically invoked through a CloudWatch rule every 45 minutes starting at 6AM on the 1st three days of each month of every year. Expected ...
0
votes
1answer
10 views

AWS API Gateway: pass through file download as binary

I would like to use API Gateway to pass through binary payloads from a local Express.js server that sends ZIP files in response to GET requests. However, API Gateway seems to interpret the payload as ...
-1
votes
1answer
15 views

How to migrate private existing domain to aws EC2?

I am having a private domain how can I migrate it to AWS EC2. The example I am having a website www.exmaplesoft.com and this is already in running condition I want this to be migrated to AWS EC2.
0
votes
0answers
7 views

How to understand, which Authorizer is used for API Gateway resource already deployed on stage

I don't know the way to understand, which Authorizer is used for API Gateway resource already deployed on stage. As an example, we have 2 Authorizers for API Gateway. And we have only 2 resources in ...
0
votes
0answers
12 views

Access codecommit in account A from lambda function in account B?

Usecase I have a codecommit REPO in account A. I have my lambda in account B. I need to access the codecommit repo from my lambda that is in account B. What I did I created a role with name ...
0
votes
0answers
6 views

Invalid KeyPair does exist on EC2 to launch Spark

Am new to AWS - So please bear with me. Am trying to launch Spark instance on Amazon EC2. Am not so sure where the issue with keypairs. I even tried to launch with new keypairs as well but ended up ...
2
votes
1answer
36 views

What interface should a Serverless scheduled java function implement?

I'm trying out writing a Java AWS Lambda using Serverless. While my Lambdas triggered by HTTP endpoints deploy and work correctly, my attempt at at scheduled one fails: The config looks like: from ...
0
votes
0answers
16 views

Force serverless lambda function to use boto3 installed in venv instead of the one already available in AWS Server

I am facing issues with boto3(1.9.42) readily comes with AWS which fails when I run certain commands. But same issue is not faced when I run the script locally because boto3 installed locally is 1.9....
1
vote
0answers
14 views

on AWS EC2 instance executable php is not found in /opt/php/php-5.6

I have an ec2 instance provided by my organisation and I see PHP is in /opt/php/php-5.6. There is no PHP executable/binary in /usr/bin folder. also I see 2 httpd on the machine. /opt/apache/httpd/...
0
votes
0answers
5 views

Get ADFS SAML 2.0 Assertion Response from command line using curl

I would to know WINDOWS Server ADFS really exposes an API to post SAML request en get saml assertion response. When I enter this in my browser : https://<myfqdn>/adfs/ls/IdpInitiatedSignOn.aspx ...
0
votes
0answers
8 views

Aws run command list filter failure

I am trying to fetch run commands list using .net sdk with status filter. Some of the filter doesn't work like Cancelled , In Progress. I have used same filters on aws console as well but again ...
1
vote
1answer
19 views

Access api-gateway without login, then create account and make Authorization

I would like to make the following scenario in my web and mobile app: user opens an app (now web, later mobile) without Cognito login, creates few entities, views analytics provided by the service (...

http://mssss.yulina-kosm.ru