How to fix Error: mkdir(): Permission denied when running composer
I have a ec2 image and get the following error when trying to create a new laravel project.[ErrorException] mkdir(): Permission deniedHere is the command:composer create-project laravel/laravel mydirI...
View ArticleHow do I verify my EC2 instance domain in Amazon SES?
I have got a EC2 instance with a specific domain:ec2-<IP>.eu-central-1.compute.amazonaws.comIn this VM, I run a GitLab instance and want to send emails to my developers. The emails should be sent...
View ArticleSet up hostname using cloud-init in user-data script in EC2 launch template
I have a user-data script in a Launch template for EC2 instances.#!/bin/bashecho ECS_CLUSTER=analytics-python3-cluster >> /etc/ecs/ecs.config;echo ECS_BACKEND_HOST= >>...
View ArticleHow-to perform a simple AWS/EC2 rest API call with Curl
Has anyone used cUrl to manage the AWS (EC2) rest API? Here I picked the simplest possible call, listing running instances. Am I missing something or am I clearly showing ignorance of proper cUrl...
View ArticleHow to launch an EC2 instance without key pair via Terraform?
I would like to launch an EC2 instance without key pair with my Terraform configuration. I could not find any info on internet which indicates usage of "no keypair" in Terraform. Anyone who have...
View ArticleAWS Cost Explorer get-cost-and-usage get cost&usage of each single resources...
I am trying to list out cost and usage for each single resource in my AWS console such as RDS tables, SQS queues and Lambda functions using Cost Explorer.I have read the general...
View Articleec2 hosted app not opening on mobile phone
I have hosted a small app on aws ec2 instance which is here. I have used react on front-end served by node server. This app was running fine till yesterday but today I noticed that my app is opening...
View ArticleNo module named _bcrypt on AWS ec2 instance :
........from paramiko modules throwing the error.from bcrypt._bcrypt import *.....ErrorImportError: No module named _bcrypt AWS ec2 instance OS version :Description: Ubuntu 18.04.3 LTSinstalled...
View ArticleCloudwatch Config with timestamped logfile
I am trying to set cloudwatch logs from an EC2 instance in AWS , here is the configuration {"agent": {"run_as_user": "root" }, "logs": { "logs_collected": {"files": {"collect_list": [ {"file_path":...
View ArticleHow to access AWS EC2 instance from web browser on Linux machine?
When I try to connect to my EC2 instance using web browser (Mozilla Firefox) using the third option in the connect (EC2 Instance Connect (browser-based SSH connection) ), I get the following error in...
View ArticleAnsible aws_ec2 plugin how to set credentials for discovered hosts?
Need to launch ad-hook commands like "-m ping" on existing ec2 instances, but it requred key-pair.How to set key-pair for boto, like "aws_access_key_id" stored in ~/.aws/credentials ?Also, have a...
View ArticleAWS EC2 infrastructure with pfSense - Outbound issues
Here is what I want to do (I apologize if the description is long, I give all details):A private network in AWS cloud behind a pfSense EC2 instance containing one or more instances, here a classic...
View ArticleThe credentials supplied to the package were not recognized (development...
I am not getting notifications from APNS. I have hosted my .Net API code on EC2 instance. I have checked for :Port 2195 and 2196 are open. I have created p.12 properly as described Link
View ArticleCan you connect to Amazon ElastiСache Redis outside of Amazon?
I'm able to connect to an ElastiCache Redis instance in a VPC from EC2 instances. But I would like to know if there is a way to connect to an ElastiCache Redis node outside of Amazon EC2 instances,...
View ArticleFinding shared AMI (with my account) on my AWS account
My colleague has shared an AMI from his account to mine. This has been confirmed. On his AWS console , he went to AMI screen and did modify permissions and added my account and did "save".However, when...
View ArticlePM2 environment variables undefined client-side
I have a react app being served with node.js and am trying to deploy it to an AWS EC2 instance. I have specified environment variables in my pm2 script to run the application, but am unable to read...
View ArticlePuppeteer page request fails only on AWS EC2 instance
I've written a small javascript program using node (v12.16.2) and puppeteer (v2.1.1) that I'm trying to run on an AWS EC2 instance. I'm doing a goto of the url appended to this. It works fine on a...
View ArticleHow can I import a csv (using COPY command) into PostgreSQL on an EC2 instance?
I have postgres running on an ec2 instance. I have scp'd a csv file into the ec2 instance. ls shows the .csv file is there. Then, once in the psql shell, I try to run the normal COPY command to import...
View ArticleLaunch EC2: The requested configuration is currently not supported
The below is the command aws ec2 run-instances --image-id ami-0f90a34c9df977efb --count 1 --instance-type t2.micro --key-name clikey --security-group-ids sg-0b018f6a888e80890 --subnet-id...
View ArticleConnecting solr with aws RDS Mysql through data import handler
I recently started implementing solr-cloud on AWS EC2 for search applications. I have created 2 AWS Ec2 instances with the following configurations ---EC2 Type - t2.mediumram - 4GBDisk Space - 8GBOS -...
View Article