amazon-web-services

How to install third-party SSL Certificate with AWS EC2 Instance (Ubuntu AMI)? Will it cost one-time or monthly basis?

為{幸葍}努か 提交于 2021-02-10 18:26:12
问题 I have purchased SSL Certificate from COMODO SSL Store. I have AWS EC2 Instance with Ubuntu AMI. I want to install this SSL certificate on AWS but couldn't make it work. I just want to use this certificate with my website 'somewebsite.com' and nothing else like load balancer or something else. I found this but it has load balancer which I dont want https://cheapsslsecurity.com/blog/install-ssl-certificate-on-amazon-web-services-aws/ I tried this but I guess this is not the right way. This

Amazon Elastic Beanstalk - get visitor IP address (python)

懵懂的女人 提交于 2021-02-10 18:16:15
问题 My application is developed in python and the bottle framework. I am using following code snippet to get IP address of visitors to the page: user_ip = bottle.request.environ['REMOTE_ADDR'] It works fine on my local machine, however, after deployment to the AWS Beanstalk instance, I think I am getting the load balancer IP, as the user_ip reads something like 10.48.95.234. Is my thinking correct? If so, is there any way to obtain real visitor's ip address? 回答1: You are correct that the REMOTE

AWS Fargate cannot access dockerized spring boot application over Load balancer/ public IP

好久不见. 提交于 2021-02-10 17:35:36
问题 I have deployed the docker image of my spring boot application over aws ECR, following creation of AWS fargate cluster. PFA screenshots of the configurations stating task, security, service and cluster definition.I can ping my public ip successfully. But I can't access my application over neither load balancer nor public ip. The urls I tried to access application were public_ip:8081/my_rest_end_point and load_balancer_public_dns:8081/my_reset_end_point I have tested running my docker image on

How to speed up processing time of AWS Transcribe?

拈花ヽ惹草 提交于 2021-02-10 16:17:27
问题 I have 6 second audio recording( ar-01.wav ) in wav format. I want to transcribe the audio file to text using amazon services. For that purpose I created a bucket by name test-voip and uploaded the audio file to bucket. When I try to convert the speech to text, a 6 second audio is taking 13.12 seconds. Here is my code snippet session = boto3.Session(aws_access_key_id=aws_access_key_id, aws_secret_access_key=aws_secret_access_key) transcribe = session.client('transcribe', region_name='us-east

Connecting to Aurora MySQL Serverless with Node

爷,独闯天下 提交于 2021-02-10 15:54:00
问题 I'm trying to connect to my Aurora Serverless MySQL DB cluster using the mysql module, but my connection always times out. const mysql = require('mysql'); //create connection const db = mysql.createConnection({ host : 'database endpoint', user : 'root', password : 'pass', database : 'testdb' }); //connect db.connect((err) => { if(err){ throw err; console.log('connection failed'); } console.log('mysql connected...'); }) db.end(); My cluster doesn't have a public IP address so I'm trying to use

TagSpecifications with requestSpotInstances UnexpectedParameter with aws-sdk

末鹿安然 提交于 2021-02-10 15:53:59
问题 I'm trying to add a tag to my AWS Spot Request. But it has returned me { UnexpectedParameter: Unexpected key 'TagSpecifications' found in params.LaunchSpecification . I have followed this documentation, and I have already tried to move this code out of LaunchSpecification, but the error persists. const params = { InstanceCount: 1, LaunchSpecification: { ImageId: config.aws.instanceAMI, KeyName: 'backoffice', InstanceType: config.aws.instanceType, SecurityGroupIds: [config.aws

Connecting to Aurora MySQL Serverless with Node

假装没事ソ 提交于 2021-02-10 15:53:19
问题 I'm trying to connect to my Aurora Serverless MySQL DB cluster using the mysql module, but my connection always times out. const mysql = require('mysql'); //create connection const db = mysql.createConnection({ host : 'database endpoint', user : 'root', password : 'pass', database : 'testdb' }); //connect db.connect((err) => { if(err){ throw err; console.log('connection failed'); } console.log('mysql connected...'); }) db.end(); My cluster doesn't have a public IP address so I'm trying to use

How to edit AWS Credentials in terminal?

自作多情 提交于 2021-02-10 15:53:18
问题 What is the command to edit secret key in aws configure in terminal? 回答1: Just type aws configure again (or aws configure --profile <profile_name> to edit a specific profile). If you just confirm the suggested value by hitting enter, it will remain unchanged. or Change just the aws_secret_access_key by typing $ aws configure set aws_secret_access_key <secret_key> or You can edit the AWS credentials directly by editing the AWS credentials file on your hard drive. The aws_access_key_id and the

TagSpecifications with requestSpotInstances UnexpectedParameter with aws-sdk

故事扮演 提交于 2021-02-10 15:52:06
问题 I'm trying to add a tag to my AWS Spot Request. But it has returned me { UnexpectedParameter: Unexpected key 'TagSpecifications' found in params.LaunchSpecification . I have followed this documentation, and I have already tried to move this code out of LaunchSpecification, but the error persists. const params = { InstanceCount: 1, LaunchSpecification: { ImageId: config.aws.instanceAMI, KeyName: 'backoffice', InstanceType: config.aws.instanceType, SecurityGroupIds: [config.aws

AWS Glue: Rename_field() does not work after relationalize

微笑、不失礼 提交于 2021-02-10 15:00:58
问题 I got a job that needs to perform the following task Relationalize the data Rename the field names that contains the '.'s so that it can be imported into PostgreSQL as normal looking field name. Here is the code import sys from awsglue.transforms import * from awsglue.utils import getResolvedOptions from pyspark.context import SparkContext from awsglue.context import GlueContext from awsglue.job import Job ## @params: [JOB_NAME] args = getResolvedOptions(sys.argv, ['JOB_NAME']) sc =