Update cheatsheets

This commit is contained in:
ivuorinen
2024-08-01 00:16:59 +00:00
parent 3ff987682d
commit 514119b1f7
3 changed files with 104 additions and 0 deletions

41
tldr/aws-acm-pca Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# aws acm-pca
> AWS Certificate Manager Private Certificate Authority.
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/acm-pca/index.html>.
- Create a private certificate authority:
`aws acm-pca create-certificate-authority --certificate-authority-configuration {{ca_config}} --idempotency-token {{token}} --permanent-deletion-time-in-days {{number}}`
- Describe a private certificate authority:
`aws acm-pca describe-certificate-authority --certificate-authority-arn {{ca_arn}}`
- List private certificate authorities:
`aws acm-pca list-certificate-authorities`
- Update a certificate authority:
`aws acm-pca update-certificate-authority --certificate-authority-arn {{ca_arn}} --certificate-authority-configuration {{ca_config}} --status {{status}}`
- Delete a private certificate authority:
`aws acm-pca delete-certificate-authority --certificate-authority-arn {{ca_arn}}`
- Issue a certificate:
`aws acm-pca issue-certificate --certificate-authority-arn {{ca_arn}} --certificate-signing-request {{cert_signing_request}} --signing-algorithm {{algorithm}} --validity {{validity}}`
- Revoke a certificate:
`aws acm-pca revoke-certificate --certificate-authority-arn {{ca_arn}} --certificate-serial {{serial}} --reason {{reason}}`
- Get certificate details:
`aws acm-pca get-certificate --certificate-authority-arn {{ca_arn}} --certificate-arn {{cert_arn}}`

41
tldr/aws-amplify Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# aws amplify
> Development platform for building secure, scalable mobile and web applications.
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/amplify/index.html>.
- Create a new Amplify app:
`aws amplify create-app --name {{app_name}} --description {{description}} --repository {{repo_url}} --platform {{platform}} --environment-variables {{env_vars}} --tags {{tags}}`
- Delete an existing Amplify app:
`aws amplify delete-app --app-id {{app_id}}`
- Get details of a specific Amplify app:
`aws amplify get-app --app-id {{app_id}}`
- List all Amplify apps:
`aws amplify list-apps`
- Update settings of an Amplify app:
`aws amplify update-app --app-id {{app_id}} --name {{new_name}} --description {{new_description}} --repository {{new_repo_url}} --environment-variables {{new_env_vars}} --tags {{new_tags}}`
- Add a new backend environment to an Amplify app:
`aws amplify create-backend-environment --app-id {{app_id}} --environment-name {{env_name}} --deployment-artifacts {{artifacts}}`
- Remove a backend environment from an Amplify app:
`aws amplify delete-backend-environment --app-id {{app_id}} --environment-name {{env_name}}`
- List all backend environments in an Amplify app:
`aws amplify list-backend-environments --app-id {{app_id}}`

22
tldr/osx/automount Normal file
View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, osx]
source: https://github.com/tldr-pages/tldr.git
---
# automount
> Read the `/etc/auto_master` file and mount `autofs` on the appropriate mount points to trigger the on-demand mounting of directories. Essentially, it's a way to manually initiate the system's automounting process.
> Note: You'll most likely need to run with `sudo` if you don't have the necessary permissions.
> More information: <https://keith.github.io/xcode-man-pages/automount.8.html>.
- Run automount, flush the cache(`-c`) beforehand, and be verbose(`-v`) about it (most common use):
`automount -cv`
- Automatically unmount after 5 minutes (300 seconds) of inactivity:
`automount -t 300`
- Unmount anything previously mounted by automount and/or defined in `/etc/auto_master`:
`automount -u`