Deploying PGD using TPA
=======================

The standard way of automatically deploying EDB Postgres Distributed in
a self-managed setting is to use EDB’s deployment tool: :ref:`Trusted Postgres Architect <Trusted Postgres Architect>` 
(TPA). This applies to physical and virtual machines, both self-hosted
and in the cloud (EC2),

..  Note Get started with TPA and PGD quickly ::
   If you want to experiment with a local deployment as quickly as possible, you can  :ref:`deploy an EDB Postgres Distributed example cluster on Docker <Deploying an EDB Postgres Distributed example cluster on Docker>`  to configure, provision, and deploy a PGD 5 Always-on cluster on Docker. If deploying to the cloud is your aim, you can  :ref:`deploy an EDB Postgres Distributed example cluster on AWS <Deploying an EDB Postgres Distributed example cluster on AWS>`  to get a PGD 5 cluster on your own Amazon account.

If you want to run on your own Linux systems or VMs, you can also use
TPA to :ref:`deploy EDB Postgres Distributed directly to your own Linux hosts <Deploying an EDB Postgres Distributed example cluster on Linux hosts>`  .

Prerequisite: Install TPA
-------------------------

Before you can use TPA to deploy PGD, you must install TPA. Follow the
:ref:`installation instructions in the Trusted Postgres Architect documentation <Installing PGD CLI with TPA>`  before continuing.

At the highest level, using TPA to deploy PGD involves the following
steps:

   1: :ref:`Use TPA to create a configuration <Configuring a PGD cluster with TPA>`  for your PGD cluster.

   2: :ref:`Provision, deploy, and test <Provisioning, deploying, and testing>`  your PGD cluster.

.. toctree::
  :maxdepth: 3

  Get_Started--deploy-config--deploy-tpa--deploying--01-configuring
  Get_Started--deploy-config--deploy-tpa--deploying--02-deploying
