# 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!')
```
Metadata
Release files for oh-my-aws-outage v0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| oh-my-aws-outage-v0.1.3.tar.gz | 2.8 kB | Details |
Release files / oh-my-aws-outage-v0.1.3.tar.gz
| Download URL | oh-my-aws-outage-v0.1.3.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
235edabbdbb05989af980b60de7ddbdb482d34c6921f534c94805af12385da84
|
|
BLAKE2b-256 checksum How to use checksums |
72f235000f19c566c0aabbbffeb7b909b991e85e0a5c3d7d0a057d18697be60d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|