From d80fa928f82044f5d9e2183537177b68edbe8aa4 Mon Sep 17 00:00:00 2001
From: Michael Tremer <michael.tremer@lightningwirelabs.com>
Date: Wed, 21 Nov 2018 19:38:54 +0000
Subject: [PATCH] AWS: Fix default configuration

The default configuration for AWS was missing the "vyos" user which
has been created as an admin without password here.

SSH keys will now be correctly imported by cloud-init and it is
possible to login again.

Fixes: T1003
Signed-off-by: Michael Tremer <michael.tremer@lightningwirelabs.com>
---
 tools/cloud-init/AWS/config.boot.default | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/tools/cloud-init/AWS/config.boot.default b/tools/cloud-init/AWS/config.boot.default
index 18f6ef097069..de724f0b847d 100644
--- a/tools/cloud-init/AWS/config.boot.default
+++ b/tools/cloud-init/AWS/config.boot.default
@@ -1,4 +1,14 @@
 system {
+    host-name vyos
+    login {
+        user vyos {
+            authentication {
+                encrypted-password "*"
+                plaintext-password ""
+            }
+            level admin
+        }
+    }
     syslog {
         global {
             facility all {
-- 
2.17.2

