Chaos SSM Documents 项目教程

Chaos SSM Documents 项目教程

chaos-ssm-documents Collection of AWS SSM Documents to perform Chaos Engineering experiments chaos-ssm-documents 项目地址: https://gitcode.com/gh_mirrors/ch/chaos-ssm-documents

1. 项目目录结构及介绍

Chaos SSM Documents 项目是一个用于在 AWS 云环境中执行混沌工程实验的集合。项目的目录结构如下:

chaos-ssm-documents/
├── automation/
│   ├── cpu-stress.yml
│   ├── io-stress.yml
│   ├── memory-stress.yml
│   └── ...
├── run-command/
│   ├── blackhole-stress.yml
│   ├── cpu-stress.yml
│   ├── io-stress.yml
│   └── ...
├── .gitignore
├── LICENSE
└── README.md

目录介绍

  • automation/: 包含用于 AWS SSM Automation 的文档,这些文档用于在 AWS 资源上执行混沌工程实验。
  • run-command/: 包含用于 AWS SSM Run Command 的文档,这些文档用于在 EC2 实例上执行混沌工程实验。
  • .gitignore: 指定 Git 版本控制系统忽略的文件和目录。
  • LICENSE: 项目的开源许可证文件。
  • README.md: 项目的介绍和使用说明。

2. 项目的启动文件介绍

项目的启动文件主要位于 automation/run-command/ 目录下。这些文件定义了如何在 AWS 资源上执行混沌工程实验。

启动文件示例

automation/cpu-stress.yml
---
schemaVersion: '2.2'
description: |
  ## What does this document do?
  It injects CPU stress on the target EC2 instance using the stress-ng tool.
  ...
mainSteps:
  - name: InstallDependencies
    action: aws:runShellScript
    inputs:
      runCommand:
        - sudo yum install -y stress-ng
  - name: InjectCPUStress
    action: aws:runShellScript
    inputs:
      runCommand:
        - stress-ng --cpu 2 --timeout 60s
run-command/blackhole-stress.yml
---
schemaVersion: '2.2'
description: |
  ## What does this document do?
  It drops incoming or outgoing traffic for a configurable protocol (tcp or udp) and port using iptables.
  ...
mainSteps:
  - name: InstallDependencies
    action: aws:runShellScript
    inputs:
      runCommand:
        - sudo yum install -y iptables
  - name: FaultInjection
    action: aws:runShellScript
    inputs:
      runCommand:
        - iptables -A INPUT -p tcp --dport 80 -j DROP

3. 项目的配置文件介绍

项目的配置文件主要包括 README.mdLICENSE 文件。

README.md

README.md 文件提供了项目的概述、安装说明、使用示例以及如何贡献代码的指南。它是用户了解项目的第一手资料。

LICENSE

LICENSE 文件指定了项目的开源许可证类型。Chaos SSM Documents 项目使用的是 MIT 许可证,这意味着用户可以自由使用、修改和分发代码,但需要保留原始许可证声明。

总结

Chaos SSM Documents 项目通过提供一系列 AWS SSM 文档,帮助用户在 AWS 云环境中执行混沌工程实验。项目的目录结构清晰,启动文件定义了具体的实验操作,配置文件则提供了项目的使用说明和许可证信息。通过这些资源,用户可以轻松地在 AWS 环境中进行混沌工程实践。

chaos-ssm-documents Collection of AWS SSM Documents to perform Chaos Engineering experiments chaos-ssm-documents 项目地址: https://gitcode.com/gh_mirrors/ch/chaos-ssm-documents

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

魏侃纯Zoe

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值