Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ jobs:

zip -r "output/TechTestApp_${version}_win32.zip" dist/*

- run:
name: Package up scaffolding
command: |
zip -r "output/scaffolds_${version}.zip" scaffolds

- run:
name: Release if new version
Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var versionCmd = &cobra.Command{
Short: "Displays the current version",
Long: `Displays the current version of the application`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("Version: 0.2.1-pre-release")
fmt.Println("Version: 0.2.2-pre-release")
},
}

Expand Down
4 changes: 4 additions & 0 deletions scaffolds/aws/cfn/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

echo "Starting bootstrap of network!"
stackup vibrato-network up -t template.yml -p parameters.yml
10 changes: 10 additions & 0 deletions scaffolds/aws/cfn/parameters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
VpcCidr: 10.89.32.0/19
PublicSubnetAz1: 10.89.32.0/23
PublicSubnetAz2: 10.89.34.0/23
PublicSubnetAz3: 10.89.36.0/23
DataSubnetAz1: 10.89.40.0/23
DataSubnetAz2: 10.89.42.0/23
DataSubnetAz3: 10.89.44.0/23
PrivateSubnetAz1: 10.89.48.0/22
PrivateSubnetAz2: 10.89.52.0/22
PrivateSubnetAz3: 10.89.56.0/22
41 changes: 41 additions & 0 deletions scaffolds/aws/cfn/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# AWS CloudFormation scaffolding

This scaffold will deploy the network layer in AWS using cloudformation.

## Requirements

stackup - https://github.com/realestate-com-au/stackup

## Instructions

Set up AWS credentials environment variables. e.g. AWS_PROFILE

Run `bootstrap.sh` from the scaffolding directory

To remove run `teardown.sh` from the scaffolding directory

## What will be deployed

A VPC with networking, routing and nats.

The VPC is laid out with 3 layers, public, private, and data.

> The template assumes 3 AZs, so if you are deploying somewhere with less it will need to be updated.

### Exports

* vibrato-network-VpcId
* vibrato-network-VpcCidr
* vibrato-network-SubnetPublicAz1
* vibrato-network-SubnetPublicAz2
* vibrato-network-SubnetPublicAz3
* vibrato-network-SubnetPrivateAz1
* vibrato-network-SubnetPrivateAz2
* vibrato-network-SubnetPrivateAz3
* vibrato-network-SubnetDataAz1
* vibrato-network-SubnetDataAz2
* vibrato-network-SubnetDataAz3

## Tested on

* MacOs
4 changes: 4 additions & 0 deletions scaffolds/aws/cfn/teardown.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

echo "Starting bootstrap of network!"
stackup vibrato-network down
Loading