From 514119b1f7bc5a03209910f914eac995bf3d58cd Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Thu, 1 Aug 2024 00:16:59 +0000 Subject: [PATCH] Update cheatsheets --- tldr/aws-acm-pca | 41 +++++++++++++++++++++++++++++++++++++++++ tldr/aws-amplify | 41 +++++++++++++++++++++++++++++++++++++++++ tldr/osx/automount | 22 ++++++++++++++++++++++ 3 files changed, 104 insertions(+) create mode 100644 tldr/aws-acm-pca create mode 100644 tldr/aws-amplify create mode 100644 tldr/osx/automount diff --git a/tldr/aws-acm-pca b/tldr/aws-acm-pca new file mode 100644 index 00000000..75f72549 --- /dev/null +++ b/tldr/aws-acm-pca @@ -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: . + +- 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}}` diff --git a/tldr/aws-amplify b/tldr/aws-amplify new file mode 100644 index 00000000..d9b0eabf --- /dev/null +++ b/tldr/aws-amplify @@ -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: . + +- 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}}` diff --git a/tldr/osx/automount b/tldr/osx/automount new file mode 100644 index 00000000..9948b0cb --- /dev/null +++ b/tldr/osx/automount @@ -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: . + +- 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`