Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit b53ecd1

Browse files
committed
Adding VPC template
- Added inputs.json for (VPC + TM Deep Security Builds) - Updated taskcat.yml to use VPC Builds
1 parent eca8b2a commit b53ecd1

File tree

4 files changed

+38
-85
lines changed

4 files changed

+38
-85
lines changed

ci/defaults.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[{
22
"ParameterKey": "KeyPairName",
3-
"ParameterValue": "mykey"
3+
"ParameterValue": "cikey"
44
}, {
55
"ParameterKey": "AWSVPC",
66
"ParameterValue": "vpc-ae07a6cb"
@@ -22,4 +22,4 @@
2222
}, {
2323
"ParameterKey": "ProtectedInstances",
2424
"ParameterValue": "1-100"
25-
}]
25+
}]

ci/inputs.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[
2+
{
3+
"ParameterKey": "KeyPairName",
4+
"ParameterValue": "override"
5+
},
6+
{
7+
"ParameterKey": "AvailabilityZones",
8+
"ParameterValue": "$[taskcat_genaz_3]"
9+
},
10+
{
11+
"ParameterKey": "DeepSecurityAdminPass",
12+
"ParameterValue": "$[taskcat_genpass_8A]"
13+
},
14+
{
15+
"ParameterKey": "ProtectedInstances",
16+
"ParameterValue": "1-100"
17+
}
18+
]

ci/taskcat.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ global:
77
- us-east-1
88
reporting: true
99
tests:
10-
defaults:
11-
parameter_input: defaults.json
12-
template_file: quickstart/trendmicro-deepsecurity-master.template
10+
test-deepsec:
11+
parameter_input: inputs.json
12+
template_file: quickstart/trendmicro-deepsecurity-vpc.template

templates/quickstart/ci-testing.template.yaml renamed to templates/quickstart/trendmicro-deepsecurity-vpc.template

Lines changed: 15 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,13 @@
22
AWSTemplateFormatVersion: 2010-09-09
33
Description: 'This template is used strictly for CI entrypoints. It is not designed to be launched outside of the CI/CD Pipeline of the AWS QuickStart Team'
44
Parameters:
5-
AWSKeyPairName:
5+
KeyPairName:
66
Description: Select an existing key pair to use for connecting to your Deep Security
77
Manager Instance.
88
Type: AWS::EC2::KeyPair::KeyName
99
MinLength: '1'
1010
MaxLength: '255'
1111
ConstraintDescription: Select an existing EC2 Key Pair.
12-
AWSVPC:
13-
Description: Select an existing VPC to deploy Deep Security Manager.
14-
Type: AWS::EC2::VPC::Id
15-
MinLength: '1'
16-
MaxLength: '255'
17-
AllowedPattern: '[-_a-zA-Z0-9]*'
18-
DatabaseSubnet1:
19-
Description: Select a private subnet for the RDS database. Must be a private
20-
subnet contained the in VPC chosen above.
21-
Type: AWS::EC2::Subnet::Id
22-
ConstraintDescription: RDS Subnet Groups must be comprised of 2 subnets in seperate
23-
availability zones within the specified VPC for deploying this template
24-
DatabaseSubnet2:
25-
Description: Select a second private subnet for the RDS database. Must be a private
26-
subnet contained the in VPC chosen above.
27-
Type: AWS::EC2::Subnet::Id
28-
ConstraintDescription: RDS Subnet Groups must be comprised of 2 subnets in seperate
29-
availability zones within the specified VPC for deploying this template
30-
DeepSecuritySubnet:
31-
Description: Select an existing Subnet for Deep Security Manager. Must be a public
32-
subnet contained the in VPC chosen above.
33-
Type: AWS::EC2::Subnet::Id
34-
MinLength: '1'
35-
MaxLength: '255'
36-
AllowedPattern: '[-_a-zA-Z0-9]*'
37-
ConstraintDescription: Subnet ID must exist in the chosen VPC
3812
DeepSecurityAdminName:
3913
Default: MasterAdmin
4014
Description: The Deep Security Manager administrator username for Web Console
@@ -84,15 +58,10 @@ Parameters:
8458
forward slash (/).
8559
Type: String
8660
AvailabilityZones:
87-
Description: List of Availability Zones to use for the subnets in the VPC. Three
88-
Availability Zones are used for this deployment, and the logical order of your
89-
selections is preserved.
90-
Type: List<AWS::EC2::AvailabilityZone::Name>
91-
KeyPairName:
92-
Description: The name of an existing public/private key pair, which allows you
93-
to securely connect to your instance after it launches
94-
Type: AWS::EC2::KeyPair::KeyName
95-
Mappings:
61+
Description: List of Availability Zones to use for the subnets in the VPC. Three
62+
Availability Zones are used for this deployment, and the logical order of your
63+
selections is preserved.
64+
Type: List<AWS::EC2::AvailabilityZone::Name>
9665
Mappings:
9766
DSMSIZE:
9867
us-east-1:
@@ -283,60 +252,26 @@ Resources:
283252
AvailabilityZones: !Join [ ',', !Ref 'AvailabilityZones' ]
284253
KeyPairName: !Ref 'KeyPairName'
285254
NumberOfAZs: '3'
286-
TrendMicroMaster:
255+
TrendMicroQuickStart:
287256
Type: AWS::CloudFormation::Stack
288257
Condition: PerHostSupportedRegion
289258
Properties:
290259
TemplateURL:
291260
Fn::Sub:
292-
- https://${QSS3BucketName}.${QSS3Region}.amazonaws.com/${QSS3KeyPrefix}templates/marketplace/master-mp.template
261+
- https://${QSS3BucketName}.${QSS3Region}.amazonaws.com/${QSS3KeyPrefix}templates/quickstart/trendmicro-deepsecurity-master.template
293262
- QSS3Region:
294263
!If
295264
- GovCloudCondition
296265
- s3-us-gov-west-1
297266
- s3
298267
Parameters:
299-
AWSIKeyPairName: !Ref AWSKeyPairName
300-
AWSIVPC: !Ref AWSVPC
301-
DSISubnetID: !Ref DeepSecuritySubnet
302-
DBIRDSInstanceSize:
303-
!FindInMap
304-
- RDSInstanceSize
305-
- !Ref AWS::Region
306-
- !FindInMap
307-
- DeploymentSize
308-
- !Ref ProtectedInstances
309-
- Size
310-
DBIStorageAllocation:
311-
!FindInMap
312-
- RDSStorageSize
313-
- !Ref ProtectedInstances
314-
- Size
315-
DBPBackupDays: '5'
316-
DBPCreateDbInstance: 'Yes'
317-
DBICAdminName: dsmadmin
318-
DBICAdminPassword: !Ref DeepSecurityAdminPass
319-
DBPEngine: PostgreSQL
320-
DBPEndpoint: ''
321-
DBPName: dsm
322-
DSCAdminName: !Ref DeepSecurityAdminName
323-
DSCAdminPassword: !Ref DeepSecurityAdminPass
324-
DSIMultiNode: '2'
325-
DSIPLicenseKey: XX-XXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
326-
DSIPHeartbeatPort: '4120'
327-
DSIPGUIPort: '443'
328-
DSIPInstanceType:
329-
!FindInMap
330-
- DSMSIZE
331-
- !Ref AWS::Region
332-
- !FindInMap
333-
- DeploymentSize
334-
- !Ref ProtectedInstances
335-
- Size
336-
DBISubnet1: !Ref 'VPCStack.Outputs.PrivateSubnet1AID'
337-
DBISubnet2: !Ref 'VPCStack.Outputs.PrivateSubnet2AID'
338-
DSIPLicense: PerHost
339-
DBPMultiAZ: 'true'
268+
AWSKeyPairName: !Ref KeyPairName
269+
AWSVPC: !GetAtt 'VPCStack.Outputs.VPCID'
270+
DatabaseSubnet1: !GetAtt 'VPCStack.Outputs.PrivateSubnet1AID'
271+
DatabaseSubnet2: !GetAtt 'VPCStack.Outputs.PrivateSubnet2AID'
272+
DeepSecuritySubnet: !GetAtt 'VPCStack.Outputs.PublicSubnet1ID'
273+
DeepSecurityAdminPass: !Ref DeepSecurityAdminPass
274+
ProtectedInstances: !Ref ProtectedInstances
340275
QSS3BucketName: !Ref QSS3BucketName
341276
QSS3KeyPrefix: !Ref QSS3KeyPrefix
342277
Conditions:
@@ -349,4 +284,4 @@ Conditions:
349284
!Equals
350285
- !Ref AWS::Region
351286
- us-gov-west-1
352-
...
287+

0 commit comments

Comments
 (0)