Skip to content

Commit f226b71

Browse files
authored
Merge pull request #7 from vibrato/scaffolding
Scaffolding for aws
2 parents 57c8580 + b3230f9 commit f226b71

File tree

7 files changed

+559
-1
lines changed

7 files changed

+559
-1
lines changed

.circleci/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ jobs:
137137
138138
zip -r "output/TechTestApp_${version}_win32.zip" dist/*
139139
140+
- run:
141+
name: Package up scaffolding
142+
command: |
143+
zip -r "output/scaffolds_${version}.zip" scaffolds
140144
141145
- run:
142146
name: Release if new version

cmd/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var versionCmd = &cobra.Command{
3232
Short: "Displays the current version",
3333
Long: `Displays the current version of the application`,
3434
Run: func(cmd *cobra.Command, args []string) {
35-
fmt.Println("Version: 0.2.1-pre-release")
35+
fmt.Println("Version: 0.2.2-pre-release")
3636
},
3737
}
3838

scaffolds/aws/cfn/bootstrap.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
echo "Starting bootstrap of network!"
4+
stackup vibrato-network up -t template.yml -p parameters.yml

scaffolds/aws/cfn/parameters.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
VpcCidr: 10.89.32.0/19
2+
PublicSubnetAz1: 10.89.32.0/23
3+
PublicSubnetAz2: 10.89.34.0/23
4+
PublicSubnetAz3: 10.89.36.0/23
5+
DataSubnetAz1: 10.89.40.0/23
6+
DataSubnetAz2: 10.89.42.0/23
7+
DataSubnetAz3: 10.89.44.0/23
8+
PrivateSubnetAz1: 10.89.48.0/22
9+
PrivateSubnetAz2: 10.89.52.0/22
10+
PrivateSubnetAz3: 10.89.56.0/22

scaffolds/aws/cfn/readme.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# AWS CloudFormation scaffolding
2+
3+
This scaffold will deploy the network layer in AWS using cloudformation.
4+
5+
## Requirements
6+
7+
stackup - https://github.com/realestate-com-au/stackup
8+
9+
## Instructions
10+
11+
Set up AWS credentials environment variables. e.g. AWS_PROFILE
12+
13+
Run `bootstrap.sh` from the scaffolding directory
14+
15+
To remove run `teardown.sh` from the scaffolding directory
16+
17+
## What will be deployed
18+
19+
A VPC with networking, routing and nats.
20+
21+
The VPC is laid out with 3 layers, public, private, and data.
22+
23+
> The template assumes 3 AZs, so if you are deploying somewhere with less it will need to be updated.
24+
25+
### Exports
26+
27+
* vibrato-network-VpcId
28+
* vibrato-network-VpcCidr
29+
* vibrato-network-SubnetPublicAz1
30+
* vibrato-network-SubnetPublicAz2
31+
* vibrato-network-SubnetPublicAz3
32+
* vibrato-network-SubnetPrivateAz1
33+
* vibrato-network-SubnetPrivateAz2
34+
* vibrato-network-SubnetPrivateAz3
35+
* vibrato-network-SubnetDataAz1
36+
* vibrato-network-SubnetDataAz2
37+
* vibrato-network-SubnetDataAz3
38+
39+
## Tested on
40+
41+
* MacOs

scaffolds/aws/cfn/teardown.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
echo "Starting bootstrap of network!"
4+
stackup vibrato-network down

0 commit comments

Comments
 (0)