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 check if the Key Pair is still used in EC2?

Our previous Devops created several Key Pairs in EC2. It looks like some of them are not used anymore. So I would like to delete them. How can I find when the Keypairs were created and if they are ...
0
votes
0answers
8 views

Running Hadoop Streaming on Amazon AWS EMR Cluster

Hello I'm pretty new to MapReduce. I'm trying to use python to run simple MapReduce program on AWS. My mapper and reducer code seems work well locally, but as I try to add step to the cluster to run ...
0
votes
0answers
7 views

AWS Cognito + aws-amplify: session state always keep user logged in?

I'm using AWS Cognito and aws-amplify to manage user authentication. When I load up my app, I call Auth.currentSession() which seems to always return the user I was logged in as if I do not explicitly ...
-1
votes
0answers
7 views

How to use “ Compute” loadbalancer name created by Elastic Beanstalk environment in terrafrom

I have to extract or compute the loadbalancer name from Elasticbeanstalk environment created by Terraform. I have one elastic beanstalk environment created by terraform and there we are using ...
0
votes
0answers
8 views

Django-tinymce static files are not loading, but all other static files are on Amazon S3

I've been using this guide https://www.codingforentrepreneurs.com/blog/s3-static-media-files-for-django/ to get to use S3 for my site's static files. I had TinyMCE working locally, but once I ...
0
votes
0answers
11 views

AWS Glue, output one file with partitions

I have a Glue ETL script that is taking a partitioned Athena table and outputting it to CSV. The table is partitioned on two criteria, unit and site. When the Glue job runs it creates a different CSV ...
1
vote
0answers
6 views

How to continue on upload while getting AWSClientException for local file read permission issue

How to continue on upload while getting AWSClientException for local file read permission issue during Uploading to s3 bucket using transferManager.uploadDirectory?
0
votes
1answer
10 views

How to programmaticly get 'distribution-id' to invalidate cloudfront cache?

Need to programmatically get the CDN_DISTRIBUTION_ID so that CloudFront caches can be invalidated post-build regardless of distribution. I've got cloudfront to invalidate as intended but it requires ...
-1
votes
0answers
12 views

AWS EC2 with HTTP application server in C++

Let's say I am writing a server in C++ which will be deployed to AWS EC2 and needs to be able to handle HTTP requests: // User login endpoint. void SomeClass::Login( ... ) { // Validate the ...
-1
votes
0answers
15 views

AWS accounts setup using AWS Organisations

I am setting up AWS organisations for our development and production accounts. Accounts should be set up in such a way that, Parent is the parent account for both Development and Production account. ...
1
vote
0answers
16 views

Golang MSI can't see mounted drives on windows

So I have an windows msi installer that I created by cross compiling from a golang program and installed on a client windows machine. The program sends data out from a folder on the windows machine to ...
2
votes
1answer
16 views

AWS CloudWatch log and disable log on server itself with springboot

In my springboot application, I configure to write logs to AWS CloudWatch, but the application also generates a log file log on the server itself in the folder /var/log/, now the log file is even ...
0
votes
1answer
9 views

AWS - IoT end-point within VPN

We have a corporate WAN that spreads across multiple factories all over India. Can we set-up a VPN with AWS such that, device data can be sent to IoT end-point not exposed to internet; but, limited to ...
0
votes
0answers
15 views

AWS Cognito - Logging end user activities for auditing

I am using Cognito for authentication. I am using the default sign-in page application for the end user to login to the application. I need to log end-user activities related to the sign-in page for ...
0
votes
1answer
10 views

Can ELBs be used to route traffic to other hosted services by URL?

Let's say I have web services at www.mydomain.com and something.anotherdomain.com (a hosted SaaS, for example). I want to set up a router on, say, xyz.mydomain.com to send HTTP traffic to something....
0
votes
0answers
10 views

Permissions error creating .bak back-up of SQL Server database on Amazon RDS

I've inherited a website running on AWS. What I want to do is take a back-up of the SQL Server database (which is on Amazon RDS) so that I can set up a development environment locally. I have log-in ...
0
votes
0answers
7 views

Elastic Beanstalk “error TS2688: Cannot find type definition file for 'node'.”

I'm trying to deploy an app to elastic beanstalk's NodeJs Platform (10.15.3) but as it builds (the Node commmand is npm start --production) I'm seeing the following errors in logs: npm run build [email protected]
0
votes
0answers
8 views

Reach time of a call between application (expo - react-native) and api flask

I made an application with expo (react-native). It's connected to a flask (python 3.6) api on an ec2 server on aws. For some reason my application takes some time to reach the api. To explain myself: ...
0
votes
0answers
9 views

Access Key and Secret Key for AWS Educate Starter

So I use AWS Educate Starter for one simple Reason: I want to UPLOAD an image from iOS to S3 and then get its URL. In order to do so I need an access key and an secret key, which I can find, as I ...
0
votes
0answers
7 views

How to subscribe the AWS AMI from AWS Marketplace. Is there any API client for that, would like to write in Python3

I am trying to subscribe AWS image from there Marketplace. I am using the python technology to achieve this. In EC2 client describe_image() method is available by using this i am able fetch all the ...
0
votes
1answer
10 views

ECS Error: “The closest matching container-instance is missing an attribute required by your task”

I have created a ECS Service, which is not able to run any tasks in the EC2 containers. I keep getting this message under the "Events" tab for Service. service QA-SVC was unable to place a task ...
0
votes
0answers
9 views

aws-sdk CORS Failure: “Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin'” For Quicksight API in React

I'm trying to register a temporary quicksight user and generate an embed url to put in my React App. However, when calling the register user api I get the following error: Access to XMLHttpRequest ...
0
votes
0answers
19 views

Redshift - Not able to connect from local machine

I have the following setup. I have a 2 public subnet's and 4 private subnet's. In public subnet I have a OpenVPN and another demo server. In private subnet I have one instance. I have launched a ...
1
vote
1answer
19 views

I would like to get only the contents of an index which I created in AWS elasticsearch without json key

I need the content of a json data indexed in AWS elastic search without getting Json key(when the indexid is provided) I have tried filter_path to get the source content. But it has the key of the ...
0
votes
0answers
16 views

How to protect some files/objects in public bucket?

I would like to create a public read aws s3 bucket with some files read restricted by a IAM role. First of all: I using amplify cli for deploying my «static» website. The website is a react app This ...
0
votes
0answers
7 views

Octopus Powershell Supress Docker login warning

I am running a powershell script in Octopus as part of my build. I have to login to AWS ECR and Push the docker image to ECR. I am running this command inside my powershell (aws ecr get-login --no-...
0
votes
1answer
25 views

How does Bastion improve security of an EC2/EMR?

To connect to a remote machine, my public key needs to be added to its authorized_keys. By that logic, the public key for bastion would have an entry in authorized_keys of an EC2. Doesn't that mean if ...
0
votes
0answers
8 views

Data Pipeline: Stop creating empty file in S3

I am using AWS data pipeline to take backup of RDS table data on certain condition and store that backup CSV file in S3 bucket. It's working fine when there is data to backup but when there is no data ...
0
votes
1answer
10 views

Could not load file or assembly 'AWS.Logger.Core'

I have created a new project and added Nlog.AWS.Logger.i have created AWSTarget object and when i run it, it gave me the following error. Can anyone help? Could not load file or assembly 'AWS.Logger....
0
votes
0answers
16 views

What further steps do I need to allow my static site hosted on s3 to make https requests to my server on elastic beanstalk?

My current stack is pretty simple: Backend: Django 2.1.1, python 3.6 I am running it on elastic beanstalk with an application load balancer. I have port 80 listening for HTTP and port 443 listenin for ...
0
votes
0answers
15 views

Need to intercept @SqsListener

I have to retrieve header from Sqs message, but i can't change current code so header autowire is not an option. @SqsListener(value = "...") public void processMessage(Message event) { processor....
0
votes
1answer
11 views

Scheduling a future version of AWS S3 files

I'd like to queue up a collection of new versions of web site assets, and make them all go live at nearly the same time. I've got a series of related files and directories that need to go live at a ...
1
vote
0answers
16 views

Unable to push a single row data into Redshift table. Gives assert error

If I have a sample dataframe having only one row and I have to push its content to a table on redshift using psycopg2 with python. It throws an error as ASSERT ERROR. But when I try appending the ...
0
votes
0answers
9 views

AWS RDS MySQL character set

I've deployed an app to aws with elastic beanstalk (by this tutorial) I'm getting an error about cyrillic characters. For example "Привет" is being saved as "??????". So I tried to a new parameter ...
0
votes
1answer
17 views

Simulating message persistence in SNS using SQS

We are evaluating SNS for our messaging requirements to integrate multiple applications. we have a single producer that publishes messages to multiple topics on SNS. Each topic has 2-5 subscribers. In ...
0
votes
0answers
10 views

i want to see a validation-accuracy of aws log

my aws trainingjob log so many different from another people's log I want to see my validation-accuracy but I can't find it. I'm a beginner and I don't know. [05/23/2019 04:35:41 INFO ...
0
votes
0answers
10 views

Changing record set weight in a hosted zone in Route53 using Python Boto3

We have an hosted zone, with multiple records. There is two A records with weighted routing policy. test.xyz.com weight:50 test.xyz.com weight:50 The problem is I want add one more record set, with ...
0
votes
1answer
26 views

Error when sending mail with attachment using PHP mailer: Transaction failed: Missing start boundary SMTP code: 554

Im trying to send php mailer email with pdf attachment and its showing this error: E-mail not sent. Error: SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: Transaction ...
0
votes
0answers
9 views

Programmatic Checkout from Amazon.com ( & Amazon.in )

I am trying to automate the purchase of products listed on Amazon.com in Python. We would like to make 1-click purchase with the saved payment details. I understand Zinc enables the automated ...
0
votes
0answers
15 views

Dividing a database of closely related tables into smaller databases

I have a monolith application which i need to divide into smaller services.For the database layer, I need to divide the database into smaller independent databases. I would like to know how do I ...
0
votes
0answers
12 views

Built-in: Explorer and Built-in: Fuzz are not able to click on the permission dialog box that appears when the app gets launched

We are trying to test our application on AWS Device Farm using Built-in: Explorer and Fuzz tests provided by AWS Device Farm but they are not able to click on the permission dialog box when the app ...
1
vote
2answers
31 views

AWS S3 file URL generation for user to download the file

How can we get the URL for the amazon S3 bucket files. I have tried to get the file by below format http://s3-REGION-.amazonaws.com/BUCKET-NAME/KEY This format will be helpful to download the file ...
0
votes
1answer
19 views

Kubectl get svc command throws Access Denied error

Using AWS CLI and typing the command Kubectl get svc throws the below error "An error occurred (AccessDenied) when calling the AssumeRole operation: Access denied" Can anyone provide directions on ...
0
votes
0answers
17 views

EMR step did not appear to run/create jobs

I am trying to get EMR to run a simple hello world type app. from pyspark import SparkContext from operator import add sc = SparkContext() data = sc.parallelize(list("Hello World")) data.show() ...
0
votes
0answers
14 views

How to upload or deploy the SAML and deployment packages into AWS Lambda console of lambda functions

I have lambda functions SAML and deployment packages how to upload or deploy the files to AWS Lambda console which needs to be works fine as previously.could you please any one help me on this.
0
votes
0answers
18 views

how do I run an http request from a dynamic IP webpage, thru an AWS static IP, since the endpoint API needs to be from a whitelisted IP?

I am working on a project where I have a Wix site (the important thing is that thru Wix I am forced to use a dynamic IP). The API that I want to send requests to, only accepts whitelisted IPs. I can ...
1
vote
1answer
22 views

How to sign the CSR to enable a private Certificate Authority (CA) in AWS ACM? (How to generate version 3 cert?)

I'm trying to setup a private Certificate Authority (CA) in AWS ACM in order to setup a direct VPN connection to a VPC without internet access (on purpose). https://docs.aws.amazon.com/vpn/latest/...
0
votes
0answers
18 views

AWS s3 .Net Core API - The remote certificate is invalid according to the validation procedure

So, after 2 days on this i decided to come here I have successfully uploaded a file to a Amazon s3 Bucket on the AWS Website. But now i am trying to upload a file in a s3 on a server of my company. I ...
0
votes
0answers
21 views

.Net Core - AWS Lambda Project enabling DI

I have a Lambda project in .net core and would like to enable Dependency Injection. I have created a Startup class in which I added ConfigureService and ConfigureContainer public class Startup { ...
0
votes
0answers
10 views

Elastic Beanstalk instances not sending health data after modifying UserData in AWSEBAutoScalingLaunchConfiguration

I'm deploying an app on Elastic Beanstalk and I need to modify the UserData in AWSEBAutoScalingLaunchConfiguration, which is normally generated by Elastic Beanstalk. I need to do this to run the cfn-...