mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
41
tldr/aws-accessanalyzer
Normal file
41
tldr/aws-accessanalyzer
Normal 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}}`
|
||||
@@ -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}}`
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
Reference in New Issue
Block a user