Skip to content

Commit

Permalink
script to release provider template
Browse files Browse the repository at this point in the history
  • Loading branch information
jeshan committed Jul 29, 2019
1 parent 1fb84a6 commit 2d8b73e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions release-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Release v$version available.

Providers can be created by deploying the template s3://tfbridge-main-infra-bucket-117f9bdcoyq2u/$version/tfbridge-providers.yaml

<a href="https://console.aws.amazon.com/cloudformation/home?#/stacks/new?&templateURL=https://s3.amazonaws.com/tfbridge-main-infra-bucket-117f9bdcoyq2u/$version/tfbridge-providers.yml&stackName=tfbridge" target="_blank"><img src="https://s3.amazonaws.com/cloudformation-examples/cloudformation-launch-stack.png"></a>
7 changes: 7 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

name=tfbridge-providers
TAG=`git rev-parse HEAD`

sam package --template-file ${name}.yaml --s3-bucket ${BUCKET} --output-template-file ${name}-packaged.yaml
aws s3 cp ${name}-packaged.yaml s3://${BUCKET}/${TAG}/${name}.yaml
4 changes: 4 additions & 0 deletions templates/infrastructure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ Resources:
- Name: GO111MODULE
Type: PLAINTEXT
Value: 'on'
- Name: BUCKET
Type: PLAINTEXT
Value: !Ref Bucket
LogsConfig:
CloudWatchLogs:
GroupName: !Ref 'LogGroup'
Expand Down Expand Up @@ -68,6 +71,7 @@ Resources:
build:
commands:
- ./build.sh
- ./release.sh
- sceptre --no-colour launch -y main
GitCloneDepth: 1
InsecureSsl: false
Expand Down

0 comments on commit 2d8b73e

Please sign in to comment.