|
| 1 | +--- |
| 2 | +AWSTemplateFormatVersion: 2010-09-09 |
| 3 | +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' |
| 4 | +Parameters: |
| 5 | + AWSKeyPairName: |
| 6 | + Description: Select an existing key pair to use for connecting to your Deep Security |
| 7 | + Manager Instance. |
| 8 | + Type: AWS::EC2::KeyPair::KeyName |
| 9 | + MinLength: '1' |
| 10 | + MaxLength: '255' |
| 11 | + 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 |
| 38 | + DeepSecurityAdminName: |
| 39 | + Default: MasterAdmin |
| 40 | + Description: The Deep Security Manager administrator username for Web Console |
| 41 | + Access. |
| 42 | + Type: String |
| 43 | + MinLength: 1 |
| 44 | + MaxLength: 16 |
| 45 | + AllowedPattern: '[a-zA-Z][a-zA-Z0-9]*' |
| 46 | + ConstraintDescription: Must begin with a letter and contain only alphanumeric |
| 47 | + characters. Min length 1, max length 16 |
| 48 | + DeepSecurityAdminPass: |
| 49 | + NoEcho: true |
| 50 | + Description: The Deep Security Manager administrator password. Must be 8-41 characters |
| 51 | + long and can only contain alphanumeric characters or the following special characters |
| 52 | + !^*-_+ |
| 53 | + Type: String |
| 54 | + MinLength: 8 |
| 55 | + MaxLength: 41 |
| 56 | + AllowedPattern: '[a-zA-Z0-9!^*\-_+]*' |
| 57 | + ConstraintDescription: Can only contain alphanumeric characters or the following |
| 58 | + special characters !^*-_+ Min length 8, max length 41 |
| 59 | + ProtectedInstances: |
| 60 | + Description: Select how many instances would you like to protect. |
| 61 | + Type: String |
| 62 | + AllowedValues: |
| 63 | + - 1-100 |
| 64 | + - 101-500 |
| 65 | + - 501-1000 |
| 66 | + - 1001-2000 |
| 67 | + QSS3BucketName: |
| 68 | + AllowedPattern: ^[0-9a-zA-Z]+([0-9a-zA-Z-]*[0-9a-zA-Z])*$ |
| 69 | + ConstraintDescription: Quick Start bucket name can include numbers, lowercase |
| 70 | + letters, uppercase letters, and hyphens (-). It cannot start or end with a hyphen |
| 71 | + (-). |
| 72 | + Default: aws-quickstart |
| 73 | + Description: S3 bucket name for the Quick Start assets. Quick Start bucket name |
| 74 | + can include numbers, lowercase letters, uppercase letters, and hyphens (-). |
| 75 | + It cannot start or end with a hyphen (-). |
| 76 | + Type: String |
| 77 | + QSS3KeyPrefix: |
| 78 | + AllowedPattern: ^[0-9a-zA-Z-/]*$ |
| 79 | + ConstraintDescription: Quick Start key prefix can include numbers, lowercase letters, |
| 80 | + uppercase letters, hyphens (-), and forward slash (/). |
| 81 | + Default: quickstart-trendmicro-deepsecurity/ |
| 82 | + Description: S3 key prefix for the Quick Start assets. Quick Start key prefix |
| 83 | + can include numbers, lowercase letters, uppercase letters, hyphens (-), and |
| 84 | + forward slash (/). |
| 85 | + Type: String |
| 86 | + 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: |
| 96 | +Mappings: |
| 97 | + DSMSIZE: |
| 98 | + us-east-1: |
| 99 | + '1': m4.large |
| 100 | + '2': m4.large |
| 101 | + '3': m4.xlarge |
| 102 | + '4': m4.xlarge |
| 103 | + us-west-1: |
| 104 | + '1': m4.large |
| 105 | + '2': m4.large |
| 106 | + '3': m4.xlarge |
| 107 | + '4': m4.xlarge |
| 108 | + us-west-2: |
| 109 | + '1': m4.large |
| 110 | + '2': m4.large |
| 111 | + '3': m4.xlarge |
| 112 | + '4': m4.xlarge |
| 113 | + eu-west-1: |
| 114 | + '1': m4.large |
| 115 | + '2': m4.large |
| 116 | + '3': m4.xlarge |
| 117 | + '4': m4.xlarge |
| 118 | + eu-central-1: |
| 119 | + '1': m4.large |
| 120 | + '2': m4.large |
| 121 | + '3': m4.xlarge |
| 122 | + '4': m4.xlarge |
| 123 | + sa-east-1: |
| 124 | + '1': m4.large |
| 125 | + '2': m4.large |
| 126 | + '3': m4.xlarge |
| 127 | + '4': m4.xlarge |
| 128 | + ap-northeast-1: |
| 129 | + '1': m4.large |
| 130 | + '2': m4.large |
| 131 | + '3': m4.xlarge |
| 132 | + '4': m4.xlarge |
| 133 | + ap-southeast-1: |
| 134 | + '1': m4.large |
| 135 | + '2': m4.large |
| 136 | + '3': m4.xlarge |
| 137 | + '4': m4.xlarge |
| 138 | + ap-southeast-2: |
| 139 | + '1': m4.large |
| 140 | + '2': m4.large |
| 141 | + '3': m4.xlarge |
| 142 | + '4': m4.xlarge |
| 143 | + ap-northeast-2: |
| 144 | + '1': m4.large |
| 145 | + '2': m4.large |
| 146 | + '3': m4.xlarge |
| 147 | + '4': m4.xlarge |
| 148 | + us-east-2: |
| 149 | + '1': m4.large |
| 150 | + '2': m4.large |
| 151 | + '3': m4.xlarge |
| 152 | + '4': m4.xlarge |
| 153 | + ca-central-1: |
| 154 | + '1': m4.large |
| 155 | + '2': m4.large |
| 156 | + '3': m4.xlarge |
| 157 | + '4': m4.xlarge |
| 158 | + ap-south-1: |
| 159 | + '1': m4.large |
| 160 | + '2': m4.large |
| 161 | + '3': m4.xlarge |
| 162 | + '4': m4.xlarge |
| 163 | + eu-west-2: |
| 164 | + '1': m4.large |
| 165 | + '2': m4.large |
| 166 | + '3': m4.xlarge |
| 167 | + '4': m4.xlarge |
| 168 | + eu-west-3: |
| 169 | + '1': r4.large |
| 170 | + '2': r4.large |
| 171 | + '3': r4.xlarge |
| 172 | + '4': r4.xlarge |
| 173 | + us-gov-west-1: |
| 174 | + '1': m4.large |
| 175 | + '2': m4.large |
| 176 | + '3': m4.xlarge |
| 177 | + '4': m4.xlarge |
| 178 | + RDSStorageSize: |
| 179 | + 1-100: |
| 180 | + Size: '50' |
| 181 | + 101-500: |
| 182 | + Size: '150' |
| 183 | + 501-1000: |
| 184 | + Size: '200' |
| 185 | + 1001-2000: |
| 186 | + Size: '300' |
| 187 | + RDSInstanceSize: |
| 188 | + us-east-1: |
| 189 | + '1': db.m4.large |
| 190 | + '2': db.m4.large |
| 191 | + '3': db.m4.xlarge |
| 192 | + '4': db.m4.xlarge |
| 193 | + us-east-2: |
| 194 | + '1': db.m4.large |
| 195 | + '2': db.m4.large |
| 196 | + '3': db.m4.xlarge |
| 197 | + '4': db.m4.xlarge |
| 198 | + us-west-1: |
| 199 | + '1': db.m4.large |
| 200 | + '2': db.m4.large |
| 201 | + '3': db.m4.xlarge |
| 202 | + '4': db.m4.xlarge |
| 203 | + us-west-2: |
| 204 | + '1': db.m4.large |
| 205 | + '2': db.m4.large |
| 206 | + '3': db.m4.xlarge |
| 207 | + '4': db.m4.xlarge |
| 208 | + ca-central-1: |
| 209 | + '1': db.m4.large |
| 210 | + '2': db.m4.large |
| 211 | + '3': db.m4.xlarge |
| 212 | + '4': db.m4.xlarge |
| 213 | + ap-south-1: |
| 214 | + '1': db.m4.large |
| 215 | + '2': db.m4.large |
| 216 | + '3': db.m4.xlarge |
| 217 | + '4': db.m4.xlarge |
| 218 | + ap-northeast-2: |
| 219 | + '1': db.m4.large |
| 220 | + '2': db.m4.large |
| 221 | + '3': db.m4.xlarge |
| 222 | + '4': db.m4.xlarge |
| 223 | + ap-southeast-1: |
| 224 | + '1': db.m4.large |
| 225 | + '2': db.m4.large |
| 226 | + '3': db.m4.xlarge |
| 227 | + '4': db.m4.xlarge |
| 228 | + ap-southeast-2: |
| 229 | + '1': db.m4.large |
| 230 | + '2': db.m4.large |
| 231 | + '3': db.m4.xlarge |
| 232 | + '4': db.m4.xlarge |
| 233 | + ap-northeast-1: |
| 234 | + '1': db.m4.large |
| 235 | + '2': db.m4.large |
| 236 | + '3': db.m4.xlarge |
| 237 | + '4': db.m4.xlarge |
| 238 | + eu-central-1: |
| 239 | + '1': db.m4.large |
| 240 | + '2': db.m4.large |
| 241 | + '3': db.m4.xlarge |
| 242 | + '4': db.m4.xlarge |
| 243 | + eu-west-1: |
| 244 | + '1': db.m4.large |
| 245 | + '2': db.m4.large |
| 246 | + '3': db.m4.xlarge |
| 247 | + '4': db.m4.xlarge |
| 248 | + eu-west-2: |
| 249 | + '1': db.m4.large |
| 250 | + '2': db.m4.large |
| 251 | + '3': db.m4.xlarge |
| 252 | + '4': db.m4.xlarge |
| 253 | + sa-east-1: |
| 254 | + '1': db.m3.large |
| 255 | + '2': db.m3.large |
| 256 | + '3': db.m3.xlarge |
| 257 | + '4': db.m3.xlarge |
| 258 | + eu-west-3: |
| 259 | + '1': db.r4.large |
| 260 | + '2': db.r4.large |
| 261 | + '3': db.r4.xlarge |
| 262 | + '4': db.r4.xlarge |
| 263 | + us-gov-west-1: |
| 264 | + '1': db.m3.large |
| 265 | + '2': db.m3.large |
| 266 | + '3': db.m3.xlarge |
| 267 | + '4': db.m3.xlarge |
| 268 | + DeploymentSize: |
| 269 | + 1-100: |
| 270 | + Size: '1' |
| 271 | + 101-500: |
| 272 | + Size: '2' |
| 273 | + 501-1000: |
| 274 | + Size: '3' |
| 275 | + 1001-2000: |
| 276 | + Size: '4' |
| 277 | +Resources: |
| 278 | + VPCStack: |
| 279 | + Type: AWS::CloudFormation::Stack |
| 280 | + Properties: |
| 281 | + TemplateURL: !Sub 'https://${QSS3BucketName}.s3.amazonaws.com/${QSS3KeyPrefix}submodules/quickstart-aws-vpc/templates/aws-vpc.template' |
| 282 | + Parameters: |
| 283 | + AvailabilityZones: !Join [ ',', !Ref 'AvailabilityZones' ] |
| 284 | + KeyPairName: !Ref 'KeyPairName' |
| 285 | + NumberOfAZs: '3' |
| 286 | + TrendMicroMaster: |
| 287 | + Type: AWS::CloudFormation::Stack |
| 288 | + Condition: PerHostSupportedRegion |
| 289 | + Properties: |
| 290 | + TemplateURL: |
| 291 | + Fn::Sub: |
| 292 | + - https://${QSS3BucketName}.${QSS3Region}.amazonaws.com/${QSS3KeyPrefix}templates/marketplace/master-mp.template |
| 293 | + - QSS3Region: |
| 294 | + !If |
| 295 | + - GovCloudCondition |
| 296 | + - s3-us-gov-west-1 |
| 297 | + - s3 |
| 298 | + 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' |
| 340 | + QSS3BucketName: !Ref QSS3BucketName |
| 341 | + QSS3KeyPrefix: !Ref QSS3KeyPrefix |
| 342 | +Conditions: |
| 343 | + PerHostSupportedRegion: |
| 344 | + !Not |
| 345 | + - !Equals |
| 346 | + - !Ref AWS::Region |
| 347 | + - match-all-regions |
| 348 | + GovCloudCondition: |
| 349 | + !Equals |
| 350 | + - !Ref AWS::Region |
| 351 | + - us-gov-west-1 |
| 352 | +... |
0 commit comments