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