

Die vorliegende Übersetzung wurde maschinell erstellt. Im Falle eines Konflikts oder eines Widerspruchs zwischen dieser übersetzten Fassung und der englischen Fassung (einschließlich infolge von Verzögerungen bei der Übersetzung) ist die englische Fassung maßgeblich.

# Erstellen Sie CloudFormation AWS-Vorlagen für AWS DMS-Aufgaben mit Microsoft Excel und Python
<a name="create-aws-cloudformation-templates-for-aws-dms-tasks-using-microsoft-excel-and-python"></a>

*Venkata Naveen Koppula, Amazon Web Services*

## Zusammenfassung
<a name="create-aws-cloudformation-templates-for-aws-dms-tasks-using-microsoft-excel-and-python-summary"></a>

Dieses Muster beschreibt die Schritte zur automatischen Erstellung von CloudFormation AWS-Vorlagen für [AWS Database Migration Service](https://aws.amazon.com/dms/) (AWS DMS) mit Microsoft Excel und Python.

Die Migration von Datenbanken mithilfe von AWS DMS beinhaltet häufig die Erstellung von CloudFormation AWS-Vorlagen zur Bereitstellung von AWS DMS-Aufgaben. Bisher waren für die Erstellung von CloudFormation AWS-Vorlagen Kenntnisse der Programmiersprache JSON oder YAML erforderlich. Mit diesem Tool benötigen Sie nur Grundkenntnisse in Excel und in der Ausführung eines Python-Skripts über ein Terminal oder ein Befehlsfenster.

Als Eingabe verwendet das Tool eine Excel-Arbeitsmappe, die die Namen der zu migrierenden Tabellen, Amazon-Ressourcennamen (ARNs) von AWS-DMS-Endpunkten und AWS-DMS-Replikationsinstanzen enthält. Das Tool generiert dann CloudFormation AWS-Vorlagen für die erforderlichen AWS DMS-Aufgaben.

Ausführliche Schritte und Hintergrundinformationen finden Sie im Blogbeitrag [ CloudFormation AWS-Vorlagen für AWS-DMS-Aufgaben mithilfe von Microsoft Excel erstellen](https://aws.amazon.com/blogs/database/create-aws-cloudformation-templates-for-aws-dms-tasks-using-microsoft-excel/) im AWS-Datenbank-Blog.

## Voraussetzungen und Einschränkungen
<a name="create-aws-cloudformation-templates-for-aws-dms-tasks-using-microsoft-excel-and-python-prereqs"></a>

**Voraussetzungen**
+ Ein aktives AWS-Konto
+ Microsoft Excel Version 2016 oder höher
+ Python-Version 2.7 oder höher
+ Das Python-Modul **xlrd** (installiert an einer Befehlszeile mit dem Befehl: **pip install** xlrd)
+ AWS-DMS-Quell- und Zielendpunkte und AWS-DMS-Replikationsinstanz

**Einschränkungen**
+ Die Namen von Schemas, Tabellen und zugehörigen Spalten werden an den Zielendpunkten in Kleinbuchstaben umgewandelt.
+ Dieses Tool befasst sich nicht mit der Erstellung von AWS DMS-Endpunkten und Replikationsinstanzen.
+ Derzeit unterstützt das Tool nur ein Schema für jede AWS DMS-Aufgabe.

## Architektur
<a name="create-aws-cloudformation-templates-for-aws-dms-tasks-using-microsoft-excel-and-python-architecture"></a>

**Quelltechnologie-Stack**
+ Eine lokale Datenbank
+ Microsoft Excel

**Zieltechnologie-Stack**
+  CloudFormation AWS-Vorlagen
+ Eine Datenbank in der AWS-Cloud 

**Architektur**

![Workflow zur Verwendung von Excel und Python zur automatischen Erstellung von CloudFormation Vorlagen für AWS DMS.](http://docs.aws.amazon.com/de_de/prescriptive-guidance/latest/patterns/images/pattern-img/778c7c1e-2647-496f-8afd-52ff1ef02489/images/8fe1550d-8966-41aa-a480-5f7bef20629f.png)


## Tools
<a name="create-aws-cloudformation-templates-for-aws-dms-tasks-using-microsoft-excel-and-python-tools"></a>
+ [Pycharm IDE](https://aws.amazon.com/pycharm/) oder jede integrierte Entwicklungsumgebung (IDE), die Python Version 3.6 unterstützt
+ Microsoft Office 2016 (für Microsoft Excel)

## Epen
<a name="create-aws-cloudformation-templates-for-aws-dms-tasks-using-microsoft-excel-and-python-epics"></a>

### Konfiguration des Netzwerks, der AWS-DMS-Replikationsinstanz und der Endpunkte
<a name="configure-the-network-aws-dms-replication-instance-and-endpoints"></a>


| Aufgabe | Description | Erforderliche Fähigkeiten | 
| --- | --- | --- | 
| Beantragen Sie bei Bedarf eine Erhöhung der Servicequote. | Fordern Sie bei Bedarf eine Erhöhung des Servicekontingents für die AWS DMS-Aufgaben an. | Allgemeines AWS | 
| Konfigurieren Sie die AWS-Region, virtuelle private Clouds (VPCs), CIDR-Bereiche, Availability Zones und Subnetze. |  | Allgemeines AWS | 
| Konfigurieren Sie die AWS DMS-Replikationsinstanz. | Die AWS DMS-Replikationsinstanz kann sich sowohl mit lokalen als auch mit AWS-Datenbanken verbinden. | Allgemeines AWS | 
| Konfigurieren Sie AWS DMS-Endpunkte. | Konfigurieren Sie Endpunkte sowohl für die Quell- als auch für die Zieldatenbank. | Allgemeines AWS | 

### Bereiten Sie die Arbeitsblätter für AWS DMS-Aufgaben und -Tags vor
<a name="prepare-the-worksheets-for-aws-dms-tasks-and-tags"></a>


| Aufgabe | Description | Erforderliche Fähigkeiten | 
| --- | --- | --- | 
| Konfigurieren Sie die Tabellenliste. | Listet alle an der Migration beteiligten Tabellen auf. | Datenbank | 
| Bereiten Sie das Arbeitsblatt mit den Aufgaben vor. | Bereiten Sie das Excel-Arbeitsblatt anhand der von Ihnen konfigurierten Tabellenliste vor. | Allgemein AWS, Microsoft Excel | 
| Bereiten Sie das Tag-Arbeitsblatt vor. | Erläutern Sie die AWS-Ressourcen-Tags, die an die AWS DMS-Aufgaben angehängt werden sollen. | Allgemein AWS, Microsoft Excel | 

### Laden Sie das Tool herunter und führen Sie es aus
<a name="download-and-run-the-tool"></a>


| Aufgabe | Description | Erforderliche Fähigkeiten | 
| --- | --- | --- | 
| Laden Sie das Tool zur Vorlagengenerierung herunter und extrahieren Sie es aus dem GitHub Repository. | GitHub Repository: https://github.com/aws-samples/dms-cloudformation-templates-generator/ |  | 
| Führen Sie das Tool aus. | Folgen Sie den detaillierten Anweisungen im Blogbeitrag, der unter „Referenzen und Hilfe“ aufgeführt ist. |  | 

## Zugehörige Ressourcen
<a name="create-aws-cloudformation-templates-for-aws-dms-tasks-using-microsoft-excel-and-python-resources"></a>
+ [ CloudFormation AWS-Vorlagen für AWS DMS-Aufgaben mit Microsoft Excel erstellen (Blogbeitrag)](https://aws.amazon.com/blogs/database/create-aws-cloudformation-templates-for-aws-dms-tasks-using-microsoft-excel/)
+ [Generator CloudFormation für DMS-Vorlagen (Repository) GitHub ](https://github.com/aws-samples/dms-cloudformation-templates-generator/tree/v1.0)
+ [Python-Dokumentation](https://www.python.org/)
+ [XLRD-Beschreibung und Download](https://pypi.org/project/xlrd/)
+ [AWS DMS-Dokumentation](https://docs.aws.amazon.com/dms/latest/userguide/)
+ [ CloudFormation AWS-Dokumentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/)