Difference between revisions of "AWS"

From Freephile Wiki
Jump to navigation Jump to search
(link to AL2023)
(→‎Info: add note about connecting to EC2 instances with SSH)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
[[File:Aws.png|450px|right]]
 
[[File:Aws.png|450px|right]]
 +
 +
 +
{{Notice|
 +
Warning: While I have professional expertise in AWS Cloud, I may color these notes with my personal opinions to cut to the root of the issues and not sound like another AWS fan boy. I do encourage corporate use of AWS Cloud, and hiring me to navigate the complexity. I may own AMZN stock.
 +
}}
  
 
Amazon WILL FIND WAYS TO WASTE YOUR TIME WHILE TAKING YOUR MONEY, so be careful if you choose to do business with Jeff Bezos.  For example, you can receive billing alerts, but you can't turn the feature off (so you'll end up ignoring the onslaught of useless emails until you actually miss some invoice that is important).  They realize that customers want to know what/where/when/how much their bill is, so they created a different "service" they call "budgets" that will let you know what your bill will be.  And guess what?  They charge for the service!  They also have a separate "Billing Report" service.  This one generates reports once OR MORE, '''daily'''.  Instead of delivering these reports via email, they deposit them into storage that they charge for.  You pay for the storage, and then you get reports about how much the storage costs, and the reports go into the storage bucket.  I imagine at some point they'll just embed 1GB image files in the report so that they can charge a ton of money for the storage of the reports that tell you how much storage you're using.
 
Amazon WILL FIND WAYS TO WASTE YOUR TIME WHILE TAKING YOUR MONEY, so be careful if you choose to do business with Jeff Bezos.  For example, you can receive billing alerts, but you can't turn the feature off (so you'll end up ignoring the onslaught of useless emails until you actually miss some invoice that is important).  They realize that customers want to know what/where/when/how much their bill is, so they created a different "service" they call "budgets" that will let you know what your bill will be.  And guess what?  They charge for the service!  They also have a separate "Billing Report" service.  This one generates reports once OR MORE, '''daily'''.  Instead of delivering these reports via email, they deposit them into storage that they charge for.  You pay for the storage, and then you get reports about how much the storage costs, and the reports go into the storage bucket.  I imagine at some point they'll just embed 1GB image files in the report so that they can charge a ton of money for the storage of the reports that tell you how much storage you're using.
Line 7: Line 12:
 
Once you have an account, you can interact in several ways.  There is of course the browser-based 'console' which is overwhelming and complicated.  Then there is also the console-based commands when logged into an instance.  That is referred to as the AWS CLI <ref>http://docs.aws.amazon.com/cli/latest/index.html AWS CLI</ref>.  But thankfully, there are a couple of command-line toolsets for manipulating the API and also Amazon Machine Images (AMI) right from the comfort of your own home.
 
Once you have an account, you can interact in several ways.  There is of course the browser-based 'console' which is overwhelming and complicated.  Then there is also the console-based commands when logged into an instance.  That is referred to as the AWS CLI <ref>http://docs.aws.amazon.com/cli/latest/index.html AWS CLI</ref>.  But thankfully, there are a couple of command-line toolsets for manipulating the API and also Amazon Machine Images (AMI) right from the comfort of your own home.
  
* http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/set-up-ec2-cli-linux.html Getting setup
+
*http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/set-up-ec2-cli-linux.html Getting setup
* http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/Welcome.html  
+
*http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/Welcome.html
* http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/command-reference.html
+
*http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/command-reference.html
* [https://aws.amazon.com/developertools/Amazon-EC2/351 Amazon EC2 API Tools] The API tools serve as the client interface to the Amazon EC2 web service. Use these tools to register and launch instances, manipulate security groups, and more.
+
*[https://aws.amazon.com/developertools/Amazon-EC2/351 Amazon EC2 API Tools] The API tools serve as the client interface to the Amazon EC2 web service. Use these tools to register and launch instances, manipulate security groups, and more.
* [http://aws.amazon.com/developertools/368 Amazon EC2 AMI Tools] are command-line utilities to bundle an Amazon Machine Image (AMI), create an AMI from an existing machine or installed volume, and upload a bundled AMI to Amazon S3.
+
*[http://aws.amazon.com/developertools/368 Amazon EC2 AMI Tools] are command-line utilities to bundle an Amazon Machine Image (AMI), create an AMI from an existing machine or installed volume, and upload a bundled AMI to Amazon S3.
  
  
== Example ec2-cli commands ==
+
==Example ec2-cli commands==
 
<source lang="bash">
 
<source lang="bash">
 
ec2-describe-instances
 
ec2-describe-instances
Line 22: Line 27:
  
  
== Info ==
+
==Info==
* Thread about AWS stuff you wish you knew in advance: https://news.ycombinator.com/item?id=7172060
+
 
* [https://aws.amazon.com/ec2/instance-types/#instance-type-matrix "matrix" of EC2 server offerings]
+
*Thread about AWS stuff you wish you knew in advance: https://news.ycombinator.com/item?id=7172060
* [https://ec2instances.info/?selected=r4.xlarge A much better representation of EC2 server offerings]
+
*[https://aws.amazon.com/ec2/instance-types/#instance-type-matrix "matrix" of EC2 server offerings]
 +
*[https://ec2instances.info/?selected=r4.xlarge A much better representation of EC2 server offerings]
 +
*If you need to work with "serverless" applications in AWS, see the [https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/welcome.html AWS Toolkit for Visual Studio Code] This extension makes it easier for developers to develop, debug locally, and deploy those serverless applications into AWS. If you're working with regular EC2 instances, you connect to those using remote SSH normally with an entry in your <code>.ssh/config</code>.
  
== Amazon Linux ==
+
==Amazon Linux==
 
Since AWS is the poster child for the "Doesn't Play Well with Others" set, of course they created their own Linux derivative distribution. See https://docs.aws.amazon.com/linux/al2023/ug/base-container.html if you need to work with their "2023" version.
 
Since AWS is the poster child for the "Doesn't Play Well with Others" set, of course they created their own Linux derivative distribution. See https://docs.aws.amazon.com/linux/al2023/ug/base-container.html if you need to work with their "2023" version.
  

Latest revision as of 10:48, 20 December 2023

Amazon Web Services, or AWS, is the cloud service offering from Amazon.

Aws.png


Amazon WILL FIND WAYS TO WASTE YOUR TIME WHILE TAKING YOUR MONEY, so be careful if you choose to do business with Jeff Bezos. For example, you can receive billing alerts, but you can't turn the feature off (so you'll end up ignoring the onslaught of useless emails until you actually miss some invoice that is important). They realize that customers want to know what/where/when/how much their bill is, so they created a different "service" they call "budgets" that will let you know what your bill will be. And guess what? They charge for the service! They also have a separate "Billing Report" service. This one generates reports once OR MORE, daily. Instead of delivering these reports via email, they deposit them into storage that they charge for. You pay for the storage, and then you get reports about how much the storage costs, and the reports go into the storage bucket. I imagine at some point they'll just embed 1GB image files in the report so that they can charge a ton of money for the storage of the reports that tell you how much storage you're using.

Once you have an account, you can interact in several ways. There is of course the browser-based 'console' which is overwhelming and complicated. Then there is also the console-based commands when logged into an instance. That is referred to as the AWS CLI [1]. But thankfully, there are a couple of command-line toolsets for manipulating the API and also Amazon Machine Images (AMI) right from the comfort of your own home.


Example ec2-cli commands[edit | edit source]

ec2-describe-instances
ec2-stop-instances i-ca51833a
ec2-terminate-instances -h


Info[edit | edit source]

Amazon Linux[edit | edit source]

Since AWS is the poster child for the "Doesn't Play Well with Others" set, of course they created their own Linux derivative distribution. See https://docs.aws.amazon.com/linux/al2023/ug/base-container.html if you need to work with their "2023" version.


References[edit source]