Skip to content

Latest commit

 

History

History
117 lines (89 loc) · 4.39 KB

cloud_notes.md

File metadata and controls

117 lines (89 loc) · 4.39 KB

Cloud Notes

  • Principles of Chaos Engineering covers experimenting on a deployment/system to uncover systemic issues:
    • Define a measurable "steady state".
    • Expectation that "steady state" should continue in both control/test groups.
    • Introduce "real world" events (crashes, connectivity failures, infrastructure failures,...).
    • Disprove expectations.
  • Confidence comes from extremes it takes to disprove the control vs test expectation,
  • See:
  • Verify your stateless/statefull cloud application/infrastructure deployments resilience by randomly nuking nodes.

Docker/Kubernetes

Docker:

Kubernetes:

AWS

ASW CLI

  • AWS CLI docker.
  • docker run --rm -it -v ~/.aws:/root/.aws amazon/aws-cli --color=on --profile=development-poweruser --region=us-east-1 ec2 describe-instances

Latest AMI's

AMI's are rapidly updated, so here are the commands to get back the latest Linux/Windows AMI paths, which can then be used to get the latest ID for a specific path:

# All latest Amazon Linux AMI's:
aws ssm get-parameters-by-path --path "/aws/service/ami-amazon-linux-latest" --region <region> --profile <profile>
# All latest Windows AMI's:
aws ssm get-parameters-by-path --path "/aws/service/ami-windows-latest" --region <region> --profile <profile>

SSM

  • Run PowerShell command and log to CloudWatch:

    aws ssm send-command --instance-ids "<instance_id>" --profile <profile> --cloud-watch-output-config "CloudWatchLogGroupName=echotest,CloudWatchOutputEnabled=true" --document-name AWS-RunPowerShellScript --parameters commands="echo Hello World"

INVESTIGATE

Link dump of things I need to INVESTIGATE or document further: