Skip to content

Commit

Permalink
enable AWS deployment with CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
ndegory committed Jul 25, 2017
1 parent d1d436f commit 3948a31
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -331,13 +331,9 @@ push-bootstrap:
CPDIR := cluster/plugin
CPAWSDIR := $(CPDIR)/aws

.PHONY: build-amp-aws-compiler
build-amp-aws-compiler:
@cd $(CPAWSDIR) && $(MAKE) compiler

.PHONY: build-amp-aws
build-amp-aws: build-amp-aws-compiler
@cd $(CPAWSDIR) && $(MAKE) build
build-amp-aws:
@cd $(CPAWSDIR) && $(MAKE) image

# WARNING:
# If the environment variables for $KEYNAME and $REGION are not set, the
Expand Down
2 changes: 1 addition & 1 deletion cli/command/cluster/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func NewCreateCommand(c cli.Interface) *cobra.Command {
// during this refactoring.
flags.StringVar(&opts.name, "name", "", "Cluster Label")
flags.BoolVarP(&opts.notifications, "notifications", "n", false, "Enable/disable server notifications (default is 'false')")
//flags.StringVar(&opts.provider, "provider", "local", "Cluster provider (\"local\" (default) or \"aws\")")
flags.StringVar(&opts.provider, "provider", "local", "Cluster provider (\"local\" (default) or \"aws\")")
flags.StringVarP(&opts.registration, "registration", "r", configuration.RegistrationNone, "Specify the registration policy (possible values are 'none' or 'email')")
flags.StringVarP(&opts.tag, "tag", "t", c.Version(), "Specify tag for cluster images")

Expand Down
3 changes: 1 addition & 2 deletions cluster/plugin/aws/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

const (
DefaultTemplateURL = "https://editions-us-east-1.s3.amazonaws.com/aws/edge/Docker.tmpl"
DefaultTemplateURL = "https://s3.amazonaws.com/io-amp-binaries/templates/v0.13.0/aws-swarm-asg.yml"
)

// RequestOptions stores raw request input options before transformation into a AWS SDK specific
Expand Down Expand Up @@ -174,4 +174,3 @@ func StackOutputToJSON(so []StackOutput) (string, error) {
}
return string(j), nil
}

0 comments on commit 3948a31

Please sign in to comment.