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

How to schedule a retrain of a sagemaker pipeline model using airflow

I have already implemented a sagemaker pipeline model. In particular for an end-to-end notebook that trains a model, builds a pipeline model and deploys it, I have followed https://github.com/awslabs/...
0
votes
0answers
4 views

Terraform: How to always generate a “fresh” EIP for new instance?

I have the following problem which I'm trying to solve with Terraform (0.11): I have a couple of AWS EC2 instanced and Elastic IPs which are created with TF. Now I need to create a fresh EIP in case ...
0
votes
0answers
4 views

Video stream to S3

for a use case I want to store the video streaming data for 15 days while the maximum retention hour is 7 days as per the docs. I tried to create a stream with more than 15 days and created ...
1
vote
0answers
11 views

Orange API: How to post on AWS with HTTP from Live Objects?

How to send data from Orange Live Objects to AWS using HTTP POST, knowing that AWS needs authentication (CA, cert and private key) ? Currently I got a 403 forbidden error as I don't send anything ...
1
vote
0answers
12 views

Am I using dependencies compiled against system packages?

Following a recent announcement by AWS that they are updating the AWS Lambda execution environment, I'm trying to understand some terminology that they used. It appears that if I'm not using any '...
0
votes
0answers
11 views

Amazon SQS message disappeared

I have an Amazon SQS queue and a dead letter queue. My python program gets a message from the SQS queue and then, if it raise an exception, it will send the message to the dead letter queue. Now I ...
0
votes
0answers
6 views

Is there way to see kahaDB logs in AWS using amazonMQ?

We are in the process of migrating from activeMQ to amazonMQ on AWS. ActiveMQ and AmazonMQ internally uses kahaDB as there data store. Earlier we were able to see kahaDB logs files while using ...
-1
votes
1answer
8 views

Amazon SDK .net. Getting bucket website url

I am using amazon sdk for .net. With amazon S3 I am using static web hosting. I uploaded sources. I got endpoint to the static site like http://[bucketname].s3-website.eu-central-1.amazonaws.com How ...
0
votes
0answers
6 views

AWS API Gateway with VPC link not stable

I have deployed a API in AWS API gateway with VPC link which connects to a ELB endpoint. The problem is the API works not very stable. When I test it in both AWS console and Postman, 4 out 10 times, ...
0
votes
0answers
7 views

Cannot connect frontend app{Angular} to Backend{SpringBoot} in kubernetes

I am trying to containerize my angular+java app in Kubernetes cluster. I have a frontend deployment and a backend deployment in my k8 cluster. My database is in AWS{RDS}. But i am confused that what ...
0
votes
0answers
4 views

Amazon Lambda & API Gateway - 'event.source_ip' returns 'null'

I'm trying to grab the IP of users. I followed guides on how to do this, and found answers that use event.source_ip in the lambda function, which connects to the API Gateway. The result returns '...
0
votes
0answers
5 views

i get the this error -->> module 'sagemaker' has no attribute 'describe_training_job'

I am using AWS, but I get the following error in this code: -->> module 'sagemaker' has no attribute 'describe_training_job' This is the code: training_info = sagemaker.describe_training_job(...
0
votes
0answers
15 views

How can I check why exe file not getting data in AWS Server

Hi I'm stuck in problem as my exe file in amazone server server not getting data as previously its working fine and now not getting a single bit data but however my exe file working and getting data ...
0
votes
0answers
6 views

How do packets flow when I have a ELB, and NAT gateway in a public subnet that distributes traffic to three of my nodes in my private subnet?

I was wondering if someone could answer the question for me? My understanding right now is: Client makes request and packets first hit the route table for the public subnet Route table routes the ...
0
votes
1answer
14 views

Redirect www.domain.com to https://www.domain

Currently having problem: if I send someone a link, for example www.domain.com and he clicks it, default browser Safari or Opera is opened but site cant be reached, If that same browser I alter domain ...
0
votes
0answers
15 views

How do i parse the key value pair and table data from the amazontextract response?

I am extracting the key value pair and tables using amazontextract using .Net , how do I dynamically extract the data from key value pair and table obtained in the response of analysedocumentrequest?
2
votes
1answer
23 views

AWS Lambda finish before sending message to SQS

I'm running a "Node.JS" lambda on AWS that sends a message to SQS. For some reason the SQS callback function get execute only once every couple of calls. It's looks like that the thread that running ...
0
votes
0answers
6 views

Is there a way to connect from Mulesoft 3.9 to DynamoDB?

I'm setting a connection from Mulesoft to DynamoDB. I found out that the connector was deprecated and is only available to version 4.0. Is there a way to make my own connector using Javascript?
0
votes
0answers
15 views

Fastest way to do S3 copy from one bucket to another

I have a file which is encrypted in KMS key1 in my bucket1. I need to transfer it to bucket2 and encrypt it using KMS key2. I was initially using the GetObject and the PutObject API. But this takes a ...
0
votes
0answers
9 views

Not able to get lambda invoke function query for API gateway

Only getting ARN URL: I remembered, previously it displays permission query which we have to execute manually in command line but after clicking ok button it displays invalid lambda function. Will it ...
0
votes
0answers
6 views

AWS API Gateway Document Lambda Proxy

I am trying to auto-generate an API hosted using AWS API Gateway, which has a Lambda proxy. The Lambda is .NET Core (not WebAPI). Is there a way to generate OpenAPI (swagger) files from the Lambda ...
0
votes
0answers
14 views

Best way to set custom path/ prefix in a aws s3 bucket

Maybe it is duplicated of this question: Write to a specific folder in S3 bucket using AWS Kinesis Firehose. But maybe in the last year appeared new options. I would like to know which is the best ...
0
votes
0answers
17 views

How to manually expire the token of login cognito -user in Nodejs

I am using aws-cognito for authentication. In my application, user admin can remove the role of other user. In that case if user is already login to the application/react,he still can access the ...
0
votes
0answers
11 views

Laravel Cache in jobs and views email template on aws server with bitbucket pipeline

I have getting issue in Laravel cache my code is working on local server but when i deploy the code on server it will getting email template from cache directory. I have remove all Laravel cache by ...
0
votes
0answers
13 views

S3 Cross Account Sync - Cannot sync source encrypted objects to destination

I want to sync data from my Dev Account S3 Bucket (dev-bucket) to Prod Account S3 Bucket(prod-bucket). Some of the objects are encrypted in the dev-bucket and other are non encrypted. I am able to ...
0
votes
1answer
10 views

AWS EB Route Problem When Passing Encoded Param

I have a route that passes a value through req.params app.get('/someroute/:val' => res.send(req.params.val)). This value is actually a URL that's been encoded. I have no problem hitting this route ...
0
votes
1answer
13 views

Import Module via AWS Lambda Console Editor

Trying out an application in NodeJS. Have the following imports var https = require('https'), aws4 = require('aws4') However, get the error "errorType": "Runtime.ImportModuleError", "...
0
votes
0answers
12 views

ECS cluster not properly distributing Tasks accross two EC2 instances

I have a ECS Cluster with 5 services. Each service has one task each. I have two EC2 instances. The /etc/ecs/ecs.config file in each EC2 instance has the following entry. ECS_CLUSTER=qa-cluster ...
-1
votes
0answers
25 views

Reading excel file from s3 using pandas in lambda and convert to csv

I'm trying to read an excel file from a s3 bucket using python in lambda, do some manipulations using pandas, convert it to csv and putback to same bucket. import pandas as pd import boto3 import os ...
0
votes
1answer
13 views

AWS Random unhealthy instances

i have target group that hold around 3-4 servers starting this week, we start seeing an intermittent unhealthy alarms altho it mostly just for 1 instance and very short (1-2 minutes) any idea why ...
0
votes
0answers
17 views

Why php module not running despite being loaded on ec2 environment?

I want to run some webpages using PHP on my Amazon Linux AMI environment. Unfortunately, when I view the PHP page in my browser it just shows the code. (e.g., <?php phpinfo(); ?>) To start, I ...
0
votes
0answers
10 views

Cannot make get/post requests to django server on elastic beanstalk

I want to make http requests to my django server which is hosted on elastic beanstalk. My static react site is hosted on s3 buckets. I made it so ALLOWED_HOSTS = ['*'] just to see what would happen, ...
0
votes
0answers
11 views

express-session does not create session table in aws database

I am using nodejs, passportjs, express, mysql to develop my backend. With the local database, the express-session successfully create session table automatically and insert new row to the table ...
1
vote
0answers
13 views

How can I use Sidekiq to render large PDFs as a background process to avoid Heroku's 30 second timeout for HTTP requests?

I'm no expert, but my hours of googling and stack overflowing haven't given me an answer to my problem, so I decided to make my own question. I'm using Ruby on Rails 5 which I'm tinkering with using ...
-1
votes
0answers
8 views

How to default column value in AWS Glue and how to pass input file name to AWS Glue

I have a table: trxn_dtl ( internal_key INT NOT NULL identity(1,1), Co_Typ VARCHAR(32) , Co_ID VARCHAR(8) , Curr VARCHAR(3) , Prod_Cd VARCHAR(16) DEFAULT “SP” , Dr_Amt DECIMAL (20,6) DEFAULT 0, ...
0
votes
1answer
15 views

AppSync - creating nested mutation with array and objects?

Does AppSync support nested single mutation? I want to call a single mutation which will insert records into two tables, eg: User and Roles tables in DynamoDB. Something like this for example: ...
0
votes
1answer
22 views

How to force deploy to lambda via SAM cli

I am using sam deploy command to deploy my lambda to AWS. Sometimes I get this error An error occurred (ValidationError) when calling the CreateChangeSet operation: Stack:arn:aws:cloudformation:ap-...
0
votes
0answers
33 views

iOS push notifications are not being sent to device

When setting up Fastlane Match, I broke push notifications (production and staging) on my iOS application (the nuke command probably did it). Production was logging the errors correctly. I generated ...
0
votes
0answers
7 views

Is there a way to invoke an AWS Step Function or Lambda in response to a websocket message?

TLDR: Is there a way to trigger an AWS lambda or step function based on an external system's websocket message? I'm building a synchronization service which connects to a system which supports ...
0
votes
0answers
11 views

DynamoDB Local Secondary Index vs Global Secondary Index

I have been reading the Amazon DynamoDB documentation to compare Global Secondary Index (GSI) and Local Secondary Index (LSI). I am still unclear that in the below use case, does it matter to me what ...
0
votes
2answers
19 views

How to use AWS CLI to deploy lambda function to specific alias or version?

Before I have Lambda version and alias, based on the API update-function-code I can successfully deploy by aws lambda update-function-code --function-name myFunction --zip-file fileb://archive.zip ...
0
votes
0answers
12 views

Parse LiveQuery not receiving events AWS EB + Redis

I am trying to set up parse LiveQuery but am getting stuck. On the client I am able to open the connection, but the LiveQuery won't update the client when I make a change on the server. What am I ...
0
votes
0answers
12 views

AWS Beanstalk - Celery for background tasks

I want to be able to run background tasks in my Elastic Beanstalk. My app is written in Flask. My use case is that I am sending audio files to the clients. But along with sending the audio to clients,...
3
votes
2answers
29 views

Using an AWS Network ACL versus an SG for access control?

I have an Ubuntu EC2 instance running on AWS. I have always used the Network ACL to control access to port 22 instead of using Security Groups. Question 1: For the use case of a single EC2 instance, ...
0
votes
0answers
8 views

how to tell when account accepts invite to organization

I have an AWS Organization and I have some Organization monitoring in place using CloudTrail where I check for Organization API calls and every time there is one, it invokes a lambda function which ...
0
votes
0answers
11 views

Enable AWS JAVA JVM Cloudwatch Metrics

I'm trying to follow the instructions here: https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/generating-sdk-metrics.html I've added -Dcom.amazonaws.sdk.enableDefaultMetrics=...
0
votes
0answers
6 views

How to send API request to AWS Mturk API (Signature V4) using R

The MturkR package (https://github.com/cloudyr/MTurkR) will stop working on June 1st 2019 as AWS is deprecating the legacy API and this package is only configured for the legacy API. I imagine many ...
0
votes
1answer
24 views

Backup EC2 instance to external hard drive

I am trying to backup a Windows EC2 instance onto an external hard drive or S3 bucket. So far i have not been able to find anything that will help me do the same. I only know of the snapshot and AMI ...
0
votes
0answers
9 views

How to fix “java.lang.NoSuchMethodError” for geoip2 java running under Hive

I am having trouble when executing a UDF with geoip2 (maxmind) as dependency under Hive 2.3.4 (java 8) the same code works fine under older versions of hive that use java 7 and also under Presto that ...
-2
votes
0answers
14 views

What are the best practices for perfoming cloud database backup? [on hold]

I'm dealing with an AWS instance and using MySQL. The database is running inside the instance and it's growing rapidly. We are talking about an e-commerce here after all. I am not using AWS RDS. Yet. ...

http://mssss.yulina-kosm.ru