Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rohitkhatana/aws
python scripts for interacting with aws
https://github.com/rohitkhatana/aws
ansible cloud devops python python-script
Last synced: 3 months ago
JSON representation
python scripts for interacting with aws
- Host: GitHub
- URL: https://github.com/rohitkhatana/aws
- Owner: rohitkhatana
- Created: 2017-10-28T20:42:40.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-01-21T19:36:05.000Z (almost 3 years ago)
- Last Synced: 2024-06-28T06:39:55.182Z (5 months ago)
- Topics: ansible, cloud, devops, python, python-script
- Language: Python
- Size: 8.79 KB
- Stars: 10
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# aws
This repo contains python scripts for interacting with awsThis *get_ips_by_alb_target_group_arn.py* script is written to generate **dynamic inventory for ansible**.
### For fetching the IPs attached to a target group of ALB
1. First change the config file:
```python
profile_name = 'profile_name'
region_name = 'region_name'
arn = 'arn'
group_name = 'app1-group'
```
2. Install the PIP packages (recommend use virtualenv before installing the packages)`pip install -r requirements.txt`
3. Run the scripts
`python get_ips_by_alb_target_group_arn.py`
4. Passing dynamic inventory to ansible playbook
`ansible-playbook main.yml -i get_ips_by_alb_target_group_arn.py`
### For Flushing the cdn
1. First change the config file:
```python
profile_name = 'profile_name'
region_name = 'region_name'
arn = 'arn'
group_name = 'app1-group'
disribution_id = ''
```
2. Install the PIP packages (recommend use virtualenv before installing the packages)`pip install -r requirements.txt`
3. Run the scripts
`python cloudfront.py flush`