From 12b549b5f1a814049194df4eef48b3800936ce09 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Mon, 18 Jul 2016 07:32:59 +0200 Subject: [PATCH 1/6] updated dependencies. --- .gitignore | 1 + project.clj | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 6d63979..5cf4885 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ pom.xml.asc *.wsdl .ritz-exception-filters .nrepl-port +/bin/ diff --git a/project.clj b/project.clj index ec65d9f..433a845 100644 --- a/project.clj +++ b/project.clj @@ -3,8 +3,8 @@ :url "http://palletops.com" :license {:name "All rights reserved"} :scm {:url "git@github.com:pallet/pallet-aws.git"} - :dependencies [[com.palletops/pallet-aws-ops "0.2.2" + :dependencies [[com.palletops/pallet-aws-ops "0.2.3-SNAPSHOT" :exclusions [commons-logging]] - [com.palletops/pallet "0.8.0-RC.9"] + [com.palletops/pallet "0.8.12"] [org.clojure/core.match "0.2.0" :exclusions [org.clojure/clojure]]]) From 4ef99b1fdf2b8edf195539563f31a1b626073367 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Mon, 18 Jul 2016 09:30:08 +0200 Subject: [PATCH 2/6] fixed doc * added doc for other rergions * added doc for hardware selection * fixed doc for provider network configuration. --- README.md | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index df61602..fd288e3 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,17 @@ key in the node-spec's `:image`. You must specify the `:os-family`, `:os-version` and `:login-user` with ami specific information. +### Hardware + +The hardware to use for the node is passed as a string to the `:hardware-id` +key in the node-spec's `:hardware`. + +```clj +(node-spec ... :hardware {:hardware-id "t2.micro"}) +``` + +The defined hardware types can be found here: https://github.com/pallet/pallet-aws/blob/develop/src/pallet/compute/ec2/static.clj + ### Availability Zones The availability zone can be specifed in the `:location` key of the node-spec. @@ -52,6 +63,15 @@ The availability zone can be specifed in the `:location` key of the node-spec. (node-spec ... :location {:location-id "us-east-1d"}) ``` +If you want to user other locations, you've to adjust the service endpoint in your provider also: + +```clj +(instantiate-provider :pallet-ec2 :endpoint "eu-central-1") + +(node-spec ... :location {:location-id "eu-central-1a"}) +``` + + ### KeyPairs By default, pallet creates a keypair based on the admin username and key credentials. @@ -100,7 +120,7 @@ that the volume supports. Range is 100 to 4000. ### Network Interfaces -The provider specific `:network-interface` key takes a sequence of +The provider specific `:network-interfaces` key takes a sequence of maps with the following keys (and key paths): `:network-interface-id` @@ -157,6 +177,17 @@ with a new network interface, not an existing one. Default: If launching into a default subnet, the default value is true. If launching into a nondefault subnet, the default value is false. +example: +```clj +(node-spec ... :provider {:pallet-ec2 { + :network-interfaces + [{:device-index 0 + :groups ["sg-xxxxx"] + :subnet-id "subnet-xxxxxx" + :associate-public-ip-address true + :delete-on-termination true}]}) +``` + ### IAM Roles An IAM profile can be specified on the `:iam-instance-profile` From 430cb956848a5b795b00d94a0e209577c1d782ab Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Mon, 25 Jul 2016 08:35:39 +0200 Subject: [PATCH 3/6] Revert "updated dependencies." This reverts commit 12b549b5f1a814049194df4eef48b3800936ce09. --- .gitignore | 1 - project.clj | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5cf4885..6d63979 100644 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,3 @@ pom.xml.asc *.wsdl .ritz-exception-filters .nrepl-port -/bin/ diff --git a/project.clj b/project.clj index 433a845..ec65d9f 100644 --- a/project.clj +++ b/project.clj @@ -3,8 +3,8 @@ :url "http://palletops.com" :license {:name "All rights reserved"} :scm {:url "git@github.com:pallet/pallet-aws.git"} - :dependencies [[com.palletops/pallet-aws-ops "0.2.3-SNAPSHOT" + :dependencies [[com.palletops/pallet-aws-ops "0.2.2" :exclusions [commons-logging]] - [com.palletops/pallet "0.8.12"] + [com.palletops/pallet "0.8.0-RC.9"] [org.clojure/core.match "0.2.0" :exclusions [org.clojure/clojure]]]) From 8e2e9f923cec856988b0696e1994d19da42ca615 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Sat, 4 Mar 2017 18:19:05 +0100 Subject: [PATCH 4/6] lein-release plugin: preparing 0.2.8 release --- project.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project.clj b/project.clj index ec65d9f..ecc7acd 100644 --- a/project.clj +++ b/project.clj @@ -1,10 +1,10 @@ -(defproject com.palletops/pallet-aws "0.2.8-SNAPSHOT" +(defproject com.palletops/pallet-aws "0.2.8" :description "A provider for using Pallet with AWS EC2, based on the AWS SDK." :url "http://palletops.com" :license {:name "All rights reserved"} :scm {:url "git@github.com:pallet/pallet-aws.git"} :dependencies [[com.palletops/pallet-aws-ops "0.2.2" :exclusions [commons-logging]] - [com.palletops/pallet "0.8.0-RC.9"] - [org.clojure/core.match "0.2.0" + [com.palletops/pallet "0.8.12"] + [org.clojure/core.match "0.2.2" :exclusions [org.clojure/clojure]]]) From 78d5549bec964032146e682c5308d0b310a74e4e Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Sat, 4 Mar 2017 18:24:42 +0100 Subject: [PATCH 5/6] released --- .gitignore | 1 + project.clj | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 6d63979..5cf4885 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ pom.xml.asc *.wsdl .ritz-exception-filters .nrepl-port +/bin/ diff --git a/project.clj b/project.clj index ecc7acd..0f91711 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject com.palletops/pallet-aws "0.2.8" +(defproject org.domaindrivenarchitecture/pallet-aws "0.2.8" :description "A provider for using Pallet with AWS EC2, based on the AWS SDK." :url "http://palletops.com" :license {:name "All rights reserved"} From 24767836575b2dc2723a4b9618f83c503d40efb6 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Sun, 5 Mar 2017 12:21:31 +0100 Subject: [PATCH 6/6] release 0.2.8.2 able to connect to eu-central --- project.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project.clj b/project.clj index 0f91711..094cfe0 100644 --- a/project.clj +++ b/project.clj @@ -1,9 +1,9 @@ -(defproject org.domaindrivenarchitecture/pallet-aws "0.2.8" +(defproject org.domaindrivenarchitecture/pallet-aws "0.2.8.2" :description "A provider for using Pallet with AWS EC2, based on the AWS SDK." :url "http://palletops.com" :license {:name "All rights reserved"} :scm {:url "git@github.com:pallet/pallet-aws.git"} - :dependencies [[com.palletops/pallet-aws-ops "0.2.2" + :dependencies [[org.domaindrivenarchitecture/pallet-aws-ops "0.2.3.1" :exclusions [commons-logging]] [com.palletops/pallet "0.8.12"] [org.clojure/core.match "0.2.2"