Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/canonical/aws-marketplace-ubuntu-scraper
CLI to return the Ubuntu AMIs in AWS marketplace
https://github.com/canonical/aws-marketplace-ubuntu-scraper
Last synced: about 2 months ago
JSON representation
CLI to return the Ubuntu AMIs in AWS marketplace
- Host: GitHub
- URL: https://github.com/canonical/aws-marketplace-ubuntu-scraper
- Owner: canonical
- License: other
- Created: 2019-07-04T10:28:33.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-19T04:27:27.000Z (11 months ago)
- Last Synced: 2024-05-11T22:43:05.784Z (4 months ago)
- Language: Python
- Size: 32.2 KB
- Stars: 4
- Watchers: 15
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS Marketplace Ubuntu AMI Scraper
CLI to return the Ubuntu AMIs in AWS marketplace
## Basic setup
Install from [PyPi](https://pypi.org/project/aws-marketplace-ubuntu-scraper/)
```
$ pip install aws-marketplace-ubuntu-scraper
```... OR ...
Install the requirements manually:
```
$ pip install -r requirements.txt
```You will also need [Firefox](https://www.mozilla.org/en-US/firefox/new/) installed and [geckodriver](https://github.com/mozilla/geckodriver/releases) available in your PATH.
For running the `quicklaunch-report`, you also need the `simplestreams` snap installed:
```
snap install simplestreams
```I recommend you create a new IAM user with no permissions granted.
Ensure that you have opted in to all the AWS regions that are opt in only and
that you want quicklaunch listings for.You will also need to set up your aws credentials for use with [boto3](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html)
Run the application:
```
$ python -m aws_marketplace_ubuntu_scraper --help# Print details of the Ubuntu quicklaunch entries for each region
$ python -m aws_marketplace_ubuntu_scraper quicklaunch --iam-account-id="YOUR IAM ACCOUNT ID" --iam-username="YOUR IAM USERNAME" --iam-password="YOUR IAM PASSSWORD"# Print details of the Ubuntu marketplace listings
$ python -m aws_marketplace_ubuntu_scraper marketplace```
To run the tests:
```
$ pytest
```