Skip to content

Commit

Permalink
Adding in codebuild pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
neoghostz committed Jan 9, 2019
1 parent 5fe5c75 commit 88089d4
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 12 deletions.
15 changes: 15 additions & 0 deletions .codebuild/buildspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 0.2

phases:
install:
commands:
- pip install -r requirements_test.txt
finally:
- command
- command
pre_build:
commands:
- pytest --cov=src
- pycodestyle --ignore=E501 .
finally:
- coveralls
16 changes: 8 additions & 8 deletions example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ Parameters:
VGW: {Description: VPC Gateway, Type: String, Default: vgw-012345678}
Mappings: {}
Resources:

ELENDELVPC:
Type: Elendel::Network::VPC
Properties:
CIDR: 172.16.0.0/20
Details: {VPCName: PRIVATEEGRESSVPC, VPCDesc: Private Egress VPC, Region: ap-southeast-2, IPv6: true}
Details:
VPCName: PRIVATEEGRESSVPC
VPCDesc: Private Egress VPC
Region: ap-southeast-2
IPv6: True
Tags: {Name: PRIVATE-EGRESS-VPC, Template: VPC for private endpoints egress only}
DHCP: {Name: DhcpOptions, DNSServers: 172.16.0.2, NTPServers: 169.254.169.123, NTBType: 2}
TransitGateways:
Expand Down Expand Up @@ -52,12 +55,9 @@ Resources:
InternalRT2: {}
InternalRT3: {}
NATGateways:
NATGW1:
{Subnet: ReservedNet1, Routetable: InternalRT1}
NATGW2:
{Subnet: ReservedNet2, Routetable: InternalRT2}
NATGW3:
{Subnet: ReservedNet3, Routetable: InternalRT3}
NATGW1: {Subnet: ReservedNet1, Routetable: InternalRT1}
NATGW2: {Subnet: ReservedNet2, Routetable: InternalRT2}
NATGW3: {Subnet: ReservedNet3, Routetable: InternalRT3}
SecurityGroups:
VPCEndpoint:
GroupDescription: VPC Endpoint Interface Firewall Rules
Expand Down
13 changes: 9 additions & 4 deletions spec/elendel.network.vpc.wip.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@
"Elendel::Network::VPC.Details": {
"Properties": {
"VPCName": {
"Required": true
"Required": true,
"PrimitiveType": "String"
},
"VPCDesc": {
"Required": true
"Required": true,
"PrimitiveType": "String"
},
"Region": {
"Required": true
"Required": true,
"PrimitiveType": "String"
},
"IPv6": {
"Required": false
"Required": false,
"PrimitiveType": "Boolean"
}
}
},
Expand Down Expand Up @@ -170,6 +174,7 @@
"Elendel::Network::VPC": {
"Properties": {
"CIDR": {
"PrimitiveItemType": "String",
"Required": true
},
"Details": {
Expand Down

0 comments on commit 88089d4

Please sign in to comment.