Sha256: 610fb84b39f7a1122be3952294d1b78300456a83de6ed0a66318d5d3644f5104

Contents?: true

Size: 690 Bytes

Versions: 13

Compression:

Stored size: 690 Bytes

Contents

#!/usr/bin/env bash
set -e

export RAILS_ENV=${RAILS_ENV:="production"}
export AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION:=us-east-1}
export CLOUDFORMATION_BUCKET=${CLOUDFORMATION_BUCKET:="lamby.cloudformation.$(whoami)"}

./bin/build

sam package \
  --region ${AWS_DEFAULT_REGION} \
  --template-file ./.aws-sam/build/template.yaml \
  --output-template-file ./.aws-sam/build/packaged.yaml \
  --s3-bucket $CLOUDFORMATION_BUCKET \
  --s3-prefix "APPNAMEHERE-${RAILS_ENV}"

sam deploy \
  --template-file ./.aws-sam/build/packaged.yaml \
  --stack-name "APPNAMEHERE-${RAILS_ENV}-${AWS_DEFAULT_REGION}" \
  --capabilities "CAPABILITY_IAM" \
  --parameter-overrides \
    RailsEnv=${RAILS_ENV}

Version data entries

13 entries across 7 versions & 2 rubygems

Version Path
lamby-2.2.2 lib/lamby/templates/http/deploy
lamby-2.2.2 lib/lamby/templates/rest/deploy
lamby-2.2.1 lib/lamby/templates/rest/deploy
lamby-2.2.1 lib/lamby/templates/http/deploy
lamby-2.2.0 lib/lamby/templates/http/deploy
lamby-2.2.0 lib/lamby/templates/rest/deploy
lamby-2.1.0 lib/lamby/templates/http/deploy
lamby-2.1.0 lib/lamby/templates/rest/deploy
lamby-2.0.1 lib/lamby/templates/http/deploy
lamby-2.0.1 lib/lamby/templates/rest/deploy
lamby-2.0.0 lib/lamby/templates/http/deploy
lamby-2.0.0 lib/lamby/templates/rest/deploy
lamby-no-rails-1.0.3 lib/lamby/templates/api_gateway/deploy