I have have unzipped newrelic files onto amazon linux and have both the installer.sh and config_defaults.sh I have the license key in the parameter store which I am able to call I install newrelic with the following command Where APPIKEY comes from the parameter store. However when I do sudo systemctl start newrelic-infra I get error message How can I
Tag: amazon-web-services
AWS CLI S3 CP –recursive function works in console but not in .sh file
I have the following line inside of a .sh file: When I run this line in the console, it runs fine and completes as expected. When I run this line inside of a .sh file, the line returns the following error. Here is my full .sh script. If I manually add the Run.py file (not having it copied over from
Change Tiny Proxy IP per request on EC2
I’m fairly new to Proxy servers and how they work exactly. I recently span up an AWS EC2 instance to act as a proxy server using tiny proxy. Everything seems to work just fine however i am curious about something. Is it possible to configure tiny proxy to use a different public IP each time it makes a request ?
Get pdftotext Python module running on Lambda
I need to get the pdftotext python library for 3.8.6 running in an AWS Lambda Function. I have the library installed and running on an Amazon Linux AMI, however when I copy the library files into a lambda I get: The lambda function has the Python path set to the site-packages directory, which I have confirmed is the same on
Use Route53 template in cloudformation with Cloudfront
Hi Team, I am going to create a route53 record with cloudfront please find the cloud-formation code and in which I am getting an error while create a stack. Basically I want to create a CNAME record by using cloudfront domain name. Please help me out in this. Answer You can use the below template I should raise as you’re
Retrieve secrets from AWS Secrets Manager
I have a bunch of secrets (key/value) pairs stored in AWS Secrets Manager. I tried to parse the secrets using jq as: It retrieves the value stored in .PASSWORD, but the problem is I not only want to retrieve the value stored in key but also want to retrieve the key/value in the following manner: By running the above command
use cat <> to insert actual strings and escape logic
I am writing a script to automatically create SWAP on an AWS ephemeral volume. Part of that process requires the script to ‘sense’ which nvme to apply swap to since AWS Linux can reorder the nvme names at stop/start. I am using Terraform to run a ‘start-up’ script which does a ton of stuff to the instance. One of them
Not able to connect to AWS server using linux terminal after a reboot with “sudo service sshd restart”. Getting “Connection timed out” error
I was trying to edit the sshd_config file and in between that my machine crashed. When I tried again it started showing the below message- I deleted the .swp file but it looks like the original file got deleted. After that I ran this command “sudo service sshd restart “. Now I am not able to connect to the AWS
Iterate through commands and execute in bash
I wrote a script that transfers a new key to my AWS instances. The script executes with no errors, but when I check the ~/.ssh/authorized_keys file on the instance, I do not see the new SSH key. Here is the script: It does print out “Key copied” I have changed the ip addresses of the servers. If I just execute
How to access istio created dashboard
I installed istio on kubernetes without helm. I can see pods and services are created in istio-system namespace. All service like grafana, Prometheus are created and their ports are not exposed. As load-balancer-service is created so that one load balancer is also created in AWS, I wanted to access grafana, prometheus etc dashboard from an external network through newly created