Questions tagged [web]

113793 questions
1

votes
1

answer
572

Views

Monitor incoming IP connections in Amazon AWS

I am using Amazon RDS and I want to know which IP addresses are connecting to my database. My security groups are set to none, and my connection is set to public, I CANT SET IT TO PRIVATE AND SPECIFY AN IP, thats not what im looking for. I just want to know if there is a way to see who is connecting...
Mario Landa
1

votes
2

answer
2.2k

Views

What does “!Sub |” mean in AWS UserData field with YAML syntax?

In this example from AWS docs we have a UserData field that allows a multiline string, using the following syntax: UserData: Fn::Base64: !Sub | #!/bin/bash -xe yum update -y aws-cfn-bootstrap /opt/aws/bin/cfn-init -v --stack ${AWS::StackName} --resource LaunchConfig --region ${AWS::Region} /opt/aws/...
sashoalm
1

votes
1

answer
798

Views

stopping duplicate entry in dynamodb

I have a table called followProduct in Dynamodb and it has following strucure id - item id email - user email product - product id Whenever a user follows a product I am making an entry in the table. I am trying to stop duplicate entry and using the following code let params = { TableName: 'followPr...
Rishabh Jain
1

votes
1

answer
1.3k

Views

aws: error: argument command: Invalid choice, valid choices are: this is the error showing with some number of commands

aws rekognition index-faces \ --image '{'S3Object':{'Bucket':'mybucketname','Name':'S3ObjectKey'}}' \ --collection-id 'image1' \ --region us-east-1 \ --profile adminuser That is my code which I'm running on terminal, I tried but don't know why is that error coming. What changes should I do??
prithvi Raj
1

votes
1

answer
682

Views

How do I tell what version of IIS and Windows my Azure App Service is running on

I received an email from the Azure team that they were planning on upgrading the OS of Azure App Service to Windows 2016. The only advice they gave was to try running on windows ten or Windows Server 2016 in preparation. My application started crashing in a new and unexpected way that might be expl...
David W Gray
1

votes
1

answer
624

Views

How can I unit test a custom element

I have a class that extends HTMLElement. From reading this thread https://github.com/Microsoft/TypeScript/issues/574#issuecomment-231683089 I see that I can't instantiate a custom element with out getting a Illegal constructor. Additionally, the registerElement looked promising as it returned the...
Jonathan Fishbein
1

votes
2

answer
1.3k

Views

AWS Lambda boto3: Filter Instances by Launch Time = today

I'm trying to automatically backup my EC2 instances through AWS Lambda. I used these 2 scripts and they work just fine. https://gist.github.com/bkozora/724e01903a9ad481d21e https://gist.github.com/bkozora/d4f1cf0e5cf26acdd377 But I would like to add the functionality that the scripts only delete or...
T. Moser
1

votes
1

answer
29

Views

can't connect to method in the controller

I'm using asp.net web api. I'm trying to have a positive response from the server, however program is not seeing one of the methods in the controller. It goes into the controller constructor, but not further. The response is Status Code 404, Reason Phrase: Not Found. I understand that it can be a...
Alice
0

votes
0

answer
4

Views

Scraping web with java and downloading a video

I'm trying to scraping this 9gag link I tried using JSoup to get this HTML tag for taking the source link and download the video directly. I tried with this code public static void main(String[] args) throws IOException { Response response= Jsoup.connect('https://9gag.com/gag/a2ZG6Yd') .ignoreConte...
tassi4224
1

votes
2

answer
2.5k

Views

Flask - 404 not found

I am a newbie in the flask development this is my first program in the flask but it shows me this error: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. & this is my code from flask import Flask app = Flask(__name__) @app.rout...
Roxas Zohbi
1

votes
2

answer
1.5k

Views

SessionID keeps changing in ASP.NET Core web api

I am using Angular 2 as front end and Asp.net Core Web API as server side.my problem is when i am trying to maintain session in HttpContext.Session ,But for every request the Session Id is Changing and the data has been lost,Know i want to Manage session in server side Is it possible to maintain ses...
Riyaz Ahamed
1

votes
2

answer
334

Views

get the Alarm object of CloudWatch using boto 2

I created an alarm and want to delete it afterward... The documentation for boto 2 doesn't show how to do that. Any help ? Thanks
Sam Gomari
1

votes
1

answer
252

Views

Scraping a table using the rvest package

I’m totally new to web scraping and I’m exploring the potentialities of the rvest library in R. I’m trying to scrape a table on wellbeing in Italian provinces from the following website, install.packages('rvest') library('rvest') url
Luca De Benedictis
1

votes
1

answer
169

Views

Neo4j on Amazon Marketplace: Unauthorized with default credentials

I just deployed Neo4J from Amazon Marketplace on Amazon ECS I can browse to the GUI but the default credentials (neo4j/neo4j) seems to not work. The error message reads: Neo.ClientError.Security.Unauthorized: The client is unauthorized due to authentication failure. What am I missing?
JOG
1

votes
1

answer
733

Views

How can you delete files from an Azure WebApp using powershell?

Suppose I want to delete all files matching *.config.default from an Azure WebApp. How can I do this with PowerShell? If I had a directory on my local machine I can do this with: get-childitem -Path . -Filter *.config.default -Recurse | remove-item I can currently get the webApp using the followin...
WhiskerBiscuit
1

votes
1

answer
416

Views

How to specfiy existing FunctionName on SAM Template

I'm trying to deploy AWS Lambda function by using SAM. What I want to do is to update exsiting lambda function by deploying local source code. In order to do that, I specified the existing lambda function name as 'FunctionName' in template.yaml like below. However, 'FunctionName' does only support f...
Tamajin
1

votes
2

answer
1.1k

Views

Load Testing AWS API Gateway

As the question suggests, I need to perform Load Test on the API Gateway Resources with 1 million RPS. Apache JMeter is a very good tool for Load Testing. But I think it won't be possible to simulate such a huge load from a single machine. In that case, JMeter Clusters could be useful. But setting i...
Tapas Bose
1

votes
1

answer
404

Views

Listening for button click in PWA service worker

I am trying to follow the following example for PWA Push Notifications but have a general question regarding service workers https://developers.google.com/web/fundamentals/codelabs/push-notifications/ Within my Service Worker, I want to add a listener to a button/anchor tag My Service Worker is init...
Mike
1

votes
2

answer
6.2k

Views

Aws Ec2 run script program at startup

There is a method to setup an EC2 machine to execute Kafka starting script on startup? I use also java Aws SDK, so I accept both solution for a program java that run command on EC2 instance and solutions for a bash script mode that run kafka script at startup.
1

votes
2

answer
176

Views

Perform any operation in Mysql once it is launched by Terraform. How can I run provisioner for RDS?

I have launched an RDS instance using terraform, now I want to create a user and DB inside it, basically, run some query inside it. So how can we achieve that? Thanks
Nikit Swaraj
1

votes
1

answer
412

Views

Host Dockerized Django project on AWS

I have a Django project which is working fine on my local machine. I want to host the same on AWS, but confused on what service to use and what is the best practice to so. Do I use EC2, create a ubuntu instance on it and install Docker or use ECS ? What is the best practice to transfer my django pro...
ricky
1

votes
2

answer
1.4k

Views

Downgrade to previous version of AWS Lambda

Working with Amazon Lambda functions I use versioning feature which is provided by AWS Lambda functionality. Each time when I deployed new version of my artifact to AWS I create new version of function and publish it (using popup from screenshot). But how can I publish any previous version of my fun...
Gleb Kosteiko
0

votes
1

answer
13

Views

Cannot find a differ supporting object '[object Object]' of type 'object'. NgFor only support

I am going to receive an object like the following: BOI BOI SBH SBH BOI 2234682 bsnl 1116 SCIENTIST 'E' B Rama Krishna Reddy 51910 false A- N 01-07-1958 00:00:00 B Pulla Reddy(Late) M M and here is my interface export interface IEmployeePersonalInformation { EmployeeCode: string; EmployeeName: strin...
rammi
1

votes
1

answer
163

Views

Capturing JSON data from intermediate events using Selenium

Below I have setup a script which simply executes a search on a website. The goal is to capture JSON data utilizing Selenium from an event that is fired from an intermediate script, namely the POST request to 'https://www.botoxcosmetic.com/sc/api/findclinic/FindSpecialists' as seen in the included i...
ikemblem
0

votes
0

answer
2

Views

How to upload images from ObservableCollection to WebService?

I'm developing and app with Xamarin.Forms and, one of the requirements of the app is upload images to a WebService. So, I use a ObservableCollection to store/manage the images that user picks, and the problem is that I don't know how can I take all the images to send; If I have to convert to Base64,...
Ferran Muñoz
0

votes
0

answer
5

Views

Data loss after upgrading instance type in AWS EC2

I upgraded an AWS EC2 machine 10 days ago (from t2-medium to t2-large). Again, I just upgraded today the same AWS EC2 machine (from t2-large to t2-xlarge) and after rebooting I noticed a massive loss of data (10 days of work). In fact, after changing instance type I found out it reverted to the same...
juanba1984
1

votes
1

answer
524

Views

AWS CLI command for querying S3 bucket

I have a bucket which I will call some-images for showing here. I am trying to get my command to return all objects that have a key value which starts_with a number. Here is the code I am using: cmd = 'aws s3api list-objects --bucket some-images --query \'Contents[?starts_with(Key, '10000'\'' push =...
5pence
1

votes
1

answer
461

Views

AWS Amplify Push Notifications with React Native

There seem to be some discrepancies in the documentation as to how to implement Push Notifications. Here is the RN code from the AWS Amplify docs: import { PushNotificationIOS } from 'react-native'; import Analytics from '@aws-amplify/analytics'; import PushNotification from '@aws-amplify/pushnotifi...
Fook
1

votes
1

answer
760

Views

AWS Sagemaker unable to parse csv

I'm trying to run a training job on AWS Sagemaker, but it keeps failing giving the following error: ClientError: Unable to parse csv: rows 1-5000, file /opt/ml/input/data/train/KMeans_data.csv I've selected 'text/csv' as the content type and my CSV file contains 5 columns with numerical content and...
swap709
1

votes
1

answer
198

Views

AWS CodePipeline Notifications

I am trying to add some notifications to my Pipeline in AWS. I have a build stage where I use AWS CodeBuild and I want to receive an email whenever the build fails. I have followed the tutorial that amazon offers and it works fine to notify me about the failure, but I can't seem to find how to ad...
Yuri Azar
1

votes
2

answer
266

Views

Rcrawler scrape does not yield pages

I'm using Rcrawler to extract the infobox of Wikipedia pages. I have a list of musicians and I'd like to extract their name, DOB, date of death, instruments, labels, etc. Then I'd like to create a dataframe of all artists in the list as rows and the data stored as columns/vectors. The code below t...
Ben
1

votes
1

answer
489

Views

What TCP port number does the aws cli s3 use?

When you upload or download files via aws cli, what TCP port number does it use over the internet?
Abel Callejo
1

votes
1

answer
502

Views

Can I use an Elastic IP with Cloudfront in AWS?

We want to use Cloudfront in our AWS infrastructure. The question is if is it possible to have the same Elastic IP that we use now in an EC2 instance. Or do we have to switch to Cloudfront IPs?
KOstas
1

votes
2

answer
768

Views

navigating through pagination with selenium in python

I'm scraping this website using Python and Selenium. I have the code working but it currently only scrapes the first page, I would like to iterate through all the pages and scrape them all but they handle pagination in a weird way how would I go through the pages and scrape them one by one? Paginati...
Abdul Jamac
1

votes
1

answer
346

Views

Using Ref for Resource in Step function inside cloudformation template

I have a step function inside cloudformation. The cloudformation stack also create Lambdas which i will use as resource in step function. I have something like TestLambda: Type: 'AWS::Lambda::Function' Properties: Handler: 'test_lambda.lambda_handler' Role: 'arn:aws:iam::1234342334:role/Lambda' Code...
Anandan
1

votes
2

answer
101

Views

get all secrets from AWS secret manager

AWS has secret manager which stores secrets. It has the API to get individual secret. I want to fetch all the secrets related to an account at once. Any way we can achieve this?
maverickabhi
1

votes
2

answer
3.3k

Views

Terraform aws: Error No configuration files found

I am new to Terraform. I am writing a small script to put a small datafile from my machine to aws S3 bucket.. but I am getting below error. Terraform file code:- provider 'aws' { region = 'us-east-1' version = '~> 1.6' } terraform { backend 's3' { bucket = '${var.bucket_testing}' kms_key_id =...
Arpan
1

votes
1

answer
925

Views

Terraform AWS S3 to Lambda Notification Trigger

I am trying to codify lambda function to be triggered using S3. Creation of Lambda function is successful, but the 'aws_s3_bucket_notification' resource fails at terraform:apply with MethodNotAllowed error with status code 405 : Error: Error applying plan: 20-Sep-2018 15:23:53 1 error(s) occurred...
Samarth
1

votes
1

answer
87

Views

AWS elastic IP vs public IP

I am new to AWS and tried to create an EC2 instance. I have a domain and ready to modify the A record to the associated EC2 instance. I found an article that said an elastic IP is required for associating a production domain. But AWS provides a public IP and it is accessible on the public internet t...
SKLTFZ
1

votes
1

answer
484

Views

How to pass script arguments to AWS Batch fetch-and-run

I am following this tutorial to run a simple fetch-and-run example in AWS batch. However, I'm unable to pass arguments to the script fetched through this example. The basic example will produce this execution: export BATCH_FILE_TYPE='script' export BATCH_FILE_S3_URL='s3://my-bucket/my-script' fetch_...
gc5

View additional questions