-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec.yaml
More file actions
35 lines (29 loc) · 829 Bytes
/
Copy pathbuildspec.yaml
File metadata and controls
35 lines (29 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: 0.2
env:
variables:
S3_BUCKET: vpc-lab-1712
phases:
install:
commands:
- pip install cfn-lint==1.35.4 taskcat==0.9.57
pre_build:
on-failure: ABORT
commands:
- |
set +e
cfn-lint ec2/ec2.yaml nat/nat.yaml route_table/route_table.yaml security_group/security_group.yaml vpc/vpc.yaml codepipeline.yaml root.yaml
set -e
build:
on-failure: ABORT
commands:
- mkdir -p temp_upload
- cp ec2/ec2.yaml nat/nat.yaml route_table/route_table.yaml security_group/security_group.yaml vpc/vpc.yaml root.yaml temp_upload/
- aws s3 sync temp_upload/ s3://$S3_BUCKET --delete
- cp .taskcat.yml temp_upload/
- cd temp_upload
- taskcat -d test run
artifacts:
name: templates
files:
- root.yaml
base-directory: temp_upload