- Edit the gp2 storage class to add
allowVolumeExpansion: true
- Edit the persistent volume claim with the new amount of required storage
- Re-create the pod using the persistent volume claim
- The pv and pvc should now reflect the new amount of storage
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 | |
# Compare parameters from two different parameter groups, which can be in different regions or accounts | |
PROFILE1=$1 | |
PG1=$2 | |
PROFILE2=$3 | |
PG2=$4 | |
aws --profile $PROFILE1 rds describe-db-cluster-parameters --db-cluster-parameter-group-name $PG1 --query 'Parameters[].{ParameterName:ParameterName,ParameterValue:ParameterValue}' --output text | sort >> $$-pg1.txt |
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
aws rds describe-db-cluster-parameters \ | |
--db-cluster-parameter-group-name $PARAMETER_GROUP_NAME \ | |
--query 'Parameters[].{ParameterName:ParameterName,DataType:DataType,Source:Source,Description:Description,ParameterValue:ParameterValue} | [?Source == `user`]' |
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
curl -IX GET --connect-to oldhost:443:newhost:443 https://oldhost |
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
aws cognito-idp admin-create-user --user-pool-id eu-west-3_POOLID --username example@gmail.com --message-action RESEND |
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
TZ=":Etc/UTC" aws s3 ls s3://BUCKET/ |
We download the latest release of pfSense as a gzipped ISO, then extract it and pass it to virt-install
to get the VM up and running. Interactive portions of setup are done with virt-install
's native console redirection.
Install and start libvirtd
sudo dnf -y install libvirt-daemon
sudo systemctl enable --now libvirtd
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
./install -b ${HOME}/.local/bin/ -i ${HOME}/awscli |
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 | |
SERVICE_CODE=cloudformation | |
QUOTA_CODE=L-0485CB21 # Number of stacks - find via `aws service-quotas list-service-quotas` or AWS Console | |
DESIRED_VALUE=500 | |
for region in $(aws ec2 describe-regions --query Regions[][RegionName] --output text); do | |
aws service-quotas --region $region request-service-quota-increase \ | |
--service-code $SERVICE_CODE \ | |
--quota-code $QUOTA_CODE \ |
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
count=0 | |
for vol in vol-0123abcd vol-1023abcd vol-2013abcd ; do | |
device="/dev/xvd$(echo $count | tr '[0-9]' '[j-z]')" | |
aws ec2 attach-volume --volume-id $vol --instance-id i-123456789abc --device $device | |
count=$(expr $count + 1) | |
done |
NewerOlder