Metadata-Version: 2.1
Name: gcpfwup
Version: 1.0.0
Summary: Firewall rule updater for Google Cloud Platform
Home-page: https://github.com/peterdemin/gcpfwup
Author: Peter Demin
Author-email: peterdemin@gmail.com
License: MIT license
Keywords: GCP Firewall
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
License-File: LICENSE

Google Cloud Firewall Updater
=============================

Overview
--------

A command-line utility to update Google Cloud Platform firewall rules.
Particularly, source IP range for allow SSH rule.

Use case
--------

Harden a virtual machine in Google Cloud by allowing only a single IP address to log in through SSH.

Usage
-----

.. code-block::

    gcpfwup service_account_file.json

The only required argument is a path to Google service account JSON key file.
You can download it from Google Cloud Console.
It should be under IAM & Admin / Service Accounts and needs permissions for Google compute engine.

Help
----

.. code-block::

    gcpfwup --help

    usage: gcpfwup [-h] [-v] [--ip IP] service_account_file

    positional arguments:
      service_account_file  path to Google API service account JSON file

    optional arguments:
      -h, --help            show this help message and exit
      -v, --verbose         increase output verbosity
      --ip IP               use this IP instead of auto-resolved public IP
