Difference between revisions of "AWS"

From Ever changing code
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Special:PrefixIndex/Main:AWS/}}
{{Special:PrefixIndex/AWS/}}


= EC2 Meta-data =
Methods of retrieving instance meta-data:
*Instance information: <tt><nowiki>http://169.254.169.254/latest/meta-data/</nowiki></tt>
GET <nowiki>http://169.254.169.254/latest/meta-data/</nowiki>
curl <nowiki>http://169.254.169.254/latest/meta-data/</nowiki>
*User information: <tt><nowiki>http://169.254.169.254/latest/user-data</nowiki></tt>
curl <nowiki>http://169.254.169.254/latest/user-data</nowiki>
*Dynamic information: <tt><nowiki>http://169.254.169.254/latest/dynamic/</nowiki></tt>
GET <nowiki>http://169.254.169.254/latest/dynamic/document</nowiki>


= References =
Tools
*[https://help.ubuntu.com/community/CloudInit CloudInit] by Ubuntu
*[https://bash-my-aws.org bash-my-aws.org]
*[http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html Instance Metadata and User Data] AWS Documentation
*[https://github.com/toniblyx/prowler Prowler] AWS CIS Benchmark Tool
 
 
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]]
[[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