amazon-web-services

Connecting to AWS RDS remotely without key using workbench or other mysql utilities

依然范特西╮ 提交于 2021-02-08 12:12:00
问题 How to connect with MySQL RDS instance in AWS remotely? It keeps throwing the following error when I connect with Standard (TCP/IP) : ERROR 2003 (HY000): Can't connect to MySQL server on 'xxxxxxx.yyyyyyyyy.us-west-2.rds.amazonaws.com' (10060 "Unknown error") Tried with Workbench and MySQL Utilities . However, when using Standard TCP/IP over SSH , when I add .pem key file, I could connect to the instance. 回答1: There are various problems why it cannot be connected: Security Group : The RDS

Recovering lost AWS EC2 Key Pairs

℡╲_俬逩灬. 提交于 2021-02-08 12:07:01
问题 AWS rookie here. I created a few EC2 instances under my AWS account and reused the same Key Pair for all of them. I believe (IIRC) that I had generated the Key Pair from inside AWS, but that could be wrong. Over this past weekend I sold my old laptop (after completely wiping the hard disk) and got a new one. I'm just remembering now ( :facepalm ) that I forgot to copy all my SSH private keys to a flash drive and that I no longer have them. All I want/need to do is to SSH into my EC2 instances

Enforcing tagging for resources in AWS?

徘徊边缘 提交于 2021-02-08 12:03:42
问题 Can we enforce tagging in AWS while creating a resource so that the resource will not be created unless a tag is given manually to the resource while creating? 回答1: Short Answer: Cannot enforce through policies for All resources. There are many resources which support tagging in AWS. But only if you use CLI/API tags are widely supported during creation time. eg: RDS creation from API/CLI you can specify tags during creation. But from console, you can only add tags to instance after it is

Recovering lost AWS EC2 Key Pairs

和自甴很熟 提交于 2021-02-08 12:03:10
问题 AWS rookie here. I created a few EC2 instances under my AWS account and reused the same Key Pair for all of them. I believe (IIRC) that I had generated the Key Pair from inside AWS, but that could be wrong. Over this past weekend I sold my old laptop (after completely wiping the hard disk) and got a new one. I'm just remembering now ( :facepalm ) that I forgot to copy all my SSH private keys to a flash drive and that I no longer have them. All I want/need to do is to SSH into my EC2 instances

AWS SNS stopped delivering messages

∥☆過路亽.° 提交于 2021-02-08 11:34:31
问题 I tried sending SMS from AWS SNS API through JAVA which worked for two days then suddenly stopped delivering messages but the response from API is 200 ok with a proper message ID without delivering messages. I am trying to post the request through postman to get more clarity of the issue but cannot find any collection or request signature. ` public class SNS { public static void sendSMS(String phoneNumber,String message) { BasicAWSCredentials basicCred = new BasicAWSCredentials("XXXXXXXXXXX",

Simulating message persistence in SNS using SQS

こ雲淡風輕ζ 提交于 2021-02-08 11:28:26
问题 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 event of subscriber failures (down for maintenance) I have a few questions on the recommended strategy of using SQS queues per consumer Is it possible to configure SNS to push to SQS only in event of failure in delivering the message to a subscriber? Dumping all the messages in SQS queue creates

Simulating message persistence in SNS using SQS

北城余情 提交于 2021-02-08 11:28:26
问题 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 event of subscriber failures (down for maintenance) I have a few questions on the recommended strategy of using SQS queues per consumer Is it possible to configure SNS to push to SQS only in event of failure in delivering the message to a subscriber? Dumping all the messages in SQS queue creates

How to set Jupyter notebook to Python3 instead of Python2.7 in AWS EMR

倖福魔咒の 提交于 2021-02-08 10:58:33
问题 I am spinning up an EMR in AWS. The difficulty arises when using Jupyter to import associated Python modules. I have a shell script that executes when the EMR starts and imports Python modules. The notebook is set to run using the PySpark Kernel. I believe the problem is that the Jupyter notebook is not pointed to the correct Python in EMR. The methods I have used to set the notebook to the correct version do not seem to work. I have set the following configurations. I have tried changing

How to set Jupyter notebook to Python3 instead of Python2.7 in AWS EMR

大兔子大兔子 提交于 2021-02-08 10:58:30
问题 I am spinning up an EMR in AWS. The difficulty arises when using Jupyter to import associated Python modules. I have a shell script that executes when the EMR starts and imports Python modules. The notebook is set to run using the PySpark Kernel. I believe the problem is that the Jupyter notebook is not pointed to the correct Python in EMR. The methods I have used to set the notebook to the correct version do not seem to work. I have set the following configurations. I have tried changing

Serverless+Webpack: include .pem files in ZIP

僤鯓⒐⒋嵵緔 提交于 2021-02-08 10:57:29
问题 I try to deploy my lambda function to AWS using serverless. Everything works fine but the function cannot be executed because two files are not found (thats what fs.readFileSync says). I include them with the following lines in the serverless.yml: provider: name: aws runtime: nodejs10.x stage: dev region: eu-central-1 package: exclude: - .env include: - src/config/push-cert.pem - src/config/push-key.pem When I look in the .zip file which is uploaded to S3, both .pem files are not included. I