# oh-my-aws-outage
Simple wrapper around the AWS API to create an outage for a few services.
# Usage
```python
from aws_outage.network_outage import NetworkOutage
# Network outage of one AZ for one or more vpcs
print('[~] Taking service down...')
outage_duration = 30
vpc = 'some-vpc-name'
with NetworkOutage('eu-central-1', 'eu-central-1a', outage_duration, vpc) as o:
print(f'[+] Service is now down for {outage_duration} seconds!')
o.outage(duration=outage_duration)
print('[+] Service restored!')
```
Simple wrapper around the AWS API to create an outage for a few services.
# Usage
```python
from aws_outage.network_outage import NetworkOutage
# Network outage of one AZ for one or more vpcs
print('[~] Taking service down...')
outage_duration = 30
vpc = 'some-vpc-name'
with NetworkOutage('eu-central-1', 'eu-central-1a', outage_duration, vpc) as o:
print(f'[+] Service is now down for {outage_duration} seconds!')
o.outage(duration=outage_duration)
print('[+] Service restored!')
```
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file oh-my-aws-outage-v0.1.3.tar.gz.
File metadata
- Download URL: oh-my-aws-outage-v0.1.3.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
235edabbdbb05989af980b60de7ddbdb482d34c6921f534c94805af12385da84
|
|
| MD5 |
fcb5cd35e05c2aa9d8985fbafa2c72fd
|
|
| BLAKE2b-256 |
72f235000f19c566c0aabbbffeb7b909b991e85e0a5c3d7d0a057d18697be60d
|