From d926fe31d065509af440a163fe5910e355784118 Mon Sep 17 00:00:00 2001 From: Tim Gurney aka Wolf Date: Thu, 11 Feb 2021 20:03:14 +0000 Subject: [PATCH] The initial commit --- .github/CODEOWNERS | 5 + .github/CODE_OF_CONDUCT.md | 76 ++++++++++++ .github/CONTRIBUTING.md | 9 ++ .github/FUNDING.yml | 4 + .github/ISSUE_TEMPLATE/ask_question.md | 10 ++ .github/ISSUE_TEMPLATE/bug_report.md | 30 +++++ .github/ISSUE_TEMPLATE/config.yml | 1 + .github/ISSUE_TEMPLATE/feature_request.md | 20 +++ .github/PULL_REQUEST_TEMPLATE.md | 28 +++++ .github/SECURITY.md | 39 ++++++ .github/SUPPORT.md | 8 ++ .gitignore | 1 + .travis.yml | 145 ++++++++++++++++++++++ CHANGELOG.md | 13 ++ LICENSE.md | 25 ++++ README.md | 90 ++++++++++++++ VERSION.txt | 1 + setup.cfg | 4 + src/list-rds-instances.py | 140 +++++++++++++++++++++ src/requirements.txt | 4 + stale.yml | 17 +++ 21 files changed, 670 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/CODE_OF_CONDUCT.md create mode 100644 .github/CONTRIBUTING.md create mode 100644 .github/FUNDING.yml create mode 100644 .github/ISSUE_TEMPLATE/ask_question.md create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/SECURITY.md create mode 100644 .github/SUPPORT.md create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 CHANGELOG.md create mode 100644 LICENSE.md create mode 100644 README.md create mode 100644 VERSION.txt create mode 100644 setup.cfg create mode 100755 src/list-rds-instances.py create mode 100644 src/requirements.txt create mode 100644 stale.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..50be806 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,5 @@ +# +# These owners will be the default owners for everything in the repo. +# +* @TGWolf + diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..09827eb --- /dev/null +++ b/.github/CODE_OF_CONDUCT.md @@ -0,0 +1,76 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, sex characteristics, gender identity and expression, +level of experience, education, socio-economic status, nationality, personal +appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the project team at . All +complaints will be reviewed and investigated and will result in a response that +is deemed necessary and appropriate to the circumstances. The project team is +obligated to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, +available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see +https://www.contributor-covenant.org/faq diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md new file mode 100644 index 0000000..4b7899f --- /dev/null +++ b/.github/CONTRIBUTING.md @@ -0,0 +1,9 @@ +# Contributing + +Please refer to the [contributing](https://github.com/WolfSoftware/contributing) documentation. + +## Important + +ALL commits must be signed to ensure the identity of the developer, any pull requests that are made with unsigned commits will be rejected as a matter of course. + +> This project has a [code of conduct](CODE_OF_CONDUCT.md). By interacting with this repository, organization, or community you agree to abide by its terms. diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..d64f8c6 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,4 @@ +# Funding +# https://help.github.com/en/github/administering-a-repository/displaying-a-sponsor-button-in-your-repository + +ko_fi: wolfsoftware diff --git a/.github/ISSUE_TEMPLATE/ask_question.md b/.github/ISSUE_TEMPLATE/ask_question.md new file mode 100644 index 0000000..adfe740 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/ask_question.md @@ -0,0 +1,10 @@ +--- +name: Ask a question +about: Feel free to ask us a question +title: '' +labels: 'question' +assignees: 'TGWolf' + +--- + +**What would you like to know?** diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..906afcb --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,30 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: 'bug' +assignees: 'TGWolf' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. +2. +3. +4. + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Environment** +Any relevant information about your environment, OS version, virtualised or not. + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..3ba13e0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: false diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..4134b6b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: 'enhancement' +assignees: 'TGWolf' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..f9dea8a --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,28 @@ +Thanks for submitting a pull request! Please provide enough information so that others can review your pull request: + +**Summary** + + + +This PR fixes/implements the following **bugs/features** + +* [ ] Bug 1 +* [ ] Feature 1 +* [ ] Breaking changes + + + +Explain the **motivation** for making this change. What existing problem does the pull request solve? + + + +**Test plan (required)** + +Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots help greatly. + + + +**Closing issues** + + +Fixes # diff --git a/.github/SECURITY.md b/.github/SECURITY.md new file mode 100644 index 0000000..e8e4982 --- /dev/null +++ b/.github/SECURITY.md @@ -0,0 +1,39 @@ +# Security Policies and Procedures + +This document outlines security procedures and general policies for this project. + + * [Reporting a Bug](#reporting-a-bug) + * [Disclosure Policy](#disclosure-policy) + * [Comments on this Policy](#comments-on-this-policy) + +## Reporting a Bug + +We take **ALL** security related bugs and issues very seriously. + +If you think you have identified a security related issue, please [report it immediately](mailto:disclose@wolfsoftware.com) +and include the word "SECURITY" in the subject line. If you are not sure, don’t worry. +Better safe than sorry – just send an email. + +* Please provide as much information as you can. +* Please do not open issues related to any security concerns publicly. +* Please do not include anyone else on the disclosure email. + +Report security bugs in third-party modules to the person or team maintaining +the module. + +## Disclosure Policy + +When a security report is received, we will carry out the following steps: + + * Confirm the problem and determine the affected versions. + * Audit code to find any potential similar problems. + * Prepare fixes for all releases still under maintenance. These fixes will be + released as fast as possible. + +We will endeavor to keep you informed of the progress towards a fix +and full announcement, and may ask for additional information or guidance. + +## Comments on this Policy + +If you have suggestions on how this process could be improved please submit a +pull request. diff --git a/.github/SUPPORT.md b/.github/SUPPORT.md new file mode 100644 index 0000000..593f768 --- /dev/null +++ b/.github/SUPPORT.md @@ -0,0 +1,8 @@ +# Support + +If the documentation is not providing the information that you require then you have a couple of options: + +1. [Start a discussion](https://github.com/AWSToolbox/list-rds-instances/discussions). +1. [Open an issue](https://github.com/AWSToolbox/list-rds-instances/issues), using the `Ask a question` option. + +> This project has a [code of conduct](CODE_OF_CONDUCT.md). By interacting with this repository, organization, or community you agree to abide by its terms. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..782dea4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +**/ab-results* diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..0b15b30 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,145 @@ +matrix: + include: + - language: python + name: Compatibility Test (Python 3.6 + Bandit) + python: 3.6 + before_install: + - git clone https://github.com/TravisToolbox/bandit.git + install: + - "./bandit/install.sh" + script: + - "./bandit/scan.sh" + - language: python + name: Compatibility Test (Python 3.6 + Pur) + python: 3.6 + before_install: + - git clone https://github.com/TravisToolbox/pur.git + install: + - "./pur/install.sh" + script: + - "./pur/scan.sh" + - language: python + name: Compatibility Test (Python 3.6 + Pycodestyle) + python: 3.6 + before_install: + - git clone https://github.com/TravisToolbox/pycodestyle.git + install: + - "./pycodestyle/install.sh" + script: + - "./pycodestyle/scan.sh" + - language: python + name: Compatibility Test (Python 3.7 + Bandit) + python: 3.7 + before_install: + - git clone https://github.com/TravisToolbox/bandit.git + install: + - "./bandit/install.sh" + script: + - "./bandit/scan.sh" + - language: python + name: Compatibility Test (Python 3.7 + Pur) + python: 3.7 + before_install: + - git clone https://github.com/TravisToolbox/pur.git + install: + - "./pur/install.sh" + script: + - "./pur/scan.sh" + - language: python + name: Compatibility Test (Python 3.7 + Pycodestyle) + python: 3.7 + before_install: + - git clone https://github.com/TravisToolbox/pycodestyle.git + install: + - "./pycodestyle/install.sh" + script: + - "./pycodestyle/scan.sh" + - language: python + name: Compatibility Test (Python 3.8 + Bandit) + python: 3.8 + before_install: + - git clone https://github.com/TravisToolbox/bandit.git + install: + - "./bandit/install.sh" + script: + - "./bandit/scan.sh" + - language: python + name: Compatibility Test (Python 3.8 + Pur) + python: 3.8 + before_install: + - git clone https://github.com/TravisToolbox/pur.git + install: + - "./pur/install.sh" + script: + - "./pur/scan.sh" + - language: python + name: Compatibility Test (Python 3.8 + Pycodestyle) + python: 3.8 + before_install: + - git clone https://github.com/TravisToolbox/pycodestyle.git + install: + - "./pycodestyle/install.sh" + script: + - "./pycodestyle/scan.sh" + - language: python + name: Compatibility Test (Python 3.9 + Bandit) + python: 3.9 + before_install: + - git clone https://github.com/TravisToolbox/bandit.git + install: + - "./bandit/install.sh" + script: + - "./bandit/scan.sh" + - language: python + name: Compatibility Test (Python 3.9 + Pur) + python: 3.9 + before_install: + - git clone https://github.com/TravisToolbox/pur.git + install: + - "./pur/install.sh" + script: + - "./pur/scan.sh" + - language: python + name: Compatibility Test (Python 3.9 + Pycodestyle) + python: 3.9 + before_install: + - git clone https://github.com/TravisToolbox/pycodestyle.git + install: + - "./pycodestyle/install.sh" + script: + - "./pycodestyle/scan.sh" + - language: ruby + name: YAML Linting (rvm 2.7) + rvm: 2.7 + before_install: + - git clone https://github.com/TravisToolbox/yaml-lint + install: + - "./yaml-lint/install.sh" + script: + - "./yaml-lint/scan.sh" + - language: bash + name: Shellcheck (Bash) + os: linux + arch: arm64-graviton2 + before_install: + - git clone https://github.com/TravisToolbox/shellcheck + install: + - "./shellcheck/install.sh" + script: + - "./shellcheck/scan.sh" + - language: ruby + name: Link Checking (rvm 2.7) + rvm: 2.7 + env: + - WHITELIST="https://img.shields.io" + - EXCLUDE_FILES="CHANGELOG.md" + before_install: + - git clone https://github.com/TravisToolbox/awesomebot + install: + - "./awesomebot/install.sh" + script: + - "./awesomebot/scan.sh" +notifications: + email: false + slack: + secure: JBFh0jGTQFXTFPIYnhPaHaunFUui4jxj39vqOb2EQSY5TnHc7lGg99WDWUxdqh1LZ1E1/rMRnf4V24RJ0Gexhy7l7XhMcWJPYcDMr8qpnDydAYfsT6UOTargrZqW56HailHy2LQU7N32OqLTqjPQpIkTGlkEwObO7Hdyjja9iTg8e16pJq/eDhww1GBxbUUhEs9v0N6x5LD3P9Q3sqGD+B1MAFvRANlyTs3ZZuB2KTDaD4e6NNOAK14ek+S0VCWZCJbArw8D5fJxZKVrfGrVbpPrQ+94ZqkI9tnfwoBDjL9dUqdipR1/LFwv+ZGTsHupM/W6tYWs7KhiajTw/kt2etOXDzRbCeTzR0XgsL9x7D6xRF7Ru0MBoRVrojF1EW51P9LWiY2c9wOeV9Q0Mhzv154VDRcyTPyWnkdu/6SHM4cIAzBW5gRkvRCnbuhNdfh8MqTpKmi16yvehidSDDbdeqELgITmBbVS6ag3E3gHagh1qh5Ji2SzuyJPPWkW1AZq0iHYx3Fk3ehPt3py7BoIPmM1H4n0DYqgjp6uwWhD25mdkyXDotZ4ALboDZn5beVWh58hN9qasGRjZKLQG552acSmHQvflJU5gH+PdRXtO9lxdkUhn/N5Ceypoy3sXrPktLIxGbFjPuh01vBhHJgviC9uDQVagNees4hFR+xkV2A= diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..96cfb83 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,13 @@ +# Changelog + +All notable changes to this project will be documented in this file. + + +This changelog was automatically generated using [Caretaker](https://github.com/DevelopersToolbox/caretaker) by [Wolf Software](https://github.com/WolfSoftware) + +### [v0.1.0](https://github.com/AWSToolbox/list-rds-instances/releases/v0.1.0) + +> Released on February, 11th 2021 + +- The initial commit [`[head]`](https://github.com/AWSToolbox/list-rds-instances/commit/) + diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..0577248 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,25 @@ +The MIT License (MIT) +===================== + +Copyright © `2009-2021` `Wolf Software Limited` + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the “Software”), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..5b5bbc8 --- /dev/null +++ b/README.md @@ -0,0 +1,90 @@ +

+ + Wolf Software Logo + +
+ List all RDS Instances +

+ + +

+ + Build Status + + + Release + + + Commits since release + + + Software License + +
+ + + + + + + + + + + + +

+ +## Overview + +This script will list all of your RDS instances in a given region. + +### Installation + +Once you have cloned the code you will need to install the required python packages. + +``` +pip install -r requirements.txt +``` +> The requirements file is in the src directory + +### Usage + +```shell +./list-rds-instances.py [-r region] +``` + +### Requirements + +You will need a valid set of AWS credentials in order to run this command. + +### Results + +The script will return the following details for each RDS instances it finds. + +* Instance Name +* Instance Class +* Status +* Availability Zone(s) +* Publicly Accessible +* Allocated Storage +* Storage Encrypted +* Engine +* Engine Version +* Performance Insights + +## Contributors + +

+ + + +

+ +## Show Support + +

+ + + +

diff --git a/VERSION.txt b/VERSION.txt new file mode 100644 index 0000000..6e8bf73 --- /dev/null +++ b/VERSION.txt @@ -0,0 +1 @@ +0.1.0 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..86ad7f3 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,4 @@ +[pycodestyle] +count = True +statistics = True +ignore = E126,E501 diff --git a/src/list-rds-instances.py b/src/list-rds-instances.py new file mode 100755 index 0000000..945952d --- /dev/null +++ b/src/list-rds-instances.py @@ -0,0 +1,140 @@ +#!/usr/bin/env python + +""" +Example Usage: + + ./list-rds-instances.py +""" + +from __future__ import print_function + +import argparse +import boto3 +import requests +import sys + +from botocore.exceptions import ClientError, EndpointConnectionError +from prettytable import PrettyTable + +empty_string = '' +unknown_string = 'Unknown' +unknown_version = '0.0.0' +unknown_int = 0 + + +def main(cmdline=None): + + """ + The main function. This takes the command line arguments provided and parse them. + """ + + parser = make_parser() + + args = parser.parse_args(cmdline) + + if args.region: + client = boto3.client('rds', region_name=args.region) + else: + client = boto3.client('rds') + + results = query_api(client, args) + display_results(results) + + +def make_parser(): + + """ + This function builds up the command line parser that is used by the script. + """ + + parser = argparse.ArgumentParser(description='List RDS Instances') + + parser.add_argument('-r', '--region', help='The aws region') + return parser + + +def query_api(client, args): + """ + Query the API + """ + + results = [] + + try: + response = client.describe_db_instances() + except EndpointConnectionError as e: + print("ERROR: %s (Probably an invalid region!)" % e) + except Exception as e: + print("Unknown error: " + str(e)) + else: + if 'DBInstances' in response: + for parts in response['DBInstances']: + if 'AvailabilityZone' in parts: + if 'SecondaryAvailabilityZone' in parts: + AZS = '%s & %s' % (parts['AvailabilityZone'], parts['SecondaryAvailabilityZone']) + else: + AZS = parts['AvailabilityZone'] + else: + AZS = unknown_string + + results.append({ + 'InstanceName': parts['DBInstanceIdentifier'] if 'DBInstanceIdentifier' in parts else unknown_string, + 'InstanceClass': parts['DBInstanceClass'] if 'DBInstanceClass' in parts else unknown_string, + 'Status': parts['DBInstanceStatus'] if 'DBInstanceStatus' in parts else unknown_string, + 'AvailabilityZone': AZS, + 'PubliclyAccessible': parts['PubliclyAccessible'] if 'PubliclyAccessible' in parts else unknown_string, + 'AllocatedStorage': parts['AllocatedStorage'] if 'AllocatedStorage' in parts else unknown_string, + 'StorageEncrypted': parts['StorageEncrypted'] if 'StorageEncrypted' in parts else unknown_string, + 'Engine': parts['Engine'] if 'Engine' in parts else unknown_string, + 'EngineVersion': parts['EngineVersion'] if 'EngineVersion' in parts else unknown_string, + 'PerformanceInsightsEnabled': parts['PerformanceInsightsEnabled'] if 'PerformanceInsightsEnabled' in parts else unknown_string, + }) + return results + + +def display_results(results): + """ + Display the results + """ + + table = PrettyTable() + + table.field_names = [ + 'Instance Name', + 'Instance Class', + 'Status', + 'Availability Zone(s)', + 'Publicly Accessible', + 'Allocated Storage', + 'Storage Encrypted', + 'Engine', + 'Engine Version', + 'Performance Insights' + ] + + for parts in results: + table.add_row([ + parts['InstanceName'], + parts['InstanceClass'], + parts['Status'], + parts['AvailabilityZone'], + parts['PubliclyAccessible'], + '%s GB' % parts['AllocatedStorage'], + parts['StorageEncrypted'], + parts['Engine'], + parts['EngineVersion'], + parts['PerformanceInsightsEnabled'] + ]) + + table.sortby = 'Instance Name' + print(table) + + +if __name__ == "__main__": + + # This runs when the application is run from the command it grabs sys.argv[1:] which is everything after + # the program name and passes it to main the return value from main is then used as the argument to + # sys.exit, which you can test for in the shell. program exit codes are usually 0 for ok, and non-zero + # for something going wrong. + + sys.exit(main(sys.argv[1:])) diff --git a/src/requirements.txt b/src/requirements.txt new file mode 100644 index 0000000..a82eefd --- /dev/null +++ b/src/requirements.txt @@ -0,0 +1,4 @@ +requests==2.25.1 +boto3==1.17.5 +prettytable==2.0.0 +botocore==1.20.5 diff --git a/stale.yml b/stale.yml new file mode 100644 index 0000000..a390ffb --- /dev/null +++ b/stale.yml @@ -0,0 +1,17 @@ +# Number of days of inactivity before an issue becomes stale +daysUntilStale: 60 +# Number of days of inactivity before a stale issue is closed +daysUntilClose: 7 +# Issues with these labels will never be considered stale +exemptLabels: + - pinned + - security +# Label to use when marking an issue as stale +staleLabel: wontfix +# Comment to post when marking an issue as stale. Set to `false` to disable +markComment: > + This issue has been automatically marked as stale because it has not had + recent activity. It will be closed if no further activity occurs. Thank you + for your contributions. +# Comment to post when closing a stale issue. Set to `false` to disable +closeComment: true