Update cheatsheets

This commit is contained in:
ivuorinen
2024-08-03 00:14:57 +00:00
parent 2b1e94b731
commit 76321127ee
3 changed files with 49 additions and 0 deletions

41
tldr/aws-accessanalyzer Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# aws accessanalyzer
> Analyze and review resource policies to identify potential security risks.
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/accessanalyzer/index.html>.
- Create a new Access Analyzer:
`aws accessanalyzer create-analyzer --analyzer-name {{analyzer_name}} --type {{type}} --tags {{tags}}`
- Delete an existing Access Analyzer:
`aws accessanalyzer delete-analyzer --analyzer-arn {{analyzer_arn}}`
- Get details of a specific Access Analyzer:
`aws accessanalyzer get-analyzer --analyzer-arn {{analyzer_arn}}`
- List all Access Analyzers:
`aws accessanalyzer list-analyzers`
- Update settings of an Access Analyzer:
`aws accessanalyzer update-analyzer --analyzer-arn {{analyzer_arn}} --tags {{new_tags}}`
- Create a new Access Analyzer archive rule:
`aws accessanalyzer create-archive-rule --analyzer-arn {{analyzer_arn}} --rule-name {{rule_name}} --filter {{filter}}`
- Delete an Access Analyzer archive rule:
`aws accessanalyzer delete-archive-rule --analyzer-arn {{analyzer_arn}} --rule-name {{rule_name}}`
- List all Access Analyzer archive rules:
`aws accessanalyzer list-archive-rules --analyzer-arn {{analyzer_arn}}`

View File

@@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
- Also display a message if no response was received:
`ping -O {{host}}`
- Ping a host with specific number of pings, timeout (`-W`) for each reply, and total time limit (`-w`) of the entire ping run:
`ping -c {{count}} -W {{seconds}} -w {{seconds}} {{host}}`

View File

@@ -21,6 +21,10 @@ source: https://github.com/tldr-pages/tldr.git
`find . -name '*.backup' -print0 | xargs -0 rm -v`
- Execute the command once per argument:
`{{arguments_source}} | xargs -n1 {{command}}`
- Execute the command once for each input line, replacing any occurrences of the placeholder (here marked as `_`) with the input line:
`{{arguments_source}} | xargs -I _ {{command}} _ {{optional_extra_arguments}}`