Difference between revisions of "AWS"

From Ever changing code
Jump to navigation Jump to search
(Created page with "=== ssh to EC2 instance === Change permissions of the key as per [http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2_GetStarted.html#EC2_ConnectToInstance_Linux Getting St...")
 
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== ssh to EC2 instance ===
{{Special:PrefixIndex/AWS/}}
Change permissions of the key as per [http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2_GetStarted.html#EC2_ConnectToInstance_Linux Getting Started with Amazon EC2 Linux Instances]
 
chmod 400 mykey.pem
 
*Ubuntu user: ubuntu (confirmed)
Tools
*RedHat user: root (tbc)
*[https://bash-my-aws.org bash-my-aws.org]
*Amazon branded instances: ec2-user (to be confirm)
*[https://github.com/toniblyx/prowler Prowler] AWS CIS Benchmark Tool
ssh -i mykey.pem ec2-user@ec2-99-99-99-99.compute-1.amazonaws.com
 
 
List all AWS service
<source lang=bash>
curl -s https://awspolicygen.s3.amazonaws.com/js/policies.js | sed '1s/[^=]*=//' | jq . | grep -B1 StringPrefix | grep -v StringPrefix | sed 's/\"//g;s/\-//g;s/: {//g' | grep -v "^$" | sort
    Alexa for Business
    Amazon API Gateway
...
# 219 as of 11/01/2020
</source>
 
[[Category:aws]]

Latest revision as of 10:15, 17 July 2020


Tools


List all AWS service

curl -s https://awspolicygen.s3.amazonaws.com/js/policies.js | sed '1s/[^=]*=//' | jq . | grep -B1 StringPrefix | grep -v StringPrefix | sed 's/\"//g;s/\-//g;s/: {//g' | grep -v "^$" | sort
    Alexa for Business
    Amazon API Gateway
...
# 219 as of 11/01/2020