CLI

How to Change the PATH Variable in Amazon Linux

In Amazon Linux 2, as well as Linux in general, the PATH variable determines where the OS looks for executable files. This variable can be modified and allows for flexibility in organizing your directory structure. For example, let’s say that your OS is based off an image and all executable files that are installed with the image are located at the path, /bin. A user could then install executable files at the path of, /home/[username]/bin. And, the user could then modify the PATH variable, so that the executable files could run at the command line while only referencing the file name.

Create an SQS Queue and an SNS Topic and Subscription using the AWS CLI

AWS gives engineers many ways to accomplish many tasks. Here we will look at creating both a Simple Notification Service topic as well as a Simple Queue Service queue and then creating an SNS subscription “linking” the two. All the while, we will exclusively use the AWS CLI to accomplish the task. This exercise could also be carried out in  the AWS console as well as one of the AWS SDKs and if you are proficient in an AWS SDK or the console, feel free to use one of those tools to view the changes being made while we move through this solution.