Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Latest commit

 

History

History
48 lines (41 loc) · 1.06 KB

File metadata and controls

48 lines (41 loc) · 1.06 KB

Buildpack Development

Pre-compiled runtime archive

Requires an S3 bucket with a public-by-default policy:

{
    "Version": "2008-10-17",
    "Statement": [
        {
            "Sid": "AllowPublicRead",
            "Effect": "Allow",
            "Principal": {
                "AWS": "*"
            },
            "Action": [
                "s3:GetObject"
            ],
            "Resource": [
                "arn:aws:s3:::kong-on-heroku",
                "arn:aws:s3:::kong-on-heroku/*"
            ]
        }
    ]
}

Make sure the templator app has the AWS CLI install:

heroku buildpacks:add --index=1 mars/awscli
heroku config:set \
  AWS_ACCESS_KEY_ID=xxxxx \
  AWS_SECRET_ACCESS_KEY=yyyyy \
  AWS_DEFAULT_REGION=us-west-1
git commit --allow-empty -m 'Add AWS CLI buildpack'
git push heroku master

heroku run bash to app, and then capture the artifacts:

BUILDPACK_RELEASE_TAG=v7.0.0
ARCHIVE_NAME=kong-runtime-$BUILDPACK_RELEASE_TAG.tgz
tar czfv $ARCHIVE_NAME ./kong-runtime
aws s3 cp $ARCHIVE_NAME s3://kong-on-heroku/