Sha256: 5806c620830eea78bb2a7291d16e15537bc2d38799834533353c66ea7153e303

Contents?: true

Size: 893 Bytes

Versions: 24

Compression:

Stored size: 893 Bytes

Contents

#!/bin/sh
set -e

# https://github.com/aws/aws-sam-cli/issues/2447
AWS_ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)
IMAGE_REPOSITORY="${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/APPNAMEHERE"

echo "== Lamby build =="
./bin/_build

echo "== SAM build =="
sam build \
  --parameter-overrides \
    RailsEnv="${RAILS_ENV}"

echo "== SAM package =="
sam package \
  --region "$AWS_DEFAULT_REGION" \
  --template-file ./.aws-sam/build/template.yaml \
  --output-template-file ./.aws-sam/build/packaged.yaml \
  --image-repository "$IMAGE_REPOSITORY" \

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

Version data entries

24 entries across 8 versions & 1 rubygems

Version Path
lamby-3.1.3 lib/lamby/templates/rest/_deploy
lamby-3.1.3 lib/lamby/templates/http/_deploy
lamby-3.1.3 lib/lamby/templates/alb/_deploy
lamby-3.1.2 lib/lamby/templates/alb/_deploy
lamby-3.1.2 lib/lamby/templates/rest/_deploy
lamby-3.1.2 lib/lamby/templates/http/_deploy
lamby-3.1.1 lib/lamby/templates/http/_deploy
lamby-3.1.1 lib/lamby/templates/rest/_deploy
lamby-3.1.1 lib/lamby/templates/alb/_deploy
lamby-3.1.0 lib/lamby/templates/alb/_deploy
lamby-3.1.0 lib/lamby/templates/http/_deploy
lamby-3.1.0 lib/lamby/templates/rest/_deploy
lamby-3.0.3 lib/lamby/templates/alb/_deploy
lamby-3.0.3 lib/lamby/templates/rest/_deploy
lamby-3.0.3 lib/lamby/templates/http/_deploy
lamby-3.0.2 lib/lamby/templates/alb/_deploy
lamby-3.0.2 lib/lamby/templates/rest/_deploy
lamby-3.0.2 lib/lamby/templates/http/_deploy
lamby-3.0.1 lib/lamby/templates/rest/_deploy
lamby-3.0.1 lib/lamby/templates/http/_deploy