For the past few

AWS Master Security Key
One of my early lessons was that there is a master security key to access AWS through their command line interface. This allows a user to control AWS services from their own desktop computer without having to log into the AWS web site. This is very handy if you are automating processes such as building web applications or creating an application development pipeline. It is fairly simple to create a new master AWS security key, but if you do then you have to update all your applications that use that security key.
EC2 Instance Security Keys
When you create an EC2 instance – basically a virtual server on AWS – you have to create a master security key to that instance. It is a one-time deal. The only time you can download or access that key is when you first create the instance. It downloads to your desktop. The EC2 instance keeps a public key and the private master key has to be used to log into and control the operating system on that instance. For example, if I want to log into the operating system shell or FTP to that instance, I need the private security key to do so. I can create additional users and security keys so others can use the instance without my security key, but the master security key is like the root password, and can only be generated and downloaded once. Lose that key – which I did – and you might as well kill that instance off and start a new one – which I had to do after fiddling with the problem for a couple of days. Darn it. Maybe a class would have saved me some of that time? Naw, it would have taken weeks to learn that in a class.
Private Key Security
So when you create this private security key, you want to be sure and store them in a safe place, just like the keys to your home or your safe deposit box. I put mine in my iCloud drive so that it is backed up, and changed permission on the file so that I am the only one who can read it and it is read-only so I won’t accidentally delete the key.
Once I got the key problem worked out, things went much more smoothly and quickly. My son Adam and I quickly spun up a WordPress DOCKER instance, I created an Amazon RDS database, connected WordPress to it, and got the basics of one of my sites up and running. And it is FAST FAST FAST! But more on that in another post.
Leave a Reply