- Cell based architecture to reduce traffic over azs
- Ipv6 to remove nats
- Nat instances using alternat
- S3 bucket key enablement for encrypted buckets to reduce kms
- Savings plans instead of reserved instances
- Restricting services and regions by scps
- Aws budgets on cost and usage
- Using nlbs instead of albs
- Rightsizing
- Spot instances
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Thanks to Andrew Zhang in hangops on 2024-10-18 | |
# Get the battery percentage | |
battery_info=$(pmset -g batt) | |
battery_discharging=$(echo "$battery_info" | grep discharging -c) | |
battery_percentage=$(echo "$battery_info" | grep -o "[0-9]*%" | tr -d '%') | |
# Check if the battery percentage is less than threshold |
The current script simply uses kandji to run local homebrew to upgrade xz
if it's vulnerable.
This is very useful if kandji was not used to provision homebrew and was installed by the user.
The way it works is
- Get the prefix of homebrew which is different if on arm or x86
- Determine the user that installed homebrew
Here are the steps
- Identify an ingress aws account for your primary aws role (where atlantis first assumes a role)
- Create standard iam roles across each aws account that allows the role from 1 (primary aws role) to assume these new roles
- Stand up atlantis and have it assume role 1 (primary aws role) by default
- Use the terraform block in each terraform root dir to assume the appropriate role. If you do not have an internal account map module, you can hard code the
role_arn
in the aws provider block.
NewerOlder