From a1e0a301a682a5ab2b530ac10bedc6112140d4f0 Mon Sep 17 00:00:00 2001 From: Ken Cochrane Date: Tue, 6 Jun 2017 15:28:14 -0400 Subject: [PATCH] Improved the AWS docs Signed-off-by: Ken Cochrane --- docs/aws.md | 8 +++++++- docs/metadata.md | 12 +++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/docs/aws.md b/docs/aws.md index 1073d5cf1..56203b761 100644 --- a/docs/aws.md +++ b/docs/aws.md @@ -1,6 +1,6 @@ # Using LinuxKit on Amazon Web Services (AWS) -This is a quick guide to run LinuxKit on AWS. +This is a quick guide to run LinuxKit on AWS. ## Setup @@ -32,6 +32,12 @@ specified bucket, and create a bootable image from the stored image. Alternatively, you can use the `AWS_BUCKET` environment variable to specify the bucket name. +**Note:** If the push times out before it finishes, you can use the `-timeout` flag to extend the timeout. + +``` +linuxkit push aws -bucket bucketname -timeout 1200 aws.img +``` + ## Create an instance and connect to it With the image created, we can now create an instance. diff --git a/docs/metadata.md b/docs/metadata.md index 6e4dcf684..d612c7655 100644 --- a/docs/metadata.md +++ b/docs/metadata.md @@ -81,7 +81,17 @@ we extract the hostname and populate the `/var/config/ssh/authorized_keys` from metadata. In the future we'll add more complete SSH support. -GCP userdata is extracted from `/computeMetadata/v1/instance/attributes/userdata`. +GCP userdata is extracted from `/computeMetadata/v1/instance/attributes/userdata` +and made available in `/var/config/userdata`. + +## AWS + +AWS metadata is reached via the following URL +(`http://169.254.169.254/latest/meta-data/`) and currently we extract the +hostname and populate the `/var/config/ssh/authorized_keys` from metadata. + +AWS userdata is extracted from `http://169.254.169.254/latest/user-data` and +and made available in `/var/config/userdata`. ## HyperKit