Friday, November 4, 2022
AWS Config - Disable recording mode
ACCOUNT_ID="123456789"
CMD="aws sts assume-role --role-arn arn:aws:iam::${ACCOUNT_ID}:role/AWSControlTowerExecution --role-session-name AWSCLI-Session"
OUTPUT=$(bash -c "${CMD}")
export AWS_ACCESS_KEY_ID=`echo ${OUTPUT} | jq -r '.Credentials .AccessKeyId'`
export AWS_SECRET_ACCESS_KEY=`echo ${OUTPUT} | jq -r '.Credentials .SecretAccessKey'`
export AWS_SESSION_TOKEN=`echo ${OUTPUT} | jq -r '.Credentials .SessionToken'`
aws configservice stop-configuration-recorder --configuration-recorder-name aws-controltower-BaselineConfigRecorder --region us-east-1
aws configservice stop-configuration-recorder --configuration-recorder-name aws-controltower-BaselineConfigRecorder --region us-east-2
Go language journey
package main
import "fmt"
func main() {
fmt.Println("Hello, World")
}
//!-
Saturday, October 28, 2017
Tuesday, July 25, 2017
Sunday, February 12, 2017
Wednesday, December 28, 2016
Friday, September 30, 2016
Process memory usage
ps aux | awk '{print $2, $4, $11}' | sort -k2r | head -n 20 | grep $PID
Sunday, September 25, 2016
Richmond Country Clerk (real property search)
Here is link of Richmond Country Clerk purchase records - http://hosted.uslandrecords.com/cgibin/homepage?County=8007
Tuesday, September 13, 2016
Subscribe to:
Posts (Atom)