Files
gemini-settings/tmp/2315fccd1067c9601c4fd99b0ba64823b930e19a77654e5dd14adc8de804f888/chats/session-2026-01-30T11-30-2a68c953.json

1035 lines
1.2 MiB

{
"sessionId": "2a68c953-9dba-4449-99df-e42b75ea79eb",
"projectHash": "2315fccd1067c9601c4fd99b0ba64823b930e19a77654e5dd14adc8de804f888",
"startTime": "2026-01-30T11:30:01.383Z",
"lastUpdated": "2026-01-30T11:36:06.965Z",
"messages": [
{
"id": "60c33707-6922-4c12-aaf5-b615e6eed89e",
"timestamp": "2026-01-30T11:30:01.384Z",
"type": "error",
"content": "Error during discovery for MCP server 'terraform': MCP error -32000: Connection closed"
},
{
"id": "53f09ee0-c15e-44fa-bdf8-73d2b57b5b25",
"timestamp": "2026-01-30T11:31:13.102Z",
"type": "user",
"content": "target groups can not be shared between load balancers so create a set of internal targets for the internal load balancer"
},
{
"id": "71a44814-7431-417b-a129-26b86c4d321a",
"timestamp": "2026-01-30T11:31:19.079Z",
"type": "gemini",
"content": "I will search for \"TargetGroup\" and \"LoadBalancer\" in the `mlcluster.template`, `mlcluster-vpc.template`, and `templates/` directory to understand the current configuration and identify where the changes are needed.",
"thoughts": [
{
"subject": "Analyzing Load Balancers",
"description": "I'm focused on the nuances of CloudFormation template modifications. Currently, I'm concentrating on the user's objective to prevent the sharing of target groups across distinct load balancers. My primary goal is to ensure the creation of internal target groups for internal load balancers.",
"timestamp": "2026-01-30T11:31:17.655Z"
},
{
"subject": "Exploring Template Structures",
"description": "I've begun examining the CloudFormation templates, specifically `mlcluster.template` and `mlcluster-vpc.template`, along with the templates in the `templates/` directory, to grasp how load balancers and target groups are structured. I'm leveraging `search_file_content` to identify all instances of \"TargetGroup\" and \"LoadBalancer\".",
"timestamp": "2026-01-30T11:31:18.795Z"
}
],
"tokens": {
"input": 14109,
"output": 64,
"cached": 0,
"thoughts": 141,
"tool": 0,
"total": 14314
},
"model": "gemini-3-pro-preview",
"toolCalls": [
{
"id": "search_file_content-1769772679073-2f195375667a2",
"name": "search_file_content",
"args": {
"pattern": "TargetGroup|LoadBalancer"
},
"result": [
{
"functionResponse": {
"id": "search_file_content-1769772679073-2f195375667a2",
"name": "search_file_content",
"response": {
"output": "Found 296 matches for pattern \"TargetGroup|LoadBalancer\" in path \".\":\n---\nFile: dalmatian.tfvars\nL30: PublicLoadBalancer = \"false\"\nL31: InternalLoadBalancer = \"true\"\n---\nFile: mlcluster-vpc.template\nL35: - PublicLoadBalancer\nL94: PublicLoadBalancer:\nL591: PublicLoadBalancer:\nL675: CreatePublicAlb: !And [!Condition MultiZone, !Equals [!Ref PublicLoadBalancer, 'true']]\nL909: #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\nL910: #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\nL918: - AlbTargetGroup1\nL919: - AlbTargetGroup2\nL920: - AlbTargetGroup3\nL921: - AlbTargetGroup4\nL922: - AlbTargetGroup5\nL923: - AlbTargetGroup6\nL924: - AlbTargetGroup7\nL925: - AlbTargetGroup8\nL926: - AlbTargetGroup9\nL961: TargetGroupARNs:\nL962: - !Ref AlbTargetGroup1\nL963: - !Ref AlbTargetGroup2\nL964: - !Ref AlbTargetGroup3\nL965: - !Ref AlbTargetGroup4\nL966: - !Ref AlbTargetGroup5\nL967: - !Ref AlbTargetGroup6\nL968: - !Ref AlbTargetGroup7\nL969: - !Ref AlbTargetGroup8\nL970: - !Ref AlbTargetGroup9\nL974: #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\nL975: #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\nL983: - AlbTargetGroup1\nL984: - AlbTargetGroup2\nL985: - AlbTargetGroup3\nL986: - AlbTargetGroup4\nL987: - AlbTargetGroup5\nL988: - AlbTargetGroup6\nL989: - AlbTargetGroup7\nL990: - AlbTargetGroup8\nL991: - AlbTargetGroup9\nL1026: TargetGroupARNs:\nL1027: - !Ref AlbTargetGroup1\nL1028: - !Ref AlbTargetGroup2\nL1029: - !Ref AlbTargetGroup3\nL1030: - !Ref AlbTargetGroup4\nL1031: - !Ref AlbTargetGroup5\nL1032: - !Ref AlbTargetGroup6\nL1033: - !Ref AlbTargetGroup7\nL1034: - !Ref AlbTargetGroup8\nL1035: - !Ref AlbTargetGroup9\nL1039: #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\nL1040: #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\nL1048: - AlbTargetGroup1\nL1049: - AlbTargetGroup2\nL1050: - AlbTargetGroup3\nL1051: - AlbTargetGroup4\nL1052: - AlbTargetGroup5\nL1053: - AlbTargetGroup6\nL1054: - AlbTargetGroup7\nL1055: - AlbTargetGroup8\nL1056: - AlbTargetGroup9\nL1091: TargetGroupARNs:\nL1092: - !Ref AlbTargetGroup1\nL1093: - !Ref AlbTargetGroup2\nL1094: - !Ref AlbTargetGroup3\nL1095: - !Ref AlbTargetGroup4\nL1096: - !Ref AlbTargetGroup5\nL1097: - !Ref AlbTargetGroup6\nL1098: - !Ref AlbTargetGroup7\nL1099: - !Ref AlbTargetGroup8\nL1100: - !Ref AlbTargetGroup9\nL1455: Type: AWS::ElasticLoadBalancingV2::LoadBalancer\nL1469: #Descriptions of the 9 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\nL1470: #Health checks are performed on each TargetGroup.\nL1471: AlbTargetGroup1:\nL1473: Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\nL1484: TargetGroupAttributes:\nL1494: AlbTargetGroup2:\nL1496: Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\nL1507: TargetGroupAttributes:\nL1517: AlbTargetGroup3:\nL1519: Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\nL1530: TargetGroupAttributes:\nL1540: AlbTargetGroup4:\nL1542: Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\nL1553: TargetGroupAttributes:\nL1563: AlbTargetGroup5:\nL1565: Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\nL1576: TargetGroupAttributes:\nL1586: AlbTargetGroup6:\nL1588: Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\nL1599: TargetGroupAttributes:\nL1609: AlbTargetGroup7:\nL1611: Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\nL1622: TargetGroupAttributes:\nL1632: AlbTargetGroup8:\nL1634: Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\nL1645: TargetGroupAttributes:\nL1655: AlbTargetGroup9:\nL1657: Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\nL1668: TargetGroupAttributes:\nL1678: #Descriptions of the 9 Listeners for MultiZone deployments (3 zones). Each Listener connects Application Load Balancer to a TargetGroup with a particular port.\nL1684: - AlbTargetGroup1\nL1687: - TargetGroupArn: !Ref AlbTargetGroup1\nL1689: LoadBalancerArn: !Ref Alb\nL1697: - AlbTargetGroup2\nL1700: - TargetGroupArn: !Ref AlbTargetGroup2\nL1702: LoadBalancerArn: !Ref Alb\nL1710: - AlbTargetGroup3\nL1713: - TargetGroupArn: !Ref AlbTargetGroup3\nL1715: LoadBalancerArn: !Ref Alb\nL1723: - AlbTargetGroup4\nL1726: - TargetGroupArn: !Ref AlbTargetGroup4\nL1728: LoadBalancerArn: !Ref Alb\nL1736: - AlbTargetGroup5\nL1739: - TargetGroupArn: !Ref AlbTargetGroup5\nL1741: LoadBalancerArn: !Ref Alb\nL1749: - AlbTargetGroup6\nL1752: - TargetGroupArn: !Ref AlbTargetGroup6\nL1754: LoadBalancerArn: !Ref Alb\nL1762: - AlbTargetGroup7\nL1765: - TargetGroupArn: !Ref AlbTargetGroup7\nL1767: LoadBalancerArn: !Ref Alb\nL1775: - AlbTargetGroup8\nL1778: - TargetGroupArn: !Ref AlbTargetGroup8\nL1780: LoadBalancerArn: !Ref Alb\nL1788: - AlbTargetGroup9\nL1791: - TargetGroupArn: !Ref AlbTargetGroup9\nL1793: LoadBalancerArn: !Ref Alb\n---\nFile: mlcluster.tfvars\nL25: PublicLoadBalancer = \"true\"\nL26: InternalLoadBalancer = \"true\"\n---\nFile: mlcluster.template\nL35: - PublicLoadBalancer\nL36: - InternalLoadBalancer\nL97: PublicLoadBalancer:\nL99: InternalLoadBalancer:\nL773: PublicLoadBalancer:\nL780: InternalLoadBalancer:\nL845: CreatePublicAlb: !And [!Condition MultiZone, !Equals [!Ref PublicLoadBalancer, 'true']]\nL846: CreateInternalAlb: !And [!Condition MultiZone, !Equals [!Ref InternalLoadBalancer, 'true']]\nL1052: #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\nL1053: #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\nL1060: - AlbTargetGroup1\nL1061: - AlbTargetGroup2\nL1062: - AlbTargetGroup3\nL1063: - AlbTargetGroup4\nL1064: - AlbTargetGroup5\nL1065: - AlbTargetGroup6\nL1066: - AlbTargetGroup7\nL1067: - AlbTargetGroup8\nL1068: - AlbTargetGroup9\nL1105: TargetGroupARNs:\nL1106: - !Ref AlbTargetGroup1\nL1107: - !Ref AlbTargetGroup2\nL1108: - !Ref AlbTargetGroup3\nL1109: - !Ref AlbTargetGroup4\nL1110: - !Ref AlbTargetGroup5\nL1111: - !Ref AlbTargetGroup6\nL1112: - !Ref AlbTargetGroup7\nL1113: - !Ref AlbTargetGroup8\nL1114: - !Ref AlbTargetGroup9\nL1120: #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\nL1121: #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\nL1128: - AlbTargetGroup1\nL1129: - AlbTargetGroup2\nL1130: - AlbTargetGroup3\nL1131: - AlbTargetGroup4\nL1132: - AlbTargetGroup5\nL1133: - AlbTargetGroup6\nL1134: - AlbTargetGroup7\nL1135: - AlbTargetGroup8\nL1136: - AlbTargetGroup9\nL1173: TargetGroupARNs:\nL1174: - !Ref AlbTargetGroup1\nL1175: - !Ref AlbTargetGroup2\nL1176: - !Ref AlbTargetGroup3\nL1177: - !Ref AlbTargetGroup4\nL1178: - !Ref AlbTargetGroup5\nL1179: - !Ref AlbTargetGroup6\nL1180: - !Ref AlbTargetGroup7\nL1181: - !Ref AlbTargetGroup8\nL1182: - !Ref AlbTargetGroup9\nL1188: #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\nL1189: #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\nL1196: - AlbTargetGroup1\nL1197: - AlbTargetGroup2\nL1198: - AlbTargetGroup3\nL1199: - AlbTargetGroup4\nL1200: - AlbTargetGroup5\nL1201: - AlbTargetGroup6\nL1202: - AlbTargetGroup7\nL1203: - AlbTargetGroup8\nL1204: - AlbTargetGroup9\nL1241: TargetGroupARNs:\nL1242: - !Ref AlbTargetGroup1\nL1243: - !Ref AlbTargetGroup2\nL1244: - !Ref AlbTargetGroup3\nL1245: - !Ref AlbTargetGroup4\nL1246: - !Ref AlbTargetGroup5\nL1247: - !Ref AlbTargetGroup6\nL1248: - !Ref AlbTargetGroup7\nL1249: - !Ref AlbTargetGroup8\nL1250: - !Ref AlbTargetGroup9\nL1634: Type: AWS::ElasticLoadBalancingV2::LoadBalancer\nL1647: #Descriptions of the 9 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\nL1648: #Health checks are performed on each TargetGroup.\nL1649: AlbTargetGroup1:\nL1651: Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\nL1660: TargetGroupAttributes:\nL1670: AlbTargetGroup2:\nL1672: Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\nL1681: TargetGroupAttributes:\nL1691: AlbTargetGroup3:\nL1693: Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\nL1702: TargetGroupAttributes:\nL1712: AlbTargetGroup4:\nL1714: Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\nL1723: TargetGroupAttributes:\nL1733: AlbTargetGroup5:\nL1735: Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\nL1744: TargetGroupAttributes:\nL1754: AlbTargetGroup6:\nL1756: Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\nL1765: TargetGroupAttributes:\nL1775: AlbTargetGroup7:\nL1777: Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\nL1786: TargetGroupAttributes:\nL1796: AlbTargetGroup8:\nL1798: Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\nL1807: TargetGroupAttributes:\nL1817: AlbTargetGroup9:\nL1819: Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\nL1828: TargetGroupAttributes:\nL1840: Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\nL1849: TargetGroupAttributes:\nL1859: #Descriptions of the 9 Listeners for MultiZone deployments (3 zones). Each Listener connects Application Load Balancer to a TargetGroup with a particular port.\nL1865: - AlbTargetGroup1\nL1868: - TargetGroupArn: !Ref AlbTargetGroup1\nL1870: LoadBalancerArn: !Ref Alb\nL1878: - AlbTargetGroup2\nL1881: - TargetGroupArn: !Ref AlbTargetGroup2\nL1883: LoadBalancerArn: !Ref Alb\nL1891: - AlbTargetGroup3\nL1894: - TargetGroupArn: !Ref AlbTargetGroup3\nL1896: LoadBalancerArn: !Ref Alb\nL1904: - AlbTargetGroup4\nL1907: - TargetGroupArn: !Ref AlbTargetGroup4\nL1909: LoadBalancerArn: !Ref Alb\nL1917: - AlbTargetGroup5\nL1920: - TargetGroupArn: !Ref AlbTargetGroup5\nL1922: LoadBalancerArn: !Ref Alb\nL1930: - AlbTargetGroup6\nL1933: - TargetGroupArn: !Ref AlbTargetGroup6\nL1935: LoadBalancerArn: !Ref Alb\nL1943: - AlbTargetGroup7\nL1946: - TargetGroupArn: !Ref AlbTargetGroup7\nL1948: LoadBalancerArn: !Ref Alb\nL1956: - AlbTargetGroup8\nL1959: - TargetGroupArn: !Ref AlbTargetGroup8\nL1961: LoadBalancerArn: !Ref Alb\nL1969: - AlbTargetGroup9\nL1972: - TargetGroupArn: !Ref AlbTargetGroup9\nL1974: LoadBalancerArn: !Ref Alb\nL1985: - TargetGroupArn: !Ref MarklogicExternal8011\nL1987: LoadBalancerArn: !Ref Alb\nL1993: Type: AWS::ElasticLoadBalancingV2::LoadBalancer\nL2007: #Descriptions of the 1 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\nL2008: #Health checks are performed on each TargetGroup.\nL2011: Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\nL2020: TargetGroupAttributes:\nL2038: - TargetGroupArn: !Ref MarklogicInternal8011\nL2040: LoadBalancerArn: !Ref InternalAlb\nL2048: - AlbTargetGroup1\nL2051: - TargetGroupArn: !Ref AlbTargetGroup1\nL2053: LoadBalancerArn: !Ref InternalAlb\nL2061: - AlbTargetGroup2\nL2064: - TargetGroupArn: !Ref AlbTargetGroup2\nL2066: LoadBalancerArn: !Ref InternalAlb\nL2074: - AlbTargetGroup3\nL2077: - TargetGroupArn: !Ref AlbTargetGroup3\nL2079: LoadBalancerArn: !Ref InternalAlb\nL2087: - AlbTargetGroup4\nL2090: - TargetGroupArn: !Ref AlbTargetGroup4\nL2092: LoadBalancerArn: !Ref InternalAlb\nL2100: - AlbTargetGroup5\nL2103: - TargetGroupArn: !Ref AlbTargetGroup5\nL2105: LoadBalancerArn: !Ref InternalAlb\nL2113: - AlbTargetGroup6\nL2116: - TargetGroupArn: !Ref AlbTargetGroup6\nL2118: LoadBalancerArn: !Ref InternalAlb\nL2126: - AlbTargetGroup7\nL2129: - TargetGroupArn: !Ref AlbTargetGroup7\nL2131: LoadBalancerArn: !Ref InternalAlb\nL2139: - AlbTargetGroup8\nL2142: - TargetGroupArn: !Ref AlbTargetGroup8\nL2144: LoadBalancerArn: !Ref InternalAlb\nL2152: - AlbTargetGroup9\nL2155: - TargetGroupArn: !Ref AlbTargetGroup9\nL2157: LoadBalancerArn: !Ref InternalAlb\n---"
}
}
}
],
"status": "success",
"timestamp": "2026-01-30T11:31:19.166Z",
"resultDisplay": "Found 296 matches",
"displayName": "SearchText",
"description": "FAST, optimized search powered by `ripgrep`. PREFERRED over standard `run_shell_command(\"grep ...\")` due to better performance and automatic output limiting (max 20k matches).",
"renderOutputAsMarkdown": true
}
]
},
{
"id": "3baf2e87-9112-4027-a7a3-214ec7d20103",
"timestamp": "2026-01-30T11:31:29.292Z",
"type": "gemini",
"content": "I will read `mlcluster.template` to understand the current definitions of `AlbTargetGroup` resources, the `InternalAlb` listeners, and the AutoScalingGroups, which will help me create the new `InternalAlbTargetGroup` resources and update the configuration.",
"thoughts": [
{
"subject": "Identifying Target Groups' Usage",
"description": "I've been examining the search results, and they clearly indicate that the target groups, from `AlbTargetGroup1` to `AlbTargetGroup9`, are present within both `mlcluster.template` and `mlcluster-vpc.template`. Further investigation, specifically focusing on lines 2048-2157 of `mlcluster.template`, reveals how these groups are being utilized.",
"timestamp": "2026-01-30T11:31:26.015Z"
},
{
"subject": "Examining ALB Associations",
"description": "I'm now zeroing in on `mlcluster.template`. I've confirmed the `AlbTargetGroup`s are indeed shared, and that's a problem. My focus has shifted to the proposed solution: creating new target groups for the `InternalAlb`, updating the listeners, and then the autoscaling groups. This approach seems sound. The next step is a deep dive into the template itself.",
"timestamp": "2026-01-30T11:31:29.012Z"
}
],
"tokens": {
"input": 18698,
"output": 69,
"cached": 14250,
"thoughts": 360,
"tool": 0,
"total": 19127
},
"model": "gemini-3-pro-preview",
"toolCalls": [
{
"id": "read_file-1769772689290-85d19e42e32a28",
"name": "read_file",
"args": {
"file_path": "mlcluster.template"
},
"result": [
{
"functionResponse": {
"id": "read_file-1769772689290-85d19e42e32a28",
"name": "read_file",
"response": {
"output": "\nIMPORTANT: The file content has been truncated.\nStatus: Showing lines 1-2000 of 2167 total lines.\nAction: To read more of the file, you can use the 'offset' and 'limit' parameters in a subsequent 'read_file' call. For example, to read the next section of the file, use offset: 2000.\n\n--- FILE CONTENT (truncated) ---\nAWSTemplateFormatVersion: 2010-09-09\nDescription: Deploy a MarkLogic Cluster on AWS in existing VPC (Virtual Private Cloud).\nMetadata:\n version: 12.0.1\n binary: MarkLogic-12.0.1-rhel.x86_64.rpm\n AWS::CloudFormation::Interface:\n ParameterGroups:\n - Label:\n default: \"Resource Configuration\"\n Parameters:\n - IAMRole\n - VolumeSize\n - VolumeType\n - VolumeIOPS\n - VolumeThroughput\n - VolumeEncryption\n - VolumeEncryptionKey\n - InstanceType\n - SpotPrice\n - KeyName\n - NumberOfZones\n - NodesPerZone\n - AZ\n - LogSNS\n - Label:\n default: \"Network Configuration\"\n Parameters:\n - VPC\n - PublicSubnet1\n - PublicSubnet2\n - PublicSubnet3\n - PrivateSubnet1\n - PrivateSubnet2\n - PrivateSubnet3\n - PublicLoadBalancer\n - InternalLoadBalancer\n - ExternalAccessCidrIP\n - ECSSecurityGroup\n - Label:\n default: \"MarkLogic Configuration\"\n Parameters:\n - AdminUser\n - AdminPass\n - Licensee\n - LicenseKey\n ParameterLabels:\n AdminUser:\n default: Admin User\n AdminPass:\n default: Admin password\n Licensee:\n default: Licensee\n LicenseKey:\n default: License Key\n IAMRole:\n default: IAM Role\n LogSNS:\n default: Logging SNS ARN\n VolumeSize:\n default: Volume Size\n VolumeType:\n default: Volume Type\n VolumeIOPS:\n default: Volume Iops\n VolumeThroughput:\n default: Volume Throughput\n VolumeEncryption:\n default: Volume Encryption\n VolumeEncryptionKey:\n default: Volume Encryption Key ARN\n InstanceType:\n default: Instance Type\n SpotPrice:\n default: Spot Price\n KeyName:\n default: SSH Key Name\n NumberOfZones:\n default: Number of Zones\n NodesPerZone:\n default: Nodes per Zone\n AZ:\n default: Availability Zone\n VPC:\n default: VPC\n PublicSubnet1:\n default: Public Subnet 1\n PublicSubnet2:\n default: Public Subnet 2\n PublicSubnet3:\n default: Public Subnet 3\n PrivateSubnet1:\n default: Private Subnet 1\n PrivateSubnet2:\n default: Private Subnet 2\n PrivateSubnet3:\n default: Private Subnet 3\n PublicLoadBalancer:\n default: Public Load Balancer\n InternalLoadBalancer:\n default: Internal Load Balancer\n ExternalAccessCidrIP:\n default: External IP address range for access to admin site\n ECSSecurityGroup:\n default: the security group the ecs cluster is in\nParameters:\n # resource configuration\n IAMRole:\n Description: IAM Role\n Type: String\n VolumeSize:\n Description: The EBS Data volume size (GB) for all nodes\n Type: Number\n MinValue: '10'\n MaxValue: '1000'\n Default: '50'\n VolumeType:\n Description: The EBS Data volume Type\n Type: String\n AllowedValues:\n - standard\n - gp2\n - gp3\n Default: gp3\n VolumeIOPS:\n Description: The number of I/O operations per second for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '3000'\n MaxValue: '16000'\n Default: '3000'\n VolumeThroughput:\n Description: The throughput to provision for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '125'\n MaxValue: '1000'\n Default: '125'\n VolumeEncryption:\n Description: Whether to enable volume encryption\n Type: String\n AllowedValues:\n - enable\n - disable\n Default: enable\n VolumeEncryptionKey:\n Description: The key ID of AWS KMS key to encrypt volumes - Optional\n Type: String\n Default: \"\"\n InstanceType:\n Description: Type of EC2 instance to launch\n Type: String\n Default: r5.4xlarge\n AllowedValues:\n - ---- Pay-As-You-Go and Bring-Your-Own-License ----\n - c3.xlarge\n - c3.2xlarge\n - c3.4xlarge\n - c3.8xlarge\n - c4.xlarge\n - c4.2xlarge\n - c4.4xlarge\n - c4.8xlarge\n - c5.xlarge\n - c5.2xlarge\n - c5.4xlarge\n - c5.9xlarge\n - c5.12xlarge\n - c5.18xlarge\n - c5.24xlarge\n - c5a.xlarge\n - c5a.2xlarge\n - c5a.4xlarge\n - c5a.8xlarge\n - c5a.12xlarge\n - c5a.16xlarge\n - c5a.24xlarge\n - c5ad.xlarge\n - c5ad.2xlarge\n - c5ad.4xlarge\n - c5ad.8xlarge\n - c5ad.12xlarge\n - c5ad.16xlarge\n - c5ad.24xlarge\n - c5d.xlarge\n - c5d.2xlarge\n - c5d.4xlarge\n - c5d.9xlarge\n - c5d.12xlarge\n - c5d.18xlarge\n - c5d.24xlarge\n - c5n.xlarge\n - c5n.2xlarge\n - c5n.4xlarge\n - c5n.9xlarge\n - c5n.18xlarge\n - c6a.xlarge\n - c6a.2xlarge\n - c6a.4xlarge\n - c6a.8xlarge\n - c6a.12xlarge\n - c6a.16xlarge\n - c6a.24xlarge\n - c6a.32xlarge\n - c6a.48xlarge\n - c6i.xlarge\n - c6i.2xlarge\n - c6i.4xlarge\n - c6i.8xlarge\n - c6i.12xlarge\n - c6i.16xlarge\n - c6i.24xlarge\n - c6i.32xlarge\n - c6id.xlarge\n - c6id.2xlarge\n - c6id.4xlarge\n - c6id.8xlarge\n - c6id.12xlarge\n - c6id.16xlarge\n - c6id.24xlarge\n - c6id.32xlarge\n - c7i.xlarge\n - c7i.2xlarge\n - c7i.4xlarge\n - c7i.8xlarge\n - c7i.12xlarge\n - c7i.16xlarge\n - c7i.24xlarge\n - c7i.48xlarge\n - c7i-flex.xlarge\n - c7i-flex.2xlarge\n - c7i-flex.4xlarge\n - c7i-flex.8xlarge\n - c7i-flex.12xlarge\n - c7i-flex.16xlarge\n - c7a.xlarge\n - c7a.2xlarge\n - c7a.4xlarge\n - c7a.8xlarge\n - c7a.12xlarge\n - c7a.16xlarge\n - c7a.24xlarge\n - c7a.32xlarge\n - c7a.48xlarge\n - c8i.xlarge\n - c8i.2xlarge\n - c8i.4xlarge\n - c8i.8xlarge\n - c8i.12xlarge\n - c8i.16xlarge\n - c8i.24xlarge\n - c8i.32xlarge\n - c8i.48xlarge\n - c8i.96xlarge\n - c8i-flex.xlarge\n - c8i-flex.2xlarge\n - c8i-flex.4xlarge\n - c8i-flex.8xlarge\n - c8i-flex.12xlarge\n - c8i-flex.16xlarge\n - i2.2xlarge\n - i2.4xlarge\n - i2.8xlarge\n - i2.xlarge\n - i3.xlarge\n - i3.2xlarge\n - i3.4xlarge\n - i3.8xlarge\n - i3.16xlarge\n - i3en.xlarge\n - i3en.2xlarge\n - i3en.3xlarge\n - i3en.6xlarge\n - i3en.12xlarge\n - i3en.24xlarge\n - i4i.xlarge\n - i4i.2xlarge\n - i4i.4xlarge\n - i4i.8xlarge\n - i4i.12xlarge\n - i4i.16xlarge\n - i4i.24xlarge\n - i4i.32xlarge\n - i7ie.xlarge\n - i7ie.2xlarge\n - i7ie.3xlarge\n - i7ie.6xlarge\n - i7ie.12xlarge\n - i7ie.18xlarge\n - i7ie.24xlarge\n - i7ie.48xlarge\n - m3.xlarge\n - m3.2xlarge\n - m4.xlarge\n - m4.2xlarge\n - m4.4xlarge\n - m4.10xlarge\n - m4.16xlarge\n - m5.xlarge\n - m5.2xlarge\n - m5.4xlarge\n - m5.8xlarge\n - m5.12xlarge\n - m5.16xlarge\n - m5.24xlarge\n - m5a.xlarge\n - m5a.2xlarge\n - m5a.4xlarge\n - m5a.8xlarge\n - m5a.12xlarge\n - m5a.16xlarge\n - m5a.24xlarge\n - m5d.xlarge\n - m5d.2xlarge\n - m5d.4xlarge\n - m5d.8xlarge\n - m5d.16xlarge\n - m5d.12xlarge\n - m5d.24xlarge\n - m5ad.xlarge\n - m5ad.2xlarge\n - m5ad.4xlarge\n - m5ad.8xlarge\n - m5ad.12xlarge\n - m5ad.16xlarge\n - m5ad.24xlarge\n - m5zn.xlarge\n - m5zn.2xlarge\n - m5zn.3xlarge\n - m5zn.6xlarge\n - m5zn.12xlarge\n - m5n.xlarge\n - m5n.2xlarge\n - m5n.4xlarge\n - m5n.8xlarge\n - m5n.12xlarge\n - m5n.16xlarge\n - m5n.24xlarge\n - m5dn.xlarge\n - m5dn.2xlarge\n - m5dn.4xlarge\n - m5dn.8xlarge\n - m5dn.12xlarge\n - m5dn.16xlarge\n - m5dn.24xlarge\n - m6a.xlarge\n - m6a.2xlarge\n - m6a.4xlarge\n - m6a.8xlarge\n - m6a.12xlarge\n - m6a.16xlarge\n - m6a.24xlarge\n - m6a.32xlarge\n - m6a.48xlarge\n - m6i.xlarge\n - m6i.2xlarge\n - m6i.4xlarge\n - m6i.8xlarge\n - m6i.12xlarge\n - m6i.16xlarge\n - m6i.24xlarge\n - m6i.32xlarge\n - m6id.xlarge\n - m6id.2xlarge\n - m6id.4xlarge\n - m6id.8xlarge\n - m6id.12xlarge\n - m6id.16xlarge\n - m6id.24xlarge\n - m6id.32xlarge\n - m7i.xlarge\n - m7i.2xlarge\n - m7i.4xlarge\n - m7i.8xlarge\n - m7i.12xlarge\n - m7i.16xlarge\n - m7i.24xlarge\n - m7i.48xlarge\n - m7i-flex.xlarge\n - m7i-flex.2xlarge\n - m7i-flex.4xlarge\n - m7i-flex.8xlarge\n - m7i-flex.12xlarge\n - m7i-flex.16xlarge\n - m7a.xlarge\n - m7a.2xlarge\n - m7a.4xlarge\n - m7a.8xlarge\n - m7a.12xlarge\n - m7a.16xlarge\n - m7a.24xlarge\n - m7a.32xlarge\n - m7a.48xlarge\n - m8a.xlarge\n - m8a.2xlarge\n - m8a.4xlarge\n - m8a.8xlarge\n - m8a.12xlarge\n - m8a.16xlarge\n - m8a.24xlarge\n - m8a.48xlarge\n - m8i.xlarge\n - m8i.2xlarge\n - m8i.4xlarge\n - m8i.8xlarge\n - m8i.12xlarge\n - m8i.16xlarge\n - m8i.24xlarge\n - m8i.32xlarge\n - m8i.48xlarge\n - m8i.96xlarge\n - m8i-flex.xlarge\n - m8i-flex.2xlarge\n - m8i-flex.4xlarge\n - m8i-flex.8xlarge\n - m8i-flex.12xlarge\n - m8i-flex.16xlarge\n - r3.xlarge\n - r3.2xlarge\n - r3.4xlarge\n - r3.8xlarge\n - r4.xlarge\n - r4.2xlarge\n - r4.4xlarge\n - r4.8xlarge\n - r4.16xlarge\n - r5.xlarge\n - r5.2xlarge\n - r5.4xlarge\n - r5.8xlarge\n - r5.12xlarge\n - r5.16xlarge\n - r5.24xlarge\n - r5a.xlarge\n - r5a.2xlarge\n - r5a.4xlarge\n - r5a.8xlarge\n - r5a.12xlarge\n - r5a.16xlarge\n - r5a.24xlarge\n - r5ad.xlarge\n - r5ad.2xlarge\n - r5ad.4xlarge\n - r5ad.8xlarge\n - r5ad.12xlarge\n - r5ad.16xlarge\n - r5ad.24xlarge\n - r5b.xlarge\n - r5b.2xlarge\n - r5b.4xlarge\n - r5b.8xlarge\n - r5b.12xlarge\n - r5b.16xlarge\n - r5b.24xlarge\n - r5d.xlarge\n - r5d.2xlarge\n - r5d.4xlarge\n - r5d.8xlarge\n - r5d.12xlarge\n - r5d.16xlarge\n - r5d.24xlarge\n - r5dn.xlarge\n - r5dn.2xlarge\n - r5dn.4xlarge\n - r5dn.8xlarge\n - r5dn.12xlarge\n - r5dn.16xlarge\n - r5dn.24xlarge\n - r5n.xlarge\n - r5n.2xlarge\n - r5n.4xlarge\n - r5n.8xlarge\n - r5n.12xlarge\n - r5n.16xlarge\n - r5n.24xlarge\n - r6a.xlarge\n - r6a.2xlarge\n - r6a.4xlarge\n - r6a.8xlarge\n - r6a.12xlarge\n - r6a.16xlarge\n - r6a.24xlarge\n - r6a.32xlarge\n - r6a.48xlarge\n - r6i.xlarge\n - r6i.2xlarge\n - r6i.4xlarge\n - r6i.8xlarge\n - r6i.12xlarge\n - r6i.16xlarge\n - r6i.24xlarge\n - r6i.32xlarge\n - r6id.xlarge\n - r6id.2xlarge\n - r6id.4xlarge\n - r6id.8xlarge\n - r6id.12xlarge\n - r6id.16xlarge\n - r6id.24xlarge\n - r6id.32xlarge\n - r7i.xlarge\n - r7i.2xlarge\n - r7i.4xlarge\n - r7i.8xlarge\n - r7i.12xlarge\n - r7i.16xlarge\n - r7i.24xlarge\n - r7i.48xlarge\n - r7iz.xlarge\n - r7iz.2xlarge\n - r7iz.4xlarge\n - r7iz.8xlarge\n - r7iz.12xlarge\n - r7iz.16xlarge\n - r7iz.32xlarge\n - r7a.xlarge\n - r7a.2xlarge\n - r7a.4xlarge\n - r7a.8xlarge\n - r7a.12xlarge\n - r7a.16xlarge\n - r7a.24xlarge\n - r7a.32xlarge\n - r7a.48xlarge\n - r8a.xlarge\n - r8a.2xlarge\n - r8a.4xlarge\n - r8a.8xlarge\n - r8a.12xlarge\n - r8a.16xlarge\n - r8a.24xlarge\n - r8a.48xlarge\n - r8i.xlarge\n - r8i.2xlarge\n - r8i.4xlarge\n - r8i.8xlarge\n - r8i.12xlarge\n - r8i.16xlarge\n - r8i.24xlarge\n - r8i.32xlarge\n - r8i.48xlarge\n - r8i.96xlarge\n - r8i-flex.xlarge\n - r8i-flex.2xlarge\n - r8i-flex.4xlarge\n - r8i-flex.8xlarge\n - r8i-flex.12xlarge\n - r8i-flex.16xlarge\n - x1.16xlarge\n - x1.32xlarge\n - x1e.xlarge\n - x1e.2xlarge\n - x1e.4xlarge\n - x1e.8xlarge\n - x1e.16xlarge\n - x1e.32xlarge\n - x2idn.16xlarge\n - x2idn.24xlarge\n - x2idn.32xlarge\n - x2iedn.xlarge\n - x2iedn.2xlarge\n - x2iedn.4xlarge\n - x2iedn.8xlarge\n - x2iedn.16xlarge\n - x2iedn.24xlarge\n - x2iedn.32xlarge\n - x2iezn.2xlarge\n - x2iezn.4xlarge\n - x2iezn.6xlarge\n - x2iezn.8xlarge\n - x2iezn.12xlarge\n - d2.xlarge\n - d2.2xlarge\n - d2.4xlarge\n - d2.8xlarge\n - d3.xlarge\n - d3.2xlarge\n - d3.4xlarge\n - d3.8xlarge\n - d3en.xlarge\n - d3en.2xlarge\n - d3en.4xlarge\n - d3en.6xlarge\n - d3en.8xlarge\n - d3en.12xlarge\n - dl1.24xlarge\n - h1.2xlarge\n - h1.4xlarge\n - h1.8xlarge\n - h1.16xlarge\n - inf1.xlarge\n - inf1.2xlarge\n - inf1.6xlarge\n - inf1.24xlarge\n - trn1.2xlarge\n - trn1.32xlarge\n - u-3tb1.56xlarge\n - u-6tb1.56xlarge\n - u-6tb1.112xlarge\n - u-9tb1.112xlarge\n - u-12tb1.112xlarge\n - u-18tb1.112xlarge\n - vt1.3xlarge\n - vt1.6xlarge\n - vt1.24xlarge\n - z1d.xlarge\n - z1d.2xlarge\n - z1d.3xlarge\n - z1d.6xlarge\n - z1d.12xlarge\n - -------------- Bring-Your-Own-License Only --------------\n - c3.large\n - c4.large\n - c5.metal\n - c5.large\n - c5a.large\n - c5ad.large\n - c5d.metal\n - c5d.large\n - c5n.large\n - c5n.metal\n - c6a.large\n - c6a.metal\n - c6i.large\n - c6i.metal\n - c6id.large\n - c6id.metal\n - c7i.large\n - c7i.metal-24xl\n - c7i.metal-48xl\n - c7i-flex.large\n - c7a.medium\n - c7a.large\n - c7a.metal-48xl\n - c8i.large\n - c8i.metal-48xl\n - c8i.metal-96xl\n - c8i-flex.large\n - i3.large\n - i3.metal\n - i3en.large\n - i3en.metal\n - i4i.large\n - i4i.metal\n - i7ie.large\n - i7ie.metal-24xl\n - i7ie.metal-48xl\n - m3.large\n - m3.medium\n - m4.large\n - m5.metal\n - m5.large\n - m5a.large\n - m5ad.large\n - m5d.metal\n - m5d.large\n - m5zn.large\n - m5zn.metal\n - m5n.large\n - m5n.metal\n - m5dn.large\n - m5dn.metal\n - m6a.large\n - m6a.metal\n - m6i.large\n - m6i.metal\n - m6id.large\n - m6id.metal\n - m7i.large\n - m7i.metal-24xl\n - m7i.metal-48xl\n - m7i-flex.large\n - m7a.medium\n - m7a.large\n - m7a.metal-48xl\n - m8a.medium\n - m8a.large\n - m8a.metal-24xl\n - m8a.metal-48xl\n - m8i.large\n - m8i.metal-48xl\n - m8i.metal-96xl\n - m8i-flex.large\n - r3.large\n - r4.large\n - r5.metal\n - r5.large\n - r5a.large\n - r5d.metal\n - r5ad.large\n - r5d.large\n - r5dn.large\n - r5dn.metal\n - r5b.large\n - r5b.metal\n - r5n.large\n - r5n.metal\n - r6a.large\n - r6a.metal\n - r6i.large\n - r6i.metal\n - r6id.large\n - r6id.metal\n - r7i.large\n - r7i.metal-24xl\n - r7i.metal-48xl\n - r7iz.large\n - r7iz.metal-16xl\n - r7iz.metal-32xl\n - r7a.medium\n - r7a.large\n - r7a.metal-48xl\n - r8a.medium\n - r8a.large\n - r8a.metal-24xl\n - r8a.metal-48xl\n - r8i.large\n - r8i.metal-48xl\n - r8i.metal-96xl\n - r8i-flex.large\n - t2.2xlarge\n - t2.large\n - t2.medium\n - t2.micro\n - t2.nano\n - t2.small\n - t2.xlarge\n - t3.2xlarge\n - t3.large\n - t3.medium\n - t3.micro\n - t3.nano\n - t3.small\n - t3.xlarge\n - t3a.2xlarge\n - t3a.large\n - t3a.medium\n - t3a.micro\n - t3a.nano\n - t3a.small\n - t3a.xlarge\n - x2idn.metal\n - x2iedn.metal\n - x2iezn.metal\n - z1d.metal\n - z1d.large\n SpotPrice:\n Description: Spot price for instances in USD/Hour - Optional/advanced\n Type: Number\n MinValue: '0'\n MaxValue: '2'\n Default: '0'\n KeyName:\n Description: Name of an existing EC2 KeyPair to enable SSH access to the instance\n Type: String\n NumberOfZones:\n Description: Total number of Availability Zones, which can be 1 or 3. Load balancer type depends on the number of zones selected. Select 3 zones for Application Load Balancer (OR) Select 1 zone for Classic Load Balancer.\n Type: Number\n AllowedValues:\n - 1\n - 3\n Default: 3\n NodesPerZone:\n Description: Total number of nodes per Zone. Set to 0 to shutdown/hibernate\n Type: Number\n MinValue: '0'\n MaxValue: '20'\n Default: '1'\n AZ:\n Description: The Availability Zones for VPC subnets. Accept either 1 zone or 3 zones. In the order of Subnet 1, Subnet 2 and Subnet 3 (if applicable).\n Type: 'List<AWS::EC2::AvailabilityZone::Name>'\n LogSNS:\n Description: SNS Topic for logging - optional/advanced.\n Type: String\n Default: none\n PublicLoadBalancer:\n Description: Enable Public Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n InternalLoadBalancer:\n Description: Enable Internal Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n # network configuration\n VPC:\n Description: ID of an existing Virtual Private Cloud (VPC)\n Type: 'AWS::EC2::VPC::Id'\n PublicSubnet1:\n Description: The public subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet2:\n Description: The public subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet3:\n Description: The public subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet1:\n Description: The private subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet2:\n Description: The private subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet3:\n Description: The private subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n ExternalAccessCidrIP:\n Description: A CIDR IP range to allow external access from\n Type: String\n Default: 54.76.254.148/32\n ECSSecurityGroup:\n Description: the security group the ECS cluster is in\n Type: 'AWS::EC2::SecurityGroup::Id'\n\n # marklogic configuration\n AdminUser:\n Description: The MarkLogic administrator username\n Type: String\n AdminPass:\n Description: The MarkLogic administrator password\n Type: String\n NoEcho: 'true'\n AllowedPattern: >-\n ^(?!.*[*]).*$\n ConstraintDescription: Admin password must contain any characters except asterisk (*).\n Licensee:\n Description: The MarkLogic Licensee or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\n LicenseKey:\n Description: The MarkLogic License Key or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\nConditions:\n UseLogSNS: !Not [!Equals [!Ref LogSNS, \"none\"]]\n UseSpot: !Not\n - !Equals\n - !Ref SpotPrice\n - 0\n #MultiZone (3 zones) and SingleZone conditions used for the conditional resource creation based on number of zones selected.\n MultiZone:\n !Not [!Equals [!Ref NumberOfZones, 1]]\n CreatePublicAlb: !And [!Condition MultiZone, !Equals [!Ref PublicLoadBalancer, 'true']]\n CreateInternalAlb: !And [!Condition MultiZone, !Equals [!Ref InternalLoadBalancer, 'true']]\n SingleZone: !Equals [!Ref NumberOfZones, 1]\n PAYG:\n !Or [ !And [!Equals [!Ref LicenseKey, ''], !Equals [!Ref Licensee, '']], !And [!Equals [!Ref LicenseKey, 'none'], !Equals [!Ref Licensee, 'none']] ]\n UseVolumeEncryption: !Equals [!Ref VolumeEncryption, 'enable']\n HasCustomEBSKey: !Not [!Equals [!Ref VolumeEncryptionKey, '']]\n GP3: !Equals [!Ref VolumeType, 'gp3']\nMappings:\n Variable:\n LambdaPackageBucket:\n base: 'ml-db-lambda-'\n TemplateUrl:\n base: 'https://s3.amazonaws.com/marklogic-db-template-releases'\n S3Directory:\n base: '12.0.1'\n LicenseRegion2AMI:\n us-east-1:\n PAYGAl2023: ami-0198b8931e9597271\n BYOLAl2023: ami-0a8536507241f95b0\n us-east-2:\n PAYGAl2023: ami-0877b64dae8264415\n BYOLAl2023: ami-082cc98b2c01e486a\n us-west-1:\n PAYGAl2023: ami-07890fc78f4ddfa20\n BYOLAl2023: ami-05c9a962410c2821b\n us-west-2:\n PAYGAl2023: ami-0577eb149c9e0f53f\n BYOLAl2023: ami-0262dd8d014bf71ba\n eu-central-1:\n PAYGAl2023: ami-06348556399c8ab69\n BYOLAl2023: ami-00cb5a3527e7c0d11\n eu-west-1:\n PAYGAl2023: ami-0fa7bc44cd9ab1f85\n BYOLAl2023: ami-0bc2b4d46367806b0\n ap-south-1:\n PAYGAl2023: ami-0f481ba0a6819ced6\n BYOLAl2023: ami-00b59374107e5efb6\n ap-southeast-1:\n PAYGAl2023: ami-0c373c6c8a2316c80\n BYOLAl2023: ami-0b9bd265ef165a07b\n ap-southeast-2:\n PAYGAl2023: ami-0c65a907408226a3e\n BYOLAl2023: ami-02bad1ef2c6d4a91a\n ap-northeast-1:\n PAYGAl2023: ami-0254bc4adaf13e3b9\n BYOLAl2023: ami-07e8b312b1016bf67\n ap-northeast-2:\n PAYGAl2023: ami-05995b5f5807873d7\n BYOLAl2023: ami-0afd77ba0d7a0c129\n sa-east-1:\n PAYGAl2023: ami-05ec8fee12de236a5\n BYOLAl2023: ami-09d883ea308449555\n eu-west-2:\n PAYGAl2023: ami-0f5cff9d243f31521\n BYOLAl2023: ami-0588d104a52fbc326\n ca-central-1:\n PAYGAl2023: ami-0f34d118b23b51bf5\n BYOLAl2023: ami-0c78eccd03e957005\n eu-west-3:\n PAYGAl2023: ami-01fa9155eb17992c5\n BYOLAl2023: ami-0637199acc5327534\nResources:\n ManagedEniStack:\n Type: AWS::CloudFormation::Stack\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n NodesPerZone: !Ref NodesPerZone\n NumberOfZones: !Ref NumberOfZones\n Subnets: !If [MultiZone, !Join [',', [!Ref PrivateSubnet1, !Ref PrivateSubnet2, !Ref PrivateSubnet3]], !Ref PrivateSubnet1]\n ParentStackName: !Ref 'AWS::StackName'\n ParentStackId: !Ref 'AWS::StackId'\n SecurityGroup: !Ref InstanceSecurityGroup\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-managedeni.template']]\n TimeoutInMinutes: 5\n NodeMgrLambdaStack:\n Type: AWS::CloudFormation::Stack\n DependsOn: ManagedEniStack\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-nodemanager.template']]\n TimeoutInMinutes: 5\n MarklogicVolume1:\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [0, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupA-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c81032f7-b0ec-47ca-a236-e24d57b49ae3\n MarklogicVolume2:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [1, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupB-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: ddb55ae1-a00b-42ed-addd-5e03e4a2764b\n MarklogicVolume3:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [2, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupC-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 9094a65e-9d01-4c4c-9586-c33720e2cc9c\n MarkLogicDDBTable:\n Type: 'AWS::DynamoDB::Table'\n Properties:\n AttributeDefinitions:\n - AttributeName: node\n AttributeType: S\n KeySchema:\n - KeyType: HASH\n AttributeName: node\n ProvisionedThroughput:\n WriteCapacityUnits: '10'\n ReadCapacityUnits: '10'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e7190602-c2de-47ab-81e7-1315f8c01e2d\n #AutoScalingGroup used for SingleZone deployments that is connected to Classic Load Balancer.\n MarkLogicServerGroup:\n Condition: SingleZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup1:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup2:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet2\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp2\n Version: !GetAtt LaunchTemp2.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 87d75478-787a-41d5-bb21-9de6fe4b662e\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup3:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet3\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp3\n Version: !GetAtt LaunchTemp3.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: bbd8314a-6e59-4102-9ed5-232739dd0dfa\n InstanceSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable access to MarkLogic instances from Load Balancers and other cluster members\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n InstanceSecurityGroupIngress:\n Type: 'AWS::EC2::SecurityGroupIngress'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n IpProtocol: tcp\n FromPort: '0'\n ToPort: '65355'\n GroupId: !Ref InstanceSecurityGroup\n SourceSecurityGroupId: !Ref InstanceSecurityGroup\n InternalElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Allow access from ECS clsuter to internal ALB for marklogic cluster.\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n ElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable SSH access and HTTP access on the inbound port\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '22'\n ToPort: '22'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n CidrIp: !Ref ExternalAccessCidrIP\n LaunchTemp1:\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume1\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeA#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=1\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 2efb8cfb-df53-401d-8ff2-34af0dd25993\n LaunchTemp2:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume2\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeB#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c8296a50-a29e-4646-aa74-8f1b735a9a3f\n LaunchTemp3:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume3\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeC#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 7fa68c90-39bc-4874-ad20-8cd8c974ed52\n #Application Load Balancer description for MultiZone deployments (3 zones).\n Alb:\n Condition: CreatePublicAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - ElbSecurityGroup\n Properties: \n SecurityGroups: \n - !Ref ElbSecurityGroup\n Subnets:\n - !Ref PublicSubnet1\n - !If [MultiZone, !Ref PublicSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PublicSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 9 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n AlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicExternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n #Descriptions of the 9 Listeners for MultiZone deployments (3 zones). Each Listener connects Application Load Balancer to a TargetGroup with a particular port.\n AlbListener1:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8000\n Protocol: HTTP\n AlbListener2:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8001\n Protocol: HTTP\n AlbListener3:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8002\n Protocol: HTTP\n AlbListener4:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8003\n Protocol: HTTP\n AlbListener5:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8004\n Protocol: HTTP\n AlbListener6:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8005\n Protocol: HTTP\n AlbListener7:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8006\n Protocol: HTTP\n AlbListener8:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8007\n Protocol: HTTP\n AlbListener9:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8008\n Protocol: HTTP\n MarklogicExternal8011Listener:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - MarklogicExternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicExternal8011\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8011\n Protocol: HTTP\n #Application Load Balancer description for MultiZone deployments (3 zones).\n InternalAlb:\n Condition: CreateInternalAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - InternalElbSecurityGroup\n Properties: \n Scheme: internal\n SecurityGroups: \n - !Ref InternalElbSecurityGroup\n Subnets:"
}
}
}
],
"status": "success",
"timestamp": "2026-01-30T11:31:29.317Z",
"resultDisplay": "Read lines 1-2000 of 2167 from mlcluster.template",
"displayName": "ReadFile",
"description": "Reads and returns the content of a specified file. If the file is large, the content will be truncated. The tool's response will clearly indicate if truncation has occurred and will provide details on how to read more of the file using the 'offset' and 'limit' parameters. Handles text, images (PNG, JPG, GIF, WEBP, SVG, BMP), audio files (MP3, WAV, AIFF, AAC, OGG, FLAC), and PDF files. For text files, it can read specific line ranges.",
"renderOutputAsMarkdown": true
}
]
},
{
"id": "15a5c381-3cb2-4374-8240-73fcc364f499",
"timestamp": "2026-01-30T11:31:33.615Z",
"type": "gemini",
"content": "I will read the remaining content of `mlcluster.template`, starting from line 2000, to fully examine the `InternalAlb` configuration and its listeners.",
"thoughts": [
{
"subject": "Reviewing the Configuration",
"description": "I've made headway, having parsed the initial chunk of `mlcluster.template`. My current objective is to thoroughly examine the remaining portions to pinpoint the configurations associated with `InternalAlb` and its various listeners. This is key to understanding the full scope.",
"timestamp": "2026-01-30T11:31:33.374Z"
}
],
"tokens": {
"input": 38322,
"output": 52,
"cached": 18906,
"thoughts": 40,
"tool": 0,
"total": 38414
},
"model": "gemini-3-pro-preview",
"toolCalls": [
{
"id": "read_file-1769772693614-c7a7c98b01931",
"name": "read_file",
"args": {
"offset": 2000,
"file_path": "mlcluster.template"
},
"result": [
{
"functionResponse": {
"id": "read_file-1769772693614-c7a7c98b01931",
"name": "read_file",
"response": {
"output": "\nIMPORTANT: The file content has been truncated.\nStatus: Showing lines 2001-2167 of 2167 total lines.\nAction: To read more of the file, you can use the 'offset' and 'limit' parameters in a subsequent 'read_file' call. For example, to read the next section of the file, use offset: 2167.\n\n--- FILE CONTENT (truncated) ---\n - !Ref PrivateSubnet1\n - !If [MultiZone, !Ref PrivateSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PrivateSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 1 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n MarklogicInternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicInternal8011Listener:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - MarklogicInternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicInternal8011\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8011\n Protocol: HTTP\n InternalAlbListener1:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8000\n Protocol: HTTP\n InternalAlbListener2:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8001\n Protocol: HTTP\n InternalAlbListener3:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8002\n Protocol: HTTP\n InternalAlbListener4:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8003\n Protocol: HTTP\n InternalAlbListener5:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8004\n Protocol: HTTP\n InternalAlbListener6:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8005\n Protocol: HTTP\n InternalAlbListener7:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8006\n Protocol: HTTP\n InternalAlbListener8:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8007\n Protocol: HTTP\n InternalAlbListener9:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8008\n Protocol: HTTP\nOutputs:\n URL:\n Description: The URL of the MarkLogic Cluster\n Value: !Join\n - ''\n - - 'http://'\n - !If [CreatePublicAlb, !GetAtt [Alb, DNSName], !If [CreateInternalAlb, !GetAtt [InternalAlb, DNSName], !GetAtt [ManagedEniStack, Outputs.ENI]]]\n - ':8001'"
}
}
}
],
"status": "success",
"timestamp": "2026-01-30T11:31:33.635Z",
"resultDisplay": "Read lines 2001-2167 of 2167 from mlcluster.template",
"displayName": "ReadFile",
"description": "Reads and returns the content of a specified file. If the file is large, the content will be truncated. The tool's response will clearly indicate if truncation has occurred and will provide details on how to read more of the file using the 'offset' and 'limit' parameters. Handles text, images (PNG, JPG, GIF, WEBP, SVG, BMP), audio files (MP3, WAV, AIFF, AAC, OGG, FLAC), and PDF files. For text files, it can read specific line ranges.",
"renderOutputAsMarkdown": true
}
]
},
{
"id": "71342c72-55c0-4165-a1c1-1f0110225523",
"timestamp": "2026-01-30T11:31:39.587Z",
"type": "gemini",
"content": "I will read `mlcluster-vpc.template` to confirm if it shares the same structure as `mlcluster.template`, checking if `InternalAlb` listeners are also using the shared `AlbTargetGroup` resources.",
"thoughts": [
{
"subject": "Reviewing Listener Configurations",
"description": "I've validated the configuration of `mlcluster.template`, confirming the use of `AlbTargetGroup1` through `AlbTargetGroup9` by the `InternalAlb` listeners (lines 2045-2157). Notably, these target groups are also utilized by the public `Alb` listeners. I'm now focused on understanding the implications of this shared resource allocation.",
"timestamp": "2026-01-30T11:31:38.186Z"
},
{
"subject": "Defining Internal Resources",
"description": "My immediate task is clear: I need to create the `InternalAlbTargetGroup` resources and associate them with the relevant internal listeners. Then, the server groups must be updated to register with these new internal target groups. I'll need to check if the structure in `mlcluster-vpc.template` mirrors this configuration.",
"timestamp": "2026-01-30T11:31:39.308Z"
}
],
"tokens": {
"input": 39889,
"output": 62,
"cached": 0,
"thoughts": 168,
"tool": 0,
"total": 40119
},
"model": "gemini-3-pro-preview",
"toolCalls": [
{
"id": "read_file-1769772699586-996573a5605cf8",
"name": "read_file",
"args": {
"file_path": "mlcluster-vpc.template"
},
"result": [
{
"functionResponse": {
"id": "read_file-1769772699586-996573a5605cf8",
"name": "read_file",
"response": {
"output": "AWSTemplateFormatVersion: 2010-09-09\nDescription: Deploy a MarkLogic Cluster on AWS with a new VPC\nMetadata:\n version: 12.0.1\n binary: MarkLogic-12.0.1-rhel.x86_64.rpm\n AWS::CloudFormation::Interface:\n ParameterGroups:\n - Label:\n default: \"Resource Configuration\"\n Parameters:\n - IAMRole\n - VolumeSize\n - VolumeType\n - VolumeIOPS\n - VolumeThroughput\n - VolumeEncryption\n - VolumeEncryptionKey\n - InstanceType\n - SpotPrice\n - KeyName\n - NumberOfZones\n - NodesPerZone\n - AZ\n - LogSNS\n - Label:\n default: \"Network Configuration\"\n Parameters:\n - VpcCidr\n - PrivateSubnet1Cidr\n - PrivateSubnet2Cidr\n - PrivateSubnet3Cidr\n - PublicSubnet1Cidr\n - PublicSubnet2Cidr\n - PublicSubnet3Cidr\n - PublicLoadBalancer\n - Label:\n default: \"MarkLogic Configuration\"\n Parameters:\n - AdminUser\n - AdminPass\n - Licensee\n - LicenseKey\n ParameterLabels:\n AdminUser:\n default: Admin User\n AdminPass:\n default: Admin password\n Licensee:\n default: Licensee\n LicenseKey:\n default: License Key\n IAMRole:\n default: IAM Role\n LogSNS:\n default: Logging SNS ARN\n VolumeSize:\n default: Volume Size\n VolumeType:\n default: Volume Type\n VolumeIOPS:\n default: Volume Iops\n VolumeThroughput:\n default: Volume Throughput\n VolumeEncryption:\n default: Volume Encryption\n VolumeEncryptionKey:\n default: Volume Encryption Key ARN\n InstanceType:\n default: Instance Type\n SpotPrice:\n default: Spot Price\n KeyName:\n default: SSH Key Name\n NumberOfZones:\n default: Number of Zones\n NodesPerZone:\n default: Nodes per Zone\n AZ:\n default: Availability Zone\n VpcCidr:\n default: VPC CIDR\n PrivateSubnet1Cidr:\n default: Private Subnet 1 CIDR\n PrivateSubnet2Cidr:\n default: Private Subnet 2 CIDR\n PrivateSubnet3Cidr:\n default: Private Subnet 3 CIDR\n PublicSubnet1Cidr:\n default: 'Public Subnet 1 CIDR'\n PublicSubnet2Cidr:\n default: 'Public Subnet 2 CIDR'\n PublicSubnet3Cidr:\n default: 'Public Subnet 3 CIDR'\n PublicLoadBalancer:\n default: Public Load Balancer\nParameters:\n # resource configuration\n IAMRole:\n Description: IAM Role\n Type: String\n VolumeSize:\n Description: The EBS Data volume size (GB) for all nodes\n Type: Number\n MinValue: '10'\n MaxValue: '1000'\n Default: '10'\n VolumeType:\n Description: The EBS Data volume Type\n Type: String\n AllowedValues:\n - standard\n - gp2\n - gp3\n Default: gp2\n VolumeIOPS:\n Description: The number of I/O operations per second for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '3000'\n MaxValue: '16000'\n Default: '3000'\n VolumeThroughput:\n Description: The throughput to provision for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '125'\n MaxValue: '1000'\n Default: '125'\n VolumeEncryption:\n Description: Whether to enable volume encryption\n Type: String\n AllowedValues:\n - enable\n - disable\n Default: enable\n VolumeEncryptionKey:\n Description: The key ID of AWS KMS key to encrypt volumes - Optional\n Type: String\n Default: \"\"\n InstanceType:\n Description: Type of EC2 instance to launch\n Type: String\n Default: r5.4xlarge\n AllowedValues:\n - ---- Pay-As-You-Go and Bring-Your-Own-License ----\n - c3.xlarge\n - c3.2xlarge\n - c3.4xlarge\n - c3.8xlarge\n - c4.xlarge\n - c4.2xlarge\n - c4.4xlarge\n - c4.8xlarge\n - c5.xlarge\n - c5.2xlarge\n - c5.4xlarge\n - c5.9xlarge\n - c5.12xlarge\n - c5.18xlarge\n - c5.24xlarge\n - c5a.xlarge\n - c5a.2xlarge\n - c5a.4xlarge\n - c5a.8xlarge\n - c5a.12xlarge\n - c5a.16xlarge\n - c5a.24xlarge\n - c5ad.xlarge\n - c5ad.2xlarge\n - c5ad.4xlarge\n - c5ad.8xlarge\n - c5ad.12xlarge\n - c5ad.16xlarge\n - c5ad.24xlarge\n - c5d.xlarge\n - c5d.2xlarge\n - c5d.4xlarge\n - c5d.9xlarge\n - c5d.12xlarge\n - c5d.18xlarge\n - c5d.24xlarge\n - c5n.xlarge\n - c5n.2xlarge\n - c5n.4xlarge\n - c5n.9xlarge\n - c5n.18xlarge\n - c6a.xlarge\n - c6a.2xlarge\n - c6a.4xlarge\n - c6a.8xlarge\n - c6a.12xlarge\n - c6a.16xlarge\n - c6a.24xlarge\n - c6a.32xlarge\n - c6a.48xlarge\n - c6i.xlarge\n - c6i.2xlarge\n - c6i.4xlarge\n - c6i.8xlarge\n - c6i.12xlarge\n - c6i.16xlarge\n - c6i.24xlarge\n - c6i.32xlarge\n - c6id.xlarge\n - c6id.2xlarge\n - c6id.4xlarge\n - c6id.8xlarge\n - c6id.12xlarge\n - c6id.16xlarge\n - c6id.24xlarge\n - c6id.32xlarge\n - c7i.xlarge\n - c7i.2xlarge\n - c7i.4xlarge\n - c7i.8xlarge\n - c7i.12xlarge\n - c7i.16xlarge\n - c7i.24xlarge\n - c7i.48xlarge\n - c7i-flex.xlarge\n - c7i-flex.2xlarge\n - c7i-flex.4xlarge\n - c7i-flex.8xlarge\n - c7i-flex.12xlarge\n - c7i-flex.16xlarge\n - c7a.xlarge\n - c7a.2xlarge\n - c7a.4xlarge\n - c7a.8xlarge\n - c7a.12xlarge\n - c7a.16xlarge\n - c7a.24xlarge\n - c7a.32xlarge\n - c7a.48xlarge\n - c8i.xlarge\n - c8i.2xlarge\n - c8i.4xlarge\n - c8i.8xlarge\n - c8i.12xlarge\n - c8i.16xlarge\n - c8i.24xlarge\n - c8i.32xlarge\n - c8i.48xlarge\n - c8i.96xlarge\n - c8i-flex.xlarge\n - c8i-flex.2xlarge\n - c8i-flex.4xlarge\n - c8i-flex.8xlarge\n - c8i-flex.12xlarge\n - c8i-flex.16xlarge\n - i2.2xlarge\n - i2.4xlarge\n - i2.8xlarge\n - i2.xlarge\n - i3.xlarge\n - i3.2xlarge\n - i3.4xlarge\n - i3.8xlarge\n - i3.16xlarge\n - i3en.xlarge\n - i3en.2xlarge\n - i3en.3xlarge\n - i3en.6xlarge\n - i3en.12xlarge\n - i3en.24xlarge\n - i4i.xlarge\n - i4i.2xlarge\n - i4i.4xlarge\n - i4i.8xlarge\n - i4i.12xlarge\n - i4i.16xlarge\n - i4i.24xlarge\n - i4i.32xlarge\n - i7ie.xlarge\n - i7ie.2xlarge\n - i7ie.3xlarge\n - i7ie.6xlarge\n - i7ie.12xlarge\n - i7ie.18xlarge\n - i7ie.24xlarge\n - i7ie.48xlarge\n - m3.xlarge\n - m3.2xlarge\n - m4.xlarge\n - m4.2xlarge\n - m4.4xlarge\n - m4.10xlarge\n - m4.16xlarge\n - m5.xlarge\n - m5.2xlarge\n - m5.4xlarge\n - m5.8xlarge\n - m5.12xlarge\n - m5.16xlarge\n - m5.24xlarge\n - m5a.xlarge\n - m5a.2xlarge\n - m5a.4xlarge\n - m5a.8xlarge\n - m5a.12xlarge\n - m5a.16xlarge\n - m5a.24xlarge\n - m5d.xlarge\n - m5d.2xlarge\n - m5d.4xlarge\n - m5d.8xlarge\n - m5d.16xlarge\n - m5d.12xlarge\n - m5d.24xlarge\n - m5ad.xlarge\n - m5ad.2xlarge\n - m5ad.4xlarge\n - m5ad.8xlarge\n - m5ad.12xlarge\n - m5ad.16xlarge\n - m5ad.24xlarge\n - m5zn.xlarge\n - m5zn.2xlarge\n - m5zn.3xlarge\n - m5zn.6xlarge\n - m5zn.12xlarge\n - m5n.xlarge\n - m5n.2xlarge\n - m5n.4xlarge\n - m5n.8xlarge\n - m5n.12xlarge\n - m5n.16xlarge\n - m5n.24xlarge\n - m5dn.xlarge\n - m5dn.2xlarge\n - m5dn.4xlarge\n - m5dn.8xlarge\n - m5dn.12xlarge\n - m5dn.16xlarge\n - m5dn.24xlarge\n - m6a.xlarge\n - m6a.2xlarge\n - m6a.4xlarge\n - m6a.8xlarge\n - m6a.12xlarge\n - m6a.16xlarge\n - m6a.24xlarge\n - m6a.32xlarge\n - m6a.48xlarge\n - m6i.xlarge\n - m6i.2xlarge\n - m6i.4xlarge\n - m6i.8xlarge\n - m6i.12xlarge\n - m6i.16xlarge\n - m6i.24xlarge\n - m6i.32xlarge\n - m6id.xlarge\n - m6id.2xlarge\n - m6id.4xlarge\n - m6id.8xlarge\n - m6id.12xlarge\n - m6id.16xlarge\n - m6id.24xlarge\n - m6id.32xlarge\n - m7i.xlarge\n - m7i.2xlarge\n - m7i.4xlarge\n - m7i.8xlarge\n - m7i.12xlarge\n - m7i.16xlarge\n - m7i.24xlarge\n - m7i.48xlarge\n - m7i-flex.xlarge\n - m7i-flex.2xlarge\n - m7i-flex.4xlarge\n - m7i-flex.8xlarge\n - m7i-flex.12xlarge\n - m7i-flex.16xlarge\n - m7a.xlarge\n - m7a.2xlarge\n - m7a.4xlarge\n - m7a.8xlarge\n - m7a.12xlarge\n - m7a.16xlarge\n - m7a.24xlarge\n - m7a.32xlarge\n - m7a.48xlarge\n - m8a.xlarge\n - m8a.2xlarge\n - m8a.4xlarge\n - m8a.8xlarge\n - m8a.12xlarge\n - m8a.16xlarge\n - m8a.24xlarge\n - m8a.48xlarge\n - m8i.xlarge\n - m8i.2xlarge\n - m8i.4xlarge\n - m8i.8xlarge\n - m8i.12xlarge\n - m8i.16xlarge\n - m8i.24xlarge\n - m8i.32xlarge\n - m8i.48xlarge\n - m8i.96xlarge\n - m8i-flex.xlarge\n - m8i-flex.2xlarge\n - m8i-flex.4xlarge\n - m8i-flex.8xlarge\n - m8i-flex.12xlarge\n - m8i-flex.16xlarge\n - r3.xlarge\n - r3.2xlarge\n - r3.4xlarge\n - r3.8xlarge\n - r4.xlarge\n - r4.2xlarge\n - r4.4xlarge\n - r4.8xlarge\n - r4.16xlarge\n - r5.xlarge\n - r5.2xlarge\n - r5.4xlarge\n - r5.8xlarge\n - r5.12xlarge\n - r5.16xlarge\n - r5.24xlarge\n - r5a.xlarge\n - r5a.2xlarge\n - r5a.4xlarge\n - r5a.8xlarge\n - r5a.12xlarge\n - r5a.16xlarge\n - r5a.24xlarge\n - r5ad.xlarge\n - r5ad.2xlarge\n - r5ad.4xlarge\n - r5ad.8xlarge\n - r5ad.12xlarge\n - r5ad.16xlarge\n - r5ad.24xlarge\n - r5b.xlarge\n - r5b.2xlarge\n - r5b.4xlarge\n - r5b.8xlarge\n - r5b.12xlarge\n - r5b.16xlarge\n - r5b.24xlarge\n - r5d.xlarge\n - r5d.2xlarge\n - r5d.4xlarge\n - r5d.8xlarge\n - r5d.12xlarge\n - r5d.16xlarge\n - r5d.24xlarge\n - r5dn.xlarge\n - r5dn.2xlarge\n - r5dn.4xlarge\n - r5dn.8xlarge\n - r5dn.12xlarge\n - r5dn.16xlarge\n - r5dn.24xlarge\n - r5n.xlarge\n - r5n.2xlarge\n - r5n.4xlarge\n - r5n.8xlarge\n - r5n.12xlarge\n - r5n.16xlarge\n - r5n.24xlarge\n - r6a.xlarge\n - r6a.2xlarge\n - r6a.4xlarge\n - r6a.8xlarge\n - r6a.12xlarge\n - r6a.16xlarge\n - r6a.24xlarge\n - r6a.32xlarge\n - r6a.48xlarge\n - r6i.xlarge\n - r6i.2xlarge\n - r6i.4xlarge\n - r6i.8xlarge\n - r6i.12xlarge\n - r6i.16xlarge\n - r6i.24xlarge\n - r6i.32xlarge\n - r6id.xlarge\n - r6id.2xlarge\n - r6id.4xlarge\n - r6id.8xlarge\n - r6id.12xlarge\n - r6id.16xlarge\n - r6id.24xlarge\n - r6id.32xlarge\n - r7i.xlarge\n - r7i.2xlarge\n - r7i.4xlarge\n - r7i.8xlarge\n - r7i.12xlarge\n - r7i.16xlarge\n - r7i.24xlarge\n - r7i.48xlarge\n - r7iz.xlarge\n - r7iz.2xlarge\n - r7iz.4xlarge\n - r7iz.8xlarge\n - r7iz.12xlarge\n - r7iz.16xlarge\n - r7iz.32xlarge\n - r7a.xlarge\n - r7a.2xlarge\n - r7a.4xlarge\n - r7a.8xlarge\n - r7a.12xlarge\n - r7a.16xlarge\n - r7a.24xlarge\n - r7a.32xlarge\n - r7a.48xlarge\n - r8a.xlarge\n - r8a.2xlarge\n - r8a.4xlarge\n - r8a.8xlarge\n - r8a.12xlarge\n - r8a.16xlarge\n - r8a.24xlarge\n - r8a.48xlarge\n - r8i.xlarge\n - r8i.2xlarge\n - r8i.4xlarge\n - r8i.8xlarge\n - r8i.12xlarge\n - r8i.16xlarge\n - r8i.24xlarge\n - r8i.32xlarge\n - r8i.48xlarge\n - r8i.96xlarge\n - r8i-flex.xlarge\n - r8i-flex.2xlarge\n - r8i-flex.4xlarge\n - r8i-flex.8xlarge\n - r8i-flex.12xlarge\n - r8i-flex.16xlarge\n - x1.16xlarge\n - x1.32xlarge\n - x1e.xlarge\n - x1e.2xlarge\n - x1e.4xlarge\n - x1e.8xlarge\n - x1e.16xlarge\n - x1e.32xlarge\n - x2idn.16xlarge\n - x2idn.24xlarge\n - x2idn.32xlarge\n - x2iedn.xlarge\n - x2iedn.2xlarge\n - x2iedn.4xlarge\n - x2iedn.8xlarge\n - x2iedn.16xlarge\n - x2iedn.24xlarge\n - x2iedn.32xlarge\n - x2iezn.2xlarge\n - x2iezn.4xlarge\n - x2iezn.6xlarge\n - x2iezn.8xlarge\n - x2iezn.12xlarge\n - z1d.metal\n - z1d.large\n SpotPrice:\n Description: Spot price for instances in USD/Hour - Optional/advanced.\n Type: Number\n MinValue: '0'\n MaxValue: '2'\n Default: '0'\n KeyName:\n Description: Name of an existing EC2 KeyPair to enable SSH access to the instance.\n Type: String\n NumberOfZones:\n Description: Total number of Availability Zones, which can be 1 or 3. Select 3 zones for Application Load Balancer. Once the stack has been created, the number of Availability Zones cannot be changed.\n Type: Number\n AllowedValues:\n - 1\n - 3\n Default: 3\n NodesPerZone:\n Description: Total number of nodes per Zone. Set to 0 to shutdown/hibernate\n Type: Number\n MinValue: '0'\n MaxValue: '20'\n Default: '1'\n AZ:\n Description: The Availability Zones for VPC subnets and instances. Accept either 1 zone or 3 zones. In the order of Subnet 1, Subnet 2 and Subnet 3 (if applicable).\n Type: 'List<AWS::EC2::AvailabilityZone::Name>'\n LogSNS:\n Description: SNS Topic for logging - optional/advanced.\n Type: String\n Default: none\n PublicLoadBalancer:\n Description: Enable Public Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n # network configuration\n VpcCidr:\n Description: CIDR Block for the Virtual Private Cloud (VPC).\n Type: String\n AllowedPattern: >-\n ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(1[6-9]|2[0-8]))$\n Default: 10.0.0.0/16\n ConstraintDescription: CIDR block must be in format x.x.x.x/16-28\n PrivateSubnet1Cidr:\n Description: CIDR Block for the private subnet 1.\n Type: String\n AllowedPattern: >-\n ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(1[6-9]|2[0-8]))$\n Default: 10.0.0.0/23\n ConstraintDescription: CIDR block must be in format x.x.x.x/16-28\n PrivateSubnet2Cidr:\n Description: CIDR Block for the private subnet 2. Only applicable to multi-zone cluster.\n Type: String\n AllowedPattern: >-\n ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(1[6-9]|2[0-8]))$\n Default: 10.0.32.0/23\n ConstraintDescription: CIDR block must be in format x.x.x.x/16-28\n PrivateSubnet3Cidr:\n Description: CIDR Block for the private subnet 3. Only applicable to multi-zone cluster.\n Type: String\n AllowedPattern: >-\n ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(1[6-9]|2[0-8]))$\n Default: 10.0.64.0/23\n ConstraintDescription: CIDR block must be in format x.x.x.x/16-28\n PublicSubnet1Cidr:\n Description: CIDR Block for the public subnet 1.\n Type: String\n AllowedPattern: >-\n ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(1[6-9]|2[0-8]))$\n Default: 10.0.96.0/23\n ConstraintDescription: CIDR block must be in format x.x.x.x/16-28\n PublicSubnet2Cidr:\n Description: CIDR Block for the public subnet 2. Only applicable to multi-zone cluster.\n Type: String\n AllowedPattern: >-\n ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(1[6-9]|2[0-8]))$\n Default: 10.0.128.0/23\n ConstraintDescription: CIDR block must be in format x.x.x.x/16-28\n PublicSubnet3Cidr:\n Description: CIDR Block for the public subnet 3. Only applicable to multi-zone cluster.\n Type: String\n AllowedPattern: >-\n ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(1[6-9]|2[0-8]))$\n Default: 10.0.160.0/23\n ConstraintDescription: CIDR block must be in format x.x.x.x/16-28\n # marklogic configuration\n AdminUser:\n Description: The MarkLogic administrator username\n Type: String\n AdminPass:\n Description: The MarkLogic administrator password\n Type: String\n NoEcho: 'true'\n AllowedPattern: >-\n ^(?!.*[*]).*$\n ConstraintDescription: Admin password must contain any characters except asterisk (*).\n Licensee:\n Description: The MarkLogic Licensee or 'none'. Provide none/none to choose PAYG version. Provide valid Licensee/Licensekey to choose BYOL version.\n Type: String\n Default: none\n LicenseKey:\n Description: The MarkLogic License Key or 'none'. Provide none/none to choose PAYG version. Provide valid Licensee/Licensekey to choose BYOL version.\n Type: String\n Default: none\nConditions:\n UseLogSNS: !Not [!Equals [!Ref LogSNS, \"none\"]]\n UseSpot: !Not\n - !Equals\n - !Ref SpotPrice\n - 0\n #MultiZone (3 zones) and SingleZone conditions used for the conditional resource creation based on number of zones selected.\n MultiZone: !Not [!Equals [!Ref NumberOfZones, 1]]\n CreatePublicAlb: !And [!Condition MultiZone, !Equals [!Ref PublicLoadBalancer, 'true']]\n SingleZone: !Equals [!Ref NumberOfZones, 1]\n PAYG: !Or [ !And [!Equals [!Ref LicenseKey, ''], !Equals [!Ref Licensee, '']], !And [!Equals [!Ref LicenseKey, 'none'], !Equals [!Ref Licensee, 'none']] ]\n UseVolumeEncryption: !Equals [!Ref VolumeEncryption, 'enable']\n HasCustomEBSKey: !Not [!Equals [!Ref VolumeEncryptionKey, '']]\n GP3: !Equals [!Ref VolumeType, 'gp3']\nMappings:\n Variable:\n LambdaPackageBucket:\n base: 'ml-db-lambda-'\n TemplateUrl:\n base: 'https://s3.amazonaws.com/marklogic-db-template-releases'\n S3Directory:\n base: '12.0.1'\n LicenseRegion2AMI:\n us-east-1:\n PAYGAl2023: ami-0198b8931e9597271\n BYOLAl2023: ami-0a8536507241f95b0\n us-east-2:\n PAYGAl2023: ami-0877b64dae8264415\n BYOLAl2023: ami-082cc98b2c01e486a\n us-west-1:\n PAYGAl2023: ami-07890fc78f4ddfa20\n BYOLAl2023: ami-05c9a962410c2821b\n us-west-2:\n PAYGAl2023: ami-0577eb149c9e0f53f\n BYOLAl2023: ami-0262dd8d014bf71ba\n eu-central-1:\n PAYGAl2023: ami-06348556399c8ab69\n BYOLAl2023: ami-00cb5a3527e7c0d11\n eu-west-1:\n PAYGAl2023: ami-0fa7bc44cd9ab1f85\n BYOLAl2023: ami-0bc2b4d46367806b0\n ap-south-1:\n PAYGAl2023: ami-0f481ba0a6819ced6\n BYOLAl2023: ami-00b59374107e5efb6\n ap-southeast-1:\n PAYGAl2023: ami-0c373c6c8a2316c80\n BYOLAl2023: ami-0b9bd265ef165a07b\n ap-southeast-2:\n PAYGAl2023: ami-0c65a907408226a3e\n BYOLAl2023: ami-02bad1ef2c6d4a91a\n ap-northeast-1:\n PAYGAl2023: ami-0254bc4adaf13e3b9\n BYOLAl2023: ami-07e8b312b1016bf67\n ap-northeast-2:\n PAYGAl2023: ami-05995b5f5807873d7\n BYOLAl2023: ami-0afd77ba0d7a0c129\n sa-east-1:\n PAYGAl2023: ami-05ec8fee12de236a5\n BYOLAl2023: ami-09d883ea308449555\n eu-west-2:\n PAYGAl2023: ami-0f5cff9d243f31521\n BYOLAl2023: ami-0588d104a52fbc326\n ca-central-1:\n PAYGAl2023: ami-0f34d118b23b51bf5\n BYOLAl2023: ami-0c78eccd03e957005\n eu-west-3:\n PAYGAl2023: ami-01fa9155eb17992c5\n BYOLAl2023: ami-0637199acc5327534\nResources:\n VpcStack:\n Type: AWS::CloudFormation::Stack\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n MultiZone: !If [MultiZone, 'true', 'false']\n AZ: !Join [',', !Ref AZ]\n VpcCidr: !Ref VpcCidr\n PrivateSubnet1Cidr: !Ref PrivateSubnet1Cidr\n PrivateSubnet2Cidr: !Ref PrivateSubnet2Cidr\n PrivateSubnet3Cidr: !Ref PrivateSubnet3Cidr\n PublicSubnet1Cidr: !Ref PublicSubnet1Cidr\n PublicSubnet2Cidr: !Ref PublicSubnet2Cidr\n PublicSubnet3Cidr: !Ref PublicSubnet3Cidr\n TemplateURL: !Join [\"/\", [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-vpc.template']]\n TimeoutInMinutes: 5\n ManagedEniStack:\n Type: AWS::CloudFormation::Stack\n DependsOn:\n - VpcStack\n - InstanceSecurityGroup\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n NodesPerZone: !Ref NodesPerZone\n NumberOfZones: !Ref NumberOfZones\n Subnets: !If\n - MultiZone\n - !Join\n - ','\n - - !GetAtt [VpcStack, Outputs.PrivateSubnet1Id]\n - !GetAtt [VpcStack, Outputs.PrivateSubnet2Id]\n - !GetAtt [VpcStack, Outputs.PrivateSubnet3Id]\n - !GetAtt [VpcStack, Outputs.PrivateSubnet1Id]\n ParentStackName: !Ref 'AWS::StackName'\n ParentStackId: !Ref 'AWS::StackId'\n SecurityGroup: !Ref InstanceSecurityGroup\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-managedeni.template']]\n TimeoutInMinutes: 5\n NodeMgrLambdaStack:\n Type: AWS::CloudFormation::Stack\n DependsOn: ManagedEniStack\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-nodemanager.template']]\n TimeoutInMinutes: 5\n MarklogicVolume1:\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [0, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupA-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c81032f7-b0ec-47ca-a236-e24d57b49ae3\n MarklogicVolume2:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [1, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupB-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: ddb55ae1-a00b-42ed-addd-5e03e4a2764b\n MarklogicVolume3:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [2, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupC-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 9094a65e-9d01-4c4c-9586-c33720e2cc9c\n MarkLogicDDBTable:\n Type: 'AWS::DynamoDB::Table'\n Properties:\n AttributeDefinitions:\n - AttributeName: node\n AttributeType: S\n KeySchema:\n - KeyType: HASH\n AttributeName: node\n ProvisionedThroughput:\n WriteCapacityUnits: '10'\n ReadCapacityUnits: '10'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e7190602-c2de-47ab-81e7-1315f8c01e2d\n #AutoScalingGroup used for SingleZone deployments that is connected to Classic Load Balancer.\n MarkLogicServerGroup:\n Condition: SingleZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - VpcStack\n - ManagedEniStack\n - NodeMgrLambdaStack\n Properties:\n VPCZoneIdentifier:\n - !GetAtt [VpcStack, Outputs.PrivateSubnet1Id]\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup1:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - VpcStack\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n Properties:\n VPCZoneIdentifier:\n - !GetAtt [VpcStack, Outputs.PrivateSubnet1Id]\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup2:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - VpcStack\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n Properties:\n VPCZoneIdentifier:\n - !GetAtt [VpcStack, Outputs.PrivateSubnet2Id]\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp2\n Version: !GetAtt LaunchTemp2.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 87d75478-787a-41d5-bb21-9de6fe4b662e\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup3:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - VpcStack\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n Properties:\n VPCZoneIdentifier:\n - !GetAtt [VpcStack, Outputs.PrivateSubnet3Id]\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp3\n Version: !GetAtt LaunchTemp3.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: bbd8314a-6e59-4102-9ed5-232739dd0dfa\n InstanceSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n DependsOn:\n - VpcStack\n Properties:\n GroupDescription: Enable SSH access and HTTP access on the inbound port\n VpcId: !GetAtt [VpcStack, Outputs.VpcId]\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '22'\n ToPort: '22'\n CidrIp: 0.0.0.0/0\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n CidrIp: 0.0.0.0/0\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8010'\n CidrIp: 0.0.0.0/0\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n CidrIp: 0.0.0.0/0\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n CidrIp: 0.0.0.0/0\n InstanceSecurityGroupIngress:\n Type: 'AWS::EC2::SecurityGroupIngress'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n IpProtocol: tcp\n FromPort: '0'\n ToPort: '65355'\n GroupId: !Ref InstanceSecurityGroup\n SourceSecurityGroupId: !Ref InstanceSecurityGroup\n ElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n DependsOn: VpcStack\n Properties:\n GroupDescription: Enable SSH access and HTTP access on the inbound port\n VpcId: !GetAtt [VpcStack, Outputs.VpcId]\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '22'\n ToPort: '22'\n CidrIp: 0.0.0.0/0\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n CidrIp: 0.0.0.0/0\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8010'\n CidrIp: 0.0.0.0/0\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n CidrIp: 0.0.0.0/0\n LaunchTemp1:\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume1\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeA#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=1\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 2efb8cfb-df53-401d-8ff2-34af0dd25993\n LaunchTemp2:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume2\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeB#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c8296a50-a29e-4646-aa74-8f1b735a9a3f\n LaunchTemp3:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume3\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeC#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 7fa68c90-39bc-4874-ad20-8cd8c974ed52\n #Application Load Balancer description for MultiZone deployments (3 zones).\n Alb:\n Condition: CreatePublicAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - VpcStack\n - ElbSecurityGroup\n Properties: \n SecurityGroups: \n - !Ref ElbSecurityGroup\n Subnets: \n - !GetAtt [VpcStack, Outputs.PublicSubnet1Id]\n - !If [MultiZone, !GetAtt [VpcStack, Outputs.PublicSubnet2Id], !Ref 'AWS::NoValue']\n - !If [MultiZone, !GetAtt [VpcStack, Outputs.PublicSubnet3Id], !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 9 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n AlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n DependsOn:\n - VpcStack\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !GetAtt [VpcStack, Outputs.VpcId]\n AlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n DependsOn:\n - VpcStack\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !GetAtt [VpcStack, Outputs.VpcId]\n AlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n DependsOn:\n - VpcStack\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !GetAtt [VpcStack, Outputs.VpcId]\n AlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n DependsOn:\n - VpcStack\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !GetAtt [VpcStack, Outputs.VpcId]\n AlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n DependsOn:\n - VpcStack\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !GetAtt [VpcStack, Outputs.VpcId]\n AlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n DependsOn:\n - VpcStack\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !GetAtt [VpcStack, Outputs.VpcId]\n AlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n DependsOn:\n - VpcStack\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !GetAtt [VpcStack, Outputs.VpcId]\n AlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n DependsOn:\n - VpcStack\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !GetAtt [VpcStack, Outputs.VpcId]\n AlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n DependsOn:\n - VpcStack\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !GetAtt [VpcStack, Outputs.VpcId]\n #Descriptions of the 9 Listeners for MultiZone deployments (3 zones). Each Listener connects Application Load Balancer to a TargetGroup with a particular port.\n AlbListener1:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8000\n Protocol: HTTP\n AlbListener2:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8001\n Protocol: HTTP\n AlbListener3:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8002\n Protocol: HTTP\n AlbListener4:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8003\n Protocol: HTTP\n AlbListener5:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8004\n Protocol: HTTP\n AlbListener6:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8005\n Protocol: HTTP\n AlbListener7:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8006\n Protocol: HTTP\n AlbListener8:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8007\n Protocol: HTTP\n AlbListener9:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8008\n Protocol: HTTP\nOutputs:\n URL:\n Description: The URL of the MarkLogic Cluster\n Value: !Join\n - ''\n - - 'http://'\n - !If [CreatePublicAlb, !GetAtt [Alb, DNSName], !GetAtt [ManagedEniStack, Outputs.ENI]]\n - ':8001'\n PrivateSubnetRouteTableID:\n Description: Private Subnet Route Table ID\n Value: !GetAtt [VpcStack, Outputs.PrivateSubnetRouteTableID]\n InstanceSecurityGroupID:\n Description: Instance Security Group ID\n Value: !Ref InstanceSecurityGroup"
}
}
}
],
"status": "success",
"timestamp": "2026-01-30T11:31:39.605Z",
"resultDisplay": "",
"displayName": "ReadFile",
"description": "Reads and returns the content of a specified file. If the file is large, the content will be truncated. The tool's response will clearly indicate if truncation has occurred and will provide details on how to read more of the file using the 'offset' and 'limit' parameters. Handles text, images (PNG, JPG, GIF, WEBP, SVG, BMP), audio files (MP3, WAV, AIFF, AAC, OGG, FLAC), and PDF files. For text files, it can read specific line ranges.",
"renderOutputAsMarkdown": true
}
]
},
{
"id": "b55ee50c-e302-4111-8bb4-8ecdc78e9ea0",
"timestamp": "2026-01-30T11:32:25.986Z",
"type": "gemini",
"content": "I will add the `InternalAlbTargetGroup1` through `InternalAlbTargetGroup9` definitions to `mlcluster.template` by inserting them before the `MarklogicInternal8011Listener` resource, using the same configuration as the existing `AlbTargetGroup` resources but with the `InternalAlbTargetGroup` logical IDs.",
"thoughts": [
{
"subject": "Assessing Template Anomalies",
"description": "I've been poring over the `mlcluster-vpc.template`, specifically the ALB configurations. Noticed it defines `AlbTargetGroup1` to `AlbTargetGroup9` and corresponding listeners. Interestingly, there's no sign of an \"InternalAlb\" or associated resources. This deviation warrants closer inspection, as I'm trying to determine why those internal resources are not configured.",
"timestamp": "2026-01-30T11:31:47.032Z"
},
{
"subject": "Evaluating Template Discrepancies",
"description": "I've shifted my focus to `mlcluster.template` to understand the presence of the internal load balancer. The file clearly defines both `PublicLoadBalancer` and `InternalLoadBalancer` parameters. This contrasts sharply with `mlcluster-vpc.template`, which only supports the public ALB. The `mlcluster.template` also includes an `InternalAlb` resource, which is missing in the VPC template. I am confident I now understand the difference in design.",
"timestamp": "2026-01-30T11:31:50.105Z"
},
{
"subject": "Differentiating Template Behaviors",
"description": "I've just confirmed the core difference: `mlcluster-vpc.template` is designed exclusively for a public load balancer, whereas `mlcluster.template` supports both public and internal load balancers. The user's request clearly targets `mlcluster.template`, as it's the only one with an `InternalAlb`. My next steps involve creating separate internal target groups for `mlcluster.template`, as indicated in the instructions.",
"timestamp": "2026-01-30T11:31:52.143Z"
},
{
"subject": "Planning Target Group Modifications",
"description": "I'm now fully immersed in the required changes for `mlcluster.template`. My strategy is clear: I'll duplicate the existing `AlbTargetGroup` definitions, creating new internal-specific counterparts. Subsequently, I'll update the `InternalAlbListener` configurations to utilize these new internal target groups. Finally, I will integrate these new target groups into the `MarkLogicServerGroupX` configurations.",
"timestamp": "2026-01-30T11:31:55.189Z"
},
{
"subject": "Structuring Target Group Refinement",
"description": "I've finalized my plan for `mlcluster.template`. My first step is to replicate the existing `AlbTargetGroup` definitions, naming them `InternalAlbTargetGroup`. These new groups will also include a `Condition: MultiZone` flag to match the existing pattern, ensuring they're always created. Next, I'll update the `InternalAlbListener` configurations to point to these newly created internal target groups. Finally, I will ensure the `MarkLogicServerGroupX` configurations reference the new target groups.",
"timestamp": "2026-01-30T11:31:58.120Z"
},
{
"subject": "Formulating Implementation Steps",
"description": "I'm now fully immersed in the implementation strategy for `mlcluster.template`. I'll start by duplicating `AlbTargetGroup1` through `9` into `InternalAlbTargetGroup1` through `9`, ensuring they have a `Condition: MultiZone` flag, as existing groups do. Next, I'll update the `InternalAlbListener` configurations to utilize the new internal target groups. Finally, I will augment the `MarkLogicServerGroupX` configurations by including the internal target groups within their `TargetGroupARNs` lists.",
"timestamp": "2026-01-30T11:32:01.081Z"
},
{
"subject": "Refining Implementation Strategy",
"description": "I'm solidifying my approach for `mlcluster.template`. I'll begin by replicating the existing `AlbTargetGroup1` through `AlbTargetGroup9` resources, renaming the duplicates to `InternalAlbTargetGroup1` through `InternalAlbTargetGroup9`. These new target groups will inherit the `Condition: MultiZone` flag to align with existing configurations. Next, I will modify the `InternalAlbListener` configurations, directing them to the new internal target groups. Finally, I will ensure the `MarkLogicServerGroupX` configurations include these internal target groups.",
"timestamp": "2026-01-30T11:32:03.419Z"
},
{
"subject": "Initiating Template Fixes",
"description": "I am now focusing on the `mlcluster.template` file. The primary task involves creating nine new `InternalAlbTargetGroup` definitions, mirroring the structure of the existing `AlbTargetGroup` configurations. These will include a `Condition: MultiZone` flag to align with established patterns. I'm strategizing the most efficient placement for these new definitions within the file, likely near the existing target group definitions for clarity.",
"timestamp": "2026-01-30T11:32:06.384Z"
},
{
"subject": "Constructing Target Group Duplicates",
"description": "I'm now focused on the initial step: creating the `InternalAlbTargetGroupX` definitions. This involves duplicating the existing `AlbTargetGroupX` configurations within `mlcluster.template` and adjusting the names. I'll meticulously replicate the properties, ensuring alignment with the existing structure and incorporating the `Condition: MultiZone` flag to mirror the established pattern. My intention is to maintain consistency while establishing distinct internal target groups.",
"timestamp": "2026-01-30T11:32:09.643Z"
},
{
"subject": "Implementing Internal Groups",
"description": "I'm now fully immersed in the details of the required modifications within `mlcluster.template`. My primary objective is to define the `InternalAlbTargetGroup` resources, precisely mirroring the existing `AlbTargetGroup` structures, while maintaining the `Condition: MultiZone` flag. These new groups will be placed near the existing internal resource definitions to maintain clarity. I will then adjust the `InternalAlbListener` configurations to utilize these new internal target groups, and finally, integrate the new target groups into the `MarkLogicServerGroupX` configurations.",
"timestamp": "2026-01-30T11:32:13.299Z"
},
{
"subject": "Creating Internal Groups",
"description": "I'm now generating the `InternalAlbTargetGroup` definitions. These will be identical to the existing `AlbTargetGroup` configurations, ensuring seamless integration. I'll maintain the `Condition: MultiZone` flag, mirroring the existing behavior. The new groups will be positioned near the internal resource declarations within `mlcluster.template` to enhance readability.",
"timestamp": "2026-01-30T11:32:13.351Z"
}
],
"tokens": {
"input": 58433,
"output": 1815,
"cached": 58002,
"thoughts": 2948,
"tool": 0,
"total": 63196
},
"model": "gemini-3-pro-preview",
"toolCalls": [
{
"id": "replace-1769772745976-3711da73826a28",
"name": "replace",
"args": {
"file_path": "/Users/bob/git/dxw/marklogic-cf-templates/mlcluster.template",
"instruction": "Add InternalAlbTargetGroup1 through InternalAlbTargetGroup9 definitions before MarklogicInternal8011Listener.",
"old_string": " VpcId: !Ref VPC\n MarklogicInternal8011Listener:",
"new_string": " VpcId: !Ref VPC\n InternalAlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicInternal8011Listener:"
},
"result": [
{
"functionResponse": {
"id": "replace-1769772745976-3711da73826a28",
"name": "replace",
"response": {
"output": "Successfully modified file: /Users/bob/git/dxw/marklogic-cf-templates/mlcluster.template (1 replacements)."
}
}
}
],
"status": "success",
"timestamp": "2026-01-30T11:32:33.588Z",
"resultDisplay": {
"fileDiff": "Index: mlcluster.template\n===================================================================\n--- mlcluster.template\tCurrent\n+++ mlcluster.template\tProposed\n@@ -2027,6 +2027,195 @@\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n+ InternalAlbTargetGroup1:\n+ Condition: MultiZone\n+ Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n+ Properties:\n+ HealthCheckIntervalSeconds: 10\n+ HealthCheckTimeoutSeconds: 5\n+ HealthyThresholdCount: 3\n+ HealthCheckPort: 7997\n+ UnhealthyThresholdCount: 5\n+ Port: 8000\n+ Protocol: HTTP\n+ TargetGroupAttributes:\n+ - Key: stickiness.enabled\n+ Value: true\n+ - Key: stickiness.type\n+ Value: lb_cookie\n+ - Key: stickiness.lb_cookie.duration_seconds\n+ Value: 3600\n+ - Key: deregistration_delay.timeout_seconds\n+ Value: 60\n+ VpcId: !Ref VPC\n+ InternalAlbTargetGroup2:\n+ Condition: MultiZone\n+ Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n+ Properties:\n+ HealthCheckIntervalSeconds: 10\n+ HealthCheckTimeoutSeconds: 5\n+ HealthyThresholdCount: 3\n+ HealthCheckPort: 7997\n+ UnhealthyThresholdCount: 5\n+ Port: 8001\n+ Protocol: HTTP\n+ TargetGroupAttributes:\n+ - Key: stickiness.enabled\n+ Value: true\n+ - Key: stickiness.type\n+ Value: lb_cookie\n+ - Key: stickiness.lb_cookie.duration_seconds\n+ Value: 3600\n+ - Key: deregistration_delay.timeout_seconds\n+ Value: 60\n+ VpcId: !Ref VPC\n+ InternalAlbTargetGroup3:\n+ Condition: MultiZone\n+ Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n+ Properties:\n+ HealthCheckIntervalSeconds: 10\n+ HealthCheckTimeoutSeconds: 5\n+ HealthyThresholdCount: 3\n+ HealthCheckPort: 7997\n+ UnhealthyThresholdCount: 5\n+ Port: 8002\n+ Protocol: HTTP\n+ TargetGroupAttributes:\n+ - Key: stickiness.enabled\n+ Value: true\n+ - Key: stickiness.type\n+ Value: lb_cookie\n+ - Key: stickiness.lb_cookie.duration_seconds\n+ Value: 3600\n+ - Key: deregistration_delay.timeout_seconds\n+ Value: 60\n+ VpcId: !Ref VPC\n+ InternalAlbTargetGroup4:\n+ Condition: MultiZone\n+ Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n+ Properties:\n+ HealthCheckIntervalSeconds: 10\n+ HealthCheckTimeoutSeconds: 5\n+ HealthyThresholdCount: 3\n+ HealthCheckPort: 7997\n+ UnhealthyThresholdCount: 5\n+ Port: 8003\n+ Protocol: HTTP\n+ TargetGroupAttributes:\n+ - Key: stickiness.enabled\n+ Value: true\n+ - Key: stickiness.type\n+ Value: lb_cookie\n+ - Key: stickiness.lb_cookie.duration_seconds\n+ Value: 3600\n+ - Key: deregistration_delay.timeout_seconds\n+ Value: 60\n+ VpcId: !Ref VPC\n+ InternalAlbTargetGroup5:\n+ Condition: MultiZone\n+ Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n+ Properties:\n+ HealthCheckIntervalSeconds: 10\n+ HealthCheckTimeoutSeconds: 5\n+ HealthyThresholdCount: 3\n+ HealthCheckPort: 7997\n+ UnhealthyThresholdCount: 5\n+ Port: 8004\n+ Protocol: HTTP\n+ TargetGroupAttributes:\n+ - Key: stickiness.enabled\n+ Value: true\n+ - Key: stickiness.type\n+ Value: lb_cookie\n+ - Key: stickiness.lb_cookie.duration_seconds\n+ Value: 3600\n+ - Key: deregistration_delay.timeout_seconds\n+ Value: 60\n+ VpcId: !Ref VPC\n+ InternalAlbTargetGroup6:\n+ Condition: MultiZone\n+ Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n+ Properties:\n+ HealthCheckIntervalSeconds: 10\n+ HealthCheckTimeoutSeconds: 5\n+ HealthyThresholdCount: 3\n+ HealthCheckPort: 7997\n+ UnhealthyThresholdCount: 5\n+ Port: 8005\n+ Protocol: HTTP\n+ TargetGroupAttributes:\n+ - Key: stickiness.enabled\n+ Value: true\n+ - Key: stickiness.type\n+ Value: lb_cookie\n+ - Key: stickiness.lb_cookie.duration_seconds\n+ Value: 3600\n+ - Key: deregistration_delay.timeout_seconds\n+ Value: 60\n+ VpcId: !Ref VPC\n+ InternalAlbTargetGroup7:\n+ Condition: MultiZone\n+ Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n+ Properties:\n+ HealthCheckIntervalSeconds: 10\n+ HealthCheckTimeoutSeconds: 5\n+ HealthyThresholdCount: 3\n+ HealthCheckPort: 7997\n+ UnhealthyThresholdCount: 5\n+ Port: 8006\n+ Protocol: HTTP\n+ TargetGroupAttributes:\n+ - Key: stickiness.enabled\n+ Value: true\n+ - Key: stickiness.type\n+ Value: lb_cookie\n+ - Key: stickiness.lb_cookie.duration_seconds\n+ Value: 3600\n+ - Key: deregistration_delay.timeout_seconds\n+ Value: 60\n+ VpcId: !Ref VPC\n+ InternalAlbTargetGroup8:\n+ Condition: MultiZone\n+ Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n+ Properties:\n+ HealthCheckIntervalSeconds: 10\n+ HealthCheckTimeoutSeconds: 5\n+ HealthyThresholdCount: 3\n+ HealthCheckPort: 7997\n+ UnhealthyThresholdCount: 5\n+ Port: 8007\n+ Protocol: HTTP\n+ TargetGroupAttributes:\n+ - Key: stickiness.enabled\n+ Value: true\n+ - Key: stickiness.type\n+ Value: lb_cookie\n+ - Key: stickiness.lb_cookie.duration_seconds\n+ Value: 3600\n+ - Key: deregistration_delay.timeout_seconds\n+ Value: 60\n+ VpcId: !Ref VPC\n+ InternalAlbTargetGroup9:\n+ Condition: MultiZone\n+ Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n+ Properties:\n+ HealthCheckIntervalSeconds: 10\n+ HealthCheckTimeoutSeconds: 5\n+ HealthyThresholdCount: 3\n+ HealthCheckPort: 7997\n+ UnhealthyThresholdCount: 5\n+ Port: 8008\n+ Protocol: HTTP\n+ TargetGroupAttributes:\n+ - Key: stickiness.enabled\n+ Value: true\n+ - Key: stickiness.type\n+ Value: lb_cookie\n+ - Key: stickiness.lb_cookie.duration_seconds\n+ Value: 3600\n+ - Key: deregistration_delay.timeout_seconds\n+ Value: 60\n+ VpcId: !Ref VPC\n MarklogicInternal8011Listener:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n",
"fileName": "mlcluster.template",
"filePath": "/Users/bob/git/dxw/marklogic-cf-templates/mlcluster.template",
"originalContent": "AWSTemplateFormatVersion: 2010-09-09\nDescription: Deploy a MarkLogic Cluster on AWS in existing VPC (Virtual Private Cloud).\nMetadata:\n version: 12.0.1\n binary: MarkLogic-12.0.1-rhel.x86_64.rpm\n AWS::CloudFormation::Interface:\n ParameterGroups:\n - Label:\n default: \"Resource Configuration\"\n Parameters:\n - IAMRole\n - VolumeSize\n - VolumeType\n - VolumeIOPS\n - VolumeThroughput\n - VolumeEncryption\n - VolumeEncryptionKey\n - InstanceType\n - SpotPrice\n - KeyName\n - NumberOfZones\n - NodesPerZone\n - AZ\n - LogSNS\n - Label:\n default: \"Network Configuration\"\n Parameters:\n - VPC\n - PublicSubnet1\n - PublicSubnet2\n - PublicSubnet3\n - PrivateSubnet1\n - PrivateSubnet2\n - PrivateSubnet3\n - PublicLoadBalancer\n - InternalLoadBalancer\n - ExternalAccessCidrIP\n - ECSSecurityGroup\n - Label:\n default: \"MarkLogic Configuration\"\n Parameters:\n - AdminUser\n - AdminPass\n - Licensee\n - LicenseKey\n ParameterLabels:\n AdminUser:\n default: Admin User\n AdminPass:\n default: Admin password\n Licensee:\n default: Licensee\n LicenseKey:\n default: License Key\n IAMRole:\n default: IAM Role\n LogSNS:\n default: Logging SNS ARN\n VolumeSize:\n default: Volume Size\n VolumeType:\n default: Volume Type\n VolumeIOPS:\n default: Volume Iops\n VolumeThroughput:\n default: Volume Throughput\n VolumeEncryption:\n default: Volume Encryption\n VolumeEncryptionKey:\n default: Volume Encryption Key ARN\n InstanceType:\n default: Instance Type\n SpotPrice:\n default: Spot Price\n KeyName:\n default: SSH Key Name\n NumberOfZones:\n default: Number of Zones\n NodesPerZone:\n default: Nodes per Zone\n AZ:\n default: Availability Zone\n VPC:\n default: VPC\n PublicSubnet1:\n default: Public Subnet 1\n PublicSubnet2:\n default: Public Subnet 2\n PublicSubnet3:\n default: Public Subnet 3\n PrivateSubnet1:\n default: Private Subnet 1\n PrivateSubnet2:\n default: Private Subnet 2\n PrivateSubnet3:\n default: Private Subnet 3\n PublicLoadBalancer:\n default: Public Load Balancer\n InternalLoadBalancer:\n default: Internal Load Balancer\n ExternalAccessCidrIP:\n default: External IP address range for access to admin site\n ECSSecurityGroup:\n default: the security group the ecs cluster is in\nParameters:\n # resource configuration\n IAMRole:\n Description: IAM Role\n Type: String\n VolumeSize:\n Description: The EBS Data volume size (GB) for all nodes\n Type: Number\n MinValue: '10'\n MaxValue: '1000'\n Default: '50'\n VolumeType:\n Description: The EBS Data volume Type\n Type: String\n AllowedValues:\n - standard\n - gp2\n - gp3\n Default: gp3\n VolumeIOPS:\n Description: The number of I/O operations per second for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '3000'\n MaxValue: '16000'\n Default: '3000'\n VolumeThroughput:\n Description: The throughput to provision for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '125'\n MaxValue: '1000'\n Default: '125'\n VolumeEncryption:\n Description: Whether to enable volume encryption\n Type: String\n AllowedValues:\n - enable\n - disable\n Default: enable\n VolumeEncryptionKey:\n Description: The key ID of AWS KMS key to encrypt volumes - Optional\n Type: String\n Default: \"\"\n InstanceType:\n Description: Type of EC2 instance to launch\n Type: String\n Default: r5.4xlarge\n AllowedValues:\n - ---- Pay-As-You-Go and Bring-Your-Own-License ----\n - c3.xlarge\n - c3.2xlarge\n - c3.4xlarge\n - c3.8xlarge\n - c4.xlarge\n - c4.2xlarge\n - c4.4xlarge\n - c4.8xlarge\n - c5.xlarge\n - c5.2xlarge\n - c5.4xlarge\n - c5.9xlarge\n - c5.12xlarge\n - c5.18xlarge\n - c5.24xlarge\n - c5a.xlarge\n - c5a.2xlarge\n - c5a.4xlarge\n - c5a.8xlarge\n - c5a.12xlarge\n - c5a.16xlarge\n - c5a.24xlarge\n - c5ad.xlarge\n - c5ad.2xlarge\n - c5ad.4xlarge\n - c5ad.8xlarge\n - c5ad.12xlarge\n - c5ad.16xlarge\n - c5ad.24xlarge\n - c5d.xlarge\n - c5d.2xlarge\n - c5d.4xlarge\n - c5d.9xlarge\n - c5d.12xlarge\n - c5d.18xlarge\n - c5d.24xlarge\n - c5n.xlarge\n - c5n.2xlarge\n - c5n.4xlarge\n - c5n.9xlarge\n - c5n.18xlarge\n - c6a.xlarge\n - c6a.2xlarge\n - c6a.4xlarge\n - c6a.8xlarge\n - c6a.12xlarge\n - c6a.16xlarge\n - c6a.24xlarge\n - c6a.32xlarge\n - c6a.48xlarge\n - c6i.xlarge\n - c6i.2xlarge\n - c6i.4xlarge\n - c6i.8xlarge\n - c6i.12xlarge\n - c6i.16xlarge\n - c6i.24xlarge\n - c6i.32xlarge\n - c6id.xlarge\n - c6id.2xlarge\n - c6id.4xlarge\n - c6id.8xlarge\n - c6id.12xlarge\n - c6id.16xlarge\n - c6id.24xlarge\n - c6id.32xlarge\n - c7i.xlarge\n - c7i.2xlarge\n - c7i.4xlarge\n - c7i.8xlarge\n - c7i.12xlarge\n - c7i.16xlarge\n - c7i.24xlarge\n - c7i.48xlarge\n - c7i-flex.xlarge\n - c7i-flex.2xlarge\n - c7i-flex.4xlarge\n - c7i-flex.8xlarge\n - c7i-flex.12xlarge\n - c7i-flex.16xlarge\n - c7a.xlarge\n - c7a.2xlarge\n - c7a.4xlarge\n - c7a.8xlarge\n - c7a.12xlarge\n - c7a.16xlarge\n - c7a.24xlarge\n - c7a.32xlarge\n - c7a.48xlarge\n - c8i.xlarge\n - c8i.2xlarge\n - c8i.4xlarge\n - c8i.8xlarge\n - c8i.12xlarge\n - c8i.16xlarge\n - c8i.24xlarge\n - c8i.32xlarge\n - c8i.48xlarge\n - c8i.96xlarge\n - c8i-flex.xlarge\n - c8i-flex.2xlarge\n - c8i-flex.4xlarge\n - c8i-flex.8xlarge\n - c8i-flex.12xlarge\n - c8i-flex.16xlarge\n - i2.2xlarge\n - i2.4xlarge\n - i2.8xlarge\n - i2.xlarge\n - i3.xlarge\n - i3.2xlarge\n - i3.4xlarge\n - i3.8xlarge\n - i3.16xlarge\n - i3en.xlarge\n - i3en.2xlarge\n - i3en.3xlarge\n - i3en.6xlarge\n - i3en.12xlarge\n - i3en.24xlarge\n - i4i.xlarge\n - i4i.2xlarge\n - i4i.4xlarge\n - i4i.8xlarge\n - i4i.12xlarge\n - i4i.16xlarge\n - i4i.24xlarge\n - i4i.32xlarge\n - i7ie.xlarge\n - i7ie.2xlarge\n - i7ie.3xlarge\n - i7ie.6xlarge\n - i7ie.12xlarge\n - i7ie.18xlarge\n - i7ie.24xlarge\n - i7ie.48xlarge\n - m3.xlarge\n - m3.2xlarge\n - m4.xlarge\n - m4.2xlarge\n - m4.4xlarge\n - m4.10xlarge\n - m4.16xlarge\n - m5.xlarge\n - m5.2xlarge\n - m5.4xlarge\n - m5.8xlarge\n - m5.12xlarge\n - m5.16xlarge\n - m5.24xlarge\n - m5a.xlarge\n - m5a.2xlarge\n - m5a.4xlarge\n - m5a.8xlarge\n - m5a.12xlarge\n - m5a.16xlarge\n - m5a.24xlarge\n - m5d.xlarge\n - m5d.2xlarge\n - m5d.4xlarge\n - m5d.8xlarge\n - m5d.16xlarge\n - m5d.12xlarge\n - m5d.24xlarge\n - m5ad.xlarge\n - m5ad.2xlarge\n - m5ad.4xlarge\n - m5ad.8xlarge\n - m5ad.12xlarge\n - m5ad.16xlarge\n - m5ad.24xlarge\n - m5zn.xlarge\n - m5zn.2xlarge\n - m5zn.3xlarge\n - m5zn.6xlarge\n - m5zn.12xlarge\n - m5n.xlarge\n - m5n.2xlarge\n - m5n.4xlarge\n - m5n.8xlarge\n - m5n.12xlarge\n - m5n.16xlarge\n - m5n.24xlarge\n - m5dn.xlarge\n - m5dn.2xlarge\n - m5dn.4xlarge\n - m5dn.8xlarge\n - m5dn.12xlarge\n - m5dn.16xlarge\n - m5dn.24xlarge\n - m6a.xlarge\n - m6a.2xlarge\n - m6a.4xlarge\n - m6a.8xlarge\n - m6a.12xlarge\n - m6a.16xlarge\n - m6a.24xlarge\n - m6a.32xlarge\n - m6a.48xlarge\n - m6i.xlarge\n - m6i.2xlarge\n - m6i.4xlarge\n - m6i.8xlarge\n - m6i.12xlarge\n - m6i.16xlarge\n - m6i.24xlarge\n - m6i.32xlarge\n - m6id.xlarge\n - m6id.2xlarge\n - m6id.4xlarge\n - m6id.8xlarge\n - m6id.12xlarge\n - m6id.16xlarge\n - m6id.24xlarge\n - m6id.32xlarge\n - m7i.xlarge\n - m7i.2xlarge\n - m7i.4xlarge\n - m7i.8xlarge\n - m7i.12xlarge\n - m7i.16xlarge\n - m7i.24xlarge\n - m7i.48xlarge\n - m7i-flex.xlarge\n - m7i-flex.2xlarge\n - m7i-flex.4xlarge\n - m7i-flex.8xlarge\n - m7i-flex.12xlarge\n - m7i-flex.16xlarge\n - m7a.xlarge\n - m7a.2xlarge\n - m7a.4xlarge\n - m7a.8xlarge\n - m7a.12xlarge\n - m7a.16xlarge\n - m7a.24xlarge\n - m7a.32xlarge\n - m7a.48xlarge\n - m8a.xlarge\n - m8a.2xlarge\n - m8a.4xlarge\n - m8a.8xlarge\n - m8a.12xlarge\n - m8a.16xlarge\n - m8a.24xlarge\n - m8a.48xlarge\n - m8i.xlarge\n - m8i.2xlarge\n - m8i.4xlarge\n - m8i.8xlarge\n - m8i.12xlarge\n - m8i.16xlarge\n - m8i.24xlarge\n - m8i.32xlarge\n - m8i.48xlarge\n - m8i.96xlarge\n - m8i-flex.xlarge\n - m8i-flex.2xlarge\n - m8i-flex.4xlarge\n - m8i-flex.8xlarge\n - m8i-flex.12xlarge\n - m8i-flex.16xlarge\n - r3.xlarge\n - r3.2xlarge\n - r3.4xlarge\n - r3.8xlarge\n - r4.xlarge\n - r4.2xlarge\n - r4.4xlarge\n - r4.8xlarge\n - r4.16xlarge\n - r5.xlarge\n - r5.2xlarge\n - r5.4xlarge\n - r5.8xlarge\n - r5.12xlarge\n - r5.16xlarge\n - r5.24xlarge\n - r5a.xlarge\n - r5a.2xlarge\n - r5a.4xlarge\n - r5a.8xlarge\n - r5a.12xlarge\n - r5a.16xlarge\n - r5a.24xlarge\n - r5ad.xlarge\n - r5ad.2xlarge\n - r5ad.4xlarge\n - r5ad.8xlarge\n - r5ad.12xlarge\n - r5ad.16xlarge\n - r5ad.24xlarge\n - r5b.xlarge\n - r5b.2xlarge\n - r5b.4xlarge\n - r5b.8xlarge\n - r5b.12xlarge\n - r5b.16xlarge\n - r5b.24xlarge\n - r5d.xlarge\n - r5d.2xlarge\n - r5d.4xlarge\n - r5d.8xlarge\n - r5d.12xlarge\n - r5d.16xlarge\n - r5d.24xlarge\n - r5dn.xlarge\n - r5dn.2xlarge\n - r5dn.4xlarge\n - r5dn.8xlarge\n - r5dn.12xlarge\n - r5dn.16xlarge\n - r5dn.24xlarge\n - r5n.xlarge\n - r5n.2xlarge\n - r5n.4xlarge\n - r5n.8xlarge\n - r5n.12xlarge\n - r5n.16xlarge\n - r5n.24xlarge\n - r6a.xlarge\n - r6a.2xlarge\n - r6a.4xlarge\n - r6a.8xlarge\n - r6a.12xlarge\n - r6a.16xlarge\n - r6a.24xlarge\n - r6a.32xlarge\n - r6a.48xlarge\n - r6i.xlarge\n - r6i.2xlarge\n - r6i.4xlarge\n - r6i.8xlarge\n - r6i.12xlarge\n - r6i.16xlarge\n - r6i.24xlarge\n - r6i.32xlarge\n - r6id.xlarge\n - r6id.2xlarge\n - r6id.4xlarge\n - r6id.8xlarge\n - r6id.12xlarge\n - r6id.16xlarge\n - r6id.24xlarge\n - r6id.32xlarge\n - r7i.xlarge\n - r7i.2xlarge\n - r7i.4xlarge\n - r7i.8xlarge\n - r7i.12xlarge\n - r7i.16xlarge\n - r7i.24xlarge\n - r7i.48xlarge\n - r7iz.xlarge\n - r7iz.2xlarge\n - r7iz.4xlarge\n - r7iz.8xlarge\n - r7iz.12xlarge\n - r7iz.16xlarge\n - r7iz.32xlarge\n - r7a.xlarge\n - r7a.2xlarge\n - r7a.4xlarge\n - r7a.8xlarge\n - r7a.12xlarge\n - r7a.16xlarge\n - r7a.24xlarge\n - r7a.32xlarge\n - r7a.48xlarge\n - r8a.xlarge\n - r8a.2xlarge\n - r8a.4xlarge\n - r8a.8xlarge\n - r8a.12xlarge\n - r8a.16xlarge\n - r8a.24xlarge\n - r8a.48xlarge\n - r8i.xlarge\n - r8i.2xlarge\n - r8i.4xlarge\n - r8i.8xlarge\n - r8i.12xlarge\n - r8i.16xlarge\n - r8i.24xlarge\n - r8i.32xlarge\n - r8i.48xlarge\n - r8i.96xlarge\n - r8i-flex.xlarge\n - r8i-flex.2xlarge\n - r8i-flex.4xlarge\n - r8i-flex.8xlarge\n - r8i-flex.12xlarge\n - r8i-flex.16xlarge\n - x1.16xlarge\n - x1.32xlarge\n - x1e.xlarge\n - x1e.2xlarge\n - x1e.4xlarge\n - x1e.8xlarge\n - x1e.16xlarge\n - x1e.32xlarge\n - x2idn.16xlarge\n - x2idn.24xlarge\n - x2idn.32xlarge\n - x2iedn.xlarge\n - x2iedn.2xlarge\n - x2iedn.4xlarge\n - x2iedn.8xlarge\n - x2iedn.16xlarge\n - x2iedn.24xlarge\n - x2iedn.32xlarge\n - x2iezn.2xlarge\n - x2iezn.4xlarge\n - x2iezn.6xlarge\n - x2iezn.8xlarge\n - x2iezn.12xlarge\n - d2.xlarge\n - d2.2xlarge\n - d2.4xlarge\n - d2.8xlarge\n - d3.xlarge\n - d3.2xlarge\n - d3.4xlarge\n - d3.8xlarge\n - d3en.xlarge\n - d3en.2xlarge\n - d3en.4xlarge\n - d3en.6xlarge\n - d3en.8xlarge\n - d3en.12xlarge\n - dl1.24xlarge\n - h1.2xlarge\n - h1.4xlarge\n - h1.8xlarge\n - h1.16xlarge\n - inf1.xlarge\n - inf1.2xlarge\n - inf1.6xlarge\n - inf1.24xlarge\n - trn1.2xlarge\n - trn1.32xlarge\n - u-3tb1.56xlarge\n - u-6tb1.56xlarge\n - u-6tb1.112xlarge\n - u-9tb1.112xlarge\n - u-12tb1.112xlarge\n - u-18tb1.112xlarge\n - vt1.3xlarge\n - vt1.6xlarge\n - vt1.24xlarge\n - z1d.xlarge\n - z1d.2xlarge\n - z1d.3xlarge\n - z1d.6xlarge\n - z1d.12xlarge\n - -------------- Bring-Your-Own-License Only --------------\n - c3.large\n - c4.large\n - c5.metal\n - c5.large\n - c5a.large\n - c5ad.large\n - c5d.metal\n - c5d.large\n - c5n.large\n - c5n.metal\n - c6a.large\n - c6a.metal\n - c6i.large\n - c6i.metal\n - c6id.large\n - c6id.metal\n - c7i.large\n - c7i.metal-24xl\n - c7i.metal-48xl\n - c7i-flex.large\n - c7a.medium\n - c7a.large\n - c7a.metal-48xl\n - c8i.large\n - c8i.metal-48xl\n - c8i.metal-96xl\n - c8i-flex.large\n - i3.large\n - i3.metal\n - i3en.large\n - i3en.metal\n - i4i.large\n - i4i.metal\n - i7ie.large\n - i7ie.metal-24xl\n - i7ie.metal-48xl\n - m3.large\n - m3.medium\n - m4.large\n - m5.metal\n - m5.large\n - m5a.large\n - m5ad.large\n - m5d.metal\n - m5d.large\n - m5zn.large\n - m5zn.metal\n - m5n.large\n - m5n.metal\n - m5dn.large\n - m5dn.metal\n - m6a.large\n - m6a.metal\n - m6i.large\n - m6i.metal\n - m6id.large\n - m6id.metal\n - m7i.large\n - m7i.metal-24xl\n - m7i.metal-48xl\n - m7i-flex.large\n - m7a.medium\n - m7a.large\n - m7a.metal-48xl\n - m8a.medium\n - m8a.large\n - m8a.metal-24xl\n - m8a.metal-48xl\n - m8i.large\n - m8i.metal-48xl\n - m8i.metal-96xl\n - m8i-flex.large\n - r3.large\n - r4.large\n - r5.metal\n - r5.large\n - r5a.large\n - r5d.metal\n - r5ad.large\n - r5d.large\n - r5dn.large\n - r5dn.metal\n - r5b.large\n - r5b.metal\n - r5n.large\n - r5n.metal\n - r6a.large\n - r6a.metal\n - r6i.large\n - r6i.metal\n - r6id.large\n - r6id.metal\n - r7i.large\n - r7i.metal-24xl\n - r7i.metal-48xl\n - r7iz.large\n - r7iz.metal-16xl\n - r7iz.metal-32xl\n - r7a.medium\n - r7a.large\n - r7a.metal-48xl\n - r8a.medium\n - r8a.large\n - r8a.metal-24xl\n - r8a.metal-48xl\n - r8i.large\n - r8i.metal-48xl\n - r8i.metal-96xl\n - r8i-flex.large\n - t2.2xlarge\n - t2.large\n - t2.medium\n - t2.micro\n - t2.nano\n - t2.small\n - t2.xlarge\n - t3.2xlarge\n - t3.large\n - t3.medium\n - t3.micro\n - t3.nano\n - t3.small\n - t3.xlarge\n - t3a.2xlarge\n - t3a.large\n - t3a.medium\n - t3a.micro\n - t3a.nano\n - t3a.small\n - t3a.xlarge\n - x2idn.metal\n - x2iedn.metal\n - x2iezn.metal\n - z1d.metal\n - z1d.large\n SpotPrice:\n Description: Spot price for instances in USD/Hour - Optional/advanced\n Type: Number\n MinValue: '0'\n MaxValue: '2'\n Default: '0'\n KeyName:\n Description: Name of an existing EC2 KeyPair to enable SSH access to the instance\n Type: String\n NumberOfZones:\n Description: Total number of Availability Zones, which can be 1 or 3. Load balancer type depends on the number of zones selected. Select 3 zones for Application Load Balancer (OR) Select 1 zone for Classic Load Balancer.\n Type: Number\n AllowedValues:\n - 1\n - 3\n Default: 3\n NodesPerZone:\n Description: Total number of nodes per Zone. Set to 0 to shutdown/hibernate\n Type: Number\n MinValue: '0'\n MaxValue: '20'\n Default: '1'\n AZ:\n Description: The Availability Zones for VPC subnets. Accept either 1 zone or 3 zones. In the order of Subnet 1, Subnet 2 and Subnet 3 (if applicable).\n Type: 'List<AWS::EC2::AvailabilityZone::Name>'\n LogSNS:\n Description: SNS Topic for logging - optional/advanced.\n Type: String\n Default: none\n PublicLoadBalancer:\n Description: Enable Public Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n InternalLoadBalancer:\n Description: Enable Internal Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n # network configuration\n VPC:\n Description: ID of an existing Virtual Private Cloud (VPC)\n Type: 'AWS::EC2::VPC::Id'\n PublicSubnet1:\n Description: The public subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet2:\n Description: The public subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet3:\n Description: The public subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet1:\n Description: The private subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet2:\n Description: The private subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet3:\n Description: The private subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n ExternalAccessCidrIP:\n Description: A CIDR IP range to allow external access from\n Type: String\n Default: 54.76.254.148/32\n ECSSecurityGroup:\n Description: the security group the ECS cluster is in\n Type: 'AWS::EC2::SecurityGroup::Id'\n\n # marklogic configuration\n AdminUser:\n Description: The MarkLogic administrator username\n Type: String\n AdminPass:\n Description: The MarkLogic administrator password\n Type: String\n NoEcho: 'true'\n AllowedPattern: >-\n ^(?!.*[*]).*$\n ConstraintDescription: Admin password must contain any characters except asterisk (*).\n Licensee:\n Description: The MarkLogic Licensee or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\n LicenseKey:\n Description: The MarkLogic License Key or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\nConditions:\n UseLogSNS: !Not [!Equals [!Ref LogSNS, \"none\"]]\n UseSpot: !Not\n - !Equals\n - !Ref SpotPrice\n - 0\n #MultiZone (3 zones) and SingleZone conditions used for the conditional resource creation based on number of zones selected.\n MultiZone:\n !Not [!Equals [!Ref NumberOfZones, 1]]\n CreatePublicAlb: !And [!Condition MultiZone, !Equals [!Ref PublicLoadBalancer, 'true']]\n CreateInternalAlb: !And [!Condition MultiZone, !Equals [!Ref InternalLoadBalancer, 'true']]\n SingleZone: !Equals [!Ref NumberOfZones, 1]\n PAYG:\n !Or [ !And [!Equals [!Ref LicenseKey, ''], !Equals [!Ref Licensee, '']], !And [!Equals [!Ref LicenseKey, 'none'], !Equals [!Ref Licensee, 'none']] ]\n UseVolumeEncryption: !Equals [!Ref VolumeEncryption, 'enable']\n HasCustomEBSKey: !Not [!Equals [!Ref VolumeEncryptionKey, '']]\n GP3: !Equals [!Ref VolumeType, 'gp3']\nMappings:\n Variable:\n LambdaPackageBucket:\n base: 'ml-db-lambda-'\n TemplateUrl:\n base: 'https://s3.amazonaws.com/marklogic-db-template-releases'\n S3Directory:\n base: '12.0.1'\n LicenseRegion2AMI:\n us-east-1:\n PAYGAl2023: ami-0198b8931e9597271\n BYOLAl2023: ami-0a8536507241f95b0\n us-east-2:\n PAYGAl2023: ami-0877b64dae8264415\n BYOLAl2023: ami-082cc98b2c01e486a\n us-west-1:\n PAYGAl2023: ami-07890fc78f4ddfa20\n BYOLAl2023: ami-05c9a962410c2821b\n us-west-2:\n PAYGAl2023: ami-0577eb149c9e0f53f\n BYOLAl2023: ami-0262dd8d014bf71ba\n eu-central-1:\n PAYGAl2023: ami-06348556399c8ab69\n BYOLAl2023: ami-00cb5a3527e7c0d11\n eu-west-1:\n PAYGAl2023: ami-0fa7bc44cd9ab1f85\n BYOLAl2023: ami-0bc2b4d46367806b0\n ap-south-1:\n PAYGAl2023: ami-0f481ba0a6819ced6\n BYOLAl2023: ami-00b59374107e5efb6\n ap-southeast-1:\n PAYGAl2023: ami-0c373c6c8a2316c80\n BYOLAl2023: ami-0b9bd265ef165a07b\n ap-southeast-2:\n PAYGAl2023: ami-0c65a907408226a3e\n BYOLAl2023: ami-02bad1ef2c6d4a91a\n ap-northeast-1:\n PAYGAl2023: ami-0254bc4adaf13e3b9\n BYOLAl2023: ami-07e8b312b1016bf67\n ap-northeast-2:\n PAYGAl2023: ami-05995b5f5807873d7\n BYOLAl2023: ami-0afd77ba0d7a0c129\n sa-east-1:\n PAYGAl2023: ami-05ec8fee12de236a5\n BYOLAl2023: ami-09d883ea308449555\n eu-west-2:\n PAYGAl2023: ami-0f5cff9d243f31521\n BYOLAl2023: ami-0588d104a52fbc326\n ca-central-1:\n PAYGAl2023: ami-0f34d118b23b51bf5\n BYOLAl2023: ami-0c78eccd03e957005\n eu-west-3:\n PAYGAl2023: ami-01fa9155eb17992c5\n BYOLAl2023: ami-0637199acc5327534\nResources:\n ManagedEniStack:\n Type: AWS::CloudFormation::Stack\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n NodesPerZone: !Ref NodesPerZone\n NumberOfZones: !Ref NumberOfZones\n Subnets: !If [MultiZone, !Join [',', [!Ref PrivateSubnet1, !Ref PrivateSubnet2, !Ref PrivateSubnet3]], !Ref PrivateSubnet1]\n ParentStackName: !Ref 'AWS::StackName'\n ParentStackId: !Ref 'AWS::StackId'\n SecurityGroup: !Ref InstanceSecurityGroup\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-managedeni.template']]\n TimeoutInMinutes: 5\n NodeMgrLambdaStack:\n Type: AWS::CloudFormation::Stack\n DependsOn: ManagedEniStack\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-nodemanager.template']]\n TimeoutInMinutes: 5\n MarklogicVolume1:\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [0, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupA-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c81032f7-b0ec-47ca-a236-e24d57b49ae3\n MarklogicVolume2:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [1, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupB-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: ddb55ae1-a00b-42ed-addd-5e03e4a2764b\n MarklogicVolume3:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [2, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupC-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 9094a65e-9d01-4c4c-9586-c33720e2cc9c\n MarkLogicDDBTable:\n Type: 'AWS::DynamoDB::Table'\n Properties:\n AttributeDefinitions:\n - AttributeName: node\n AttributeType: S\n KeySchema:\n - KeyType: HASH\n AttributeName: node\n ProvisionedThroughput:\n WriteCapacityUnits: '10'\n ReadCapacityUnits: '10'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e7190602-c2de-47ab-81e7-1315f8c01e2d\n #AutoScalingGroup used for SingleZone deployments that is connected to Classic Load Balancer.\n MarkLogicServerGroup:\n Condition: SingleZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup1:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup2:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet2\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp2\n Version: !GetAtt LaunchTemp2.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 87d75478-787a-41d5-bb21-9de6fe4b662e\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup3:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet3\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp3\n Version: !GetAtt LaunchTemp3.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: bbd8314a-6e59-4102-9ed5-232739dd0dfa\n InstanceSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable access to MarkLogic instances from Load Balancers and other cluster members\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n InstanceSecurityGroupIngress:\n Type: 'AWS::EC2::SecurityGroupIngress'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n IpProtocol: tcp\n FromPort: '0'\n ToPort: '65355'\n GroupId: !Ref InstanceSecurityGroup\n SourceSecurityGroupId: !Ref InstanceSecurityGroup\n InternalElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Allow access from ECS clsuter to internal ALB for marklogic cluster.\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n ElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable SSH access and HTTP access on the inbound port\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '22'\n ToPort: '22'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n CidrIp: !Ref ExternalAccessCidrIP\n LaunchTemp1:\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume1\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeA#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=1\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 2efb8cfb-df53-401d-8ff2-34af0dd25993\n LaunchTemp2:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume2\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeB#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c8296a50-a29e-4646-aa74-8f1b735a9a3f\n LaunchTemp3:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume3\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeC#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 7fa68c90-39bc-4874-ad20-8cd8c974ed52\n #Application Load Balancer description for MultiZone deployments (3 zones).\n Alb:\n Condition: CreatePublicAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - ElbSecurityGroup\n Properties: \n SecurityGroups: \n - !Ref ElbSecurityGroup\n Subnets:\n - !Ref PublicSubnet1\n - !If [MultiZone, !Ref PublicSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PublicSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 9 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n AlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicExternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n #Descriptions of the 9 Listeners for MultiZone deployments (3 zones). Each Listener connects Application Load Balancer to a TargetGroup with a particular port.\n AlbListener1:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8000\n Protocol: HTTP\n AlbListener2:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8001\n Protocol: HTTP\n AlbListener3:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8002\n Protocol: HTTP\n AlbListener4:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8003\n Protocol: HTTP\n AlbListener5:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8004\n Protocol: HTTP\n AlbListener6:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8005\n Protocol: HTTP\n AlbListener7:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8006\n Protocol: HTTP\n AlbListener8:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8007\n Protocol: HTTP\n AlbListener9:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8008\n Protocol: HTTP\n MarklogicExternal8011Listener:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - MarklogicExternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicExternal8011\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8011\n Protocol: HTTP\n #Application Load Balancer description for MultiZone deployments (3 zones).\n InternalAlb:\n Condition: CreateInternalAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - InternalElbSecurityGroup\n Properties: \n Scheme: internal\n SecurityGroups: \n - !Ref InternalElbSecurityGroup\n Subnets:\n - !Ref PrivateSubnet1\n - !If [MultiZone, !Ref PrivateSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PrivateSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 1 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n MarklogicInternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicInternal8011Listener:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - MarklogicInternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicInternal8011\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8011\n Protocol: HTTP\n InternalAlbListener1:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8000\n Protocol: HTTP\n InternalAlbListener2:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8001\n Protocol: HTTP\n InternalAlbListener3:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8002\n Protocol: HTTP\n InternalAlbListener4:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8003\n Protocol: HTTP\n InternalAlbListener5:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8004\n Protocol: HTTP\n InternalAlbListener6:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8005\n Protocol: HTTP\n InternalAlbListener7:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8006\n Protocol: HTTP\n InternalAlbListener8:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8007\n Protocol: HTTP\n InternalAlbListener9:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8008\n Protocol: HTTP\nOutputs:\n URL:\n Description: The URL of the MarkLogic Cluster\n Value: !Join\n - ''\n - - 'http://'\n - !If [CreatePublicAlb, !GetAtt [Alb, DNSName], !If [CreateInternalAlb, !GetAtt [InternalAlb, DNSName], !GetAtt [ManagedEniStack, Outputs.ENI]]]\n - ':8001'",
"newContent": "AWSTemplateFormatVersion: 2010-09-09\nDescription: Deploy a MarkLogic Cluster on AWS in existing VPC (Virtual Private Cloud).\nMetadata:\n version: 12.0.1\n binary: MarkLogic-12.0.1-rhel.x86_64.rpm\n AWS::CloudFormation::Interface:\n ParameterGroups:\n - Label:\n default: \"Resource Configuration\"\n Parameters:\n - IAMRole\n - VolumeSize\n - VolumeType\n - VolumeIOPS\n - VolumeThroughput\n - VolumeEncryption\n - VolumeEncryptionKey\n - InstanceType\n - SpotPrice\n - KeyName\n - NumberOfZones\n - NodesPerZone\n - AZ\n - LogSNS\n - Label:\n default: \"Network Configuration\"\n Parameters:\n - VPC\n - PublicSubnet1\n - PublicSubnet2\n - PublicSubnet3\n - PrivateSubnet1\n - PrivateSubnet2\n - PrivateSubnet3\n - PublicLoadBalancer\n - InternalLoadBalancer\n - ExternalAccessCidrIP\n - ECSSecurityGroup\n - Label:\n default: \"MarkLogic Configuration\"\n Parameters:\n - AdminUser\n - AdminPass\n - Licensee\n - LicenseKey\n ParameterLabels:\n AdminUser:\n default: Admin User\n AdminPass:\n default: Admin password\n Licensee:\n default: Licensee\n LicenseKey:\n default: License Key\n IAMRole:\n default: IAM Role\n LogSNS:\n default: Logging SNS ARN\n VolumeSize:\n default: Volume Size\n VolumeType:\n default: Volume Type\n VolumeIOPS:\n default: Volume Iops\n VolumeThroughput:\n default: Volume Throughput\n VolumeEncryption:\n default: Volume Encryption\n VolumeEncryptionKey:\n default: Volume Encryption Key ARN\n InstanceType:\n default: Instance Type\n SpotPrice:\n default: Spot Price\n KeyName:\n default: SSH Key Name\n NumberOfZones:\n default: Number of Zones\n NodesPerZone:\n default: Nodes per Zone\n AZ:\n default: Availability Zone\n VPC:\n default: VPC\n PublicSubnet1:\n default: Public Subnet 1\n PublicSubnet2:\n default: Public Subnet 2\n PublicSubnet3:\n default: Public Subnet 3\n PrivateSubnet1:\n default: Private Subnet 1\n PrivateSubnet2:\n default: Private Subnet 2\n PrivateSubnet3:\n default: Private Subnet 3\n PublicLoadBalancer:\n default: Public Load Balancer\n InternalLoadBalancer:\n default: Internal Load Balancer\n ExternalAccessCidrIP:\n default: External IP address range for access to admin site\n ECSSecurityGroup:\n default: the security group the ecs cluster is in\nParameters:\n # resource configuration\n IAMRole:\n Description: IAM Role\n Type: String\n VolumeSize:\n Description: The EBS Data volume size (GB) for all nodes\n Type: Number\n MinValue: '10'\n MaxValue: '1000'\n Default: '50'\n VolumeType:\n Description: The EBS Data volume Type\n Type: String\n AllowedValues:\n - standard\n - gp2\n - gp3\n Default: gp3\n VolumeIOPS:\n Description: The number of I/O operations per second for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '3000'\n MaxValue: '16000'\n Default: '3000'\n VolumeThroughput:\n Description: The throughput to provision for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '125'\n MaxValue: '1000'\n Default: '125'\n VolumeEncryption:\n Description: Whether to enable volume encryption\n Type: String\n AllowedValues:\n - enable\n - disable\n Default: enable\n VolumeEncryptionKey:\n Description: The key ID of AWS KMS key to encrypt volumes - Optional\n Type: String\n Default: \"\"\n InstanceType:\n Description: Type of EC2 instance to launch\n Type: String\n Default: r5.4xlarge\n AllowedValues:\n - ---- Pay-As-You-Go and Bring-Your-Own-License ----\n - c3.xlarge\n - c3.2xlarge\n - c3.4xlarge\n - c3.8xlarge\n - c4.xlarge\n - c4.2xlarge\n - c4.4xlarge\n - c4.8xlarge\n - c5.xlarge\n - c5.2xlarge\n - c5.4xlarge\n - c5.9xlarge\n - c5.12xlarge\n - c5.18xlarge\n - c5.24xlarge\n - c5a.xlarge\n - c5a.2xlarge\n - c5a.4xlarge\n - c5a.8xlarge\n - c5a.12xlarge\n - c5a.16xlarge\n - c5a.24xlarge\n - c5ad.xlarge\n - c5ad.2xlarge\n - c5ad.4xlarge\n - c5ad.8xlarge\n - c5ad.12xlarge\n - c5ad.16xlarge\n - c5ad.24xlarge\n - c5d.xlarge\n - c5d.2xlarge\n - c5d.4xlarge\n - c5d.9xlarge\n - c5d.12xlarge\n - c5d.18xlarge\n - c5d.24xlarge\n - c5n.xlarge\n - c5n.2xlarge\n - c5n.4xlarge\n - c5n.9xlarge\n - c5n.18xlarge\n - c6a.xlarge\n - c6a.2xlarge\n - c6a.4xlarge\n - c6a.8xlarge\n - c6a.12xlarge\n - c6a.16xlarge\n - c6a.24xlarge\n - c6a.32xlarge\n - c6a.48xlarge\n - c6i.xlarge\n - c6i.2xlarge\n - c6i.4xlarge\n - c6i.8xlarge\n - c6i.12xlarge\n - c6i.16xlarge\n - c6i.24xlarge\n - c6i.32xlarge\n - c6id.xlarge\n - c6id.2xlarge\n - c6id.4xlarge\n - c6id.8xlarge\n - c6id.12xlarge\n - c6id.16xlarge\n - c6id.24xlarge\n - c6id.32xlarge\n - c7i.xlarge\n - c7i.2xlarge\n - c7i.4xlarge\n - c7i.8xlarge\n - c7i.12xlarge\n - c7i.16xlarge\n - c7i.24xlarge\n - c7i.48xlarge\n - c7i-flex.xlarge\n - c7i-flex.2xlarge\n - c7i-flex.4xlarge\n - c7i-flex.8xlarge\n - c7i-flex.12xlarge\n - c7i-flex.16xlarge\n - c7a.xlarge\n - c7a.2xlarge\n - c7a.4xlarge\n - c7a.8xlarge\n - c7a.12xlarge\n - c7a.16xlarge\n - c7a.24xlarge\n - c7a.32xlarge\n - c7a.48xlarge\n - c8i.xlarge\n - c8i.2xlarge\n - c8i.4xlarge\n - c8i.8xlarge\n - c8i.12xlarge\n - c8i.16xlarge\n - c8i.24xlarge\n - c8i.32xlarge\n - c8i.48xlarge\n - c8i.96xlarge\n - c8i-flex.xlarge\n - c8i-flex.2xlarge\n - c8i-flex.4xlarge\n - c8i-flex.8xlarge\n - c8i-flex.12xlarge\n - c8i-flex.16xlarge\n - i2.2xlarge\n - i2.4xlarge\n - i2.8xlarge\n - i2.xlarge\n - i3.xlarge\n - i3.2xlarge\n - i3.4xlarge\n - i3.8xlarge\n - i3.16xlarge\n - i3en.xlarge\n - i3en.2xlarge\n - i3en.3xlarge\n - i3en.6xlarge\n - i3en.12xlarge\n - i3en.24xlarge\n - i4i.xlarge\n - i4i.2xlarge\n - i4i.4xlarge\n - i4i.8xlarge\n - i4i.12xlarge\n - i4i.16xlarge\n - i4i.24xlarge\n - i4i.32xlarge\n - i7ie.xlarge\n - i7ie.2xlarge\n - i7ie.3xlarge\n - i7ie.6xlarge\n - i7ie.12xlarge\n - i7ie.18xlarge\n - i7ie.24xlarge\n - i7ie.48xlarge\n - m3.xlarge\n - m3.2xlarge\n - m4.xlarge\n - m4.2xlarge\n - m4.4xlarge\n - m4.10xlarge\n - m4.16xlarge\n - m5.xlarge\n - m5.2xlarge\n - m5.4xlarge\n - m5.8xlarge\n - m5.12xlarge\n - m5.16xlarge\n - m5.24xlarge\n - m5a.xlarge\n - m5a.2xlarge\n - m5a.4xlarge\n - m5a.8xlarge\n - m5a.12xlarge\n - m5a.16xlarge\n - m5a.24xlarge\n - m5d.xlarge\n - m5d.2xlarge\n - m5d.4xlarge\n - m5d.8xlarge\n - m5d.16xlarge\n - m5d.12xlarge\n - m5d.24xlarge\n - m5ad.xlarge\n - m5ad.2xlarge\n - m5ad.4xlarge\n - m5ad.8xlarge\n - m5ad.12xlarge\n - m5ad.16xlarge\n - m5ad.24xlarge\n - m5zn.xlarge\n - m5zn.2xlarge\n - m5zn.3xlarge\n - m5zn.6xlarge\n - m5zn.12xlarge\n - m5n.xlarge\n - m5n.2xlarge\n - m5n.4xlarge\n - m5n.8xlarge\n - m5n.12xlarge\n - m5n.16xlarge\n - m5n.24xlarge\n - m5dn.xlarge\n - m5dn.2xlarge\n - m5dn.4xlarge\n - m5dn.8xlarge\n - m5dn.12xlarge\n - m5dn.16xlarge\n - m5dn.24xlarge\n - m6a.xlarge\n - m6a.2xlarge\n - m6a.4xlarge\n - m6a.8xlarge\n - m6a.12xlarge\n - m6a.16xlarge\n - m6a.24xlarge\n - m6a.32xlarge\n - m6a.48xlarge\n - m6i.xlarge\n - m6i.2xlarge\n - m6i.4xlarge\n - m6i.8xlarge\n - m6i.12xlarge\n - m6i.16xlarge\n - m6i.24xlarge\n - m6i.32xlarge\n - m6id.xlarge\n - m6id.2xlarge\n - m6id.4xlarge\n - m6id.8xlarge\n - m6id.12xlarge\n - m6id.16xlarge\n - m6id.24xlarge\n - m6id.32xlarge\n - m7i.xlarge\n - m7i.2xlarge\n - m7i.4xlarge\n - m7i.8xlarge\n - m7i.12xlarge\n - m7i.16xlarge\n - m7i.24xlarge\n - m7i.48xlarge\n - m7i-flex.xlarge\n - m7i-flex.2xlarge\n - m7i-flex.4xlarge\n - m7i-flex.8xlarge\n - m7i-flex.12xlarge\n - m7i-flex.16xlarge\n - m7a.xlarge\n - m7a.2xlarge\n - m7a.4xlarge\n - m7a.8xlarge\n - m7a.12xlarge\n - m7a.16xlarge\n - m7a.24xlarge\n - m7a.32xlarge\n - m7a.48xlarge\n - m8a.xlarge\n - m8a.2xlarge\n - m8a.4xlarge\n - m8a.8xlarge\n - m8a.12xlarge\n - m8a.16xlarge\n - m8a.24xlarge\n - m8a.48xlarge\n - m8i.xlarge\n - m8i.2xlarge\n - m8i.4xlarge\n - m8i.8xlarge\n - m8i.12xlarge\n - m8i.16xlarge\n - m8i.24xlarge\n - m8i.32xlarge\n - m8i.48xlarge\n - m8i.96xlarge\n - m8i-flex.xlarge\n - m8i-flex.2xlarge\n - m8i-flex.4xlarge\n - m8i-flex.8xlarge\n - m8i-flex.12xlarge\n - m8i-flex.16xlarge\n - r3.xlarge\n - r3.2xlarge\n - r3.4xlarge\n - r3.8xlarge\n - r4.xlarge\n - r4.2xlarge\n - r4.4xlarge\n - r4.8xlarge\n - r4.16xlarge\n - r5.xlarge\n - r5.2xlarge\n - r5.4xlarge\n - r5.8xlarge\n - r5.12xlarge\n - r5.16xlarge\n - r5.24xlarge\n - r5a.xlarge\n - r5a.2xlarge\n - r5a.4xlarge\n - r5a.8xlarge\n - r5a.12xlarge\n - r5a.16xlarge\n - r5a.24xlarge\n - r5ad.xlarge\n - r5ad.2xlarge\n - r5ad.4xlarge\n - r5ad.8xlarge\n - r5ad.12xlarge\n - r5ad.16xlarge\n - r5ad.24xlarge\n - r5b.xlarge\n - r5b.2xlarge\n - r5b.4xlarge\n - r5b.8xlarge\n - r5b.12xlarge\n - r5b.16xlarge\n - r5b.24xlarge\n - r5d.xlarge\n - r5d.2xlarge\n - r5d.4xlarge\n - r5d.8xlarge\n - r5d.12xlarge\n - r5d.16xlarge\n - r5d.24xlarge\n - r5dn.xlarge\n - r5dn.2xlarge\n - r5dn.4xlarge\n - r5dn.8xlarge\n - r5dn.12xlarge\n - r5dn.16xlarge\n - r5dn.24xlarge\n - r5n.xlarge\n - r5n.2xlarge\n - r5n.4xlarge\n - r5n.8xlarge\n - r5n.12xlarge\n - r5n.16xlarge\n - r5n.24xlarge\n - r6a.xlarge\n - r6a.2xlarge\n - r6a.4xlarge\n - r6a.8xlarge\n - r6a.12xlarge\n - r6a.16xlarge\n - r6a.24xlarge\n - r6a.32xlarge\n - r6a.48xlarge\n - r6i.xlarge\n - r6i.2xlarge\n - r6i.4xlarge\n - r6i.8xlarge\n - r6i.12xlarge\n - r6i.16xlarge\n - r6i.24xlarge\n - r6i.32xlarge\n - r6id.xlarge\n - r6id.2xlarge\n - r6id.4xlarge\n - r6id.8xlarge\n - r6id.12xlarge\n - r6id.16xlarge\n - r6id.24xlarge\n - r6id.32xlarge\n - r7i.xlarge\n - r7i.2xlarge\n - r7i.4xlarge\n - r7i.8xlarge\n - r7i.12xlarge\n - r7i.16xlarge\n - r7i.24xlarge\n - r7i.48xlarge\n - r7iz.xlarge\n - r7iz.2xlarge\n - r7iz.4xlarge\n - r7iz.8xlarge\n - r7iz.12xlarge\n - r7iz.16xlarge\n - r7iz.32xlarge\n - r7a.xlarge\n - r7a.2xlarge\n - r7a.4xlarge\n - r7a.8xlarge\n - r7a.12xlarge\n - r7a.16xlarge\n - r7a.24xlarge\n - r7a.32xlarge\n - r7a.48xlarge\n - r8a.xlarge\n - r8a.2xlarge\n - r8a.4xlarge\n - r8a.8xlarge\n - r8a.12xlarge\n - r8a.16xlarge\n - r8a.24xlarge\n - r8a.48xlarge\n - r8i.xlarge\n - r8i.2xlarge\n - r8i.4xlarge\n - r8i.8xlarge\n - r8i.12xlarge\n - r8i.16xlarge\n - r8i.24xlarge\n - r8i.32xlarge\n - r8i.48xlarge\n - r8i.96xlarge\n - r8i-flex.xlarge\n - r8i-flex.2xlarge\n - r8i-flex.4xlarge\n - r8i-flex.8xlarge\n - r8i-flex.12xlarge\n - r8i-flex.16xlarge\n - x1.16xlarge\n - x1.32xlarge\n - x1e.xlarge\n - x1e.2xlarge\n - x1e.4xlarge\n - x1e.8xlarge\n - x1e.16xlarge\n - x1e.32xlarge\n - x2idn.16xlarge\n - x2idn.24xlarge\n - x2idn.32xlarge\n - x2iedn.xlarge\n - x2iedn.2xlarge\n - x2iedn.4xlarge\n - x2iedn.8xlarge\n - x2iedn.16xlarge\n - x2iedn.24xlarge\n - x2iedn.32xlarge\n - x2iezn.2xlarge\n - x2iezn.4xlarge\n - x2iezn.6xlarge\n - x2iezn.8xlarge\n - x2iezn.12xlarge\n - d2.xlarge\n - d2.2xlarge\n - d2.4xlarge\n - d2.8xlarge\n - d3.xlarge\n - d3.2xlarge\n - d3.4xlarge\n - d3.8xlarge\n - d3en.xlarge\n - d3en.2xlarge\n - d3en.4xlarge\n - d3en.6xlarge\n - d3en.8xlarge\n - d3en.12xlarge\n - dl1.24xlarge\n - h1.2xlarge\n - h1.4xlarge\n - h1.8xlarge\n - h1.16xlarge\n - inf1.xlarge\n - inf1.2xlarge\n - inf1.6xlarge\n - inf1.24xlarge\n - trn1.2xlarge\n - trn1.32xlarge\n - u-3tb1.56xlarge\n - u-6tb1.56xlarge\n - u-6tb1.112xlarge\n - u-9tb1.112xlarge\n - u-12tb1.112xlarge\n - u-18tb1.112xlarge\n - vt1.3xlarge\n - vt1.6xlarge\n - vt1.24xlarge\n - z1d.xlarge\n - z1d.2xlarge\n - z1d.3xlarge\n - z1d.6xlarge\n - z1d.12xlarge\n - -------------- Bring-Your-Own-License Only --------------\n - c3.large\n - c4.large\n - c5.metal\n - c5.large\n - c5a.large\n - c5ad.large\n - c5d.metal\n - c5d.large\n - c5n.large\n - c5n.metal\n - c6a.large\n - c6a.metal\n - c6i.large\n - c6i.metal\n - c6id.large\n - c6id.metal\n - c7i.large\n - c7i.metal-24xl\n - c7i.metal-48xl\n - c7i-flex.large\n - c7a.medium\n - c7a.large\n - c7a.metal-48xl\n - c8i.large\n - c8i.metal-48xl\n - c8i.metal-96xl\n - c8i-flex.large\n - i3.large\n - i3.metal\n - i3en.large\n - i3en.metal\n - i4i.large\n - i4i.metal\n - i7ie.large\n - i7ie.metal-24xl\n - i7ie.metal-48xl\n - m3.large\n - m3.medium\n - m4.large\n - m5.metal\n - m5.large\n - m5a.large\n - m5ad.large\n - m5d.metal\n - m5d.large\n - m5zn.large\n - m5zn.metal\n - m5n.large\n - m5n.metal\n - m5dn.large\n - m5dn.metal\n - m6a.large\n - m6a.metal\n - m6i.large\n - m6i.metal\n - m6id.large\n - m6id.metal\n - m7i.large\n - m7i.metal-24xl\n - m7i.metal-48xl\n - m7i-flex.large\n - m7a.medium\n - m7a.large\n - m7a.metal-48xl\n - m8a.medium\n - m8a.large\n - m8a.metal-24xl\n - m8a.metal-48xl\n - m8i.large\n - m8i.metal-48xl\n - m8i.metal-96xl\n - m8i-flex.large\n - r3.large\n - r4.large\n - r5.metal\n - r5.large\n - r5a.large\n - r5d.metal\n - r5ad.large\n - r5d.large\n - r5dn.large\n - r5dn.metal\n - r5b.large\n - r5b.metal\n - r5n.large\n - r5n.metal\n - r6a.large\n - r6a.metal\n - r6i.large\n - r6i.metal\n - r6id.large\n - r6id.metal\n - r7i.large\n - r7i.metal-24xl\n - r7i.metal-48xl\n - r7iz.large\n - r7iz.metal-16xl\n - r7iz.metal-32xl\n - r7a.medium\n - r7a.large\n - r7a.metal-48xl\n - r8a.medium\n - r8a.large\n - r8a.metal-24xl\n - r8a.metal-48xl\n - r8i.large\n - r8i.metal-48xl\n - r8i.metal-96xl\n - r8i-flex.large\n - t2.2xlarge\n - t2.large\n - t2.medium\n - t2.micro\n - t2.nano\n - t2.small\n - t2.xlarge\n - t3.2xlarge\n - t3.large\n - t3.medium\n - t3.micro\n - t3.nano\n - t3.small\n - t3.xlarge\n - t3a.2xlarge\n - t3a.large\n - t3a.medium\n - t3a.micro\n - t3a.nano\n - t3a.small\n - t3a.xlarge\n - x2idn.metal\n - x2iedn.metal\n - x2iezn.metal\n - z1d.metal\n - z1d.large\n SpotPrice:\n Description: Spot price for instances in USD/Hour - Optional/advanced\n Type: Number\n MinValue: '0'\n MaxValue: '2'\n Default: '0'\n KeyName:\n Description: Name of an existing EC2 KeyPair to enable SSH access to the instance\n Type: String\n NumberOfZones:\n Description: Total number of Availability Zones, which can be 1 or 3. Load balancer type depends on the number of zones selected. Select 3 zones for Application Load Balancer (OR) Select 1 zone for Classic Load Balancer.\n Type: Number\n AllowedValues:\n - 1\n - 3\n Default: 3\n NodesPerZone:\n Description: Total number of nodes per Zone. Set to 0 to shutdown/hibernate\n Type: Number\n MinValue: '0'\n MaxValue: '20'\n Default: '1'\n AZ:\n Description: The Availability Zones for VPC subnets. Accept either 1 zone or 3 zones. In the order of Subnet 1, Subnet 2 and Subnet 3 (if applicable).\n Type: 'List<AWS::EC2::AvailabilityZone::Name>'\n LogSNS:\n Description: SNS Topic for logging - optional/advanced.\n Type: String\n Default: none\n PublicLoadBalancer:\n Description: Enable Public Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n InternalLoadBalancer:\n Description: Enable Internal Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n # network configuration\n VPC:\n Description: ID of an existing Virtual Private Cloud (VPC)\n Type: 'AWS::EC2::VPC::Id'\n PublicSubnet1:\n Description: The public subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet2:\n Description: The public subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet3:\n Description: The public subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet1:\n Description: The private subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet2:\n Description: The private subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet3:\n Description: The private subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n ExternalAccessCidrIP:\n Description: A CIDR IP range to allow external access from\n Type: String\n Default: 54.76.254.148/32\n ECSSecurityGroup:\n Description: the security group the ECS cluster is in\n Type: 'AWS::EC2::SecurityGroup::Id'\n\n # marklogic configuration\n AdminUser:\n Description: The MarkLogic administrator username\n Type: String\n AdminPass:\n Description: The MarkLogic administrator password\n Type: String\n NoEcho: 'true'\n AllowedPattern: >-\n ^(?!.*[*]).*$\n ConstraintDescription: Admin password must contain any characters except asterisk (*).\n Licensee:\n Description: The MarkLogic Licensee or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\n LicenseKey:\n Description: The MarkLogic License Key or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\nConditions:\n UseLogSNS: !Not [!Equals [!Ref LogSNS, \"none\"]]\n UseSpot: !Not\n - !Equals\n - !Ref SpotPrice\n - 0\n #MultiZone (3 zones) and SingleZone conditions used for the conditional resource creation based on number of zones selected.\n MultiZone:\n !Not [!Equals [!Ref NumberOfZones, 1]]\n CreatePublicAlb: !And [!Condition MultiZone, !Equals [!Ref PublicLoadBalancer, 'true']]\n CreateInternalAlb: !And [!Condition MultiZone, !Equals [!Ref InternalLoadBalancer, 'true']]\n SingleZone: !Equals [!Ref NumberOfZones, 1]\n PAYG:\n !Or [ !And [!Equals [!Ref LicenseKey, ''], !Equals [!Ref Licensee, '']], !And [!Equals [!Ref LicenseKey, 'none'], !Equals [!Ref Licensee, 'none']] ]\n UseVolumeEncryption: !Equals [!Ref VolumeEncryption, 'enable']\n HasCustomEBSKey: !Not [!Equals [!Ref VolumeEncryptionKey, '']]\n GP3: !Equals [!Ref VolumeType, 'gp3']\nMappings:\n Variable:\n LambdaPackageBucket:\n base: 'ml-db-lambda-'\n TemplateUrl:\n base: 'https://s3.amazonaws.com/marklogic-db-template-releases'\n S3Directory:\n base: '12.0.1'\n LicenseRegion2AMI:\n us-east-1:\n PAYGAl2023: ami-0198b8931e9597271\n BYOLAl2023: ami-0a8536507241f95b0\n us-east-2:\n PAYGAl2023: ami-0877b64dae8264415\n BYOLAl2023: ami-082cc98b2c01e486a\n us-west-1:\n PAYGAl2023: ami-07890fc78f4ddfa20\n BYOLAl2023: ami-05c9a962410c2821b\n us-west-2:\n PAYGAl2023: ami-0577eb149c9e0f53f\n BYOLAl2023: ami-0262dd8d014bf71ba\n eu-central-1:\n PAYGAl2023: ami-06348556399c8ab69\n BYOLAl2023: ami-00cb5a3527e7c0d11\n eu-west-1:\n PAYGAl2023: ami-0fa7bc44cd9ab1f85\n BYOLAl2023: ami-0bc2b4d46367806b0\n ap-south-1:\n PAYGAl2023: ami-0f481ba0a6819ced6\n BYOLAl2023: ami-00b59374107e5efb6\n ap-southeast-1:\n PAYGAl2023: ami-0c373c6c8a2316c80\n BYOLAl2023: ami-0b9bd265ef165a07b\n ap-southeast-2:\n PAYGAl2023: ami-0c65a907408226a3e\n BYOLAl2023: ami-02bad1ef2c6d4a91a\n ap-northeast-1:\n PAYGAl2023: ami-0254bc4adaf13e3b9\n BYOLAl2023: ami-07e8b312b1016bf67\n ap-northeast-2:\n PAYGAl2023: ami-05995b5f5807873d7\n BYOLAl2023: ami-0afd77ba0d7a0c129\n sa-east-1:\n PAYGAl2023: ami-05ec8fee12de236a5\n BYOLAl2023: ami-09d883ea308449555\n eu-west-2:\n PAYGAl2023: ami-0f5cff9d243f31521\n BYOLAl2023: ami-0588d104a52fbc326\n ca-central-1:\n PAYGAl2023: ami-0f34d118b23b51bf5\n BYOLAl2023: ami-0c78eccd03e957005\n eu-west-3:\n PAYGAl2023: ami-01fa9155eb17992c5\n BYOLAl2023: ami-0637199acc5327534\nResources:\n ManagedEniStack:\n Type: AWS::CloudFormation::Stack\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n NodesPerZone: !Ref NodesPerZone\n NumberOfZones: !Ref NumberOfZones\n Subnets: !If [MultiZone, !Join [',', [!Ref PrivateSubnet1, !Ref PrivateSubnet2, !Ref PrivateSubnet3]], !Ref PrivateSubnet1]\n ParentStackName: !Ref 'AWS::StackName'\n ParentStackId: !Ref 'AWS::StackId'\n SecurityGroup: !Ref InstanceSecurityGroup\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-managedeni.template']]\n TimeoutInMinutes: 5\n NodeMgrLambdaStack:\n Type: AWS::CloudFormation::Stack\n DependsOn: ManagedEniStack\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-nodemanager.template']]\n TimeoutInMinutes: 5\n MarklogicVolume1:\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [0, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupA-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c81032f7-b0ec-47ca-a236-e24d57b49ae3\n MarklogicVolume2:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [1, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupB-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: ddb55ae1-a00b-42ed-addd-5e03e4a2764b\n MarklogicVolume3:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [2, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupC-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 9094a65e-9d01-4c4c-9586-c33720e2cc9c\n MarkLogicDDBTable:\n Type: 'AWS::DynamoDB::Table'\n Properties:\n AttributeDefinitions:\n - AttributeName: node\n AttributeType: S\n KeySchema:\n - KeyType: HASH\n AttributeName: node\n ProvisionedThroughput:\n WriteCapacityUnits: '10'\n ReadCapacityUnits: '10'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e7190602-c2de-47ab-81e7-1315f8c01e2d\n #AutoScalingGroup used for SingleZone deployments that is connected to Classic Load Balancer.\n MarkLogicServerGroup:\n Condition: SingleZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup1:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup2:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet2\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp2\n Version: !GetAtt LaunchTemp2.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 87d75478-787a-41d5-bb21-9de6fe4b662e\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup3:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet3\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp3\n Version: !GetAtt LaunchTemp3.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: bbd8314a-6e59-4102-9ed5-232739dd0dfa\n InstanceSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable access to MarkLogic instances from Load Balancers and other cluster members\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n InstanceSecurityGroupIngress:\n Type: 'AWS::EC2::SecurityGroupIngress'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n IpProtocol: tcp\n FromPort: '0'\n ToPort: '65355'\n GroupId: !Ref InstanceSecurityGroup\n SourceSecurityGroupId: !Ref InstanceSecurityGroup\n InternalElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Allow access from ECS clsuter to internal ALB for marklogic cluster.\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n ElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable SSH access and HTTP access on the inbound port\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '22'\n ToPort: '22'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n CidrIp: !Ref ExternalAccessCidrIP\n LaunchTemp1:\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume1\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeA#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=1\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 2efb8cfb-df53-401d-8ff2-34af0dd25993\n LaunchTemp2:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume2\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeB#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c8296a50-a29e-4646-aa74-8f1b735a9a3f\n LaunchTemp3:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume3\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeC#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 7fa68c90-39bc-4874-ad20-8cd8c974ed52\n #Application Load Balancer description for MultiZone deployments (3 zones).\n Alb:\n Condition: CreatePublicAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - ElbSecurityGroup\n Properties: \n SecurityGroups: \n - !Ref ElbSecurityGroup\n Subnets:\n - !Ref PublicSubnet1\n - !If [MultiZone, !Ref PublicSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PublicSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 9 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n AlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicExternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n #Descriptions of the 9 Listeners for MultiZone deployments (3 zones). Each Listener connects Application Load Balancer to a TargetGroup with a particular port.\n AlbListener1:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8000\n Protocol: HTTP\n AlbListener2:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8001\n Protocol: HTTP\n AlbListener3:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8002\n Protocol: HTTP\n AlbListener4:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8003\n Protocol: HTTP\n AlbListener5:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8004\n Protocol: HTTP\n AlbListener6:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8005\n Protocol: HTTP\n AlbListener7:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8006\n Protocol: HTTP\n AlbListener8:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8007\n Protocol: HTTP\n AlbListener9:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8008\n Protocol: HTTP\n MarklogicExternal8011Listener:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - MarklogicExternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicExternal8011\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8011\n Protocol: HTTP\n #Application Load Balancer description for MultiZone deployments (3 zones).\n InternalAlb:\n Condition: CreateInternalAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - InternalElbSecurityGroup\n Properties: \n Scheme: internal\n SecurityGroups: \n - !Ref InternalElbSecurityGroup\n Subnets:\n - !Ref PrivateSubnet1\n - !If [MultiZone, !Ref PrivateSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PrivateSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 1 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n MarklogicInternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicInternal8011Listener:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - MarklogicInternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicInternal8011\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8011\n Protocol: HTTP\n InternalAlbListener1:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8000\n Protocol: HTTP\n InternalAlbListener2:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8001\n Protocol: HTTP\n InternalAlbListener3:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8002\n Protocol: HTTP\n InternalAlbListener4:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8003\n Protocol: HTTP\n InternalAlbListener5:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8004\n Protocol: HTTP\n InternalAlbListener6:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8005\n Protocol: HTTP\n InternalAlbListener7:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8006\n Protocol: HTTP\n InternalAlbListener8:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8007\n Protocol: HTTP\n InternalAlbListener9:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8008\n Protocol: HTTP\nOutputs:\n URL:\n Description: The URL of the MarkLogic Cluster\n Value: !Join\n - ''\n - - 'http://'\n - !If [CreatePublicAlb, !GetAtt [Alb, DNSName], !If [CreateInternalAlb, !GetAtt [InternalAlb, DNSName], !GetAtt [ManagedEniStack, Outputs.ENI]]]\n - ':8001'",
"diffStat": {
"model_added_lines": 189,
"model_removed_lines": 0,
"model_added_chars": 5526,
"model_removed_chars": 0,
"user_added_lines": 0,
"user_removed_lines": 2165,
"user_added_chars": 0,
"user_removed_chars": 60344
},
"isNewFile": false
},
"displayName": "Edit",
"description": "Replaces text within a file. By default, replaces a single occurrence, but can replace multiple occurrences when `expected_replacements` is specified. This tool requires providing significant context around the change to ensure precise targeting. Always use the read_file tool to examine the file's current content before attempting a text replacement.\n \n The user has the ability to modify the `new_string` content. If modified, this will be stated in the response.\n \n Expectation for required parameters:\n 1. `old_string` MUST be the exact literal text to replace (including all whitespace, indentation, newlines, and surrounding code etc.).\n 2. `new_string` MUST be the exact literal text to replace `old_string` with (also including all whitespace, indentation, newlines, and surrounding code etc.). Ensure the resulting code is correct and idiomatic and that `old_string` and `new_string` are different.\n 3. `instruction` is the detailed instruction of what needs to be changed. It is important to Make it specific and detailed so developers or large language models can understand what needs to be changed and perform the changes on their own if necessary. \n 4. NEVER escape `old_string` or `new_string`, that would break the exact literal text requirement.\n **Important:** If ANY of the above are not satisfied, the tool will fail. CRITICAL for `old_string`: Must uniquely identify the single instance to change. Include at least 3 lines of context BEFORE and AFTER the target text, matching whitespace and indentation precisely. If this string matches multiple locations, or does not match exactly, the tool will fail.\n 5. Prefer to break down complex and long changes into multiple smaller atomic calls to this tool. Always check the content of the file after changes or not finding a string to match.\n **Multiple replacements:** Set `expected_replacements` to the number of occurrences you want to replace. The tool will replace ALL occurrences that match `old_string` exactly. Ensure the number of replacements matches your expectation.",
"renderOutputAsMarkdown": true
}
]
},
{
"id": "9441ebee-c126-4dd4-bd99-a9d9b26ea7fb",
"timestamp": "2026-01-30T11:32:43.709Z",
"type": "gemini",
"content": "I will read the last section of `mlcluster.template`, starting from line 2200, to verify the new line numbers and content of the `InternalAlbListener` blocks after my previous insertion, which will allow me to accurately update them to use the new `InternalAlbTargetGroup` resources.",
"thoughts": [
{
"subject": "Defining the Listeners",
"description": "I'm currently focused on refactoring the listener definitions. My next step involves replacing all references to `AlbTargetGroupX` with `InternalAlbTargetGroupX` within these definitions. These listeners are located at the end of the file, making the changes straightforward. I'm aiming for a complete overhaul, ensuring proper internal routing.",
"timestamp": "2026-01-30T11:32:38.405Z"
},
{
"subject": "Modifying the Listeners",
"description": "I've begun modifying the listener definitions. I'm focusing on the `InternalAlbListener` blocks. The plan is to replace `AlbTargetGroup` with `InternalAlbTargetGroup`, but I'm being cautious. I've reconsidered my approach, since the file has changed since I made my initial plan. I'm going to carefully read the end of the file to determine the best approach, before proceeding with any replacements.",
"timestamp": "2026-01-30T11:32:43.420Z"
}
],
"tokens": {
"input": 60292,
"output": 80,
"cached": 36999,
"thoughts": 315,
"tool": 0,
"total": 60687
},
"model": "gemini-3-pro-preview",
"toolCalls": [
{
"id": "read_file-1769772763707-ae3197a671a198",
"name": "read_file",
"args": {
"offset": 2200,
"file_path": "mlcluster.template"
},
"result": [
{
"functionResponse": {
"id": "read_file-1769772763707-ae3197a671a198",
"name": "read_file",
"response": {
"output": "\nIMPORTANT: The file content has been truncated.\nStatus: Showing lines 2201-2356 of 2356 total lines.\nAction: To read more of the file, you can use the 'offset' and 'limit' parameters in a subsequent 'read_file' call. For example, to read the next section of the file, use offset: 2356.\n\n--- FILE CONTENT (truncated) ---\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicInternal8011Listener:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - MarklogicInternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicInternal8011\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8011\n Protocol: HTTP\n InternalAlbListener1:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8000\n Protocol: HTTP\n InternalAlbListener2:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8001\n Protocol: HTTP\n InternalAlbListener3:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8002\n Protocol: HTTP\n InternalAlbListener4:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8003\n Protocol: HTTP\n InternalAlbListener5:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8004\n Protocol: HTTP\n InternalAlbListener6:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8005\n Protocol: HTTP\n InternalAlbListener7:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8006\n Protocol: HTTP\n InternalAlbListener8:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8007\n Protocol: HTTP\n InternalAlbListener9:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8008\n Protocol: HTTP\nOutputs:\n URL:\n Description: The URL of the MarkLogic Cluster\n Value: !Join\n - ''\n - - 'http://'\n - !If [CreatePublicAlb, !GetAtt [Alb, DNSName], !If [CreateInternalAlb, !GetAtt [InternalAlb, DNSName], !GetAtt [ManagedEniStack, Outputs.ENI]]]\n - ':8001'"
}
}
}
],
"status": "success",
"timestamp": "2026-01-30T11:32:43.724Z",
"resultDisplay": "Read lines 2201-2356 of 2356 from mlcluster.template",
"displayName": "ReadFile",
"description": "Reads and returns the content of a specified file. If the file is large, the content will be truncated. The tool's response will clearly indicate if truncation has occurred and will provide details on how to read more of the file using the 'offset' and 'limit' parameters. Handles text, images (PNG, JPG, GIF, WEBP, SVG, BMP), audio files (MP3, WAV, AIFF, AAC, OGG, FLAC), and PDF files. For text files, it can read specific line ranges.",
"renderOutputAsMarkdown": true
}
]
},
{
"id": "fd601ee7-4bcc-4ec7-b2de-c7f1c476f5d5",
"timestamp": "2026-01-30T11:33:03.616Z",
"type": "gemini",
"content": "I will update `InternalAlbListener1`, `InternalAlbListener2`, and `InternalAlbListener3` in `mlcluster.template` to depend on and reference `InternalAlbTargetGroup1`, `InternalAlbTargetGroup2`, and `InternalAlbTargetGroup3` respectively, instead of the shared `AlbTargetGroup` resources.",
"thoughts": [
{
"subject": "Simplifying the Implementation",
"description": "I'm making a slight adjustment. Instead of the planned two-batch update for listeners, I see an opportunity to streamline things. I believe I can apply the change across all listeners at once using an exact match, which simplifies the process considerably.",
"timestamp": "2026-01-30T11:32:51.301Z"
},
{
"subject": "Evaluating the Approach",
"description": "I've refined the approach. I'll replace all nine listeners at once. The initial batching is no longer necessary. I'll create a single `replace` call, constructing the `old_string` as needed. Thinking about optimizing this a bit more. I can also update the internal target group at the same time, if necessary.",
"timestamp": "2026-01-30T11:32:54.461Z"
},
{
"subject": "Batching the Replacement",
"description": "I'm now determining how best to batch these replacements. While a single `replace` is ideal, the distinct blocks necessitate multiple calls. Given the limitations of one `old_string` and `new_string` pair per call, I'm thinking of replacing 1-3 in the first batch and then 4-6 in the second, and 7-9 in the third. I am now considering combining all three batches into one, and creating an array of old strings and new strings, but this is less safe.",
"timestamp": "2026-01-30T11:32:57.737Z"
},
{
"subject": "Planning the First Batch",
"description": "I'm focusing now on the first batch of replacements, comprising listeners 1, 2, and 3. I've pinpointed the relevant lines to replace. My plan is to construct the `old_string` by extracting the YAML block from the input file. The next step is to create the corresponding `new_string`, which will involve the replacements of the target group references.",
"timestamp": "2026-01-30T11:32:58.637Z"
}
],
"tokens": {
"input": 61706,
"output": 719,
"cached": 59028,
"thoughts": 834,
"tool": 0,
"total": 63259
},
"model": "gemini-3-pro-preview",
"toolCalls": [
{
"id": "replace-1769772783613-d476811b0dab28",
"name": "replace",
"args": {
"file_path": "/Users/bob/git/dxw/marklogic-cf-templates/mlcluster.template",
"new_string": " InternalAlbListener1:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8000\n Protocol: HTTP\n InternalAlbListener2:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8001\n Protocol: HTTP\n InternalAlbListener3:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8002\n Protocol: HTTP",
"instruction": "Update InternalAlbListener1, InternalAlbListener2, and InternalAlbListener3 to use InternalAlbTargetGroup1, InternalAlbTargetGroup2, and InternalAlbTargetGroup3 respectively.",
"old_string": " InternalAlbListener1:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8000\n Protocol: HTTP\n InternalAlbListener2:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8001\n Protocol: HTTP\n InternalAlbListener3:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8002\n Protocol: HTTP"
},
"result": [
{
"functionResponse": {
"id": "replace-1769772783613-d476811b0dab28",
"name": "replace",
"response": {
"output": "Successfully modified file: /Users/bob/git/dxw/marklogic-cf-templates/mlcluster.template (1 replacements)."
}
}
}
],
"status": "success",
"timestamp": "2026-01-30T11:33:12.606Z",
"resultDisplay": {
"fileDiff": "Index: mlcluster.template\n===================================================================\n--- mlcluster.template\tCurrent\n+++ mlcluster.template\tProposed\n@@ -2234,10 +2234,10 @@\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n- - AlbTargetGroup1\n+ - InternalAlbTargetGroup1\n Properties:\n DefaultActions:\n- - TargetGroupArn: !Ref AlbTargetGroup1\n+ - TargetGroupArn: !Ref InternalAlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8000\n@@ -2247,10 +2247,10 @@\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n- - AlbTargetGroup2\n+ - InternalAlbTargetGroup2\n Properties:\n DefaultActions:\n- - TargetGroupArn: !Ref AlbTargetGroup2\n+ - TargetGroupArn: !Ref InternalAlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8001\n@@ -2260,10 +2260,10 @@\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n- - AlbTargetGroup3\n+ - InternalAlbTargetGroup3\n Properties:\n DefaultActions:\n- - TargetGroupArn: !Ref AlbTargetGroup3\n+ - TargetGroupArn: !Ref InternalAlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8002\n",
"fileName": "mlcluster.template",
"filePath": "/Users/bob/git/dxw/marklogic-cf-templates/mlcluster.template",
"originalContent": "AWSTemplateFormatVersion: 2010-09-09\nDescription: Deploy a MarkLogic Cluster on AWS in existing VPC (Virtual Private Cloud).\nMetadata:\n version: 12.0.1\n binary: MarkLogic-12.0.1-rhel.x86_64.rpm\n AWS::CloudFormation::Interface:\n ParameterGroups:\n - Label:\n default: \"Resource Configuration\"\n Parameters:\n - IAMRole\n - VolumeSize\n - VolumeType\n - VolumeIOPS\n - VolumeThroughput\n - VolumeEncryption\n - VolumeEncryptionKey\n - InstanceType\n - SpotPrice\n - KeyName\n - NumberOfZones\n - NodesPerZone\n - AZ\n - LogSNS\n - Label:\n default: \"Network Configuration\"\n Parameters:\n - VPC\n - PublicSubnet1\n - PublicSubnet2\n - PublicSubnet3\n - PrivateSubnet1\n - PrivateSubnet2\n - PrivateSubnet3\n - PublicLoadBalancer\n - InternalLoadBalancer\n - ExternalAccessCidrIP\n - ECSSecurityGroup\n - Label:\n default: \"MarkLogic Configuration\"\n Parameters:\n - AdminUser\n - AdminPass\n - Licensee\n - LicenseKey\n ParameterLabels:\n AdminUser:\n default: Admin User\n AdminPass:\n default: Admin password\n Licensee:\n default: Licensee\n LicenseKey:\n default: License Key\n IAMRole:\n default: IAM Role\n LogSNS:\n default: Logging SNS ARN\n VolumeSize:\n default: Volume Size\n VolumeType:\n default: Volume Type\n VolumeIOPS:\n default: Volume Iops\n VolumeThroughput:\n default: Volume Throughput\n VolumeEncryption:\n default: Volume Encryption\n VolumeEncryptionKey:\n default: Volume Encryption Key ARN\n InstanceType:\n default: Instance Type\n SpotPrice:\n default: Spot Price\n KeyName:\n default: SSH Key Name\n NumberOfZones:\n default: Number of Zones\n NodesPerZone:\n default: Nodes per Zone\n AZ:\n default: Availability Zone\n VPC:\n default: VPC\n PublicSubnet1:\n default: Public Subnet 1\n PublicSubnet2:\n default: Public Subnet 2\n PublicSubnet3:\n default: Public Subnet 3\n PrivateSubnet1:\n default: Private Subnet 1\n PrivateSubnet2:\n default: Private Subnet 2\n PrivateSubnet3:\n default: Private Subnet 3\n PublicLoadBalancer:\n default: Public Load Balancer\n InternalLoadBalancer:\n default: Internal Load Balancer\n ExternalAccessCidrIP:\n default: External IP address range for access to admin site\n ECSSecurityGroup:\n default: the security group the ecs cluster is in\nParameters:\n # resource configuration\n IAMRole:\n Description: IAM Role\n Type: String\n VolumeSize:\n Description: The EBS Data volume size (GB) for all nodes\n Type: Number\n MinValue: '10'\n MaxValue: '1000'\n Default: '50'\n VolumeType:\n Description: The EBS Data volume Type\n Type: String\n AllowedValues:\n - standard\n - gp2\n - gp3\n Default: gp3\n VolumeIOPS:\n Description: The number of I/O operations per second for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '3000'\n MaxValue: '16000'\n Default: '3000'\n VolumeThroughput:\n Description: The throughput to provision for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '125'\n MaxValue: '1000'\n Default: '125'\n VolumeEncryption:\n Description: Whether to enable volume encryption\n Type: String\n AllowedValues:\n - enable\n - disable\n Default: enable\n VolumeEncryptionKey:\n Description: The key ID of AWS KMS key to encrypt volumes - Optional\n Type: String\n Default: \"\"\n InstanceType:\n Description: Type of EC2 instance to launch\n Type: String\n Default: r5.4xlarge\n AllowedValues:\n - ---- Pay-As-You-Go and Bring-Your-Own-License ----\n - c3.xlarge\n - c3.2xlarge\n - c3.4xlarge\n - c3.8xlarge\n - c4.xlarge\n - c4.2xlarge\n - c4.4xlarge\n - c4.8xlarge\n - c5.xlarge\n - c5.2xlarge\n - c5.4xlarge\n - c5.9xlarge\n - c5.12xlarge\n - c5.18xlarge\n - c5.24xlarge\n - c5a.xlarge\n - c5a.2xlarge\n - c5a.4xlarge\n - c5a.8xlarge\n - c5a.12xlarge\n - c5a.16xlarge\n - c5a.24xlarge\n - c5ad.xlarge\n - c5ad.2xlarge\n - c5ad.4xlarge\n - c5ad.8xlarge\n - c5ad.12xlarge\n - c5ad.16xlarge\n - c5ad.24xlarge\n - c5d.xlarge\n - c5d.2xlarge\n - c5d.4xlarge\n - c5d.9xlarge\n - c5d.12xlarge\n - c5d.18xlarge\n - c5d.24xlarge\n - c5n.xlarge\n - c5n.2xlarge\n - c5n.4xlarge\n - c5n.9xlarge\n - c5n.18xlarge\n - c6a.xlarge\n - c6a.2xlarge\n - c6a.4xlarge\n - c6a.8xlarge\n - c6a.12xlarge\n - c6a.16xlarge\n - c6a.24xlarge\n - c6a.32xlarge\n - c6a.48xlarge\n - c6i.xlarge\n - c6i.2xlarge\n - c6i.4xlarge\n - c6i.8xlarge\n - c6i.12xlarge\n - c6i.16xlarge\n - c6i.24xlarge\n - c6i.32xlarge\n - c6id.xlarge\n - c6id.2xlarge\n - c6id.4xlarge\n - c6id.8xlarge\n - c6id.12xlarge\n - c6id.16xlarge\n - c6id.24xlarge\n - c6id.32xlarge\n - c7i.xlarge\n - c7i.2xlarge\n - c7i.4xlarge\n - c7i.8xlarge\n - c7i.12xlarge\n - c7i.16xlarge\n - c7i.24xlarge\n - c7i.48xlarge\n - c7i-flex.xlarge\n - c7i-flex.2xlarge\n - c7i-flex.4xlarge\n - c7i-flex.8xlarge\n - c7i-flex.12xlarge\n - c7i-flex.16xlarge\n - c7a.xlarge\n - c7a.2xlarge\n - c7a.4xlarge\n - c7a.8xlarge\n - c7a.12xlarge\n - c7a.16xlarge\n - c7a.24xlarge\n - c7a.32xlarge\n - c7a.48xlarge\n - c8i.xlarge\n - c8i.2xlarge\n - c8i.4xlarge\n - c8i.8xlarge\n - c8i.12xlarge\n - c8i.16xlarge\n - c8i.24xlarge\n - c8i.32xlarge\n - c8i.48xlarge\n - c8i.96xlarge\n - c8i-flex.xlarge\n - c8i-flex.2xlarge\n - c8i-flex.4xlarge\n - c8i-flex.8xlarge\n - c8i-flex.12xlarge\n - c8i-flex.16xlarge\n - i2.2xlarge\n - i2.4xlarge\n - i2.8xlarge\n - i2.xlarge\n - i3.xlarge\n - i3.2xlarge\n - i3.4xlarge\n - i3.8xlarge\n - i3.16xlarge\n - i3en.xlarge\n - i3en.2xlarge\n - i3en.3xlarge\n - i3en.6xlarge\n - i3en.12xlarge\n - i3en.24xlarge\n - i4i.xlarge\n - i4i.2xlarge\n - i4i.4xlarge\n - i4i.8xlarge\n - i4i.12xlarge\n - i4i.16xlarge\n - i4i.24xlarge\n - i4i.32xlarge\n - i7ie.xlarge\n - i7ie.2xlarge\n - i7ie.3xlarge\n - i7ie.6xlarge\n - i7ie.12xlarge\n - i7ie.18xlarge\n - i7ie.24xlarge\n - i7ie.48xlarge\n - m3.xlarge\n - m3.2xlarge\n - m4.xlarge\n - m4.2xlarge\n - m4.4xlarge\n - m4.10xlarge\n - m4.16xlarge\n - m5.xlarge\n - m5.2xlarge\n - m5.4xlarge\n - m5.8xlarge\n - m5.12xlarge\n - m5.16xlarge\n - m5.24xlarge\n - m5a.xlarge\n - m5a.2xlarge\n - m5a.4xlarge\n - m5a.8xlarge\n - m5a.12xlarge\n - m5a.16xlarge\n - m5a.24xlarge\n - m5d.xlarge\n - m5d.2xlarge\n - m5d.4xlarge\n - m5d.8xlarge\n - m5d.16xlarge\n - m5d.12xlarge\n - m5d.24xlarge\n - m5ad.xlarge\n - m5ad.2xlarge\n - m5ad.4xlarge\n - m5ad.8xlarge\n - m5ad.12xlarge\n - m5ad.16xlarge\n - m5ad.24xlarge\n - m5zn.xlarge\n - m5zn.2xlarge\n - m5zn.3xlarge\n - m5zn.6xlarge\n - m5zn.12xlarge\n - m5n.xlarge\n - m5n.2xlarge\n - m5n.4xlarge\n - m5n.8xlarge\n - m5n.12xlarge\n - m5n.16xlarge\n - m5n.24xlarge\n - m5dn.xlarge\n - m5dn.2xlarge\n - m5dn.4xlarge\n - m5dn.8xlarge\n - m5dn.12xlarge\n - m5dn.16xlarge\n - m5dn.24xlarge\n - m6a.xlarge\n - m6a.2xlarge\n - m6a.4xlarge\n - m6a.8xlarge\n - m6a.12xlarge\n - m6a.16xlarge\n - m6a.24xlarge\n - m6a.32xlarge\n - m6a.48xlarge\n - m6i.xlarge\n - m6i.2xlarge\n - m6i.4xlarge\n - m6i.8xlarge\n - m6i.12xlarge\n - m6i.16xlarge\n - m6i.24xlarge\n - m6i.32xlarge\n - m6id.xlarge\n - m6id.2xlarge\n - m6id.4xlarge\n - m6id.8xlarge\n - m6id.12xlarge\n - m6id.16xlarge\n - m6id.24xlarge\n - m6id.32xlarge\n - m7i.xlarge\n - m7i.2xlarge\n - m7i.4xlarge\n - m7i.8xlarge\n - m7i.12xlarge\n - m7i.16xlarge\n - m7i.24xlarge\n - m7i.48xlarge\n - m7i-flex.xlarge\n - m7i-flex.2xlarge\n - m7i-flex.4xlarge\n - m7i-flex.8xlarge\n - m7i-flex.12xlarge\n - m7i-flex.16xlarge\n - m7a.xlarge\n - m7a.2xlarge\n - m7a.4xlarge\n - m7a.8xlarge\n - m7a.12xlarge\n - m7a.16xlarge\n - m7a.24xlarge\n - m7a.32xlarge\n - m7a.48xlarge\n - m8a.xlarge\n - m8a.2xlarge\n - m8a.4xlarge\n - m8a.8xlarge\n - m8a.12xlarge\n - m8a.16xlarge\n - m8a.24xlarge\n - m8a.48xlarge\n - m8i.xlarge\n - m8i.2xlarge\n - m8i.4xlarge\n - m8i.8xlarge\n - m8i.12xlarge\n - m8i.16xlarge\n - m8i.24xlarge\n - m8i.32xlarge\n - m8i.48xlarge\n - m8i.96xlarge\n - m8i-flex.xlarge\n - m8i-flex.2xlarge\n - m8i-flex.4xlarge\n - m8i-flex.8xlarge\n - m8i-flex.12xlarge\n - m8i-flex.16xlarge\n - r3.xlarge\n - r3.2xlarge\n - r3.4xlarge\n - r3.8xlarge\n - r4.xlarge\n - r4.2xlarge\n - r4.4xlarge\n - r4.8xlarge\n - r4.16xlarge\n - r5.xlarge\n - r5.2xlarge\n - r5.4xlarge\n - r5.8xlarge\n - r5.12xlarge\n - r5.16xlarge\n - r5.24xlarge\n - r5a.xlarge\n - r5a.2xlarge\n - r5a.4xlarge\n - r5a.8xlarge\n - r5a.12xlarge\n - r5a.16xlarge\n - r5a.24xlarge\n - r5ad.xlarge\n - r5ad.2xlarge\n - r5ad.4xlarge\n - r5ad.8xlarge\n - r5ad.12xlarge\n - r5ad.16xlarge\n - r5ad.24xlarge\n - r5b.xlarge\n - r5b.2xlarge\n - r5b.4xlarge\n - r5b.8xlarge\n - r5b.12xlarge\n - r5b.16xlarge\n - r5b.24xlarge\n - r5d.xlarge\n - r5d.2xlarge\n - r5d.4xlarge\n - r5d.8xlarge\n - r5d.12xlarge\n - r5d.16xlarge\n - r5d.24xlarge\n - r5dn.xlarge\n - r5dn.2xlarge\n - r5dn.4xlarge\n - r5dn.8xlarge\n - r5dn.12xlarge\n - r5dn.16xlarge\n - r5dn.24xlarge\n - r5n.xlarge\n - r5n.2xlarge\n - r5n.4xlarge\n - r5n.8xlarge\n - r5n.12xlarge\n - r5n.16xlarge\n - r5n.24xlarge\n - r6a.xlarge\n - r6a.2xlarge\n - r6a.4xlarge\n - r6a.8xlarge\n - r6a.12xlarge\n - r6a.16xlarge\n - r6a.24xlarge\n - r6a.32xlarge\n - r6a.48xlarge\n - r6i.xlarge\n - r6i.2xlarge\n - r6i.4xlarge\n - r6i.8xlarge\n - r6i.12xlarge\n - r6i.16xlarge\n - r6i.24xlarge\n - r6i.32xlarge\n - r6id.xlarge\n - r6id.2xlarge\n - r6id.4xlarge\n - r6id.8xlarge\n - r6id.12xlarge\n - r6id.16xlarge\n - r6id.24xlarge\n - r6id.32xlarge\n - r7i.xlarge\n - r7i.2xlarge\n - r7i.4xlarge\n - r7i.8xlarge\n - r7i.12xlarge\n - r7i.16xlarge\n - r7i.24xlarge\n - r7i.48xlarge\n - r7iz.xlarge\n - r7iz.2xlarge\n - r7iz.4xlarge\n - r7iz.8xlarge\n - r7iz.12xlarge\n - r7iz.16xlarge\n - r7iz.32xlarge\n - r7a.xlarge\n - r7a.2xlarge\n - r7a.4xlarge\n - r7a.8xlarge\n - r7a.12xlarge\n - r7a.16xlarge\n - r7a.24xlarge\n - r7a.32xlarge\n - r7a.48xlarge\n - r8a.xlarge\n - r8a.2xlarge\n - r8a.4xlarge\n - r8a.8xlarge\n - r8a.12xlarge\n - r8a.16xlarge\n - r8a.24xlarge\n - r8a.48xlarge\n - r8i.xlarge\n - r8i.2xlarge\n - r8i.4xlarge\n - r8i.8xlarge\n - r8i.12xlarge\n - r8i.16xlarge\n - r8i.24xlarge\n - r8i.32xlarge\n - r8i.48xlarge\n - r8i.96xlarge\n - r8i-flex.xlarge\n - r8i-flex.2xlarge\n - r8i-flex.4xlarge\n - r8i-flex.8xlarge\n - r8i-flex.12xlarge\n - r8i-flex.16xlarge\n - x1.16xlarge\n - x1.32xlarge\n - x1e.xlarge\n - x1e.2xlarge\n - x1e.4xlarge\n - x1e.8xlarge\n - x1e.16xlarge\n - x1e.32xlarge\n - x2idn.16xlarge\n - x2idn.24xlarge\n - x2idn.32xlarge\n - x2iedn.xlarge\n - x2iedn.2xlarge\n - x2iedn.4xlarge\n - x2iedn.8xlarge\n - x2iedn.16xlarge\n - x2iedn.24xlarge\n - x2iedn.32xlarge\n - x2iezn.2xlarge\n - x2iezn.4xlarge\n - x2iezn.6xlarge\n - x2iezn.8xlarge\n - x2iezn.12xlarge\n - d2.xlarge\n - d2.2xlarge\n - d2.4xlarge\n - d2.8xlarge\n - d3.xlarge\n - d3.2xlarge\n - d3.4xlarge\n - d3.8xlarge\n - d3en.xlarge\n - d3en.2xlarge\n - d3en.4xlarge\n - d3en.6xlarge\n - d3en.8xlarge\n - d3en.12xlarge\n - dl1.24xlarge\n - h1.2xlarge\n - h1.4xlarge\n - h1.8xlarge\n - h1.16xlarge\n - inf1.xlarge\n - inf1.2xlarge\n - inf1.6xlarge\n - inf1.24xlarge\n - trn1.2xlarge\n - trn1.32xlarge\n - u-3tb1.56xlarge\n - u-6tb1.56xlarge\n - u-6tb1.112xlarge\n - u-9tb1.112xlarge\n - u-12tb1.112xlarge\n - u-18tb1.112xlarge\n - vt1.3xlarge\n - vt1.6xlarge\n - vt1.24xlarge\n - z1d.xlarge\n - z1d.2xlarge\n - z1d.3xlarge\n - z1d.6xlarge\n - z1d.12xlarge\n - -------------- Bring-Your-Own-License Only --------------\n - c3.large\n - c4.large\n - c5.metal\n - c5.large\n - c5a.large\n - c5ad.large\n - c5d.metal\n - c5d.large\n - c5n.large\n - c5n.metal\n - c6a.large\n - c6a.metal\n - c6i.large\n - c6i.metal\n - c6id.large\n - c6id.metal\n - c7i.large\n - c7i.metal-24xl\n - c7i.metal-48xl\n - c7i-flex.large\n - c7a.medium\n - c7a.large\n - c7a.metal-48xl\n - c8i.large\n - c8i.metal-48xl\n - c8i.metal-96xl\n - c8i-flex.large\n - i3.large\n - i3.metal\n - i3en.large\n - i3en.metal\n - i4i.large\n - i4i.metal\n - i7ie.large\n - i7ie.metal-24xl\n - i7ie.metal-48xl\n - m3.large\n - m3.medium\n - m4.large\n - m5.metal\n - m5.large\n - m5a.large\n - m5ad.large\n - m5d.metal\n - m5d.large\n - m5zn.large\n - m5zn.metal\n - m5n.large\n - m5n.metal\n - m5dn.large\n - m5dn.metal\n - m6a.large\n - m6a.metal\n - m6i.large\n - m6i.metal\n - m6id.large\n - m6id.metal\n - m7i.large\n - m7i.metal-24xl\n - m7i.metal-48xl\n - m7i-flex.large\n - m7a.medium\n - m7a.large\n - m7a.metal-48xl\n - m8a.medium\n - m8a.large\n - m8a.metal-24xl\n - m8a.metal-48xl\n - m8i.large\n - m8i.metal-48xl\n - m8i.metal-96xl\n - m8i-flex.large\n - r3.large\n - r4.large\n - r5.metal\n - r5.large\n - r5a.large\n - r5d.metal\n - r5ad.large\n - r5d.large\n - r5dn.large\n - r5dn.metal\n - r5b.large\n - r5b.metal\n - r5n.large\n - r5n.metal\n - r6a.large\n - r6a.metal\n - r6i.large\n - r6i.metal\n - r6id.large\n - r6id.metal\n - r7i.large\n - r7i.metal-24xl\n - r7i.metal-48xl\n - r7iz.large\n - r7iz.metal-16xl\n - r7iz.metal-32xl\n - r7a.medium\n - r7a.large\n - r7a.metal-48xl\n - r8a.medium\n - r8a.large\n - r8a.metal-24xl\n - r8a.metal-48xl\n - r8i.large\n - r8i.metal-48xl\n - r8i.metal-96xl\n - r8i-flex.large\n - t2.2xlarge\n - t2.large\n - t2.medium\n - t2.micro\n - t2.nano\n - t2.small\n - t2.xlarge\n - t3.2xlarge\n - t3.large\n - t3.medium\n - t3.micro\n - t3.nano\n - t3.small\n - t3.xlarge\n - t3a.2xlarge\n - t3a.large\n - t3a.medium\n - t3a.micro\n - t3a.nano\n - t3a.small\n - t3a.xlarge\n - x2idn.metal\n - x2iedn.metal\n - x2iezn.metal\n - z1d.metal\n - z1d.large\n SpotPrice:\n Description: Spot price for instances in USD/Hour - Optional/advanced\n Type: Number\n MinValue: '0'\n MaxValue: '2'\n Default: '0'\n KeyName:\n Description: Name of an existing EC2 KeyPair to enable SSH access to the instance\n Type: String\n NumberOfZones:\n Description: Total number of Availability Zones, which can be 1 or 3. Load balancer type depends on the number of zones selected. Select 3 zones for Application Load Balancer (OR) Select 1 zone for Classic Load Balancer.\n Type: Number\n AllowedValues:\n - 1\n - 3\n Default: 3\n NodesPerZone:\n Description: Total number of nodes per Zone. Set to 0 to shutdown/hibernate\n Type: Number\n MinValue: '0'\n MaxValue: '20'\n Default: '1'\n AZ:\n Description: The Availability Zones for VPC subnets. Accept either 1 zone or 3 zones. In the order of Subnet 1, Subnet 2 and Subnet 3 (if applicable).\n Type: 'List<AWS::EC2::AvailabilityZone::Name>'\n LogSNS:\n Description: SNS Topic for logging - optional/advanced.\n Type: String\n Default: none\n PublicLoadBalancer:\n Description: Enable Public Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n InternalLoadBalancer:\n Description: Enable Internal Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n # network configuration\n VPC:\n Description: ID of an existing Virtual Private Cloud (VPC)\n Type: 'AWS::EC2::VPC::Id'\n PublicSubnet1:\n Description: The public subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet2:\n Description: The public subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet3:\n Description: The public subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet1:\n Description: The private subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet2:\n Description: The private subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet3:\n Description: The private subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n ExternalAccessCidrIP:\n Description: A CIDR IP range to allow external access from\n Type: String\n Default: 54.76.254.148/32\n ECSSecurityGroup:\n Description: the security group the ECS cluster is in\n Type: 'AWS::EC2::SecurityGroup::Id'\n\n # marklogic configuration\n AdminUser:\n Description: The MarkLogic administrator username\n Type: String\n AdminPass:\n Description: The MarkLogic administrator password\n Type: String\n NoEcho: 'true'\n AllowedPattern: >-\n ^(?!.*[*]).*$\n ConstraintDescription: Admin password must contain any characters except asterisk (*).\n Licensee:\n Description: The MarkLogic Licensee or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\n LicenseKey:\n Description: The MarkLogic License Key or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\nConditions:\n UseLogSNS: !Not [!Equals [!Ref LogSNS, \"none\"]]\n UseSpot: !Not\n - !Equals\n - !Ref SpotPrice\n - 0\n #MultiZone (3 zones) and SingleZone conditions used for the conditional resource creation based on number of zones selected.\n MultiZone:\n !Not [!Equals [!Ref NumberOfZones, 1]]\n CreatePublicAlb: !And [!Condition MultiZone, !Equals [!Ref PublicLoadBalancer, 'true']]\n CreateInternalAlb: !And [!Condition MultiZone, !Equals [!Ref InternalLoadBalancer, 'true']]\n SingleZone: !Equals [!Ref NumberOfZones, 1]\n PAYG:\n !Or [ !And [!Equals [!Ref LicenseKey, ''], !Equals [!Ref Licensee, '']], !And [!Equals [!Ref LicenseKey, 'none'], !Equals [!Ref Licensee, 'none']] ]\n UseVolumeEncryption: !Equals [!Ref VolumeEncryption, 'enable']\n HasCustomEBSKey: !Not [!Equals [!Ref VolumeEncryptionKey, '']]\n GP3: !Equals [!Ref VolumeType, 'gp3']\nMappings:\n Variable:\n LambdaPackageBucket:\n base: 'ml-db-lambda-'\n TemplateUrl:\n base: 'https://s3.amazonaws.com/marklogic-db-template-releases'\n S3Directory:\n base: '12.0.1'\n LicenseRegion2AMI:\n us-east-1:\n PAYGAl2023: ami-0198b8931e9597271\n BYOLAl2023: ami-0a8536507241f95b0\n us-east-2:\n PAYGAl2023: ami-0877b64dae8264415\n BYOLAl2023: ami-082cc98b2c01e486a\n us-west-1:\n PAYGAl2023: ami-07890fc78f4ddfa20\n BYOLAl2023: ami-05c9a962410c2821b\n us-west-2:\n PAYGAl2023: ami-0577eb149c9e0f53f\n BYOLAl2023: ami-0262dd8d014bf71ba\n eu-central-1:\n PAYGAl2023: ami-06348556399c8ab69\n BYOLAl2023: ami-00cb5a3527e7c0d11\n eu-west-1:\n PAYGAl2023: ami-0fa7bc44cd9ab1f85\n BYOLAl2023: ami-0bc2b4d46367806b0\n ap-south-1:\n PAYGAl2023: ami-0f481ba0a6819ced6\n BYOLAl2023: ami-00b59374107e5efb6\n ap-southeast-1:\n PAYGAl2023: ami-0c373c6c8a2316c80\n BYOLAl2023: ami-0b9bd265ef165a07b\n ap-southeast-2:\n PAYGAl2023: ami-0c65a907408226a3e\n BYOLAl2023: ami-02bad1ef2c6d4a91a\n ap-northeast-1:\n PAYGAl2023: ami-0254bc4adaf13e3b9\n BYOLAl2023: ami-07e8b312b1016bf67\n ap-northeast-2:\n PAYGAl2023: ami-05995b5f5807873d7\n BYOLAl2023: ami-0afd77ba0d7a0c129\n sa-east-1:\n PAYGAl2023: ami-05ec8fee12de236a5\n BYOLAl2023: ami-09d883ea308449555\n eu-west-2:\n PAYGAl2023: ami-0f5cff9d243f31521\n BYOLAl2023: ami-0588d104a52fbc326\n ca-central-1:\n PAYGAl2023: ami-0f34d118b23b51bf5\n BYOLAl2023: ami-0c78eccd03e957005\n eu-west-3:\n PAYGAl2023: ami-01fa9155eb17992c5\n BYOLAl2023: ami-0637199acc5327534\nResources:\n ManagedEniStack:\n Type: AWS::CloudFormation::Stack\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n NodesPerZone: !Ref NodesPerZone\n NumberOfZones: !Ref NumberOfZones\n Subnets: !If [MultiZone, !Join [',', [!Ref PrivateSubnet1, !Ref PrivateSubnet2, !Ref PrivateSubnet3]], !Ref PrivateSubnet1]\n ParentStackName: !Ref 'AWS::StackName'\n ParentStackId: !Ref 'AWS::StackId'\n SecurityGroup: !Ref InstanceSecurityGroup\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-managedeni.template']]\n TimeoutInMinutes: 5\n NodeMgrLambdaStack:\n Type: AWS::CloudFormation::Stack\n DependsOn: ManagedEniStack\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-nodemanager.template']]\n TimeoutInMinutes: 5\n MarklogicVolume1:\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [0, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupA-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c81032f7-b0ec-47ca-a236-e24d57b49ae3\n MarklogicVolume2:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [1, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupB-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: ddb55ae1-a00b-42ed-addd-5e03e4a2764b\n MarklogicVolume3:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [2, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupC-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 9094a65e-9d01-4c4c-9586-c33720e2cc9c\n MarkLogicDDBTable:\n Type: 'AWS::DynamoDB::Table'\n Properties:\n AttributeDefinitions:\n - AttributeName: node\n AttributeType: S\n KeySchema:\n - KeyType: HASH\n AttributeName: node\n ProvisionedThroughput:\n WriteCapacityUnits: '10'\n ReadCapacityUnits: '10'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e7190602-c2de-47ab-81e7-1315f8c01e2d\n #AutoScalingGroup used for SingleZone deployments that is connected to Classic Load Balancer.\n MarkLogicServerGroup:\n Condition: SingleZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup1:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup2:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet2\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp2\n Version: !GetAtt LaunchTemp2.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 87d75478-787a-41d5-bb21-9de6fe4b662e\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup3:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet3\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp3\n Version: !GetAtt LaunchTemp3.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: bbd8314a-6e59-4102-9ed5-232739dd0dfa\n InstanceSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable access to MarkLogic instances from Load Balancers and other cluster members\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n InstanceSecurityGroupIngress:\n Type: 'AWS::EC2::SecurityGroupIngress'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n IpProtocol: tcp\n FromPort: '0'\n ToPort: '65355'\n GroupId: !Ref InstanceSecurityGroup\n SourceSecurityGroupId: !Ref InstanceSecurityGroup\n InternalElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Allow access from ECS clsuter to internal ALB for marklogic cluster.\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n ElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable SSH access and HTTP access on the inbound port\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '22'\n ToPort: '22'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n CidrIp: !Ref ExternalAccessCidrIP\n LaunchTemp1:\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume1\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeA#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=1\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 2efb8cfb-df53-401d-8ff2-34af0dd25993\n LaunchTemp2:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume2\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeB#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c8296a50-a29e-4646-aa74-8f1b735a9a3f\n LaunchTemp3:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume3\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeC#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 7fa68c90-39bc-4874-ad20-8cd8c974ed52\n #Application Load Balancer description for MultiZone deployments (3 zones).\n Alb:\n Condition: CreatePublicAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - ElbSecurityGroup\n Properties: \n SecurityGroups: \n - !Ref ElbSecurityGroup\n Subnets:\n - !Ref PublicSubnet1\n - !If [MultiZone, !Ref PublicSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PublicSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 9 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n AlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicExternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n #Descriptions of the 9 Listeners for MultiZone deployments (3 zones). Each Listener connects Application Load Balancer to a TargetGroup with a particular port.\n AlbListener1:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8000\n Protocol: HTTP\n AlbListener2:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8001\n Protocol: HTTP\n AlbListener3:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8002\n Protocol: HTTP\n AlbListener4:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8003\n Protocol: HTTP\n AlbListener5:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8004\n Protocol: HTTP\n AlbListener6:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8005\n Protocol: HTTP\n AlbListener7:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8006\n Protocol: HTTP\n AlbListener8:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8007\n Protocol: HTTP\n AlbListener9:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8008\n Protocol: HTTP\n MarklogicExternal8011Listener:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - MarklogicExternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicExternal8011\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8011\n Protocol: HTTP\n #Application Load Balancer description for MultiZone deployments (3 zones).\n InternalAlb:\n Condition: CreateInternalAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - InternalElbSecurityGroup\n Properties: \n Scheme: internal\n SecurityGroups: \n - !Ref InternalElbSecurityGroup\n Subnets:\n - !Ref PrivateSubnet1\n - !If [MultiZone, !Ref PrivateSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PrivateSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 1 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n MarklogicInternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicInternal8011Listener:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - MarklogicInternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicInternal8011\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8011\n Protocol: HTTP\n InternalAlbListener1:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8000\n Protocol: HTTP\n InternalAlbListener2:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8001\n Protocol: HTTP\n InternalAlbListener3:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8002\n Protocol: HTTP\n InternalAlbListener4:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8003\n Protocol: HTTP\n InternalAlbListener5:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8004\n Protocol: HTTP\n InternalAlbListener6:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8005\n Protocol: HTTP\n InternalAlbListener7:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8006\n Protocol: HTTP\n InternalAlbListener8:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8007\n Protocol: HTTP\n InternalAlbListener9:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8008\n Protocol: HTTP\nOutputs:\n URL:\n Description: The URL of the MarkLogic Cluster\n Value: !Join\n - ''\n - - 'http://'\n - !If [CreatePublicAlb, !GetAtt [Alb, DNSName], !If [CreateInternalAlb, !GetAtt [InternalAlb, DNSName], !GetAtt [ManagedEniStack, Outputs.ENI]]]\n - ':8001'",
"newContent": "AWSTemplateFormatVersion: 2010-09-09\nDescription: Deploy a MarkLogic Cluster on AWS in existing VPC (Virtual Private Cloud).\nMetadata:\n version: 12.0.1\n binary: MarkLogic-12.0.1-rhel.x86_64.rpm\n AWS::CloudFormation::Interface:\n ParameterGroups:\n - Label:\n default: \"Resource Configuration\"\n Parameters:\n - IAMRole\n - VolumeSize\n - VolumeType\n - VolumeIOPS\n - VolumeThroughput\n - VolumeEncryption\n - VolumeEncryptionKey\n - InstanceType\n - SpotPrice\n - KeyName\n - NumberOfZones\n - NodesPerZone\n - AZ\n - LogSNS\n - Label:\n default: \"Network Configuration\"\n Parameters:\n - VPC\n - PublicSubnet1\n - PublicSubnet2\n - PublicSubnet3\n - PrivateSubnet1\n - PrivateSubnet2\n - PrivateSubnet3\n - PublicLoadBalancer\n - InternalLoadBalancer\n - ExternalAccessCidrIP\n - ECSSecurityGroup\n - Label:\n default: \"MarkLogic Configuration\"\n Parameters:\n - AdminUser\n - AdminPass\n - Licensee\n - LicenseKey\n ParameterLabels:\n AdminUser:\n default: Admin User\n AdminPass:\n default: Admin password\n Licensee:\n default: Licensee\n LicenseKey:\n default: License Key\n IAMRole:\n default: IAM Role\n LogSNS:\n default: Logging SNS ARN\n VolumeSize:\n default: Volume Size\n VolumeType:\n default: Volume Type\n VolumeIOPS:\n default: Volume Iops\n VolumeThroughput:\n default: Volume Throughput\n VolumeEncryption:\n default: Volume Encryption\n VolumeEncryptionKey:\n default: Volume Encryption Key ARN\n InstanceType:\n default: Instance Type\n SpotPrice:\n default: Spot Price\n KeyName:\n default: SSH Key Name\n NumberOfZones:\n default: Number of Zones\n NodesPerZone:\n default: Nodes per Zone\n AZ:\n default: Availability Zone\n VPC:\n default: VPC\n PublicSubnet1:\n default: Public Subnet 1\n PublicSubnet2:\n default: Public Subnet 2\n PublicSubnet3:\n default: Public Subnet 3\n PrivateSubnet1:\n default: Private Subnet 1\n PrivateSubnet2:\n default: Private Subnet 2\n PrivateSubnet3:\n default: Private Subnet 3\n PublicLoadBalancer:\n default: Public Load Balancer\n InternalLoadBalancer:\n default: Internal Load Balancer\n ExternalAccessCidrIP:\n default: External IP address range for access to admin site\n ECSSecurityGroup:\n default: the security group the ecs cluster is in\nParameters:\n # resource configuration\n IAMRole:\n Description: IAM Role\n Type: String\n VolumeSize:\n Description: The EBS Data volume size (GB) for all nodes\n Type: Number\n MinValue: '10'\n MaxValue: '1000'\n Default: '50'\n VolumeType:\n Description: The EBS Data volume Type\n Type: String\n AllowedValues:\n - standard\n - gp2\n - gp3\n Default: gp3\n VolumeIOPS:\n Description: The number of I/O operations per second for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '3000'\n MaxValue: '16000'\n Default: '3000'\n VolumeThroughput:\n Description: The throughput to provision for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '125'\n MaxValue: '1000'\n Default: '125'\n VolumeEncryption:\n Description: Whether to enable volume encryption\n Type: String\n AllowedValues:\n - enable\n - disable\n Default: enable\n VolumeEncryptionKey:\n Description: The key ID of AWS KMS key to encrypt volumes - Optional\n Type: String\n Default: \"\"\n InstanceType:\n Description: Type of EC2 instance to launch\n Type: String\n Default: r5.4xlarge\n AllowedValues:\n - ---- Pay-As-You-Go and Bring-Your-Own-License ----\n - c3.xlarge\n - c3.2xlarge\n - c3.4xlarge\n - c3.8xlarge\n - c4.xlarge\n - c4.2xlarge\n - c4.4xlarge\n - c4.8xlarge\n - c5.xlarge\n - c5.2xlarge\n - c5.4xlarge\n - c5.9xlarge\n - c5.12xlarge\n - c5.18xlarge\n - c5.24xlarge\n - c5a.xlarge\n - c5a.2xlarge\n - c5a.4xlarge\n - c5a.8xlarge\n - c5a.12xlarge\n - c5a.16xlarge\n - c5a.24xlarge\n - c5ad.xlarge\n - c5ad.2xlarge\n - c5ad.4xlarge\n - c5ad.8xlarge\n - c5ad.12xlarge\n - c5ad.16xlarge\n - c5ad.24xlarge\n - c5d.xlarge\n - c5d.2xlarge\n - c5d.4xlarge\n - c5d.9xlarge\n - c5d.12xlarge\n - c5d.18xlarge\n - c5d.24xlarge\n - c5n.xlarge\n - c5n.2xlarge\n - c5n.4xlarge\n - c5n.9xlarge\n - c5n.18xlarge\n - c6a.xlarge\n - c6a.2xlarge\n - c6a.4xlarge\n - c6a.8xlarge\n - c6a.12xlarge\n - c6a.16xlarge\n - c6a.24xlarge\n - c6a.32xlarge\n - c6a.48xlarge\n - c6i.xlarge\n - c6i.2xlarge\n - c6i.4xlarge\n - c6i.8xlarge\n - c6i.12xlarge\n - c6i.16xlarge\n - c6i.24xlarge\n - c6i.32xlarge\n - c6id.xlarge\n - c6id.2xlarge\n - c6id.4xlarge\n - c6id.8xlarge\n - c6id.12xlarge\n - c6id.16xlarge\n - c6id.24xlarge\n - c6id.32xlarge\n - c7i.xlarge\n - c7i.2xlarge\n - c7i.4xlarge\n - c7i.8xlarge\n - c7i.12xlarge\n - c7i.16xlarge\n - c7i.24xlarge\n - c7i.48xlarge\n - c7i-flex.xlarge\n - c7i-flex.2xlarge\n - c7i-flex.4xlarge\n - c7i-flex.8xlarge\n - c7i-flex.12xlarge\n - c7i-flex.16xlarge\n - c7a.xlarge\n - c7a.2xlarge\n - c7a.4xlarge\n - c7a.8xlarge\n - c7a.12xlarge\n - c7a.16xlarge\n - c7a.24xlarge\n - c7a.32xlarge\n - c7a.48xlarge\n - c8i.xlarge\n - c8i.2xlarge\n - c8i.4xlarge\n - c8i.8xlarge\n - c8i.12xlarge\n - c8i.16xlarge\n - c8i.24xlarge\n - c8i.32xlarge\n - c8i.48xlarge\n - c8i.96xlarge\n - c8i-flex.xlarge\n - c8i-flex.2xlarge\n - c8i-flex.4xlarge\n - c8i-flex.8xlarge\n - c8i-flex.12xlarge\n - c8i-flex.16xlarge\n - i2.2xlarge\n - i2.4xlarge\n - i2.8xlarge\n - i2.xlarge\n - i3.xlarge\n - i3.2xlarge\n - i3.4xlarge\n - i3.8xlarge\n - i3.16xlarge\n - i3en.xlarge\n - i3en.2xlarge\n - i3en.3xlarge\n - i3en.6xlarge\n - i3en.12xlarge\n - i3en.24xlarge\n - i4i.xlarge\n - i4i.2xlarge\n - i4i.4xlarge\n - i4i.8xlarge\n - i4i.12xlarge\n - i4i.16xlarge\n - i4i.24xlarge\n - i4i.32xlarge\n - i7ie.xlarge\n - i7ie.2xlarge\n - i7ie.3xlarge\n - i7ie.6xlarge\n - i7ie.12xlarge\n - i7ie.18xlarge\n - i7ie.24xlarge\n - i7ie.48xlarge\n - m3.xlarge\n - m3.2xlarge\n - m4.xlarge\n - m4.2xlarge\n - m4.4xlarge\n - m4.10xlarge\n - m4.16xlarge\n - m5.xlarge\n - m5.2xlarge\n - m5.4xlarge\n - m5.8xlarge\n - m5.12xlarge\n - m5.16xlarge\n - m5.24xlarge\n - m5a.xlarge\n - m5a.2xlarge\n - m5a.4xlarge\n - m5a.8xlarge\n - m5a.12xlarge\n - m5a.16xlarge\n - m5a.24xlarge\n - m5d.xlarge\n - m5d.2xlarge\n - m5d.4xlarge\n - m5d.8xlarge\n - m5d.16xlarge\n - m5d.12xlarge\n - m5d.24xlarge\n - m5ad.xlarge\n - m5ad.2xlarge\n - m5ad.4xlarge\n - m5ad.8xlarge\n - m5ad.12xlarge\n - m5ad.16xlarge\n - m5ad.24xlarge\n - m5zn.xlarge\n - m5zn.2xlarge\n - m5zn.3xlarge\n - m5zn.6xlarge\n - m5zn.12xlarge\n - m5n.xlarge\n - m5n.2xlarge\n - m5n.4xlarge\n - m5n.8xlarge\n - m5n.12xlarge\n - m5n.16xlarge\n - m5n.24xlarge\n - m5dn.xlarge\n - m5dn.2xlarge\n - m5dn.4xlarge\n - m5dn.8xlarge\n - m5dn.12xlarge\n - m5dn.16xlarge\n - m5dn.24xlarge\n - m6a.xlarge\n - m6a.2xlarge\n - m6a.4xlarge\n - m6a.8xlarge\n - m6a.12xlarge\n - m6a.16xlarge\n - m6a.24xlarge\n - m6a.32xlarge\n - m6a.48xlarge\n - m6i.xlarge\n - m6i.2xlarge\n - m6i.4xlarge\n - m6i.8xlarge\n - m6i.12xlarge\n - m6i.16xlarge\n - m6i.24xlarge\n - m6i.32xlarge\n - m6id.xlarge\n - m6id.2xlarge\n - m6id.4xlarge\n - m6id.8xlarge\n - m6id.12xlarge\n - m6id.16xlarge\n - m6id.24xlarge\n - m6id.32xlarge\n - m7i.xlarge\n - m7i.2xlarge\n - m7i.4xlarge\n - m7i.8xlarge\n - m7i.12xlarge\n - m7i.16xlarge\n - m7i.24xlarge\n - m7i.48xlarge\n - m7i-flex.xlarge\n - m7i-flex.2xlarge\n - m7i-flex.4xlarge\n - m7i-flex.8xlarge\n - m7i-flex.12xlarge\n - m7i-flex.16xlarge\n - m7a.xlarge\n - m7a.2xlarge\n - m7a.4xlarge\n - m7a.8xlarge\n - m7a.12xlarge\n - m7a.16xlarge\n - m7a.24xlarge\n - m7a.32xlarge\n - m7a.48xlarge\n - m8a.xlarge\n - m8a.2xlarge\n - m8a.4xlarge\n - m8a.8xlarge\n - m8a.12xlarge\n - m8a.16xlarge\n - m8a.24xlarge\n - m8a.48xlarge\n - m8i.xlarge\n - m8i.2xlarge\n - m8i.4xlarge\n - m8i.8xlarge\n - m8i.12xlarge\n - m8i.16xlarge\n - m8i.24xlarge\n - m8i.32xlarge\n - m8i.48xlarge\n - m8i.96xlarge\n - m8i-flex.xlarge\n - m8i-flex.2xlarge\n - m8i-flex.4xlarge\n - m8i-flex.8xlarge\n - m8i-flex.12xlarge\n - m8i-flex.16xlarge\n - r3.xlarge\n - r3.2xlarge\n - r3.4xlarge\n - r3.8xlarge\n - r4.xlarge\n - r4.2xlarge\n - r4.4xlarge\n - r4.8xlarge\n - r4.16xlarge\n - r5.xlarge\n - r5.2xlarge\n - r5.4xlarge\n - r5.8xlarge\n - r5.12xlarge\n - r5.16xlarge\n - r5.24xlarge\n - r5a.xlarge\n - r5a.2xlarge\n - r5a.4xlarge\n - r5a.8xlarge\n - r5a.12xlarge\n - r5a.16xlarge\n - r5a.24xlarge\n - r5ad.xlarge\n - r5ad.2xlarge\n - r5ad.4xlarge\n - r5ad.8xlarge\n - r5ad.12xlarge\n - r5ad.16xlarge\n - r5ad.24xlarge\n - r5b.xlarge\n - r5b.2xlarge\n - r5b.4xlarge\n - r5b.8xlarge\n - r5b.12xlarge\n - r5b.16xlarge\n - r5b.24xlarge\n - r5d.xlarge\n - r5d.2xlarge\n - r5d.4xlarge\n - r5d.8xlarge\n - r5d.12xlarge\n - r5d.16xlarge\n - r5d.24xlarge\n - r5dn.xlarge\n - r5dn.2xlarge\n - r5dn.4xlarge\n - r5dn.8xlarge\n - r5dn.12xlarge\n - r5dn.16xlarge\n - r5dn.24xlarge\n - r5n.xlarge\n - r5n.2xlarge\n - r5n.4xlarge\n - r5n.8xlarge\n - r5n.12xlarge\n - r5n.16xlarge\n - r5n.24xlarge\n - r6a.xlarge\n - r6a.2xlarge\n - r6a.4xlarge\n - r6a.8xlarge\n - r6a.12xlarge\n - r6a.16xlarge\n - r6a.24xlarge\n - r6a.32xlarge\n - r6a.48xlarge\n - r6i.xlarge\n - r6i.2xlarge\n - r6i.4xlarge\n - r6i.8xlarge\n - r6i.12xlarge\n - r6i.16xlarge\n - r6i.24xlarge\n - r6i.32xlarge\n - r6id.xlarge\n - r6id.2xlarge\n - r6id.4xlarge\n - r6id.8xlarge\n - r6id.12xlarge\n - r6id.16xlarge\n - r6id.24xlarge\n - r6id.32xlarge\n - r7i.xlarge\n - r7i.2xlarge\n - r7i.4xlarge\n - r7i.8xlarge\n - r7i.12xlarge\n - r7i.16xlarge\n - r7i.24xlarge\n - r7i.48xlarge\n - r7iz.xlarge\n - r7iz.2xlarge\n - r7iz.4xlarge\n - r7iz.8xlarge\n - r7iz.12xlarge\n - r7iz.16xlarge\n - r7iz.32xlarge\n - r7a.xlarge\n - r7a.2xlarge\n - r7a.4xlarge\n - r7a.8xlarge\n - r7a.12xlarge\n - r7a.16xlarge\n - r7a.24xlarge\n - r7a.32xlarge\n - r7a.48xlarge\n - r8a.xlarge\n - r8a.2xlarge\n - r8a.4xlarge\n - r8a.8xlarge\n - r8a.12xlarge\n - r8a.16xlarge\n - r8a.24xlarge\n - r8a.48xlarge\n - r8i.xlarge\n - r8i.2xlarge\n - r8i.4xlarge\n - r8i.8xlarge\n - r8i.12xlarge\n - r8i.16xlarge\n - r8i.24xlarge\n - r8i.32xlarge\n - r8i.48xlarge\n - r8i.96xlarge\n - r8i-flex.xlarge\n - r8i-flex.2xlarge\n - r8i-flex.4xlarge\n - r8i-flex.8xlarge\n - r8i-flex.12xlarge\n - r8i-flex.16xlarge\n - x1.16xlarge\n - x1.32xlarge\n - x1e.xlarge\n - x1e.2xlarge\n - x1e.4xlarge\n - x1e.8xlarge\n - x1e.16xlarge\n - x1e.32xlarge\n - x2idn.16xlarge\n - x2idn.24xlarge\n - x2idn.32xlarge\n - x2iedn.xlarge\n - x2iedn.2xlarge\n - x2iedn.4xlarge\n - x2iedn.8xlarge\n - x2iedn.16xlarge\n - x2iedn.24xlarge\n - x2iedn.32xlarge\n - x2iezn.2xlarge\n - x2iezn.4xlarge\n - x2iezn.6xlarge\n - x2iezn.8xlarge\n - x2iezn.12xlarge\n - d2.xlarge\n - d2.2xlarge\n - d2.4xlarge\n - d2.8xlarge\n - d3.xlarge\n - d3.2xlarge\n - d3.4xlarge\n - d3.8xlarge\n - d3en.xlarge\n - d3en.2xlarge\n - d3en.4xlarge\n - d3en.6xlarge\n - d3en.8xlarge\n - d3en.12xlarge\n - dl1.24xlarge\n - h1.2xlarge\n - h1.4xlarge\n - h1.8xlarge\n - h1.16xlarge\n - inf1.xlarge\n - inf1.2xlarge\n - inf1.6xlarge\n - inf1.24xlarge\n - trn1.2xlarge\n - trn1.32xlarge\n - u-3tb1.56xlarge\n - u-6tb1.56xlarge\n - u-6tb1.112xlarge\n - u-9tb1.112xlarge\n - u-12tb1.112xlarge\n - u-18tb1.112xlarge\n - vt1.3xlarge\n - vt1.6xlarge\n - vt1.24xlarge\n - z1d.xlarge\n - z1d.2xlarge\n - z1d.3xlarge\n - z1d.6xlarge\n - z1d.12xlarge\n - -------------- Bring-Your-Own-License Only --------------\n - c3.large\n - c4.large\n - c5.metal\n - c5.large\n - c5a.large\n - c5ad.large\n - c5d.metal\n - c5d.large\n - c5n.large\n - c5n.metal\n - c6a.large\n - c6a.metal\n - c6i.large\n - c6i.metal\n - c6id.large\n - c6id.metal\n - c7i.large\n - c7i.metal-24xl\n - c7i.metal-48xl\n - c7i-flex.large\n - c7a.medium\n - c7a.large\n - c7a.metal-48xl\n - c8i.large\n - c8i.metal-48xl\n - c8i.metal-96xl\n - c8i-flex.large\n - i3.large\n - i3.metal\n - i3en.large\n - i3en.metal\n - i4i.large\n - i4i.metal\n - i7ie.large\n - i7ie.metal-24xl\n - i7ie.metal-48xl\n - m3.large\n - m3.medium\n - m4.large\n - m5.metal\n - m5.large\n - m5a.large\n - m5ad.large\n - m5d.metal\n - m5d.large\n - m5zn.large\n - m5zn.metal\n - m5n.large\n - m5n.metal\n - m5dn.large\n - m5dn.metal\n - m6a.large\n - m6a.metal\n - m6i.large\n - m6i.metal\n - m6id.large\n - m6id.metal\n - m7i.large\n - m7i.metal-24xl\n - m7i.metal-48xl\n - m7i-flex.large\n - m7a.medium\n - m7a.large\n - m7a.metal-48xl\n - m8a.medium\n - m8a.large\n - m8a.metal-24xl\n - m8a.metal-48xl\n - m8i.large\n - m8i.metal-48xl\n - m8i.metal-96xl\n - m8i-flex.large\n - r3.large\n - r4.large\n - r5.metal\n - r5.large\n - r5a.large\n - r5d.metal\n - r5ad.large\n - r5d.large\n - r5dn.large\n - r5dn.metal\n - r5b.large\n - r5b.metal\n - r5n.large\n - r5n.metal\n - r6a.large\n - r6a.metal\n - r6i.large\n - r6i.metal\n - r6id.large\n - r6id.metal\n - r7i.large\n - r7i.metal-24xl\n - r7i.metal-48xl\n - r7iz.large\n - r7iz.metal-16xl\n - r7iz.metal-32xl\n - r7a.medium\n - r7a.large\n - r7a.metal-48xl\n - r8a.medium\n - r8a.large\n - r8a.metal-24xl\n - r8a.metal-48xl\n - r8i.large\n - r8i.metal-48xl\n - r8i.metal-96xl\n - r8i-flex.large\n - t2.2xlarge\n - t2.large\n - t2.medium\n - t2.micro\n - t2.nano\n - t2.small\n - t2.xlarge\n - t3.2xlarge\n - t3.large\n - t3.medium\n - t3.micro\n - t3.nano\n - t3.small\n - t3.xlarge\n - t3a.2xlarge\n - t3a.large\n - t3a.medium\n - t3a.micro\n - t3a.nano\n - t3a.small\n - t3a.xlarge\n - x2idn.metal\n - x2iedn.metal\n - x2iezn.metal\n - z1d.metal\n - z1d.large\n SpotPrice:\n Description: Spot price for instances in USD/Hour - Optional/advanced\n Type: Number\n MinValue: '0'\n MaxValue: '2'\n Default: '0'\n KeyName:\n Description: Name of an existing EC2 KeyPair to enable SSH access to the instance\n Type: String\n NumberOfZones:\n Description: Total number of Availability Zones, which can be 1 or 3. Load balancer type depends on the number of zones selected. Select 3 zones for Application Load Balancer (OR) Select 1 zone for Classic Load Balancer.\n Type: Number\n AllowedValues:\n - 1\n - 3\n Default: 3\n NodesPerZone:\n Description: Total number of nodes per Zone. Set to 0 to shutdown/hibernate\n Type: Number\n MinValue: '0'\n MaxValue: '20'\n Default: '1'\n AZ:\n Description: The Availability Zones for VPC subnets. Accept either 1 zone or 3 zones. In the order of Subnet 1, Subnet 2 and Subnet 3 (if applicable).\n Type: 'List<AWS::EC2::AvailabilityZone::Name>'\n LogSNS:\n Description: SNS Topic for logging - optional/advanced.\n Type: String\n Default: none\n PublicLoadBalancer:\n Description: Enable Public Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n InternalLoadBalancer:\n Description: Enable Internal Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n # network configuration\n VPC:\n Description: ID of an existing Virtual Private Cloud (VPC)\n Type: 'AWS::EC2::VPC::Id'\n PublicSubnet1:\n Description: The public subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet2:\n Description: The public subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet3:\n Description: The public subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet1:\n Description: The private subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet2:\n Description: The private subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet3:\n Description: The private subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n ExternalAccessCidrIP:\n Description: A CIDR IP range to allow external access from\n Type: String\n Default: 54.76.254.148/32\n ECSSecurityGroup:\n Description: the security group the ECS cluster is in\n Type: 'AWS::EC2::SecurityGroup::Id'\n\n # marklogic configuration\n AdminUser:\n Description: The MarkLogic administrator username\n Type: String\n AdminPass:\n Description: The MarkLogic administrator password\n Type: String\n NoEcho: 'true'\n AllowedPattern: >-\n ^(?!.*[*]).*$\n ConstraintDescription: Admin password must contain any characters except asterisk (*).\n Licensee:\n Description: The MarkLogic Licensee or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\n LicenseKey:\n Description: The MarkLogic License Key or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\nConditions:\n UseLogSNS: !Not [!Equals [!Ref LogSNS, \"none\"]]\n UseSpot: !Not\n - !Equals\n - !Ref SpotPrice\n - 0\n #MultiZone (3 zones) and SingleZone conditions used for the conditional resource creation based on number of zones selected.\n MultiZone:\n !Not [!Equals [!Ref NumberOfZones, 1]]\n CreatePublicAlb: !And [!Condition MultiZone, !Equals [!Ref PublicLoadBalancer, 'true']]\n CreateInternalAlb: !And [!Condition MultiZone, !Equals [!Ref InternalLoadBalancer, 'true']]\n SingleZone: !Equals [!Ref NumberOfZones, 1]\n PAYG:\n !Or [ !And [!Equals [!Ref LicenseKey, ''], !Equals [!Ref Licensee, '']], !And [!Equals [!Ref LicenseKey, 'none'], !Equals [!Ref Licensee, 'none']] ]\n UseVolumeEncryption: !Equals [!Ref VolumeEncryption, 'enable']\n HasCustomEBSKey: !Not [!Equals [!Ref VolumeEncryptionKey, '']]\n GP3: !Equals [!Ref VolumeType, 'gp3']\nMappings:\n Variable:\n LambdaPackageBucket:\n base: 'ml-db-lambda-'\n TemplateUrl:\n base: 'https://s3.amazonaws.com/marklogic-db-template-releases'\n S3Directory:\n base: '12.0.1'\n LicenseRegion2AMI:\n us-east-1:\n PAYGAl2023: ami-0198b8931e9597271\n BYOLAl2023: ami-0a8536507241f95b0\n us-east-2:\n PAYGAl2023: ami-0877b64dae8264415\n BYOLAl2023: ami-082cc98b2c01e486a\n us-west-1:\n PAYGAl2023: ami-07890fc78f4ddfa20\n BYOLAl2023: ami-05c9a962410c2821b\n us-west-2:\n PAYGAl2023: ami-0577eb149c9e0f53f\n BYOLAl2023: ami-0262dd8d014bf71ba\n eu-central-1:\n PAYGAl2023: ami-06348556399c8ab69\n BYOLAl2023: ami-00cb5a3527e7c0d11\n eu-west-1:\n PAYGAl2023: ami-0fa7bc44cd9ab1f85\n BYOLAl2023: ami-0bc2b4d46367806b0\n ap-south-1:\n PAYGAl2023: ami-0f481ba0a6819ced6\n BYOLAl2023: ami-00b59374107e5efb6\n ap-southeast-1:\n PAYGAl2023: ami-0c373c6c8a2316c80\n BYOLAl2023: ami-0b9bd265ef165a07b\n ap-southeast-2:\n PAYGAl2023: ami-0c65a907408226a3e\n BYOLAl2023: ami-02bad1ef2c6d4a91a\n ap-northeast-1:\n PAYGAl2023: ami-0254bc4adaf13e3b9\n BYOLAl2023: ami-07e8b312b1016bf67\n ap-northeast-2:\n PAYGAl2023: ami-05995b5f5807873d7\n BYOLAl2023: ami-0afd77ba0d7a0c129\n sa-east-1:\n PAYGAl2023: ami-05ec8fee12de236a5\n BYOLAl2023: ami-09d883ea308449555\n eu-west-2:\n PAYGAl2023: ami-0f5cff9d243f31521\n BYOLAl2023: ami-0588d104a52fbc326\n ca-central-1:\n PAYGAl2023: ami-0f34d118b23b51bf5\n BYOLAl2023: ami-0c78eccd03e957005\n eu-west-3:\n PAYGAl2023: ami-01fa9155eb17992c5\n BYOLAl2023: ami-0637199acc5327534\nResources:\n ManagedEniStack:\n Type: AWS::CloudFormation::Stack\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n NodesPerZone: !Ref NodesPerZone\n NumberOfZones: !Ref NumberOfZones\n Subnets: !If [MultiZone, !Join [',', [!Ref PrivateSubnet1, !Ref PrivateSubnet2, !Ref PrivateSubnet3]], !Ref PrivateSubnet1]\n ParentStackName: !Ref 'AWS::StackName'\n ParentStackId: !Ref 'AWS::StackId'\n SecurityGroup: !Ref InstanceSecurityGroup\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-managedeni.template']]\n TimeoutInMinutes: 5\n NodeMgrLambdaStack:\n Type: AWS::CloudFormation::Stack\n DependsOn: ManagedEniStack\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-nodemanager.template']]\n TimeoutInMinutes: 5\n MarklogicVolume1:\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [0, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupA-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c81032f7-b0ec-47ca-a236-e24d57b49ae3\n MarklogicVolume2:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [1, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupB-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: ddb55ae1-a00b-42ed-addd-5e03e4a2764b\n MarklogicVolume3:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [2, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupC-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 9094a65e-9d01-4c4c-9586-c33720e2cc9c\n MarkLogicDDBTable:\n Type: 'AWS::DynamoDB::Table'\n Properties:\n AttributeDefinitions:\n - AttributeName: node\n AttributeType: S\n KeySchema:\n - KeyType: HASH\n AttributeName: node\n ProvisionedThroughput:\n WriteCapacityUnits: '10'\n ReadCapacityUnits: '10'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e7190602-c2de-47ab-81e7-1315f8c01e2d\n #AutoScalingGroup used for SingleZone deployments that is connected to Classic Load Balancer.\n MarkLogicServerGroup:\n Condition: SingleZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup1:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup2:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet2\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp2\n Version: !GetAtt LaunchTemp2.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 87d75478-787a-41d5-bb21-9de6fe4b662e\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup3:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet3\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp3\n Version: !GetAtt LaunchTemp3.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: bbd8314a-6e59-4102-9ed5-232739dd0dfa\n InstanceSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable access to MarkLogic instances from Load Balancers and other cluster members\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n InstanceSecurityGroupIngress:\n Type: 'AWS::EC2::SecurityGroupIngress'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n IpProtocol: tcp\n FromPort: '0'\n ToPort: '65355'\n GroupId: !Ref InstanceSecurityGroup\n SourceSecurityGroupId: !Ref InstanceSecurityGroup\n InternalElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Allow access from ECS clsuter to internal ALB for marklogic cluster.\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n ElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable SSH access and HTTP access on the inbound port\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '22'\n ToPort: '22'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n CidrIp: !Ref ExternalAccessCidrIP\n LaunchTemp1:\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume1\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeA#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=1\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 2efb8cfb-df53-401d-8ff2-34af0dd25993\n LaunchTemp2:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume2\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeB#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c8296a50-a29e-4646-aa74-8f1b735a9a3f\n LaunchTemp3:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume3\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeC#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 7fa68c90-39bc-4874-ad20-8cd8c974ed52\n #Application Load Balancer description for MultiZone deployments (3 zones).\n Alb:\n Condition: CreatePublicAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - ElbSecurityGroup\n Properties: \n SecurityGroups: \n - !Ref ElbSecurityGroup\n Subnets:\n - !Ref PublicSubnet1\n - !If [MultiZone, !Ref PublicSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PublicSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 9 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n AlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicExternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n #Descriptions of the 9 Listeners for MultiZone deployments (3 zones). Each Listener connects Application Load Balancer to a TargetGroup with a particular port.\n AlbListener1:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8000\n Protocol: HTTP\n AlbListener2:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8001\n Protocol: HTTP\n AlbListener3:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8002\n Protocol: HTTP\n AlbListener4:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8003\n Protocol: HTTP\n AlbListener5:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8004\n Protocol: HTTP\n AlbListener6:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8005\n Protocol: HTTP\n AlbListener7:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8006\n Protocol: HTTP\n AlbListener8:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8007\n Protocol: HTTP\n AlbListener9:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8008\n Protocol: HTTP\n MarklogicExternal8011Listener:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - MarklogicExternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicExternal8011\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8011\n Protocol: HTTP\n #Application Load Balancer description for MultiZone deployments (3 zones).\n InternalAlb:\n Condition: CreateInternalAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - InternalElbSecurityGroup\n Properties: \n Scheme: internal\n SecurityGroups: \n - !Ref InternalElbSecurityGroup\n Subnets:\n - !Ref PrivateSubnet1\n - !If [MultiZone, !Ref PrivateSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PrivateSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 1 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n MarklogicInternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicInternal8011Listener:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - MarklogicInternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicInternal8011\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8011\n Protocol: HTTP\n InternalAlbListener1:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8000\n Protocol: HTTP\n InternalAlbListener2:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8001\n Protocol: HTTP\n InternalAlbListener3:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8002\n Protocol: HTTP\n InternalAlbListener4:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8003\n Protocol: HTTP\n InternalAlbListener5:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8004\n Protocol: HTTP\n InternalAlbListener6:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8005\n Protocol: HTTP\n InternalAlbListener7:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8006\n Protocol: HTTP\n InternalAlbListener8:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8007\n Protocol: HTTP\n InternalAlbListener9:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8008\n Protocol: HTTP\nOutputs:\n URL:\n Description: The URL of the MarkLogic Cluster\n Value: !Join\n - ''\n - - 'http://'\n - !If [CreatePublicAlb, !GetAtt [Alb, DNSName], !If [CreateInternalAlb, !GetAtt [InternalAlb, DNSName], !GetAtt [ManagedEniStack, Outputs.ENI]]]\n - ':8001'",
"diffStat": {
"model_added_lines": 6,
"model_removed_lines": 6,
"model_added_chars": 255,
"model_removed_chars": 207,
"user_added_lines": 0,
"user_removed_lines": 2317,
"user_added_chars": 0,
"user_removed_chars": 64903
},
"isNewFile": false
},
"displayName": "Edit",
"description": "Replaces text within a file. By default, replaces a single occurrence, but can replace multiple occurrences when `expected_replacements` is specified. This tool requires providing significant context around the change to ensure precise targeting. Always use the read_file tool to examine the file's current content before attempting a text replacement.\n \n The user has the ability to modify the `new_string` content. If modified, this will be stated in the response.\n \n Expectation for required parameters:\n 1. `old_string` MUST be the exact literal text to replace (including all whitespace, indentation, newlines, and surrounding code etc.).\n 2. `new_string` MUST be the exact literal text to replace `old_string` with (also including all whitespace, indentation, newlines, and surrounding code etc.). Ensure the resulting code is correct and idiomatic and that `old_string` and `new_string` are different.\n 3. `instruction` is the detailed instruction of what needs to be changed. It is important to Make it specific and detailed so developers or large language models can understand what needs to be changed and perform the changes on their own if necessary. \n 4. NEVER escape `old_string` or `new_string`, that would break the exact literal text requirement.\n **Important:** If ANY of the above are not satisfied, the tool will fail. CRITICAL for `old_string`: Must uniquely identify the single instance to change. Include at least 3 lines of context BEFORE and AFTER the target text, matching whitespace and indentation precisely. If this string matches multiple locations, or does not match exactly, the tool will fail.\n 5. Prefer to break down complex and long changes into multiple smaller atomic calls to this tool. Always check the content of the file after changes or not finding a string to match.\n **Multiple replacements:** Set `expected_replacements` to the number of occurrences you want to replace. The tool will replace ALL occurrences that match `old_string` exactly. Ensure the number of replacements matches your expectation.",
"renderOutputAsMarkdown": true
}
]
},
{
"id": "43000c11-8053-47bd-988b-d6bfd65c612e",
"timestamp": "2026-01-30T11:33:24.873Z",
"type": "gemini",
"content": "I will update `InternalAlbListener4`, `InternalAlbListener5`, and `InternalAlbListener6` in `mlcluster.template` to depend on and reference `InternalAlbTargetGroup4`, `InternalAlbTargetGroup5`, and `InternalAlbTargetGroup6` respectively, ensuring they use the correct internal target groups.",
"thoughts": [
{
"subject": "Reflecting on Batch 2",
"description": "I'm now focusing on Batch 2, specifically listeners 4, 5, and 6. I'm structuring the code using YAML, and I'm ensuring dependencies are correctly managed. I'm making sure `InternalAlbListener4` depends on `InternalAlb` and `AlbTargetGroup`. This approach feels efficient for this iteration.",
"timestamp": "2026-01-30T11:33:17.329Z"
},
{
"subject": "Revising Target Groups",
"description": "I've just finished the YAML adjustments. I've replaced all instances of `AlbTargetGroup` with `InternalAlbTargetGroup` within Batch 2's listener configurations. The dependencies on `InternalAlb` remain. I've also verified the port settings and protocols are correctly configured for each listener (4, 5, and 6).",
"timestamp": "2026-01-30T11:33:20.036Z"
}
],
"tokens": {
"input": 62469,
"output": 734,
"cached": 58361,
"thoughts": 329,
"tool": 0,
"total": 63532
},
"model": "gemini-3-pro-preview",
"toolCalls": [
{
"id": "replace-1769772804870-a5c8b435dcac3",
"name": "replace",
"args": {
"instruction": "Update InternalAlbListener4, InternalAlbListener5, and InternalAlbListener6 to use InternalAlbTargetGroup4, InternalAlbTargetGroup5, and InternalAlbTargetGroup6 respectively.",
"new_string": " InternalAlbListener4:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8003\n Protocol: HTTP\n InternalAlbListener5:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8004\n Protocol: HTTP\n InternalAlbListener6:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8005\n Protocol: HTTP",
"file_path": "/Users/bob/git/dxw/marklogic-cf-templates/mlcluster.template",
"old_string": " InternalAlbListener4:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8003\n Protocol: HTTP\n InternalAlbListener5:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8004\n Protocol: HTTP\n InternalAlbListener6:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8005\n Protocol: HTTP"
},
"result": [
{
"functionResponse": {
"id": "replace-1769772804870-a5c8b435dcac3",
"name": "replace",
"response": {
"output": "Successfully modified file: /Users/bob/git/dxw/marklogic-cf-templates/mlcluster.template (1 replacements)."
}
}
}
],
"status": "success",
"timestamp": "2026-01-30T11:33:29.696Z",
"resultDisplay": {
"fileDiff": "Index: mlcluster.template\n===================================================================\n--- mlcluster.template\tCurrent\n+++ mlcluster.template\tProposed\n@@ -2273,10 +2273,10 @@\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n- - AlbTargetGroup4\n+ - InternalAlbTargetGroup4\n Properties:\n DefaultActions:\n- - TargetGroupArn: !Ref AlbTargetGroup4\n+ - TargetGroupArn: !Ref InternalAlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8003\n@@ -2286,10 +2286,10 @@\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n- - AlbTargetGroup5\n+ - InternalAlbTargetGroup5\n Properties:\n DefaultActions:\n- - TargetGroupArn: !Ref AlbTargetGroup5\n+ - TargetGroupArn: !Ref InternalAlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8004\n@@ -2299,10 +2299,10 @@\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n- - AlbTargetGroup6\n+ - InternalAlbTargetGroup6\n Properties:\n DefaultActions:\n- - TargetGroupArn: !Ref AlbTargetGroup6\n+ - TargetGroupArn: !Ref InternalAlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8005\n",
"fileName": "mlcluster.template",
"filePath": "/Users/bob/git/dxw/marklogic-cf-templates/mlcluster.template",
"originalContent": "AWSTemplateFormatVersion: 2010-09-09\nDescription: Deploy a MarkLogic Cluster on AWS in existing VPC (Virtual Private Cloud).\nMetadata:\n version: 12.0.1\n binary: MarkLogic-12.0.1-rhel.x86_64.rpm\n AWS::CloudFormation::Interface:\n ParameterGroups:\n - Label:\n default: \"Resource Configuration\"\n Parameters:\n - IAMRole\n - VolumeSize\n - VolumeType\n - VolumeIOPS\n - VolumeThroughput\n - VolumeEncryption\n - VolumeEncryptionKey\n - InstanceType\n - SpotPrice\n - KeyName\n - NumberOfZones\n - NodesPerZone\n - AZ\n - LogSNS\n - Label:\n default: \"Network Configuration\"\n Parameters:\n - VPC\n - PublicSubnet1\n - PublicSubnet2\n - PublicSubnet3\n - PrivateSubnet1\n - PrivateSubnet2\n - PrivateSubnet3\n - PublicLoadBalancer\n - InternalLoadBalancer\n - ExternalAccessCidrIP\n - ECSSecurityGroup\n - Label:\n default: \"MarkLogic Configuration\"\n Parameters:\n - AdminUser\n - AdminPass\n - Licensee\n - LicenseKey\n ParameterLabels:\n AdminUser:\n default: Admin User\n AdminPass:\n default: Admin password\n Licensee:\n default: Licensee\n LicenseKey:\n default: License Key\n IAMRole:\n default: IAM Role\n LogSNS:\n default: Logging SNS ARN\n VolumeSize:\n default: Volume Size\n VolumeType:\n default: Volume Type\n VolumeIOPS:\n default: Volume Iops\n VolumeThroughput:\n default: Volume Throughput\n VolumeEncryption:\n default: Volume Encryption\n VolumeEncryptionKey:\n default: Volume Encryption Key ARN\n InstanceType:\n default: Instance Type\n SpotPrice:\n default: Spot Price\n KeyName:\n default: SSH Key Name\n NumberOfZones:\n default: Number of Zones\n NodesPerZone:\n default: Nodes per Zone\n AZ:\n default: Availability Zone\n VPC:\n default: VPC\n PublicSubnet1:\n default: Public Subnet 1\n PublicSubnet2:\n default: Public Subnet 2\n PublicSubnet3:\n default: Public Subnet 3\n PrivateSubnet1:\n default: Private Subnet 1\n PrivateSubnet2:\n default: Private Subnet 2\n PrivateSubnet3:\n default: Private Subnet 3\n PublicLoadBalancer:\n default: Public Load Balancer\n InternalLoadBalancer:\n default: Internal Load Balancer\n ExternalAccessCidrIP:\n default: External IP address range for access to admin site\n ECSSecurityGroup:\n default: the security group the ecs cluster is in\nParameters:\n # resource configuration\n IAMRole:\n Description: IAM Role\n Type: String\n VolumeSize:\n Description: The EBS Data volume size (GB) for all nodes\n Type: Number\n MinValue: '10'\n MaxValue: '1000'\n Default: '50'\n VolumeType:\n Description: The EBS Data volume Type\n Type: String\n AllowedValues:\n - standard\n - gp2\n - gp3\n Default: gp3\n VolumeIOPS:\n Description: The number of I/O operations per second for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '3000'\n MaxValue: '16000'\n Default: '3000'\n VolumeThroughput:\n Description: The throughput to provision for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '125'\n MaxValue: '1000'\n Default: '125'\n VolumeEncryption:\n Description: Whether to enable volume encryption\n Type: String\n AllowedValues:\n - enable\n - disable\n Default: enable\n VolumeEncryptionKey:\n Description: The key ID of AWS KMS key to encrypt volumes - Optional\n Type: String\n Default: \"\"\n InstanceType:\n Description: Type of EC2 instance to launch\n Type: String\n Default: r5.4xlarge\n AllowedValues:\n - ---- Pay-As-You-Go and Bring-Your-Own-License ----\n - c3.xlarge\n - c3.2xlarge\n - c3.4xlarge\n - c3.8xlarge\n - c4.xlarge\n - c4.2xlarge\n - c4.4xlarge\n - c4.8xlarge\n - c5.xlarge\n - c5.2xlarge\n - c5.4xlarge\n - c5.9xlarge\n - c5.12xlarge\n - c5.18xlarge\n - c5.24xlarge\n - c5a.xlarge\n - c5a.2xlarge\n - c5a.4xlarge\n - c5a.8xlarge\n - c5a.12xlarge\n - c5a.16xlarge\n - c5a.24xlarge\n - c5ad.xlarge\n - c5ad.2xlarge\n - c5ad.4xlarge\n - c5ad.8xlarge\n - c5ad.12xlarge\n - c5ad.16xlarge\n - c5ad.24xlarge\n - c5d.xlarge\n - c5d.2xlarge\n - c5d.4xlarge\n - c5d.9xlarge\n - c5d.12xlarge\n - c5d.18xlarge\n - c5d.24xlarge\n - c5n.xlarge\n - c5n.2xlarge\n - c5n.4xlarge\n - c5n.9xlarge\n - c5n.18xlarge\n - c6a.xlarge\n - c6a.2xlarge\n - c6a.4xlarge\n - c6a.8xlarge\n - c6a.12xlarge\n - c6a.16xlarge\n - c6a.24xlarge\n - c6a.32xlarge\n - c6a.48xlarge\n - c6i.xlarge\n - c6i.2xlarge\n - c6i.4xlarge\n - c6i.8xlarge\n - c6i.12xlarge\n - c6i.16xlarge\n - c6i.24xlarge\n - c6i.32xlarge\n - c6id.xlarge\n - c6id.2xlarge\n - c6id.4xlarge\n - c6id.8xlarge\n - c6id.12xlarge\n - c6id.16xlarge\n - c6id.24xlarge\n - c6id.32xlarge\n - c7i.xlarge\n - c7i.2xlarge\n - c7i.4xlarge\n - c7i.8xlarge\n - c7i.12xlarge\n - c7i.16xlarge\n - c7i.24xlarge\n - c7i.48xlarge\n - c7i-flex.xlarge\n - c7i-flex.2xlarge\n - c7i-flex.4xlarge\n - c7i-flex.8xlarge\n - c7i-flex.12xlarge\n - c7i-flex.16xlarge\n - c7a.xlarge\n - c7a.2xlarge\n - c7a.4xlarge\n - c7a.8xlarge\n - c7a.12xlarge\n - c7a.16xlarge\n - c7a.24xlarge\n - c7a.32xlarge\n - c7a.48xlarge\n - c8i.xlarge\n - c8i.2xlarge\n - c8i.4xlarge\n - c8i.8xlarge\n - c8i.12xlarge\n - c8i.16xlarge\n - c8i.24xlarge\n - c8i.32xlarge\n - c8i.48xlarge\n - c8i.96xlarge\n - c8i-flex.xlarge\n - c8i-flex.2xlarge\n - c8i-flex.4xlarge\n - c8i-flex.8xlarge\n - c8i-flex.12xlarge\n - c8i-flex.16xlarge\n - i2.2xlarge\n - i2.4xlarge\n - i2.8xlarge\n - i2.xlarge\n - i3.xlarge\n - i3.2xlarge\n - i3.4xlarge\n - i3.8xlarge\n - i3.16xlarge\n - i3en.xlarge\n - i3en.2xlarge\n - i3en.3xlarge\n - i3en.6xlarge\n - i3en.12xlarge\n - i3en.24xlarge\n - i4i.xlarge\n - i4i.2xlarge\n - i4i.4xlarge\n - i4i.8xlarge\n - i4i.12xlarge\n - i4i.16xlarge\n - i4i.24xlarge\n - i4i.32xlarge\n - i7ie.xlarge\n - i7ie.2xlarge\n - i7ie.3xlarge\n - i7ie.6xlarge\n - i7ie.12xlarge\n - i7ie.18xlarge\n - i7ie.24xlarge\n - i7ie.48xlarge\n - m3.xlarge\n - m3.2xlarge\n - m4.xlarge\n - m4.2xlarge\n - m4.4xlarge\n - m4.10xlarge\n - m4.16xlarge\n - m5.xlarge\n - m5.2xlarge\n - m5.4xlarge\n - m5.8xlarge\n - m5.12xlarge\n - m5.16xlarge\n - m5.24xlarge\n - m5a.xlarge\n - m5a.2xlarge\n - m5a.4xlarge\n - m5a.8xlarge\n - m5a.12xlarge\n - m5a.16xlarge\n - m5a.24xlarge\n - m5d.xlarge\n - m5d.2xlarge\n - m5d.4xlarge\n - m5d.8xlarge\n - m5d.16xlarge\n - m5d.12xlarge\n - m5d.24xlarge\n - m5ad.xlarge\n - m5ad.2xlarge\n - m5ad.4xlarge\n - m5ad.8xlarge\n - m5ad.12xlarge\n - m5ad.16xlarge\n - m5ad.24xlarge\n - m5zn.xlarge\n - m5zn.2xlarge\n - m5zn.3xlarge\n - m5zn.6xlarge\n - m5zn.12xlarge\n - m5n.xlarge\n - m5n.2xlarge\n - m5n.4xlarge\n - m5n.8xlarge\n - m5n.12xlarge\n - m5n.16xlarge\n - m5n.24xlarge\n - m5dn.xlarge\n - m5dn.2xlarge\n - m5dn.4xlarge\n - m5dn.8xlarge\n - m5dn.12xlarge\n - m5dn.16xlarge\n - m5dn.24xlarge\n - m6a.xlarge\n - m6a.2xlarge\n - m6a.4xlarge\n - m6a.8xlarge\n - m6a.12xlarge\n - m6a.16xlarge\n - m6a.24xlarge\n - m6a.32xlarge\n - m6a.48xlarge\n - m6i.xlarge\n - m6i.2xlarge\n - m6i.4xlarge\n - m6i.8xlarge\n - m6i.12xlarge\n - m6i.16xlarge\n - m6i.24xlarge\n - m6i.32xlarge\n - m6id.xlarge\n - m6id.2xlarge\n - m6id.4xlarge\n - m6id.8xlarge\n - m6id.12xlarge\n - m6id.16xlarge\n - m6id.24xlarge\n - m6id.32xlarge\n - m7i.xlarge\n - m7i.2xlarge\n - m7i.4xlarge\n - m7i.8xlarge\n - m7i.12xlarge\n - m7i.16xlarge\n - m7i.24xlarge\n - m7i.48xlarge\n - m7i-flex.xlarge\n - m7i-flex.2xlarge\n - m7i-flex.4xlarge\n - m7i-flex.8xlarge\n - m7i-flex.12xlarge\n - m7i-flex.16xlarge\n - m7a.xlarge\n - m7a.2xlarge\n - m7a.4xlarge\n - m7a.8xlarge\n - m7a.12xlarge\n - m7a.16xlarge\n - m7a.24xlarge\n - m7a.32xlarge\n - m7a.48xlarge\n - m8a.xlarge\n - m8a.2xlarge\n - m8a.4xlarge\n - m8a.8xlarge\n - m8a.12xlarge\n - m8a.16xlarge\n - m8a.24xlarge\n - m8a.48xlarge\n - m8i.xlarge\n - m8i.2xlarge\n - m8i.4xlarge\n - m8i.8xlarge\n - m8i.12xlarge\n - m8i.16xlarge\n - m8i.24xlarge\n - m8i.32xlarge\n - m8i.48xlarge\n - m8i.96xlarge\n - m8i-flex.xlarge\n - m8i-flex.2xlarge\n - m8i-flex.4xlarge\n - m8i-flex.8xlarge\n - m8i-flex.12xlarge\n - m8i-flex.16xlarge\n - r3.xlarge\n - r3.2xlarge\n - r3.4xlarge\n - r3.8xlarge\n - r4.xlarge\n - r4.2xlarge\n - r4.4xlarge\n - r4.8xlarge\n - r4.16xlarge\n - r5.xlarge\n - r5.2xlarge\n - r5.4xlarge\n - r5.8xlarge\n - r5.12xlarge\n - r5.16xlarge\n - r5.24xlarge\n - r5a.xlarge\n - r5a.2xlarge\n - r5a.4xlarge\n - r5a.8xlarge\n - r5a.12xlarge\n - r5a.16xlarge\n - r5a.24xlarge\n - r5ad.xlarge\n - r5ad.2xlarge\n - r5ad.4xlarge\n - r5ad.8xlarge\n - r5ad.12xlarge\n - r5ad.16xlarge\n - r5ad.24xlarge\n - r5b.xlarge\n - r5b.2xlarge\n - r5b.4xlarge\n - r5b.8xlarge\n - r5b.12xlarge\n - r5b.16xlarge\n - r5b.24xlarge\n - r5d.xlarge\n - r5d.2xlarge\n - r5d.4xlarge\n - r5d.8xlarge\n - r5d.12xlarge\n - r5d.16xlarge\n - r5d.24xlarge\n - r5dn.xlarge\n - r5dn.2xlarge\n - r5dn.4xlarge\n - r5dn.8xlarge\n - r5dn.12xlarge\n - r5dn.16xlarge\n - r5dn.24xlarge\n - r5n.xlarge\n - r5n.2xlarge\n - r5n.4xlarge\n - r5n.8xlarge\n - r5n.12xlarge\n - r5n.16xlarge\n - r5n.24xlarge\n - r6a.xlarge\n - r6a.2xlarge\n - r6a.4xlarge\n - r6a.8xlarge\n - r6a.12xlarge\n - r6a.16xlarge\n - r6a.24xlarge\n - r6a.32xlarge\n - r6a.48xlarge\n - r6i.xlarge\n - r6i.2xlarge\n - r6i.4xlarge\n - r6i.8xlarge\n - r6i.12xlarge\n - r6i.16xlarge\n - r6i.24xlarge\n - r6i.32xlarge\n - r6id.xlarge\n - r6id.2xlarge\n - r6id.4xlarge\n - r6id.8xlarge\n - r6id.12xlarge\n - r6id.16xlarge\n - r6id.24xlarge\n - r6id.32xlarge\n - r7i.xlarge\n - r7i.2xlarge\n - r7i.4xlarge\n - r7i.8xlarge\n - r7i.12xlarge\n - r7i.16xlarge\n - r7i.24xlarge\n - r7i.48xlarge\n - r7iz.xlarge\n - r7iz.2xlarge\n - r7iz.4xlarge\n - r7iz.8xlarge\n - r7iz.12xlarge\n - r7iz.16xlarge\n - r7iz.32xlarge\n - r7a.xlarge\n - r7a.2xlarge\n - r7a.4xlarge\n - r7a.8xlarge\n - r7a.12xlarge\n - r7a.16xlarge\n - r7a.24xlarge\n - r7a.32xlarge\n - r7a.48xlarge\n - r8a.xlarge\n - r8a.2xlarge\n - r8a.4xlarge\n - r8a.8xlarge\n - r8a.12xlarge\n - r8a.16xlarge\n - r8a.24xlarge\n - r8a.48xlarge\n - r8i.xlarge\n - r8i.2xlarge\n - r8i.4xlarge\n - r8i.8xlarge\n - r8i.12xlarge\n - r8i.16xlarge\n - r8i.24xlarge\n - r8i.32xlarge\n - r8i.48xlarge\n - r8i.96xlarge\n - r8i-flex.xlarge\n - r8i-flex.2xlarge\n - r8i-flex.4xlarge\n - r8i-flex.8xlarge\n - r8i-flex.12xlarge\n - r8i-flex.16xlarge\n - x1.16xlarge\n - x1.32xlarge\n - x1e.xlarge\n - x1e.2xlarge\n - x1e.4xlarge\n - x1e.8xlarge\n - x1e.16xlarge\n - x1e.32xlarge\n - x2idn.16xlarge\n - x2idn.24xlarge\n - x2idn.32xlarge\n - x2iedn.xlarge\n - x2iedn.2xlarge\n - x2iedn.4xlarge\n - x2iedn.8xlarge\n - x2iedn.16xlarge\n - x2iedn.24xlarge\n - x2iedn.32xlarge\n - x2iezn.2xlarge\n - x2iezn.4xlarge\n - x2iezn.6xlarge\n - x2iezn.8xlarge\n - x2iezn.12xlarge\n - d2.xlarge\n - d2.2xlarge\n - d2.4xlarge\n - d2.8xlarge\n - d3.xlarge\n - d3.2xlarge\n - d3.4xlarge\n - d3.8xlarge\n - d3en.xlarge\n - d3en.2xlarge\n - d3en.4xlarge\n - d3en.6xlarge\n - d3en.8xlarge\n - d3en.12xlarge\n - dl1.24xlarge\n - h1.2xlarge\n - h1.4xlarge\n - h1.8xlarge\n - h1.16xlarge\n - inf1.xlarge\n - inf1.2xlarge\n - inf1.6xlarge\n - inf1.24xlarge\n - trn1.2xlarge\n - trn1.32xlarge\n - u-3tb1.56xlarge\n - u-6tb1.56xlarge\n - u-6tb1.112xlarge\n - u-9tb1.112xlarge\n - u-12tb1.112xlarge\n - u-18tb1.112xlarge\n - vt1.3xlarge\n - vt1.6xlarge\n - vt1.24xlarge\n - z1d.xlarge\n - z1d.2xlarge\n - z1d.3xlarge\n - z1d.6xlarge\n - z1d.12xlarge\n - -------------- Bring-Your-Own-License Only --------------\n - c3.large\n - c4.large\n - c5.metal\n - c5.large\n - c5a.large\n - c5ad.large\n - c5d.metal\n - c5d.large\n - c5n.large\n - c5n.metal\n - c6a.large\n - c6a.metal\n - c6i.large\n - c6i.metal\n - c6id.large\n - c6id.metal\n - c7i.large\n - c7i.metal-24xl\n - c7i.metal-48xl\n - c7i-flex.large\n - c7a.medium\n - c7a.large\n - c7a.metal-48xl\n - c8i.large\n - c8i.metal-48xl\n - c8i.metal-96xl\n - c8i-flex.large\n - i3.large\n - i3.metal\n - i3en.large\n - i3en.metal\n - i4i.large\n - i4i.metal\n - i7ie.large\n - i7ie.metal-24xl\n - i7ie.metal-48xl\n - m3.large\n - m3.medium\n - m4.large\n - m5.metal\n - m5.large\n - m5a.large\n - m5ad.large\n - m5d.metal\n - m5d.large\n - m5zn.large\n - m5zn.metal\n - m5n.large\n - m5n.metal\n - m5dn.large\n - m5dn.metal\n - m6a.large\n - m6a.metal\n - m6i.large\n - m6i.metal\n - m6id.large\n - m6id.metal\n - m7i.large\n - m7i.metal-24xl\n - m7i.metal-48xl\n - m7i-flex.large\n - m7a.medium\n - m7a.large\n - m7a.metal-48xl\n - m8a.medium\n - m8a.large\n - m8a.metal-24xl\n - m8a.metal-48xl\n - m8i.large\n - m8i.metal-48xl\n - m8i.metal-96xl\n - m8i-flex.large\n - r3.large\n - r4.large\n - r5.metal\n - r5.large\n - r5a.large\n - r5d.metal\n - r5ad.large\n - r5d.large\n - r5dn.large\n - r5dn.metal\n - r5b.large\n - r5b.metal\n - r5n.large\n - r5n.metal\n - r6a.large\n - r6a.metal\n - r6i.large\n - r6i.metal\n - r6id.large\n - r6id.metal\n - r7i.large\n - r7i.metal-24xl\n - r7i.metal-48xl\n - r7iz.large\n - r7iz.metal-16xl\n - r7iz.metal-32xl\n - r7a.medium\n - r7a.large\n - r7a.metal-48xl\n - r8a.medium\n - r8a.large\n - r8a.metal-24xl\n - r8a.metal-48xl\n - r8i.large\n - r8i.metal-48xl\n - r8i.metal-96xl\n - r8i-flex.large\n - t2.2xlarge\n - t2.large\n - t2.medium\n - t2.micro\n - t2.nano\n - t2.small\n - t2.xlarge\n - t3.2xlarge\n - t3.large\n - t3.medium\n - t3.micro\n - t3.nano\n - t3.small\n - t3.xlarge\n - t3a.2xlarge\n - t3a.large\n - t3a.medium\n - t3a.micro\n - t3a.nano\n - t3a.small\n - t3a.xlarge\n - x2idn.metal\n - x2iedn.metal\n - x2iezn.metal\n - z1d.metal\n - z1d.large\n SpotPrice:\n Description: Spot price for instances in USD/Hour - Optional/advanced\n Type: Number\n MinValue: '0'\n MaxValue: '2'\n Default: '0'\n KeyName:\n Description: Name of an existing EC2 KeyPair to enable SSH access to the instance\n Type: String\n NumberOfZones:\n Description: Total number of Availability Zones, which can be 1 or 3. Load balancer type depends on the number of zones selected. Select 3 zones for Application Load Balancer (OR) Select 1 zone for Classic Load Balancer.\n Type: Number\n AllowedValues:\n - 1\n - 3\n Default: 3\n NodesPerZone:\n Description: Total number of nodes per Zone. Set to 0 to shutdown/hibernate\n Type: Number\n MinValue: '0'\n MaxValue: '20'\n Default: '1'\n AZ:\n Description: The Availability Zones for VPC subnets. Accept either 1 zone or 3 zones. In the order of Subnet 1, Subnet 2 and Subnet 3 (if applicable).\n Type: 'List<AWS::EC2::AvailabilityZone::Name>'\n LogSNS:\n Description: SNS Topic for logging - optional/advanced.\n Type: String\n Default: none\n PublicLoadBalancer:\n Description: Enable Public Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n InternalLoadBalancer:\n Description: Enable Internal Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n # network configuration\n VPC:\n Description: ID of an existing Virtual Private Cloud (VPC)\n Type: 'AWS::EC2::VPC::Id'\n PublicSubnet1:\n Description: The public subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet2:\n Description: The public subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet3:\n Description: The public subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet1:\n Description: The private subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet2:\n Description: The private subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet3:\n Description: The private subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n ExternalAccessCidrIP:\n Description: A CIDR IP range to allow external access from\n Type: String\n Default: 54.76.254.148/32\n ECSSecurityGroup:\n Description: the security group the ECS cluster is in\n Type: 'AWS::EC2::SecurityGroup::Id'\n\n # marklogic configuration\n AdminUser:\n Description: The MarkLogic administrator username\n Type: String\n AdminPass:\n Description: The MarkLogic administrator password\n Type: String\n NoEcho: 'true'\n AllowedPattern: >-\n ^(?!.*[*]).*$\n ConstraintDescription: Admin password must contain any characters except asterisk (*).\n Licensee:\n Description: The MarkLogic Licensee or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\n LicenseKey:\n Description: The MarkLogic License Key or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\nConditions:\n UseLogSNS: !Not [!Equals [!Ref LogSNS, \"none\"]]\n UseSpot: !Not\n - !Equals\n - !Ref SpotPrice\n - 0\n #MultiZone (3 zones) and SingleZone conditions used for the conditional resource creation based on number of zones selected.\n MultiZone:\n !Not [!Equals [!Ref NumberOfZones, 1]]\n CreatePublicAlb: !And [!Condition MultiZone, !Equals [!Ref PublicLoadBalancer, 'true']]\n CreateInternalAlb: !And [!Condition MultiZone, !Equals [!Ref InternalLoadBalancer, 'true']]\n SingleZone: !Equals [!Ref NumberOfZones, 1]\n PAYG:\n !Or [ !And [!Equals [!Ref LicenseKey, ''], !Equals [!Ref Licensee, '']], !And [!Equals [!Ref LicenseKey, 'none'], !Equals [!Ref Licensee, 'none']] ]\n UseVolumeEncryption: !Equals [!Ref VolumeEncryption, 'enable']\n HasCustomEBSKey: !Not [!Equals [!Ref VolumeEncryptionKey, '']]\n GP3: !Equals [!Ref VolumeType, 'gp3']\nMappings:\n Variable:\n LambdaPackageBucket:\n base: 'ml-db-lambda-'\n TemplateUrl:\n base: 'https://s3.amazonaws.com/marklogic-db-template-releases'\n S3Directory:\n base: '12.0.1'\n LicenseRegion2AMI:\n us-east-1:\n PAYGAl2023: ami-0198b8931e9597271\n BYOLAl2023: ami-0a8536507241f95b0\n us-east-2:\n PAYGAl2023: ami-0877b64dae8264415\n BYOLAl2023: ami-082cc98b2c01e486a\n us-west-1:\n PAYGAl2023: ami-07890fc78f4ddfa20\n BYOLAl2023: ami-05c9a962410c2821b\n us-west-2:\n PAYGAl2023: ami-0577eb149c9e0f53f\n BYOLAl2023: ami-0262dd8d014bf71ba\n eu-central-1:\n PAYGAl2023: ami-06348556399c8ab69\n BYOLAl2023: ami-00cb5a3527e7c0d11\n eu-west-1:\n PAYGAl2023: ami-0fa7bc44cd9ab1f85\n BYOLAl2023: ami-0bc2b4d46367806b0\n ap-south-1:\n PAYGAl2023: ami-0f481ba0a6819ced6\n BYOLAl2023: ami-00b59374107e5efb6\n ap-southeast-1:\n PAYGAl2023: ami-0c373c6c8a2316c80\n BYOLAl2023: ami-0b9bd265ef165a07b\n ap-southeast-2:\n PAYGAl2023: ami-0c65a907408226a3e\n BYOLAl2023: ami-02bad1ef2c6d4a91a\n ap-northeast-1:\n PAYGAl2023: ami-0254bc4adaf13e3b9\n BYOLAl2023: ami-07e8b312b1016bf67\n ap-northeast-2:\n PAYGAl2023: ami-05995b5f5807873d7\n BYOLAl2023: ami-0afd77ba0d7a0c129\n sa-east-1:\n PAYGAl2023: ami-05ec8fee12de236a5\n BYOLAl2023: ami-09d883ea308449555\n eu-west-2:\n PAYGAl2023: ami-0f5cff9d243f31521\n BYOLAl2023: ami-0588d104a52fbc326\n ca-central-1:\n PAYGAl2023: ami-0f34d118b23b51bf5\n BYOLAl2023: ami-0c78eccd03e957005\n eu-west-3:\n PAYGAl2023: ami-01fa9155eb17992c5\n BYOLAl2023: ami-0637199acc5327534\nResources:\n ManagedEniStack:\n Type: AWS::CloudFormation::Stack\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n NodesPerZone: !Ref NodesPerZone\n NumberOfZones: !Ref NumberOfZones\n Subnets: !If [MultiZone, !Join [',', [!Ref PrivateSubnet1, !Ref PrivateSubnet2, !Ref PrivateSubnet3]], !Ref PrivateSubnet1]\n ParentStackName: !Ref 'AWS::StackName'\n ParentStackId: !Ref 'AWS::StackId'\n SecurityGroup: !Ref InstanceSecurityGroup\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-managedeni.template']]\n TimeoutInMinutes: 5\n NodeMgrLambdaStack:\n Type: AWS::CloudFormation::Stack\n DependsOn: ManagedEniStack\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-nodemanager.template']]\n TimeoutInMinutes: 5\n MarklogicVolume1:\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [0, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupA-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c81032f7-b0ec-47ca-a236-e24d57b49ae3\n MarklogicVolume2:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [1, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupB-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: ddb55ae1-a00b-42ed-addd-5e03e4a2764b\n MarklogicVolume3:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [2, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupC-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 9094a65e-9d01-4c4c-9586-c33720e2cc9c\n MarkLogicDDBTable:\n Type: 'AWS::DynamoDB::Table'\n Properties:\n AttributeDefinitions:\n - AttributeName: node\n AttributeType: S\n KeySchema:\n - KeyType: HASH\n AttributeName: node\n ProvisionedThroughput:\n WriteCapacityUnits: '10'\n ReadCapacityUnits: '10'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e7190602-c2de-47ab-81e7-1315f8c01e2d\n #AutoScalingGroup used for SingleZone deployments that is connected to Classic Load Balancer.\n MarkLogicServerGroup:\n Condition: SingleZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup1:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup2:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet2\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp2\n Version: !GetAtt LaunchTemp2.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 87d75478-787a-41d5-bb21-9de6fe4b662e\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup3:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet3\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp3\n Version: !GetAtt LaunchTemp3.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: bbd8314a-6e59-4102-9ed5-232739dd0dfa\n InstanceSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable access to MarkLogic instances from Load Balancers and other cluster members\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n InstanceSecurityGroupIngress:\n Type: 'AWS::EC2::SecurityGroupIngress'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n IpProtocol: tcp\n FromPort: '0'\n ToPort: '65355'\n GroupId: !Ref InstanceSecurityGroup\n SourceSecurityGroupId: !Ref InstanceSecurityGroup\n InternalElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Allow access from ECS clsuter to internal ALB for marklogic cluster.\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n ElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable SSH access and HTTP access on the inbound port\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '22'\n ToPort: '22'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n CidrIp: !Ref ExternalAccessCidrIP\n LaunchTemp1:\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume1\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeA#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=1\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 2efb8cfb-df53-401d-8ff2-34af0dd25993\n LaunchTemp2:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume2\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeB#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c8296a50-a29e-4646-aa74-8f1b735a9a3f\n LaunchTemp3:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume3\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeC#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 7fa68c90-39bc-4874-ad20-8cd8c974ed52\n #Application Load Balancer description for MultiZone deployments (3 zones).\n Alb:\n Condition: CreatePublicAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - ElbSecurityGroup\n Properties: \n SecurityGroups: \n - !Ref ElbSecurityGroup\n Subnets:\n - !Ref PublicSubnet1\n - !If [MultiZone, !Ref PublicSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PublicSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 9 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n AlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicExternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n #Descriptions of the 9 Listeners for MultiZone deployments (3 zones). Each Listener connects Application Load Balancer to a TargetGroup with a particular port.\n AlbListener1:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8000\n Protocol: HTTP\n AlbListener2:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8001\n Protocol: HTTP\n AlbListener3:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8002\n Protocol: HTTP\n AlbListener4:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8003\n Protocol: HTTP\n AlbListener5:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8004\n Protocol: HTTP\n AlbListener6:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8005\n Protocol: HTTP\n AlbListener7:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8006\n Protocol: HTTP\n AlbListener8:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8007\n Protocol: HTTP\n AlbListener9:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8008\n Protocol: HTTP\n MarklogicExternal8011Listener:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - MarklogicExternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicExternal8011\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8011\n Protocol: HTTP\n #Application Load Balancer description for MultiZone deployments (3 zones).\n InternalAlb:\n Condition: CreateInternalAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - InternalElbSecurityGroup\n Properties: \n Scheme: internal\n SecurityGroups: \n - !Ref InternalElbSecurityGroup\n Subnets:\n - !Ref PrivateSubnet1\n - !If [MultiZone, !Ref PrivateSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PrivateSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 1 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n MarklogicInternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicInternal8011Listener:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - MarklogicInternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicInternal8011\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8011\n Protocol: HTTP\n InternalAlbListener1:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8000\n Protocol: HTTP\n InternalAlbListener2:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8001\n Protocol: HTTP\n InternalAlbListener3:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8002\n Protocol: HTTP\n InternalAlbListener4:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8003\n Protocol: HTTP\n InternalAlbListener5:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8004\n Protocol: HTTP\n InternalAlbListener6:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8005\n Protocol: HTTP\n InternalAlbListener7:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8006\n Protocol: HTTP\n InternalAlbListener8:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8007\n Protocol: HTTP\n InternalAlbListener9:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8008\n Protocol: HTTP\nOutputs:\n URL:\n Description: The URL of the MarkLogic Cluster\n Value: !Join\n - ''\n - - 'http://'\n - !If [CreatePublicAlb, !GetAtt [Alb, DNSName], !If [CreateInternalAlb, !GetAtt [InternalAlb, DNSName], !GetAtt [ManagedEniStack, Outputs.ENI]]]\n - ':8001'",
"newContent": "AWSTemplateFormatVersion: 2010-09-09\nDescription: Deploy a MarkLogic Cluster on AWS in existing VPC (Virtual Private Cloud).\nMetadata:\n version: 12.0.1\n binary: MarkLogic-12.0.1-rhel.x86_64.rpm\n AWS::CloudFormation::Interface:\n ParameterGroups:\n - Label:\n default: \"Resource Configuration\"\n Parameters:\n - IAMRole\n - VolumeSize\n - VolumeType\n - VolumeIOPS\n - VolumeThroughput\n - VolumeEncryption\n - VolumeEncryptionKey\n - InstanceType\n - SpotPrice\n - KeyName\n - NumberOfZones\n - NodesPerZone\n - AZ\n - LogSNS\n - Label:\n default: \"Network Configuration\"\n Parameters:\n - VPC\n - PublicSubnet1\n - PublicSubnet2\n - PublicSubnet3\n - PrivateSubnet1\n - PrivateSubnet2\n - PrivateSubnet3\n - PublicLoadBalancer\n - InternalLoadBalancer\n - ExternalAccessCidrIP\n - ECSSecurityGroup\n - Label:\n default: \"MarkLogic Configuration\"\n Parameters:\n - AdminUser\n - AdminPass\n - Licensee\n - LicenseKey\n ParameterLabels:\n AdminUser:\n default: Admin User\n AdminPass:\n default: Admin password\n Licensee:\n default: Licensee\n LicenseKey:\n default: License Key\n IAMRole:\n default: IAM Role\n LogSNS:\n default: Logging SNS ARN\n VolumeSize:\n default: Volume Size\n VolumeType:\n default: Volume Type\n VolumeIOPS:\n default: Volume Iops\n VolumeThroughput:\n default: Volume Throughput\n VolumeEncryption:\n default: Volume Encryption\n VolumeEncryptionKey:\n default: Volume Encryption Key ARN\n InstanceType:\n default: Instance Type\n SpotPrice:\n default: Spot Price\n KeyName:\n default: SSH Key Name\n NumberOfZones:\n default: Number of Zones\n NodesPerZone:\n default: Nodes per Zone\n AZ:\n default: Availability Zone\n VPC:\n default: VPC\n PublicSubnet1:\n default: Public Subnet 1\n PublicSubnet2:\n default: Public Subnet 2\n PublicSubnet3:\n default: Public Subnet 3\n PrivateSubnet1:\n default: Private Subnet 1\n PrivateSubnet2:\n default: Private Subnet 2\n PrivateSubnet3:\n default: Private Subnet 3\n PublicLoadBalancer:\n default: Public Load Balancer\n InternalLoadBalancer:\n default: Internal Load Balancer\n ExternalAccessCidrIP:\n default: External IP address range for access to admin site\n ECSSecurityGroup:\n default: the security group the ecs cluster is in\nParameters:\n # resource configuration\n IAMRole:\n Description: IAM Role\n Type: String\n VolumeSize:\n Description: The EBS Data volume size (GB) for all nodes\n Type: Number\n MinValue: '10'\n MaxValue: '1000'\n Default: '50'\n VolumeType:\n Description: The EBS Data volume Type\n Type: String\n AllowedValues:\n - standard\n - gp2\n - gp3\n Default: gp3\n VolumeIOPS:\n Description: The number of I/O operations per second for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '3000'\n MaxValue: '16000'\n Default: '3000'\n VolumeThroughput:\n Description: The throughput to provision for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '125'\n MaxValue: '1000'\n Default: '125'\n VolumeEncryption:\n Description: Whether to enable volume encryption\n Type: String\n AllowedValues:\n - enable\n - disable\n Default: enable\n VolumeEncryptionKey:\n Description: The key ID of AWS KMS key to encrypt volumes - Optional\n Type: String\n Default: \"\"\n InstanceType:\n Description: Type of EC2 instance to launch\n Type: String\n Default: r5.4xlarge\n AllowedValues:\n - ---- Pay-As-You-Go and Bring-Your-Own-License ----\n - c3.xlarge\n - c3.2xlarge\n - c3.4xlarge\n - c3.8xlarge\n - c4.xlarge\n - c4.2xlarge\n - c4.4xlarge\n - c4.8xlarge\n - c5.xlarge\n - c5.2xlarge\n - c5.4xlarge\n - c5.9xlarge\n - c5.12xlarge\n - c5.18xlarge\n - c5.24xlarge\n - c5a.xlarge\n - c5a.2xlarge\n - c5a.4xlarge\n - c5a.8xlarge\n - c5a.12xlarge\n - c5a.16xlarge\n - c5a.24xlarge\n - c5ad.xlarge\n - c5ad.2xlarge\n - c5ad.4xlarge\n - c5ad.8xlarge\n - c5ad.12xlarge\n - c5ad.16xlarge\n - c5ad.24xlarge\n - c5d.xlarge\n - c5d.2xlarge\n - c5d.4xlarge\n - c5d.9xlarge\n - c5d.12xlarge\n - c5d.18xlarge\n - c5d.24xlarge\n - c5n.xlarge\n - c5n.2xlarge\n - c5n.4xlarge\n - c5n.9xlarge\n - c5n.18xlarge\n - c6a.xlarge\n - c6a.2xlarge\n - c6a.4xlarge\n - c6a.8xlarge\n - c6a.12xlarge\n - c6a.16xlarge\n - c6a.24xlarge\n - c6a.32xlarge\n - c6a.48xlarge\n - c6i.xlarge\n - c6i.2xlarge\n - c6i.4xlarge\n - c6i.8xlarge\n - c6i.12xlarge\n - c6i.16xlarge\n - c6i.24xlarge\n - c6i.32xlarge\n - c6id.xlarge\n - c6id.2xlarge\n - c6id.4xlarge\n - c6id.8xlarge\n - c6id.12xlarge\n - c6id.16xlarge\n - c6id.24xlarge\n - c6id.32xlarge\n - c7i.xlarge\n - c7i.2xlarge\n - c7i.4xlarge\n - c7i.8xlarge\n - c7i.12xlarge\n - c7i.16xlarge\n - c7i.24xlarge\n - c7i.48xlarge\n - c7i-flex.xlarge\n - c7i-flex.2xlarge\n - c7i-flex.4xlarge\n - c7i-flex.8xlarge\n - c7i-flex.12xlarge\n - c7i-flex.16xlarge\n - c7a.xlarge\n - c7a.2xlarge\n - c7a.4xlarge\n - c7a.8xlarge\n - c7a.12xlarge\n - c7a.16xlarge\n - c7a.24xlarge\n - c7a.32xlarge\n - c7a.48xlarge\n - c8i.xlarge\n - c8i.2xlarge\n - c8i.4xlarge\n - c8i.8xlarge\n - c8i.12xlarge\n - c8i.16xlarge\n - c8i.24xlarge\n - c8i.32xlarge\n - c8i.48xlarge\n - c8i.96xlarge\n - c8i-flex.xlarge\n - c8i-flex.2xlarge\n - c8i-flex.4xlarge\n - c8i-flex.8xlarge\n - c8i-flex.12xlarge\n - c8i-flex.16xlarge\n - i2.2xlarge\n - i2.4xlarge\n - i2.8xlarge\n - i2.xlarge\n - i3.xlarge\n - i3.2xlarge\n - i3.4xlarge\n - i3.8xlarge\n - i3.16xlarge\n - i3en.xlarge\n - i3en.2xlarge\n - i3en.3xlarge\n - i3en.6xlarge\n - i3en.12xlarge\n - i3en.24xlarge\n - i4i.xlarge\n - i4i.2xlarge\n - i4i.4xlarge\n - i4i.8xlarge\n - i4i.12xlarge\n - i4i.16xlarge\n - i4i.24xlarge\n - i4i.32xlarge\n - i7ie.xlarge\n - i7ie.2xlarge\n - i7ie.3xlarge\n - i7ie.6xlarge\n - i7ie.12xlarge\n - i7ie.18xlarge\n - i7ie.24xlarge\n - i7ie.48xlarge\n - m3.xlarge\n - m3.2xlarge\n - m4.xlarge\n - m4.2xlarge\n - m4.4xlarge\n - m4.10xlarge\n - m4.16xlarge\n - m5.xlarge\n - m5.2xlarge\n - m5.4xlarge\n - m5.8xlarge\n - m5.12xlarge\n - m5.16xlarge\n - m5.24xlarge\n - m5a.xlarge\n - m5a.2xlarge\n - m5a.4xlarge\n - m5a.8xlarge\n - m5a.12xlarge\n - m5a.16xlarge\n - m5a.24xlarge\n - m5d.xlarge\n - m5d.2xlarge\n - m5d.4xlarge\n - m5d.8xlarge\n - m5d.16xlarge\n - m5d.12xlarge\n - m5d.24xlarge\n - m5ad.xlarge\n - m5ad.2xlarge\n - m5ad.4xlarge\n - m5ad.8xlarge\n - m5ad.12xlarge\n - m5ad.16xlarge\n - m5ad.24xlarge\n - m5zn.xlarge\n - m5zn.2xlarge\n - m5zn.3xlarge\n - m5zn.6xlarge\n - m5zn.12xlarge\n - m5n.xlarge\n - m5n.2xlarge\n - m5n.4xlarge\n - m5n.8xlarge\n - m5n.12xlarge\n - m5n.16xlarge\n - m5n.24xlarge\n - m5dn.xlarge\n - m5dn.2xlarge\n - m5dn.4xlarge\n - m5dn.8xlarge\n - m5dn.12xlarge\n - m5dn.16xlarge\n - m5dn.24xlarge\n - m6a.xlarge\n - m6a.2xlarge\n - m6a.4xlarge\n - m6a.8xlarge\n - m6a.12xlarge\n - m6a.16xlarge\n - m6a.24xlarge\n - m6a.32xlarge\n - m6a.48xlarge\n - m6i.xlarge\n - m6i.2xlarge\n - m6i.4xlarge\n - m6i.8xlarge\n - m6i.12xlarge\n - m6i.16xlarge\n - m6i.24xlarge\n - m6i.32xlarge\n - m6id.xlarge\n - m6id.2xlarge\n - m6id.4xlarge\n - m6id.8xlarge\n - m6id.12xlarge\n - m6id.16xlarge\n - m6id.24xlarge\n - m6id.32xlarge\n - m7i.xlarge\n - m7i.2xlarge\n - m7i.4xlarge\n - m7i.8xlarge\n - m7i.12xlarge\n - m7i.16xlarge\n - m7i.24xlarge\n - m7i.48xlarge\n - m7i-flex.xlarge\n - m7i-flex.2xlarge\n - m7i-flex.4xlarge\n - m7i-flex.8xlarge\n - m7i-flex.12xlarge\n - m7i-flex.16xlarge\n - m7a.xlarge\n - m7a.2xlarge\n - m7a.4xlarge\n - m7a.8xlarge\n - m7a.12xlarge\n - m7a.16xlarge\n - m7a.24xlarge\n - m7a.32xlarge\n - m7a.48xlarge\n - m8a.xlarge\n - m8a.2xlarge\n - m8a.4xlarge\n - m8a.8xlarge\n - m8a.12xlarge\n - m8a.16xlarge\n - m8a.24xlarge\n - m8a.48xlarge\n - m8i.xlarge\n - m8i.2xlarge\n - m8i.4xlarge\n - m8i.8xlarge\n - m8i.12xlarge\n - m8i.16xlarge\n - m8i.24xlarge\n - m8i.32xlarge\n - m8i.48xlarge\n - m8i.96xlarge\n - m8i-flex.xlarge\n - m8i-flex.2xlarge\n - m8i-flex.4xlarge\n - m8i-flex.8xlarge\n - m8i-flex.12xlarge\n - m8i-flex.16xlarge\n - r3.xlarge\n - r3.2xlarge\n - r3.4xlarge\n - r3.8xlarge\n - r4.xlarge\n - r4.2xlarge\n - r4.4xlarge\n - r4.8xlarge\n - r4.16xlarge\n - r5.xlarge\n - r5.2xlarge\n - r5.4xlarge\n - r5.8xlarge\n - r5.12xlarge\n - r5.16xlarge\n - r5.24xlarge\n - r5a.xlarge\n - r5a.2xlarge\n - r5a.4xlarge\n - r5a.8xlarge\n - r5a.12xlarge\n - r5a.16xlarge\n - r5a.24xlarge\n - r5ad.xlarge\n - r5ad.2xlarge\n - r5ad.4xlarge\n - r5ad.8xlarge\n - r5ad.12xlarge\n - r5ad.16xlarge\n - r5ad.24xlarge\n - r5b.xlarge\n - r5b.2xlarge\n - r5b.4xlarge\n - r5b.8xlarge\n - r5b.12xlarge\n - r5b.16xlarge\n - r5b.24xlarge\n - r5d.xlarge\n - r5d.2xlarge\n - r5d.4xlarge\n - r5d.8xlarge\n - r5d.12xlarge\n - r5d.16xlarge\n - r5d.24xlarge\n - r5dn.xlarge\n - r5dn.2xlarge\n - r5dn.4xlarge\n - r5dn.8xlarge\n - r5dn.12xlarge\n - r5dn.16xlarge\n - r5dn.24xlarge\n - r5n.xlarge\n - r5n.2xlarge\n - r5n.4xlarge\n - r5n.8xlarge\n - r5n.12xlarge\n - r5n.16xlarge\n - r5n.24xlarge\n - r6a.xlarge\n - r6a.2xlarge\n - r6a.4xlarge\n - r6a.8xlarge\n - r6a.12xlarge\n - r6a.16xlarge\n - r6a.24xlarge\n - r6a.32xlarge\n - r6a.48xlarge\n - r6i.xlarge\n - r6i.2xlarge\n - r6i.4xlarge\n - r6i.8xlarge\n - r6i.12xlarge\n - r6i.16xlarge\n - r6i.24xlarge\n - r6i.32xlarge\n - r6id.xlarge\n - r6id.2xlarge\n - r6id.4xlarge\n - r6id.8xlarge\n - r6id.12xlarge\n - r6id.16xlarge\n - r6id.24xlarge\n - r6id.32xlarge\n - r7i.xlarge\n - r7i.2xlarge\n - r7i.4xlarge\n - r7i.8xlarge\n - r7i.12xlarge\n - r7i.16xlarge\n - r7i.24xlarge\n - r7i.48xlarge\n - r7iz.xlarge\n - r7iz.2xlarge\n - r7iz.4xlarge\n - r7iz.8xlarge\n - r7iz.12xlarge\n - r7iz.16xlarge\n - r7iz.32xlarge\n - r7a.xlarge\n - r7a.2xlarge\n - r7a.4xlarge\n - r7a.8xlarge\n - r7a.12xlarge\n - r7a.16xlarge\n - r7a.24xlarge\n - r7a.32xlarge\n - r7a.48xlarge\n - r8a.xlarge\n - r8a.2xlarge\n - r8a.4xlarge\n - r8a.8xlarge\n - r8a.12xlarge\n - r8a.16xlarge\n - r8a.24xlarge\n - r8a.48xlarge\n - r8i.xlarge\n - r8i.2xlarge\n - r8i.4xlarge\n - r8i.8xlarge\n - r8i.12xlarge\n - r8i.16xlarge\n - r8i.24xlarge\n - r8i.32xlarge\n - r8i.48xlarge\n - r8i.96xlarge\n - r8i-flex.xlarge\n - r8i-flex.2xlarge\n - r8i-flex.4xlarge\n - r8i-flex.8xlarge\n - r8i-flex.12xlarge\n - r8i-flex.16xlarge\n - x1.16xlarge\n - x1.32xlarge\n - x1e.xlarge\n - x1e.2xlarge\n - x1e.4xlarge\n - x1e.8xlarge\n - x1e.16xlarge\n - x1e.32xlarge\n - x2idn.16xlarge\n - x2idn.24xlarge\n - x2idn.32xlarge\n - x2iedn.xlarge\n - x2iedn.2xlarge\n - x2iedn.4xlarge\n - x2iedn.8xlarge\n - x2iedn.16xlarge\n - x2iedn.24xlarge\n - x2iedn.32xlarge\n - x2iezn.2xlarge\n - x2iezn.4xlarge\n - x2iezn.6xlarge\n - x2iezn.8xlarge\n - x2iezn.12xlarge\n - d2.xlarge\n - d2.2xlarge\n - d2.4xlarge\n - d2.8xlarge\n - d3.xlarge\n - d3.2xlarge\n - d3.4xlarge\n - d3.8xlarge\n - d3en.xlarge\n - d3en.2xlarge\n - d3en.4xlarge\n - d3en.6xlarge\n - d3en.8xlarge\n - d3en.12xlarge\n - dl1.24xlarge\n - h1.2xlarge\n - h1.4xlarge\n - h1.8xlarge\n - h1.16xlarge\n - inf1.xlarge\n - inf1.2xlarge\n - inf1.6xlarge\n - inf1.24xlarge\n - trn1.2xlarge\n - trn1.32xlarge\n - u-3tb1.56xlarge\n - u-6tb1.56xlarge\n - u-6tb1.112xlarge\n - u-9tb1.112xlarge\n - u-12tb1.112xlarge\n - u-18tb1.112xlarge\n - vt1.3xlarge\n - vt1.6xlarge\n - vt1.24xlarge\n - z1d.xlarge\n - z1d.2xlarge\n - z1d.3xlarge\n - z1d.6xlarge\n - z1d.12xlarge\n - -------------- Bring-Your-Own-License Only --------------\n - c3.large\n - c4.large\n - c5.metal\n - c5.large\n - c5a.large\n - c5ad.large\n - c5d.metal\n - c5d.large\n - c5n.large\n - c5n.metal\n - c6a.large\n - c6a.metal\n - c6i.large\n - c6i.metal\n - c6id.large\n - c6id.metal\n - c7i.large\n - c7i.metal-24xl\n - c7i.metal-48xl\n - c7i-flex.large\n - c7a.medium\n - c7a.large\n - c7a.metal-48xl\n - c8i.large\n - c8i.metal-48xl\n - c8i.metal-96xl\n - c8i-flex.large\n - i3.large\n - i3.metal\n - i3en.large\n - i3en.metal\n - i4i.large\n - i4i.metal\n - i7ie.large\n - i7ie.metal-24xl\n - i7ie.metal-48xl\n - m3.large\n - m3.medium\n - m4.large\n - m5.metal\n - m5.large\n - m5a.large\n - m5ad.large\n - m5d.metal\n - m5d.large\n - m5zn.large\n - m5zn.metal\n - m5n.large\n - m5n.metal\n - m5dn.large\n - m5dn.metal\n - m6a.large\n - m6a.metal\n - m6i.large\n - m6i.metal\n - m6id.large\n - m6id.metal\n - m7i.large\n - m7i.metal-24xl\n - m7i.metal-48xl\n - m7i-flex.large\n - m7a.medium\n - m7a.large\n - m7a.metal-48xl\n - m8a.medium\n - m8a.large\n - m8a.metal-24xl\n - m8a.metal-48xl\n - m8i.large\n - m8i.metal-48xl\n - m8i.metal-96xl\n - m8i-flex.large\n - r3.large\n - r4.large\n - r5.metal\n - r5.large\n - r5a.large\n - r5d.metal\n - r5ad.large\n - r5d.large\n - r5dn.large\n - r5dn.metal\n - r5b.large\n - r5b.metal\n - r5n.large\n - r5n.metal\n - r6a.large\n - r6a.metal\n - r6i.large\n - r6i.metal\n - r6id.large\n - r6id.metal\n - r7i.large\n - r7i.metal-24xl\n - r7i.metal-48xl\n - r7iz.large\n - r7iz.metal-16xl\n - r7iz.metal-32xl\n - r7a.medium\n - r7a.large\n - r7a.metal-48xl\n - r8a.medium\n - r8a.large\n - r8a.metal-24xl\n - r8a.metal-48xl\n - r8i.large\n - r8i.metal-48xl\n - r8i.metal-96xl\n - r8i-flex.large\n - t2.2xlarge\n - t2.large\n - t2.medium\n - t2.micro\n - t2.nano\n - t2.small\n - t2.xlarge\n - t3.2xlarge\n - t3.large\n - t3.medium\n - t3.micro\n - t3.nano\n - t3.small\n - t3.xlarge\n - t3a.2xlarge\n - t3a.large\n - t3a.medium\n - t3a.micro\n - t3a.nano\n - t3a.small\n - t3a.xlarge\n - x2idn.metal\n - x2iedn.metal\n - x2iezn.metal\n - z1d.metal\n - z1d.large\n SpotPrice:\n Description: Spot price for instances in USD/Hour - Optional/advanced\n Type: Number\n MinValue: '0'\n MaxValue: '2'\n Default: '0'\n KeyName:\n Description: Name of an existing EC2 KeyPair to enable SSH access to the instance\n Type: String\n NumberOfZones:\n Description: Total number of Availability Zones, which can be 1 or 3. Load balancer type depends on the number of zones selected. Select 3 zones for Application Load Balancer (OR) Select 1 zone for Classic Load Balancer.\n Type: Number\n AllowedValues:\n - 1\n - 3\n Default: 3\n NodesPerZone:\n Description: Total number of nodes per Zone. Set to 0 to shutdown/hibernate\n Type: Number\n MinValue: '0'\n MaxValue: '20'\n Default: '1'\n AZ:\n Description: The Availability Zones for VPC subnets. Accept either 1 zone or 3 zones. In the order of Subnet 1, Subnet 2 and Subnet 3 (if applicable).\n Type: 'List<AWS::EC2::AvailabilityZone::Name>'\n LogSNS:\n Description: SNS Topic for logging - optional/advanced.\n Type: String\n Default: none\n PublicLoadBalancer:\n Description: Enable Public Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n InternalLoadBalancer:\n Description: Enable Internal Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n # network configuration\n VPC:\n Description: ID of an existing Virtual Private Cloud (VPC)\n Type: 'AWS::EC2::VPC::Id'\n PublicSubnet1:\n Description: The public subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet2:\n Description: The public subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet3:\n Description: The public subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet1:\n Description: The private subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet2:\n Description: The private subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet3:\n Description: The private subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n ExternalAccessCidrIP:\n Description: A CIDR IP range to allow external access from\n Type: String\n Default: 54.76.254.148/32\n ECSSecurityGroup:\n Description: the security group the ECS cluster is in\n Type: 'AWS::EC2::SecurityGroup::Id'\n\n # marklogic configuration\n AdminUser:\n Description: The MarkLogic administrator username\n Type: String\n AdminPass:\n Description: The MarkLogic administrator password\n Type: String\n NoEcho: 'true'\n AllowedPattern: >-\n ^(?!.*[*]).*$\n ConstraintDescription: Admin password must contain any characters except asterisk (*).\n Licensee:\n Description: The MarkLogic Licensee or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\n LicenseKey:\n Description: The MarkLogic License Key or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\nConditions:\n UseLogSNS: !Not [!Equals [!Ref LogSNS, \"none\"]]\n UseSpot: !Not\n - !Equals\n - !Ref SpotPrice\n - 0\n #MultiZone (3 zones) and SingleZone conditions used for the conditional resource creation based on number of zones selected.\n MultiZone:\n !Not [!Equals [!Ref NumberOfZones, 1]]\n CreatePublicAlb: !And [!Condition MultiZone, !Equals [!Ref PublicLoadBalancer, 'true']]\n CreateInternalAlb: !And [!Condition MultiZone, !Equals [!Ref InternalLoadBalancer, 'true']]\n SingleZone: !Equals [!Ref NumberOfZones, 1]\n PAYG:\n !Or [ !And [!Equals [!Ref LicenseKey, ''], !Equals [!Ref Licensee, '']], !And [!Equals [!Ref LicenseKey, 'none'], !Equals [!Ref Licensee, 'none']] ]\n UseVolumeEncryption: !Equals [!Ref VolumeEncryption, 'enable']\n HasCustomEBSKey: !Not [!Equals [!Ref VolumeEncryptionKey, '']]\n GP3: !Equals [!Ref VolumeType, 'gp3']\nMappings:\n Variable:\n LambdaPackageBucket:\n base: 'ml-db-lambda-'\n TemplateUrl:\n base: 'https://s3.amazonaws.com/marklogic-db-template-releases'\n S3Directory:\n base: '12.0.1'\n LicenseRegion2AMI:\n us-east-1:\n PAYGAl2023: ami-0198b8931e9597271\n BYOLAl2023: ami-0a8536507241f95b0\n us-east-2:\n PAYGAl2023: ami-0877b64dae8264415\n BYOLAl2023: ami-082cc98b2c01e486a\n us-west-1:\n PAYGAl2023: ami-07890fc78f4ddfa20\n BYOLAl2023: ami-05c9a962410c2821b\n us-west-2:\n PAYGAl2023: ami-0577eb149c9e0f53f\n BYOLAl2023: ami-0262dd8d014bf71ba\n eu-central-1:\n PAYGAl2023: ami-06348556399c8ab69\n BYOLAl2023: ami-00cb5a3527e7c0d11\n eu-west-1:\n PAYGAl2023: ami-0fa7bc44cd9ab1f85\n BYOLAl2023: ami-0bc2b4d46367806b0\n ap-south-1:\n PAYGAl2023: ami-0f481ba0a6819ced6\n BYOLAl2023: ami-00b59374107e5efb6\n ap-southeast-1:\n PAYGAl2023: ami-0c373c6c8a2316c80\n BYOLAl2023: ami-0b9bd265ef165a07b\n ap-southeast-2:\n PAYGAl2023: ami-0c65a907408226a3e\n BYOLAl2023: ami-02bad1ef2c6d4a91a\n ap-northeast-1:\n PAYGAl2023: ami-0254bc4adaf13e3b9\n BYOLAl2023: ami-07e8b312b1016bf67\n ap-northeast-2:\n PAYGAl2023: ami-05995b5f5807873d7\n BYOLAl2023: ami-0afd77ba0d7a0c129\n sa-east-1:\n PAYGAl2023: ami-05ec8fee12de236a5\n BYOLAl2023: ami-09d883ea308449555\n eu-west-2:\n PAYGAl2023: ami-0f5cff9d243f31521\n BYOLAl2023: ami-0588d104a52fbc326\n ca-central-1:\n PAYGAl2023: ami-0f34d118b23b51bf5\n BYOLAl2023: ami-0c78eccd03e957005\n eu-west-3:\n PAYGAl2023: ami-01fa9155eb17992c5\n BYOLAl2023: ami-0637199acc5327534\nResources:\n ManagedEniStack:\n Type: AWS::CloudFormation::Stack\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n NodesPerZone: !Ref NodesPerZone\n NumberOfZones: !Ref NumberOfZones\n Subnets: !If [MultiZone, !Join [',', [!Ref PrivateSubnet1, !Ref PrivateSubnet2, !Ref PrivateSubnet3]], !Ref PrivateSubnet1]\n ParentStackName: !Ref 'AWS::StackName'\n ParentStackId: !Ref 'AWS::StackId'\n SecurityGroup: !Ref InstanceSecurityGroup\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-managedeni.template']]\n TimeoutInMinutes: 5\n NodeMgrLambdaStack:\n Type: AWS::CloudFormation::Stack\n DependsOn: ManagedEniStack\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-nodemanager.template']]\n TimeoutInMinutes: 5\n MarklogicVolume1:\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [0, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupA-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c81032f7-b0ec-47ca-a236-e24d57b49ae3\n MarklogicVolume2:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [1, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupB-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: ddb55ae1-a00b-42ed-addd-5e03e4a2764b\n MarklogicVolume3:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [2, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupC-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 9094a65e-9d01-4c4c-9586-c33720e2cc9c\n MarkLogicDDBTable:\n Type: 'AWS::DynamoDB::Table'\n Properties:\n AttributeDefinitions:\n - AttributeName: node\n AttributeType: S\n KeySchema:\n - KeyType: HASH\n AttributeName: node\n ProvisionedThroughput:\n WriteCapacityUnits: '10'\n ReadCapacityUnits: '10'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e7190602-c2de-47ab-81e7-1315f8c01e2d\n #AutoScalingGroup used for SingleZone deployments that is connected to Classic Load Balancer.\n MarkLogicServerGroup:\n Condition: SingleZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup1:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup2:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet2\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp2\n Version: !GetAtt LaunchTemp2.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 87d75478-787a-41d5-bb21-9de6fe4b662e\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup3:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet3\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp3\n Version: !GetAtt LaunchTemp3.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: bbd8314a-6e59-4102-9ed5-232739dd0dfa\n InstanceSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable access to MarkLogic instances from Load Balancers and other cluster members\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n InstanceSecurityGroupIngress:\n Type: 'AWS::EC2::SecurityGroupIngress'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n IpProtocol: tcp\n FromPort: '0'\n ToPort: '65355'\n GroupId: !Ref InstanceSecurityGroup\n SourceSecurityGroupId: !Ref InstanceSecurityGroup\n InternalElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Allow access from ECS clsuter to internal ALB for marklogic cluster.\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n ElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable SSH access and HTTP access on the inbound port\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '22'\n ToPort: '22'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n CidrIp: !Ref ExternalAccessCidrIP\n LaunchTemp1:\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume1\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeA#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=1\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 2efb8cfb-df53-401d-8ff2-34af0dd25993\n LaunchTemp2:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume2\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeB#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c8296a50-a29e-4646-aa74-8f1b735a9a3f\n LaunchTemp3:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume3\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeC#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 7fa68c90-39bc-4874-ad20-8cd8c974ed52\n #Application Load Balancer description for MultiZone deployments (3 zones).\n Alb:\n Condition: CreatePublicAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - ElbSecurityGroup\n Properties: \n SecurityGroups: \n - !Ref ElbSecurityGroup\n Subnets:\n - !Ref PublicSubnet1\n - !If [MultiZone, !Ref PublicSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PublicSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 9 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n AlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicExternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n #Descriptions of the 9 Listeners for MultiZone deployments (3 zones). Each Listener connects Application Load Balancer to a TargetGroup with a particular port.\n AlbListener1:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8000\n Protocol: HTTP\n AlbListener2:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8001\n Protocol: HTTP\n AlbListener3:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8002\n Protocol: HTTP\n AlbListener4:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8003\n Protocol: HTTP\n AlbListener5:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8004\n Protocol: HTTP\n AlbListener6:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8005\n Protocol: HTTP\n AlbListener7:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8006\n Protocol: HTTP\n AlbListener8:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8007\n Protocol: HTTP\n AlbListener9:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8008\n Protocol: HTTP\n MarklogicExternal8011Listener:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - MarklogicExternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicExternal8011\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8011\n Protocol: HTTP\n #Application Load Balancer description for MultiZone deployments (3 zones).\n InternalAlb:\n Condition: CreateInternalAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - InternalElbSecurityGroup\n Properties: \n Scheme: internal\n SecurityGroups: \n - !Ref InternalElbSecurityGroup\n Subnets:\n - !Ref PrivateSubnet1\n - !If [MultiZone, !Ref PrivateSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PrivateSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 1 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n MarklogicInternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicInternal8011Listener:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - MarklogicInternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicInternal8011\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8011\n Protocol: HTTP\n InternalAlbListener1:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8000\n Protocol: HTTP\n InternalAlbListener2:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8001\n Protocol: HTTP\n InternalAlbListener3:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8002\n Protocol: HTTP\n InternalAlbListener4:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8003\n Protocol: HTTP\n InternalAlbListener5:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8004\n Protocol: HTTP\n InternalAlbListener6:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8005\n Protocol: HTTP\n InternalAlbListener7:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8006\n Protocol: HTTP\n InternalAlbListener8:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8007\n Protocol: HTTP\n InternalAlbListener9:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8008\n Protocol: HTTP\nOutputs:\n URL:\n Description: The URL of the MarkLogic Cluster\n Value: !Join\n - ''\n - - 'http://'\n - !If [CreatePublicAlb, !GetAtt [Alb, DNSName], !If [CreateInternalAlb, !GetAtt [InternalAlb, DNSName], !GetAtt [ManagedEniStack, Outputs.ENI]]]\n - ':8001'",
"diffStat": {
"model_added_lines": 6,
"model_removed_lines": 6,
"model_added_chars": 255,
"model_removed_chars": 207,
"user_added_lines": 0,
"user_removed_lines": 2317,
"user_added_chars": 0,
"user_removed_chars": 64951
},
"isNewFile": false
},
"displayName": "Edit",
"description": "Replaces text within a file. By default, replaces a single occurrence, but can replace multiple occurrences when `expected_replacements` is specified. This tool requires providing significant context around the change to ensure precise targeting. Always use the read_file tool to examine the file's current content before attempting a text replacement.\n \n The user has the ability to modify the `new_string` content. If modified, this will be stated in the response.\n \n Expectation for required parameters:\n 1. `old_string` MUST be the exact literal text to replace (including all whitespace, indentation, newlines, and surrounding code etc.).\n 2. `new_string` MUST be the exact literal text to replace `old_string` with (also including all whitespace, indentation, newlines, and surrounding code etc.). Ensure the resulting code is correct and idiomatic and that `old_string` and `new_string` are different.\n 3. `instruction` is the detailed instruction of what needs to be changed. It is important to Make it specific and detailed so developers or large language models can understand what needs to be changed and perform the changes on their own if necessary. \n 4. NEVER escape `old_string` or `new_string`, that would break the exact literal text requirement.\n **Important:** If ANY of the above are not satisfied, the tool will fail. CRITICAL for `old_string`: Must uniquely identify the single instance to change. Include at least 3 lines of context BEFORE and AFTER the target text, matching whitespace and indentation precisely. If this string matches multiple locations, or does not match exactly, the tool will fail.\n 5. Prefer to break down complex and long changes into multiple smaller atomic calls to this tool. Always check the content of the file after changes or not finding a string to match.\n **Multiple replacements:** Set `expected_replacements` to the number of occurrences you want to replace. The tool will replace ALL occurrences that match `old_string` exactly. Ensure the number of replacements matches your expectation.",
"renderOutputAsMarkdown": true
}
]
},
{
"id": "df45a369-89a6-4342-9800-cf39e7cf1c8f",
"timestamp": "2026-01-30T11:33:46.165Z",
"type": "gemini",
"content": "I will update `InternalAlbListener7`, `InternalAlbListener8`, and `InternalAlbListener9` in `mlcluster.template` to depend on and reference `InternalAlbTargetGroup7`, `InternalAlbTargetGroup8`, and `InternalAlbTargetGroup9` respectively, completing the update for all internal listeners.",
"thoughts": [
{
"subject": "Reflecting on Listeners",
"description": "I'm now focusing on the Elastic Load Balancing V2 Listeners. Specifically, I am dealing with listeners 7, 8, and 9. It seems each listener has a condition, a type, and dependencies on the internal ALB and a target group.",
"timestamp": "2026-01-30T11:33:38.266Z"
},
{
"subject": "Revising Target Groups",
"description": "I've been going through the listener configurations again, specifically numbers 7, 8, and 9. I'm swapping out `AlbTargetGroup` with `InternalAlbTargetGroup` to reflect the internal nature of the load balancer and target group setup. This seems like a crucial clarification for accuracy.",
"timestamp": "2026-01-30T11:33:41.028Z"
}
],
"tokens": {
"input": 63230,
"output": 733,
"cached": 61768,
"thoughts": 329,
"tool": 0,
"total": 64292
},
"model": "gemini-3-pro-preview",
"toolCalls": [
{
"id": "replace-1769772826158-bc634d9ea912b8",
"name": "replace",
"args": {
"old_string": " InternalAlbListener7:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8006\n Protocol: HTTP\n InternalAlbListener8:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8007\n Protocol: HTTP\n InternalAlbListener9:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8008\n Protocol: HTTP",
"instruction": "Update InternalAlbListener7, InternalAlbListener8, and InternalAlbListener9 to use InternalAlbTargetGroup7, InternalAlbTargetGroup8, and InternalAlbTargetGroup9 respectively.",
"file_path": "/Users/bob/git/dxw/marklogic-cf-templates/mlcluster.template",
"new_string": " InternalAlbListener7:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8006\n Protocol: HTTP\n InternalAlbListener8:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8007\n Protocol: HTTP\n InternalAlbListener9:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8008\n Protocol: HTTP"
},
"result": [
{
"functionResponse": {
"id": "replace-1769772826158-bc634d9ea912b8",
"name": "replace",
"response": {
"output": "Successfully modified file: /Users/bob/git/dxw/marklogic-cf-templates/mlcluster.template (1 replacements)."
}
}
}
],
"status": "success",
"timestamp": "2026-01-30T11:34:18.866Z",
"resultDisplay": {
"fileDiff": "Index: mlcluster.template\n===================================================================\n--- mlcluster.template\tCurrent\n+++ mlcluster.template\tProposed\n@@ -2312,10 +2312,10 @@\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n- - AlbTargetGroup7\n+ - InternalAlbTargetGroup7\n Properties:\n DefaultActions:\n- - TargetGroupArn: !Ref AlbTargetGroup7\n+ - TargetGroupArn: !Ref InternalAlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8006\n@@ -2325,10 +2325,10 @@\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n- - AlbTargetGroup8\n+ - InternalAlbTargetGroup8\n Properties:\n DefaultActions:\n- - TargetGroupArn: !Ref AlbTargetGroup8\n+ - TargetGroupArn: !Ref InternalAlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8007\n@@ -2338,10 +2338,10 @@\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n- - AlbTargetGroup9\n+ - InternalAlbTargetGroup9\n Properties:\n DefaultActions:\n- - TargetGroupArn: !Ref AlbTargetGroup9\n+ - TargetGroupArn: !Ref InternalAlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8008\n",
"fileName": "mlcluster.template",
"filePath": "/Users/bob/git/dxw/marklogic-cf-templates/mlcluster.template",
"originalContent": "AWSTemplateFormatVersion: 2010-09-09\nDescription: Deploy a MarkLogic Cluster on AWS in existing VPC (Virtual Private Cloud).\nMetadata:\n version: 12.0.1\n binary: MarkLogic-12.0.1-rhel.x86_64.rpm\n AWS::CloudFormation::Interface:\n ParameterGroups:\n - Label:\n default: \"Resource Configuration\"\n Parameters:\n - IAMRole\n - VolumeSize\n - VolumeType\n - VolumeIOPS\n - VolumeThroughput\n - VolumeEncryption\n - VolumeEncryptionKey\n - InstanceType\n - SpotPrice\n - KeyName\n - NumberOfZones\n - NodesPerZone\n - AZ\n - LogSNS\n - Label:\n default: \"Network Configuration\"\n Parameters:\n - VPC\n - PublicSubnet1\n - PublicSubnet2\n - PublicSubnet3\n - PrivateSubnet1\n - PrivateSubnet2\n - PrivateSubnet3\n - PublicLoadBalancer\n - InternalLoadBalancer\n - ExternalAccessCidrIP\n - ECSSecurityGroup\n - Label:\n default: \"MarkLogic Configuration\"\n Parameters:\n - AdminUser\n - AdminPass\n - Licensee\n - LicenseKey\n ParameterLabels:\n AdminUser:\n default: Admin User\n AdminPass:\n default: Admin password\n Licensee:\n default: Licensee\n LicenseKey:\n default: License Key\n IAMRole:\n default: IAM Role\n LogSNS:\n default: Logging SNS ARN\n VolumeSize:\n default: Volume Size\n VolumeType:\n default: Volume Type\n VolumeIOPS:\n default: Volume Iops\n VolumeThroughput:\n default: Volume Throughput\n VolumeEncryption:\n default: Volume Encryption\n VolumeEncryptionKey:\n default: Volume Encryption Key ARN\n InstanceType:\n default: Instance Type\n SpotPrice:\n default: Spot Price\n KeyName:\n default: SSH Key Name\n NumberOfZones:\n default: Number of Zones\n NodesPerZone:\n default: Nodes per Zone\n AZ:\n default: Availability Zone\n VPC:\n default: VPC\n PublicSubnet1:\n default: Public Subnet 1\n PublicSubnet2:\n default: Public Subnet 2\n PublicSubnet3:\n default: Public Subnet 3\n PrivateSubnet1:\n default: Private Subnet 1\n PrivateSubnet2:\n default: Private Subnet 2\n PrivateSubnet3:\n default: Private Subnet 3\n PublicLoadBalancer:\n default: Public Load Balancer\n InternalLoadBalancer:\n default: Internal Load Balancer\n ExternalAccessCidrIP:\n default: External IP address range for access to admin site\n ECSSecurityGroup:\n default: the security group the ecs cluster is in\nParameters:\n # resource configuration\n IAMRole:\n Description: IAM Role\n Type: String\n VolumeSize:\n Description: The EBS Data volume size (GB) for all nodes\n Type: Number\n MinValue: '10'\n MaxValue: '1000'\n Default: '50'\n VolumeType:\n Description: The EBS Data volume Type\n Type: String\n AllowedValues:\n - standard\n - gp2\n - gp3\n Default: gp3\n VolumeIOPS:\n Description: The number of I/O operations per second for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '3000'\n MaxValue: '16000'\n Default: '3000'\n VolumeThroughput:\n Description: The throughput to provision for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '125'\n MaxValue: '1000'\n Default: '125'\n VolumeEncryption:\n Description: Whether to enable volume encryption\n Type: String\n AllowedValues:\n - enable\n - disable\n Default: enable\n VolumeEncryptionKey:\n Description: The key ID of AWS KMS key to encrypt volumes - Optional\n Type: String\n Default: \"\"\n InstanceType:\n Description: Type of EC2 instance to launch\n Type: String\n Default: r5.4xlarge\n AllowedValues:\n - ---- Pay-As-You-Go and Bring-Your-Own-License ----\n - c3.xlarge\n - c3.2xlarge\n - c3.4xlarge\n - c3.8xlarge\n - c4.xlarge\n - c4.2xlarge\n - c4.4xlarge\n - c4.8xlarge\n - c5.xlarge\n - c5.2xlarge\n - c5.4xlarge\n - c5.9xlarge\n - c5.12xlarge\n - c5.18xlarge\n - c5.24xlarge\n - c5a.xlarge\n - c5a.2xlarge\n - c5a.4xlarge\n - c5a.8xlarge\n - c5a.12xlarge\n - c5a.16xlarge\n - c5a.24xlarge\n - c5ad.xlarge\n - c5ad.2xlarge\n - c5ad.4xlarge\n - c5ad.8xlarge\n - c5ad.12xlarge\n - c5ad.16xlarge\n - c5ad.24xlarge\n - c5d.xlarge\n - c5d.2xlarge\n - c5d.4xlarge\n - c5d.9xlarge\n - c5d.12xlarge\n - c5d.18xlarge\n - c5d.24xlarge\n - c5n.xlarge\n - c5n.2xlarge\n - c5n.4xlarge\n - c5n.9xlarge\n - c5n.18xlarge\n - c6a.xlarge\n - c6a.2xlarge\n - c6a.4xlarge\n - c6a.8xlarge\n - c6a.12xlarge\n - c6a.16xlarge\n - c6a.24xlarge\n - c6a.32xlarge\n - c6a.48xlarge\n - c6i.xlarge\n - c6i.2xlarge\n - c6i.4xlarge\n - c6i.8xlarge\n - c6i.12xlarge\n - c6i.16xlarge\n - c6i.24xlarge\n - c6i.32xlarge\n - c6id.xlarge\n - c6id.2xlarge\n - c6id.4xlarge\n - c6id.8xlarge\n - c6id.12xlarge\n - c6id.16xlarge\n - c6id.24xlarge\n - c6id.32xlarge\n - c7i.xlarge\n - c7i.2xlarge\n - c7i.4xlarge\n - c7i.8xlarge\n - c7i.12xlarge\n - c7i.16xlarge\n - c7i.24xlarge\n - c7i.48xlarge\n - c7i-flex.xlarge\n - c7i-flex.2xlarge\n - c7i-flex.4xlarge\n - c7i-flex.8xlarge\n - c7i-flex.12xlarge\n - c7i-flex.16xlarge\n - c7a.xlarge\n - c7a.2xlarge\n - c7a.4xlarge\n - c7a.8xlarge\n - c7a.12xlarge\n - c7a.16xlarge\n - c7a.24xlarge\n - c7a.32xlarge\n - c7a.48xlarge\n - c8i.xlarge\n - c8i.2xlarge\n - c8i.4xlarge\n - c8i.8xlarge\n - c8i.12xlarge\n - c8i.16xlarge\n - c8i.24xlarge\n - c8i.32xlarge\n - c8i.48xlarge\n - c8i.96xlarge\n - c8i-flex.xlarge\n - c8i-flex.2xlarge\n - c8i-flex.4xlarge\n - c8i-flex.8xlarge\n - c8i-flex.12xlarge\n - c8i-flex.16xlarge\n - i2.2xlarge\n - i2.4xlarge\n - i2.8xlarge\n - i2.xlarge\n - i3.xlarge\n - i3.2xlarge\n - i3.4xlarge\n - i3.8xlarge\n - i3.16xlarge\n - i3en.xlarge\n - i3en.2xlarge\n - i3en.3xlarge\n - i3en.6xlarge\n - i3en.12xlarge\n - i3en.24xlarge\n - i4i.xlarge\n - i4i.2xlarge\n - i4i.4xlarge\n - i4i.8xlarge\n - i4i.12xlarge\n - i4i.16xlarge\n - i4i.24xlarge\n - i4i.32xlarge\n - i7ie.xlarge\n - i7ie.2xlarge\n - i7ie.3xlarge\n - i7ie.6xlarge\n - i7ie.12xlarge\n - i7ie.18xlarge\n - i7ie.24xlarge\n - i7ie.48xlarge\n - m3.xlarge\n - m3.2xlarge\n - m4.xlarge\n - m4.2xlarge\n - m4.4xlarge\n - m4.10xlarge\n - m4.16xlarge\n - m5.xlarge\n - m5.2xlarge\n - m5.4xlarge\n - m5.8xlarge\n - m5.12xlarge\n - m5.16xlarge\n - m5.24xlarge\n - m5a.xlarge\n - m5a.2xlarge\n - m5a.4xlarge\n - m5a.8xlarge\n - m5a.12xlarge\n - m5a.16xlarge\n - m5a.24xlarge\n - m5d.xlarge\n - m5d.2xlarge\n - m5d.4xlarge\n - m5d.8xlarge\n - m5d.16xlarge\n - m5d.12xlarge\n - m5d.24xlarge\n - m5ad.xlarge\n - m5ad.2xlarge\n - m5ad.4xlarge\n - m5ad.8xlarge\n - m5ad.12xlarge\n - m5ad.16xlarge\n - m5ad.24xlarge\n - m5zn.xlarge\n - m5zn.2xlarge\n - m5zn.3xlarge\n - m5zn.6xlarge\n - m5zn.12xlarge\n - m5n.xlarge\n - m5n.2xlarge\n - m5n.4xlarge\n - m5n.8xlarge\n - m5n.12xlarge\n - m5n.16xlarge\n - m5n.24xlarge\n - m5dn.xlarge\n - m5dn.2xlarge\n - m5dn.4xlarge\n - m5dn.8xlarge\n - m5dn.12xlarge\n - m5dn.16xlarge\n - m5dn.24xlarge\n - m6a.xlarge\n - m6a.2xlarge\n - m6a.4xlarge\n - m6a.8xlarge\n - m6a.12xlarge\n - m6a.16xlarge\n - m6a.24xlarge\n - m6a.32xlarge\n - m6a.48xlarge\n - m6i.xlarge\n - m6i.2xlarge\n - m6i.4xlarge\n - m6i.8xlarge\n - m6i.12xlarge\n - m6i.16xlarge\n - m6i.24xlarge\n - m6i.32xlarge\n - m6id.xlarge\n - m6id.2xlarge\n - m6id.4xlarge\n - m6id.8xlarge\n - m6id.12xlarge\n - m6id.16xlarge\n - m6id.24xlarge\n - m6id.32xlarge\n - m7i.xlarge\n - m7i.2xlarge\n - m7i.4xlarge\n - m7i.8xlarge\n - m7i.12xlarge\n - m7i.16xlarge\n - m7i.24xlarge\n - m7i.48xlarge\n - m7i-flex.xlarge\n - m7i-flex.2xlarge\n - m7i-flex.4xlarge\n - m7i-flex.8xlarge\n - m7i-flex.12xlarge\n - m7i-flex.16xlarge\n - m7a.xlarge\n - m7a.2xlarge\n - m7a.4xlarge\n - m7a.8xlarge\n - m7a.12xlarge\n - m7a.16xlarge\n - m7a.24xlarge\n - m7a.32xlarge\n - m7a.48xlarge\n - m8a.xlarge\n - m8a.2xlarge\n - m8a.4xlarge\n - m8a.8xlarge\n - m8a.12xlarge\n - m8a.16xlarge\n - m8a.24xlarge\n - m8a.48xlarge\n - m8i.xlarge\n - m8i.2xlarge\n - m8i.4xlarge\n - m8i.8xlarge\n - m8i.12xlarge\n - m8i.16xlarge\n - m8i.24xlarge\n - m8i.32xlarge\n - m8i.48xlarge\n - m8i.96xlarge\n - m8i-flex.xlarge\n - m8i-flex.2xlarge\n - m8i-flex.4xlarge\n - m8i-flex.8xlarge\n - m8i-flex.12xlarge\n - m8i-flex.16xlarge\n - r3.xlarge\n - r3.2xlarge\n - r3.4xlarge\n - r3.8xlarge\n - r4.xlarge\n - r4.2xlarge\n - r4.4xlarge\n - r4.8xlarge\n - r4.16xlarge\n - r5.xlarge\n - r5.2xlarge\n - r5.4xlarge\n - r5.8xlarge\n - r5.12xlarge\n - r5.16xlarge\n - r5.24xlarge\n - r5a.xlarge\n - r5a.2xlarge\n - r5a.4xlarge\n - r5a.8xlarge\n - r5a.12xlarge\n - r5a.16xlarge\n - r5a.24xlarge\n - r5ad.xlarge\n - r5ad.2xlarge\n - r5ad.4xlarge\n - r5ad.8xlarge\n - r5ad.12xlarge\n - r5ad.16xlarge\n - r5ad.24xlarge\n - r5b.xlarge\n - r5b.2xlarge\n - r5b.4xlarge\n - r5b.8xlarge\n - r5b.12xlarge\n - r5b.16xlarge\n - r5b.24xlarge\n - r5d.xlarge\n - r5d.2xlarge\n - r5d.4xlarge\n - r5d.8xlarge\n - r5d.12xlarge\n - r5d.16xlarge\n - r5d.24xlarge\n - r5dn.xlarge\n - r5dn.2xlarge\n - r5dn.4xlarge\n - r5dn.8xlarge\n - r5dn.12xlarge\n - r5dn.16xlarge\n - r5dn.24xlarge\n - r5n.xlarge\n - r5n.2xlarge\n - r5n.4xlarge\n - r5n.8xlarge\n - r5n.12xlarge\n - r5n.16xlarge\n - r5n.24xlarge\n - r6a.xlarge\n - r6a.2xlarge\n - r6a.4xlarge\n - r6a.8xlarge\n - r6a.12xlarge\n - r6a.16xlarge\n - r6a.24xlarge\n - r6a.32xlarge\n - r6a.48xlarge\n - r6i.xlarge\n - r6i.2xlarge\n - r6i.4xlarge\n - r6i.8xlarge\n - r6i.12xlarge\n - r6i.16xlarge\n - r6i.24xlarge\n - r6i.32xlarge\n - r6id.xlarge\n - r6id.2xlarge\n - r6id.4xlarge\n - r6id.8xlarge\n - r6id.12xlarge\n - r6id.16xlarge\n - r6id.24xlarge\n - r6id.32xlarge\n - r7i.xlarge\n - r7i.2xlarge\n - r7i.4xlarge\n - r7i.8xlarge\n - r7i.12xlarge\n - r7i.16xlarge\n - r7i.24xlarge\n - r7i.48xlarge\n - r7iz.xlarge\n - r7iz.2xlarge\n - r7iz.4xlarge\n - r7iz.8xlarge\n - r7iz.12xlarge\n - r7iz.16xlarge\n - r7iz.32xlarge\n - r7a.xlarge\n - r7a.2xlarge\n - r7a.4xlarge\n - r7a.8xlarge\n - r7a.12xlarge\n - r7a.16xlarge\n - r7a.24xlarge\n - r7a.32xlarge\n - r7a.48xlarge\n - r8a.xlarge\n - r8a.2xlarge\n - r8a.4xlarge\n - r8a.8xlarge\n - r8a.12xlarge\n - r8a.16xlarge\n - r8a.24xlarge\n - r8a.48xlarge\n - r8i.xlarge\n - r8i.2xlarge\n - r8i.4xlarge\n - r8i.8xlarge\n - r8i.12xlarge\n - r8i.16xlarge\n - r8i.24xlarge\n - r8i.32xlarge\n - r8i.48xlarge\n - r8i.96xlarge\n - r8i-flex.xlarge\n - r8i-flex.2xlarge\n - r8i-flex.4xlarge\n - r8i-flex.8xlarge\n - r8i-flex.12xlarge\n - r8i-flex.16xlarge\n - x1.16xlarge\n - x1.32xlarge\n - x1e.xlarge\n - x1e.2xlarge\n - x1e.4xlarge\n - x1e.8xlarge\n - x1e.16xlarge\n - x1e.32xlarge\n - x2idn.16xlarge\n - x2idn.24xlarge\n - x2idn.32xlarge\n - x2iedn.xlarge\n - x2iedn.2xlarge\n - x2iedn.4xlarge\n - x2iedn.8xlarge\n - x2iedn.16xlarge\n - x2iedn.24xlarge\n - x2iedn.32xlarge\n - x2iezn.2xlarge\n - x2iezn.4xlarge\n - x2iezn.6xlarge\n - x2iezn.8xlarge\n - x2iezn.12xlarge\n - d2.xlarge\n - d2.2xlarge\n - d2.4xlarge\n - d2.8xlarge\n - d3.xlarge\n - d3.2xlarge\n - d3.4xlarge\n - d3.8xlarge\n - d3en.xlarge\n - d3en.2xlarge\n - d3en.4xlarge\n - d3en.6xlarge\n - d3en.8xlarge\n - d3en.12xlarge\n - dl1.24xlarge\n - h1.2xlarge\n - h1.4xlarge\n - h1.8xlarge\n - h1.16xlarge\n - inf1.xlarge\n - inf1.2xlarge\n - inf1.6xlarge\n - inf1.24xlarge\n - trn1.2xlarge\n - trn1.32xlarge\n - u-3tb1.56xlarge\n - u-6tb1.56xlarge\n - u-6tb1.112xlarge\n - u-9tb1.112xlarge\n - u-12tb1.112xlarge\n - u-18tb1.112xlarge\n - vt1.3xlarge\n - vt1.6xlarge\n - vt1.24xlarge\n - z1d.xlarge\n - z1d.2xlarge\n - z1d.3xlarge\n - z1d.6xlarge\n - z1d.12xlarge\n - -------------- Bring-Your-Own-License Only --------------\n - c3.large\n - c4.large\n - c5.metal\n - c5.large\n - c5a.large\n - c5ad.large\n - c5d.metal\n - c5d.large\n - c5n.large\n - c5n.metal\n - c6a.large\n - c6a.metal\n - c6i.large\n - c6i.metal\n - c6id.large\n - c6id.metal\n - c7i.large\n - c7i.metal-24xl\n - c7i.metal-48xl\n - c7i-flex.large\n - c7a.medium\n - c7a.large\n - c7a.metal-48xl\n - c8i.large\n - c8i.metal-48xl\n - c8i.metal-96xl\n - c8i-flex.large\n - i3.large\n - i3.metal\n - i3en.large\n - i3en.metal\n - i4i.large\n - i4i.metal\n - i7ie.large\n - i7ie.metal-24xl\n - i7ie.metal-48xl\n - m3.large\n - m3.medium\n - m4.large\n - m5.metal\n - m5.large\n - m5a.large\n - m5ad.large\n - m5d.metal\n - m5d.large\n - m5zn.large\n - m5zn.metal\n - m5n.large\n - m5n.metal\n - m5dn.large\n - m5dn.metal\n - m6a.large\n - m6a.metal\n - m6i.large\n - m6i.metal\n - m6id.large\n - m6id.metal\n - m7i.large\n - m7i.metal-24xl\n - m7i.metal-48xl\n - m7i-flex.large\n - m7a.medium\n - m7a.large\n - m7a.metal-48xl\n - m8a.medium\n - m8a.large\n - m8a.metal-24xl\n - m8a.metal-48xl\n - m8i.large\n - m8i.metal-48xl\n - m8i.metal-96xl\n - m8i-flex.large\n - r3.large\n - r4.large\n - r5.metal\n - r5.large\n - r5a.large\n - r5d.metal\n - r5ad.large\n - r5d.large\n - r5dn.large\n - r5dn.metal\n - r5b.large\n - r5b.metal\n - r5n.large\n - r5n.metal\n - r6a.large\n - r6a.metal\n - r6i.large\n - r6i.metal\n - r6id.large\n - r6id.metal\n - r7i.large\n - r7i.metal-24xl\n - r7i.metal-48xl\n - r7iz.large\n - r7iz.metal-16xl\n - r7iz.metal-32xl\n - r7a.medium\n - r7a.large\n - r7a.metal-48xl\n - r8a.medium\n - r8a.large\n - r8a.metal-24xl\n - r8a.metal-48xl\n - r8i.large\n - r8i.metal-48xl\n - r8i.metal-96xl\n - r8i-flex.large\n - t2.2xlarge\n - t2.large\n - t2.medium\n - t2.micro\n - t2.nano\n - t2.small\n - t2.xlarge\n - t3.2xlarge\n - t3.large\n - t3.medium\n - t3.micro\n - t3.nano\n - t3.small\n - t3.xlarge\n - t3a.2xlarge\n - t3a.large\n - t3a.medium\n - t3a.micro\n - t3a.nano\n - t3a.small\n - t3a.xlarge\n - x2idn.metal\n - x2iedn.metal\n - x2iezn.metal\n - z1d.metal\n - z1d.large\n SpotPrice:\n Description: Spot price for instances in USD/Hour - Optional/advanced\n Type: Number\n MinValue: '0'\n MaxValue: '2'\n Default: '0'\n KeyName:\n Description: Name of an existing EC2 KeyPair to enable SSH access to the instance\n Type: String\n NumberOfZones:\n Description: Total number of Availability Zones, which can be 1 or 3. Load balancer type depends on the number of zones selected. Select 3 zones for Application Load Balancer (OR) Select 1 zone for Classic Load Balancer.\n Type: Number\n AllowedValues:\n - 1\n - 3\n Default: 3\n NodesPerZone:\n Description: Total number of nodes per Zone. Set to 0 to shutdown/hibernate\n Type: Number\n MinValue: '0'\n MaxValue: '20'\n Default: '1'\n AZ:\n Description: The Availability Zones for VPC subnets. Accept either 1 zone or 3 zones. In the order of Subnet 1, Subnet 2 and Subnet 3 (if applicable).\n Type: 'List<AWS::EC2::AvailabilityZone::Name>'\n LogSNS:\n Description: SNS Topic for logging - optional/advanced.\n Type: String\n Default: none\n PublicLoadBalancer:\n Description: Enable Public Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n InternalLoadBalancer:\n Description: Enable Internal Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n # network configuration\n VPC:\n Description: ID of an existing Virtual Private Cloud (VPC)\n Type: 'AWS::EC2::VPC::Id'\n PublicSubnet1:\n Description: The public subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet2:\n Description: The public subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet3:\n Description: The public subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet1:\n Description: The private subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet2:\n Description: The private subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet3:\n Description: The private subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n ExternalAccessCidrIP:\n Description: A CIDR IP range to allow external access from\n Type: String\n Default: 54.76.254.148/32\n ECSSecurityGroup:\n Description: the security group the ECS cluster is in\n Type: 'AWS::EC2::SecurityGroup::Id'\n\n # marklogic configuration\n AdminUser:\n Description: The MarkLogic administrator username\n Type: String\n AdminPass:\n Description: The MarkLogic administrator password\n Type: String\n NoEcho: 'true'\n AllowedPattern: >-\n ^(?!.*[*]).*$\n ConstraintDescription: Admin password must contain any characters except asterisk (*).\n Licensee:\n Description: The MarkLogic Licensee or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\n LicenseKey:\n Description: The MarkLogic License Key or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\nConditions:\n UseLogSNS: !Not [!Equals [!Ref LogSNS, \"none\"]]\n UseSpot: !Not\n - !Equals\n - !Ref SpotPrice\n - 0\n #MultiZone (3 zones) and SingleZone conditions used for the conditional resource creation based on number of zones selected.\n MultiZone:\n !Not [!Equals [!Ref NumberOfZones, 1]]\n CreatePublicAlb: !And [!Condition MultiZone, !Equals [!Ref PublicLoadBalancer, 'true']]\n CreateInternalAlb: !And [!Condition MultiZone, !Equals [!Ref InternalLoadBalancer, 'true']]\n SingleZone: !Equals [!Ref NumberOfZones, 1]\n PAYG:\n !Or [ !And [!Equals [!Ref LicenseKey, ''], !Equals [!Ref Licensee, '']], !And [!Equals [!Ref LicenseKey, 'none'], !Equals [!Ref Licensee, 'none']] ]\n UseVolumeEncryption: !Equals [!Ref VolumeEncryption, 'enable']\n HasCustomEBSKey: !Not [!Equals [!Ref VolumeEncryptionKey, '']]\n GP3: !Equals [!Ref VolumeType, 'gp3']\nMappings:\n Variable:\n LambdaPackageBucket:\n base: 'ml-db-lambda-'\n TemplateUrl:\n base: 'https://s3.amazonaws.com/marklogic-db-template-releases'\n S3Directory:\n base: '12.0.1'\n LicenseRegion2AMI:\n us-east-1:\n PAYGAl2023: ami-0198b8931e9597271\n BYOLAl2023: ami-0a8536507241f95b0\n us-east-2:\n PAYGAl2023: ami-0877b64dae8264415\n BYOLAl2023: ami-082cc98b2c01e486a\n us-west-1:\n PAYGAl2023: ami-07890fc78f4ddfa20\n BYOLAl2023: ami-05c9a962410c2821b\n us-west-2:\n PAYGAl2023: ami-0577eb149c9e0f53f\n BYOLAl2023: ami-0262dd8d014bf71ba\n eu-central-1:\n PAYGAl2023: ami-06348556399c8ab69\n BYOLAl2023: ami-00cb5a3527e7c0d11\n eu-west-1:\n PAYGAl2023: ami-0fa7bc44cd9ab1f85\n BYOLAl2023: ami-0bc2b4d46367806b0\n ap-south-1:\n PAYGAl2023: ami-0f481ba0a6819ced6\n BYOLAl2023: ami-00b59374107e5efb6\n ap-southeast-1:\n PAYGAl2023: ami-0c373c6c8a2316c80\n BYOLAl2023: ami-0b9bd265ef165a07b\n ap-southeast-2:\n PAYGAl2023: ami-0c65a907408226a3e\n BYOLAl2023: ami-02bad1ef2c6d4a91a\n ap-northeast-1:\n PAYGAl2023: ami-0254bc4adaf13e3b9\n BYOLAl2023: ami-07e8b312b1016bf67\n ap-northeast-2:\n PAYGAl2023: ami-05995b5f5807873d7\n BYOLAl2023: ami-0afd77ba0d7a0c129\n sa-east-1:\n PAYGAl2023: ami-05ec8fee12de236a5\n BYOLAl2023: ami-09d883ea308449555\n eu-west-2:\n PAYGAl2023: ami-0f5cff9d243f31521\n BYOLAl2023: ami-0588d104a52fbc326\n ca-central-1:\n PAYGAl2023: ami-0f34d118b23b51bf5\n BYOLAl2023: ami-0c78eccd03e957005\n eu-west-3:\n PAYGAl2023: ami-01fa9155eb17992c5\n BYOLAl2023: ami-0637199acc5327534\nResources:\n ManagedEniStack:\n Type: AWS::CloudFormation::Stack\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n NodesPerZone: !Ref NodesPerZone\n NumberOfZones: !Ref NumberOfZones\n Subnets: !If [MultiZone, !Join [',', [!Ref PrivateSubnet1, !Ref PrivateSubnet2, !Ref PrivateSubnet3]], !Ref PrivateSubnet1]\n ParentStackName: !Ref 'AWS::StackName'\n ParentStackId: !Ref 'AWS::StackId'\n SecurityGroup: !Ref InstanceSecurityGroup\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-managedeni.template']]\n TimeoutInMinutes: 5\n NodeMgrLambdaStack:\n Type: AWS::CloudFormation::Stack\n DependsOn: ManagedEniStack\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-nodemanager.template']]\n TimeoutInMinutes: 5\n MarklogicVolume1:\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [0, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupA-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c81032f7-b0ec-47ca-a236-e24d57b49ae3\n MarklogicVolume2:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [1, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupB-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: ddb55ae1-a00b-42ed-addd-5e03e4a2764b\n MarklogicVolume3:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [2, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupC-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 9094a65e-9d01-4c4c-9586-c33720e2cc9c\n MarkLogicDDBTable:\n Type: 'AWS::DynamoDB::Table'\n Properties:\n AttributeDefinitions:\n - AttributeName: node\n AttributeType: S\n KeySchema:\n - KeyType: HASH\n AttributeName: node\n ProvisionedThroughput:\n WriteCapacityUnits: '10'\n ReadCapacityUnits: '10'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e7190602-c2de-47ab-81e7-1315f8c01e2d\n #AutoScalingGroup used for SingleZone deployments that is connected to Classic Load Balancer.\n MarkLogicServerGroup:\n Condition: SingleZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup1:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup2:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet2\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp2\n Version: !GetAtt LaunchTemp2.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 87d75478-787a-41d5-bb21-9de6fe4b662e\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup3:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet3\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp3\n Version: !GetAtt LaunchTemp3.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: bbd8314a-6e59-4102-9ed5-232739dd0dfa\n InstanceSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable access to MarkLogic instances from Load Balancers and other cluster members\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n InstanceSecurityGroupIngress:\n Type: 'AWS::EC2::SecurityGroupIngress'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n IpProtocol: tcp\n FromPort: '0'\n ToPort: '65355'\n GroupId: !Ref InstanceSecurityGroup\n SourceSecurityGroupId: !Ref InstanceSecurityGroup\n InternalElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Allow access from ECS clsuter to internal ALB for marklogic cluster.\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n ElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable SSH access and HTTP access on the inbound port\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '22'\n ToPort: '22'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n CidrIp: !Ref ExternalAccessCidrIP\n LaunchTemp1:\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume1\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeA#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=1\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 2efb8cfb-df53-401d-8ff2-34af0dd25993\n LaunchTemp2:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume2\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeB#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c8296a50-a29e-4646-aa74-8f1b735a9a3f\n LaunchTemp3:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume3\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeC#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 7fa68c90-39bc-4874-ad20-8cd8c974ed52\n #Application Load Balancer description for MultiZone deployments (3 zones).\n Alb:\n Condition: CreatePublicAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - ElbSecurityGroup\n Properties: \n SecurityGroups: \n - !Ref ElbSecurityGroup\n Subnets:\n - !Ref PublicSubnet1\n - !If [MultiZone, !Ref PublicSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PublicSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 9 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n AlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicExternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n #Descriptions of the 9 Listeners for MultiZone deployments (3 zones). Each Listener connects Application Load Balancer to a TargetGroup with a particular port.\n AlbListener1:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8000\n Protocol: HTTP\n AlbListener2:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8001\n Protocol: HTTP\n AlbListener3:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8002\n Protocol: HTTP\n AlbListener4:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8003\n Protocol: HTTP\n AlbListener5:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8004\n Protocol: HTTP\n AlbListener6:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8005\n Protocol: HTTP\n AlbListener7:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8006\n Protocol: HTTP\n AlbListener8:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8007\n Protocol: HTTP\n AlbListener9:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8008\n Protocol: HTTP\n MarklogicExternal8011Listener:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - MarklogicExternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicExternal8011\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8011\n Protocol: HTTP\n #Application Load Balancer description for MultiZone deployments (3 zones).\n InternalAlb:\n Condition: CreateInternalAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - InternalElbSecurityGroup\n Properties: \n Scheme: internal\n SecurityGroups: \n - !Ref InternalElbSecurityGroup\n Subnets:\n - !Ref PrivateSubnet1\n - !If [MultiZone, !Ref PrivateSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PrivateSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 1 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n MarklogicInternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicInternal8011Listener:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - MarklogicInternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicInternal8011\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8011\n Protocol: HTTP\n InternalAlbListener1:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8000\n Protocol: HTTP\n InternalAlbListener2:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8001\n Protocol: HTTP\n InternalAlbListener3:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8002\n Protocol: HTTP\n InternalAlbListener4:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8003\n Protocol: HTTP\n InternalAlbListener5:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8004\n Protocol: HTTP\n InternalAlbListener6:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8005\n Protocol: HTTP\n InternalAlbListener7:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8006\n Protocol: HTTP\n InternalAlbListener8:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8007\n Protocol: HTTP\n InternalAlbListener9:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8008\n Protocol: HTTP\nOutputs:\n URL:\n Description: The URL of the MarkLogic Cluster\n Value: !Join\n - ''\n - - 'http://'\n - !If [CreatePublicAlb, !GetAtt [Alb, DNSName], !If [CreateInternalAlb, !GetAtt [InternalAlb, DNSName], !GetAtt [ManagedEniStack, Outputs.ENI]]]\n - ':8001'",
"newContent": "AWSTemplateFormatVersion: 2010-09-09\nDescription: Deploy a MarkLogic Cluster on AWS in existing VPC (Virtual Private Cloud).\nMetadata:\n version: 12.0.1\n binary: MarkLogic-12.0.1-rhel.x86_64.rpm\n AWS::CloudFormation::Interface:\n ParameterGroups:\n - Label:\n default: \"Resource Configuration\"\n Parameters:\n - IAMRole\n - VolumeSize\n - VolumeType\n - VolumeIOPS\n - VolumeThroughput\n - VolumeEncryption\n - VolumeEncryptionKey\n - InstanceType\n - SpotPrice\n - KeyName\n - NumberOfZones\n - NodesPerZone\n - AZ\n - LogSNS\n - Label:\n default: \"Network Configuration\"\n Parameters:\n - VPC\n - PublicSubnet1\n - PublicSubnet2\n - PublicSubnet3\n - PrivateSubnet1\n - PrivateSubnet2\n - PrivateSubnet3\n - PublicLoadBalancer\n - InternalLoadBalancer\n - ExternalAccessCidrIP\n - ECSSecurityGroup\n - Label:\n default: \"MarkLogic Configuration\"\n Parameters:\n - AdminUser\n - AdminPass\n - Licensee\n - LicenseKey\n ParameterLabels:\n AdminUser:\n default: Admin User\n AdminPass:\n default: Admin password\n Licensee:\n default: Licensee\n LicenseKey:\n default: License Key\n IAMRole:\n default: IAM Role\n LogSNS:\n default: Logging SNS ARN\n VolumeSize:\n default: Volume Size\n VolumeType:\n default: Volume Type\n VolumeIOPS:\n default: Volume Iops\n VolumeThroughput:\n default: Volume Throughput\n VolumeEncryption:\n default: Volume Encryption\n VolumeEncryptionKey:\n default: Volume Encryption Key ARN\n InstanceType:\n default: Instance Type\n SpotPrice:\n default: Spot Price\n KeyName:\n default: SSH Key Name\n NumberOfZones:\n default: Number of Zones\n NodesPerZone:\n default: Nodes per Zone\n AZ:\n default: Availability Zone\n VPC:\n default: VPC\n PublicSubnet1:\n default: Public Subnet 1\n PublicSubnet2:\n default: Public Subnet 2\n PublicSubnet3:\n default: Public Subnet 3\n PrivateSubnet1:\n default: Private Subnet 1\n PrivateSubnet2:\n default: Private Subnet 2\n PrivateSubnet3:\n default: Private Subnet 3\n PublicLoadBalancer:\n default: Public Load Balancer\n InternalLoadBalancer:\n default: Internal Load Balancer\n ExternalAccessCidrIP:\n default: External IP address range for access to admin site\n ECSSecurityGroup:\n default: the security group the ecs cluster is in\nParameters:\n # resource configuration\n IAMRole:\n Description: IAM Role\n Type: String\n VolumeSize:\n Description: The EBS Data volume size (GB) for all nodes\n Type: Number\n MinValue: '10'\n MaxValue: '1000'\n Default: '50'\n VolumeType:\n Description: The EBS Data volume Type\n Type: String\n AllowedValues:\n - standard\n - gp2\n - gp3\n Default: gp3\n VolumeIOPS:\n Description: The number of I/O operations per second for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '3000'\n MaxValue: '16000'\n Default: '3000'\n VolumeThroughput:\n Description: The throughput to provision for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '125'\n MaxValue: '1000'\n Default: '125'\n VolumeEncryption:\n Description: Whether to enable volume encryption\n Type: String\n AllowedValues:\n - enable\n - disable\n Default: enable\n VolumeEncryptionKey:\n Description: The key ID of AWS KMS key to encrypt volumes - Optional\n Type: String\n Default: \"\"\n InstanceType:\n Description: Type of EC2 instance to launch\n Type: String\n Default: r5.4xlarge\n AllowedValues:\n - ---- Pay-As-You-Go and Bring-Your-Own-License ----\n - c3.xlarge\n - c3.2xlarge\n - c3.4xlarge\n - c3.8xlarge\n - c4.xlarge\n - c4.2xlarge\n - c4.4xlarge\n - c4.8xlarge\n - c5.xlarge\n - c5.2xlarge\n - c5.4xlarge\n - c5.9xlarge\n - c5.12xlarge\n - c5.18xlarge\n - c5.24xlarge\n - c5a.xlarge\n - c5a.2xlarge\n - c5a.4xlarge\n - c5a.8xlarge\n - c5a.12xlarge\n - c5a.16xlarge\n - c5a.24xlarge\n - c5ad.xlarge\n - c5ad.2xlarge\n - c5ad.4xlarge\n - c5ad.8xlarge\n - c5ad.12xlarge\n - c5ad.16xlarge\n - c5ad.24xlarge\n - c5d.xlarge\n - c5d.2xlarge\n - c5d.4xlarge\n - c5d.9xlarge\n - c5d.12xlarge\n - c5d.18xlarge\n - c5d.24xlarge\n - c5n.xlarge\n - c5n.2xlarge\n - c5n.4xlarge\n - c5n.9xlarge\n - c5n.18xlarge\n - c6a.xlarge\n - c6a.2xlarge\n - c6a.4xlarge\n - c6a.8xlarge\n - c6a.12xlarge\n - c6a.16xlarge\n - c6a.24xlarge\n - c6a.32xlarge\n - c6a.48xlarge\n - c6i.xlarge\n - c6i.2xlarge\n - c6i.4xlarge\n - c6i.8xlarge\n - c6i.12xlarge\n - c6i.16xlarge\n - c6i.24xlarge\n - c6i.32xlarge\n - c6id.xlarge\n - c6id.2xlarge\n - c6id.4xlarge\n - c6id.8xlarge\n - c6id.12xlarge\n - c6id.16xlarge\n - c6id.24xlarge\n - c6id.32xlarge\n - c7i.xlarge\n - c7i.2xlarge\n - c7i.4xlarge\n - c7i.8xlarge\n - c7i.12xlarge\n - c7i.16xlarge\n - c7i.24xlarge\n - c7i.48xlarge\n - c7i-flex.xlarge\n - c7i-flex.2xlarge\n - c7i-flex.4xlarge\n - c7i-flex.8xlarge\n - c7i-flex.12xlarge\n - c7i-flex.16xlarge\n - c7a.xlarge\n - c7a.2xlarge\n - c7a.4xlarge\n - c7a.8xlarge\n - c7a.12xlarge\n - c7a.16xlarge\n - c7a.24xlarge\n - c7a.32xlarge\n - c7a.48xlarge\n - c8i.xlarge\n - c8i.2xlarge\n - c8i.4xlarge\n - c8i.8xlarge\n - c8i.12xlarge\n - c8i.16xlarge\n - c8i.24xlarge\n - c8i.32xlarge\n - c8i.48xlarge\n - c8i.96xlarge\n - c8i-flex.xlarge\n - c8i-flex.2xlarge\n - c8i-flex.4xlarge\n - c8i-flex.8xlarge\n - c8i-flex.12xlarge\n - c8i-flex.16xlarge\n - i2.2xlarge\n - i2.4xlarge\n - i2.8xlarge\n - i2.xlarge\n - i3.xlarge\n - i3.2xlarge\n - i3.4xlarge\n - i3.8xlarge\n - i3.16xlarge\n - i3en.xlarge\n - i3en.2xlarge\n - i3en.3xlarge\n - i3en.6xlarge\n - i3en.12xlarge\n - i3en.24xlarge\n - i4i.xlarge\n - i4i.2xlarge\n - i4i.4xlarge\n - i4i.8xlarge\n - i4i.12xlarge\n - i4i.16xlarge\n - i4i.24xlarge\n - i4i.32xlarge\n - i7ie.xlarge\n - i7ie.2xlarge\n - i7ie.3xlarge\n - i7ie.6xlarge\n - i7ie.12xlarge\n - i7ie.18xlarge\n - i7ie.24xlarge\n - i7ie.48xlarge\n - m3.xlarge\n - m3.2xlarge\n - m4.xlarge\n - m4.2xlarge\n - m4.4xlarge\n - m4.10xlarge\n - m4.16xlarge\n - m5.xlarge\n - m5.2xlarge\n - m5.4xlarge\n - m5.8xlarge\n - m5.12xlarge\n - m5.16xlarge\n - m5.24xlarge\n - m5a.xlarge\n - m5a.2xlarge\n - m5a.4xlarge\n - m5a.8xlarge\n - m5a.12xlarge\n - m5a.16xlarge\n - m5a.24xlarge\n - m5d.xlarge\n - m5d.2xlarge\n - m5d.4xlarge\n - m5d.8xlarge\n - m5d.16xlarge\n - m5d.12xlarge\n - m5d.24xlarge\n - m5ad.xlarge\n - m5ad.2xlarge\n - m5ad.4xlarge\n - m5ad.8xlarge\n - m5ad.12xlarge\n - m5ad.16xlarge\n - m5ad.24xlarge\n - m5zn.xlarge\n - m5zn.2xlarge\n - m5zn.3xlarge\n - m5zn.6xlarge\n - m5zn.12xlarge\n - m5n.xlarge\n - m5n.2xlarge\n - m5n.4xlarge\n - m5n.8xlarge\n - m5n.12xlarge\n - m5n.16xlarge\n - m5n.24xlarge\n - m5dn.xlarge\n - m5dn.2xlarge\n - m5dn.4xlarge\n - m5dn.8xlarge\n - m5dn.12xlarge\n - m5dn.16xlarge\n - m5dn.24xlarge\n - m6a.xlarge\n - m6a.2xlarge\n - m6a.4xlarge\n - m6a.8xlarge\n - m6a.12xlarge\n - m6a.16xlarge\n - m6a.24xlarge\n - m6a.32xlarge\n - m6a.48xlarge\n - m6i.xlarge\n - m6i.2xlarge\n - m6i.4xlarge\n - m6i.8xlarge\n - m6i.12xlarge\n - m6i.16xlarge\n - m6i.24xlarge\n - m6i.32xlarge\n - m6id.xlarge\n - m6id.2xlarge\n - m6id.4xlarge\n - m6id.8xlarge\n - m6id.12xlarge\n - m6id.16xlarge\n - m6id.24xlarge\n - m6id.32xlarge\n - m7i.xlarge\n - m7i.2xlarge\n - m7i.4xlarge\n - m7i.8xlarge\n - m7i.12xlarge\n - m7i.16xlarge\n - m7i.24xlarge\n - m7i.48xlarge\n - m7i-flex.xlarge\n - m7i-flex.2xlarge\n - m7i-flex.4xlarge\n - m7i-flex.8xlarge\n - m7i-flex.12xlarge\n - m7i-flex.16xlarge\n - m7a.xlarge\n - m7a.2xlarge\n - m7a.4xlarge\n - m7a.8xlarge\n - m7a.12xlarge\n - m7a.16xlarge\n - m7a.24xlarge\n - m7a.32xlarge\n - m7a.48xlarge\n - m8a.xlarge\n - m8a.2xlarge\n - m8a.4xlarge\n - m8a.8xlarge\n - m8a.12xlarge\n - m8a.16xlarge\n - m8a.24xlarge\n - m8a.48xlarge\n - m8i.xlarge\n - m8i.2xlarge\n - m8i.4xlarge\n - m8i.8xlarge\n - m8i.12xlarge\n - m8i.16xlarge\n - m8i.24xlarge\n - m8i.32xlarge\n - m8i.48xlarge\n - m8i.96xlarge\n - m8i-flex.xlarge\n - m8i-flex.2xlarge\n - m8i-flex.4xlarge\n - m8i-flex.8xlarge\n - m8i-flex.12xlarge\n - m8i-flex.16xlarge\n - r3.xlarge\n - r3.2xlarge\n - r3.4xlarge\n - r3.8xlarge\n - r4.xlarge\n - r4.2xlarge\n - r4.4xlarge\n - r4.8xlarge\n - r4.16xlarge\n - r5.xlarge\n - r5.2xlarge\n - r5.4xlarge\n - r5.8xlarge\n - r5.12xlarge\n - r5.16xlarge\n - r5.24xlarge\n - r5a.xlarge\n - r5a.2xlarge\n - r5a.4xlarge\n - r5a.8xlarge\n - r5a.12xlarge\n - r5a.16xlarge\n - r5a.24xlarge\n - r5ad.xlarge\n - r5ad.2xlarge\n - r5ad.4xlarge\n - r5ad.8xlarge\n - r5ad.12xlarge\n - r5ad.16xlarge\n - r5ad.24xlarge\n - r5b.xlarge\n - r5b.2xlarge\n - r5b.4xlarge\n - r5b.8xlarge\n - r5b.12xlarge\n - r5b.16xlarge\n - r5b.24xlarge\n - r5d.xlarge\n - r5d.2xlarge\n - r5d.4xlarge\n - r5d.8xlarge\n - r5d.12xlarge\n - r5d.16xlarge\n - r5d.24xlarge\n - r5dn.xlarge\n - r5dn.2xlarge\n - r5dn.4xlarge\n - r5dn.8xlarge\n - r5dn.12xlarge\n - r5dn.16xlarge\n - r5dn.24xlarge\n - r5n.xlarge\n - r5n.2xlarge\n - r5n.4xlarge\n - r5n.8xlarge\n - r5n.12xlarge\n - r5n.16xlarge\n - r5n.24xlarge\n - r6a.xlarge\n - r6a.2xlarge\n - r6a.4xlarge\n - r6a.8xlarge\n - r6a.12xlarge\n - r6a.16xlarge\n - r6a.24xlarge\n - r6a.32xlarge\n - r6a.48xlarge\n - r6i.xlarge\n - r6i.2xlarge\n - r6i.4xlarge\n - r6i.8xlarge\n - r6i.12xlarge\n - r6i.16xlarge\n - r6i.24xlarge\n - r6i.32xlarge\n - r6id.xlarge\n - r6id.2xlarge\n - r6id.4xlarge\n - r6id.8xlarge\n - r6id.12xlarge\n - r6id.16xlarge\n - r6id.24xlarge\n - r6id.32xlarge\n - r7i.xlarge\n - r7i.2xlarge\n - r7i.4xlarge\n - r7i.8xlarge\n - r7i.12xlarge\n - r7i.16xlarge\n - r7i.24xlarge\n - r7i.48xlarge\n - r7iz.xlarge\n - r7iz.2xlarge\n - r7iz.4xlarge\n - r7iz.8xlarge\n - r7iz.12xlarge\n - r7iz.16xlarge\n - r7iz.32xlarge\n - r7a.xlarge\n - r7a.2xlarge\n - r7a.4xlarge\n - r7a.8xlarge\n - r7a.12xlarge\n - r7a.16xlarge\n - r7a.24xlarge\n - r7a.32xlarge\n - r7a.48xlarge\n - r8a.xlarge\n - r8a.2xlarge\n - r8a.4xlarge\n - r8a.8xlarge\n - r8a.12xlarge\n - r8a.16xlarge\n - r8a.24xlarge\n - r8a.48xlarge\n - r8i.xlarge\n - r8i.2xlarge\n - r8i.4xlarge\n - r8i.8xlarge\n - r8i.12xlarge\n - r8i.16xlarge\n - r8i.24xlarge\n - r8i.32xlarge\n - r8i.48xlarge\n - r8i.96xlarge\n - r8i-flex.xlarge\n - r8i-flex.2xlarge\n - r8i-flex.4xlarge\n - r8i-flex.8xlarge\n - r8i-flex.12xlarge\n - r8i-flex.16xlarge\n - x1.16xlarge\n - x1.32xlarge\n - x1e.xlarge\n - x1e.2xlarge\n - x1e.4xlarge\n - x1e.8xlarge\n - x1e.16xlarge\n - x1e.32xlarge\n - x2idn.16xlarge\n - x2idn.24xlarge\n - x2idn.32xlarge\n - x2iedn.xlarge\n - x2iedn.2xlarge\n - x2iedn.4xlarge\n - x2iedn.8xlarge\n - x2iedn.16xlarge\n - x2iedn.24xlarge\n - x2iedn.32xlarge\n - x2iezn.2xlarge\n - x2iezn.4xlarge\n - x2iezn.6xlarge\n - x2iezn.8xlarge\n - x2iezn.12xlarge\n - d2.xlarge\n - d2.2xlarge\n - d2.4xlarge\n - d2.8xlarge\n - d3.xlarge\n - d3.2xlarge\n - d3.4xlarge\n - d3.8xlarge\n - d3en.xlarge\n - d3en.2xlarge\n - d3en.4xlarge\n - d3en.6xlarge\n - d3en.8xlarge\n - d3en.12xlarge\n - dl1.24xlarge\n - h1.2xlarge\n - h1.4xlarge\n - h1.8xlarge\n - h1.16xlarge\n - inf1.xlarge\n - inf1.2xlarge\n - inf1.6xlarge\n - inf1.24xlarge\n - trn1.2xlarge\n - trn1.32xlarge\n - u-3tb1.56xlarge\n - u-6tb1.56xlarge\n - u-6tb1.112xlarge\n - u-9tb1.112xlarge\n - u-12tb1.112xlarge\n - u-18tb1.112xlarge\n - vt1.3xlarge\n - vt1.6xlarge\n - vt1.24xlarge\n - z1d.xlarge\n - z1d.2xlarge\n - z1d.3xlarge\n - z1d.6xlarge\n - z1d.12xlarge\n - -------------- Bring-Your-Own-License Only --------------\n - c3.large\n - c4.large\n - c5.metal\n - c5.large\n - c5a.large\n - c5ad.large\n - c5d.metal\n - c5d.large\n - c5n.large\n - c5n.metal\n - c6a.large\n - c6a.metal\n - c6i.large\n - c6i.metal\n - c6id.large\n - c6id.metal\n - c7i.large\n - c7i.metal-24xl\n - c7i.metal-48xl\n - c7i-flex.large\n - c7a.medium\n - c7a.large\n - c7a.metal-48xl\n - c8i.large\n - c8i.metal-48xl\n - c8i.metal-96xl\n - c8i-flex.large\n - i3.large\n - i3.metal\n - i3en.large\n - i3en.metal\n - i4i.large\n - i4i.metal\n - i7ie.large\n - i7ie.metal-24xl\n - i7ie.metal-48xl\n - m3.large\n - m3.medium\n - m4.large\n - m5.metal\n - m5.large\n - m5a.large\n - m5ad.large\n - m5d.metal\n - m5d.large\n - m5zn.large\n - m5zn.metal\n - m5n.large\n - m5n.metal\n - m5dn.large\n - m5dn.metal\n - m6a.large\n - m6a.metal\n - m6i.large\n - m6i.metal\n - m6id.large\n - m6id.metal\n - m7i.large\n - m7i.metal-24xl\n - m7i.metal-48xl\n - m7i-flex.large\n - m7a.medium\n - m7a.large\n - m7a.metal-48xl\n - m8a.medium\n - m8a.large\n - m8a.metal-24xl\n - m8a.metal-48xl\n - m8i.large\n - m8i.metal-48xl\n - m8i.metal-96xl\n - m8i-flex.large\n - r3.large\n - r4.large\n - r5.metal\n - r5.large\n - r5a.large\n - r5d.metal\n - r5ad.large\n - r5d.large\n - r5dn.large\n - r5dn.metal\n - r5b.large\n - r5b.metal\n - r5n.large\n - r5n.metal\n - r6a.large\n - r6a.metal\n - r6i.large\n - r6i.metal\n - r6id.large\n - r6id.metal\n - r7i.large\n - r7i.metal-24xl\n - r7i.metal-48xl\n - r7iz.large\n - r7iz.metal-16xl\n - r7iz.metal-32xl\n - r7a.medium\n - r7a.large\n - r7a.metal-48xl\n - r8a.medium\n - r8a.large\n - r8a.metal-24xl\n - r8a.metal-48xl\n - r8i.large\n - r8i.metal-48xl\n - r8i.metal-96xl\n - r8i-flex.large\n - t2.2xlarge\n - t2.large\n - t2.medium\n - t2.micro\n - t2.nano\n - t2.small\n - t2.xlarge\n - t3.2xlarge\n - t3.large\n - t3.medium\n - t3.micro\n - t3.nano\n - t3.small\n - t3.xlarge\n - t3a.2xlarge\n - t3a.large\n - t3a.medium\n - t3a.micro\n - t3a.nano\n - t3a.small\n - t3a.xlarge\n - x2idn.metal\n - x2iedn.metal\n - x2iezn.metal\n - z1d.metal\n - z1d.large\n SpotPrice:\n Description: Spot price for instances in USD/Hour - Optional/advanced\n Type: Number\n MinValue: '0'\n MaxValue: '2'\n Default: '0'\n KeyName:\n Description: Name of an existing EC2 KeyPair to enable SSH access to the instance\n Type: String\n NumberOfZones:\n Description: Total number of Availability Zones, which can be 1 or 3. Load balancer type depends on the number of zones selected. Select 3 zones for Application Load Balancer (OR) Select 1 zone for Classic Load Balancer.\n Type: Number\n AllowedValues:\n - 1\n - 3\n Default: 3\n NodesPerZone:\n Description: Total number of nodes per Zone. Set to 0 to shutdown/hibernate\n Type: Number\n MinValue: '0'\n MaxValue: '20'\n Default: '1'\n AZ:\n Description: The Availability Zones for VPC subnets. Accept either 1 zone or 3 zones. In the order of Subnet 1, Subnet 2 and Subnet 3 (if applicable).\n Type: 'List<AWS::EC2::AvailabilityZone::Name>'\n LogSNS:\n Description: SNS Topic for logging - optional/advanced.\n Type: String\n Default: none\n PublicLoadBalancer:\n Description: Enable Public Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n InternalLoadBalancer:\n Description: Enable Internal Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n # network configuration\n VPC:\n Description: ID of an existing Virtual Private Cloud (VPC)\n Type: 'AWS::EC2::VPC::Id'\n PublicSubnet1:\n Description: The public subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet2:\n Description: The public subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet3:\n Description: The public subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet1:\n Description: The private subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet2:\n Description: The private subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet3:\n Description: The private subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n ExternalAccessCidrIP:\n Description: A CIDR IP range to allow external access from\n Type: String\n Default: 54.76.254.148/32\n ECSSecurityGroup:\n Description: the security group the ECS cluster is in\n Type: 'AWS::EC2::SecurityGroup::Id'\n\n # marklogic configuration\n AdminUser:\n Description: The MarkLogic administrator username\n Type: String\n AdminPass:\n Description: The MarkLogic administrator password\n Type: String\n NoEcho: 'true'\n AllowedPattern: >-\n ^(?!.*[*]).*$\n ConstraintDescription: Admin password must contain any characters except asterisk (*).\n Licensee:\n Description: The MarkLogic Licensee or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\n LicenseKey:\n Description: The MarkLogic License Key or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\nConditions:\n UseLogSNS: !Not [!Equals [!Ref LogSNS, \"none\"]]\n UseSpot: !Not\n - !Equals\n - !Ref SpotPrice\n - 0\n #MultiZone (3 zones) and SingleZone conditions used for the conditional resource creation based on number of zones selected.\n MultiZone:\n !Not [!Equals [!Ref NumberOfZones, 1]]\n CreatePublicAlb: !And [!Condition MultiZone, !Equals [!Ref PublicLoadBalancer, 'true']]\n CreateInternalAlb: !And [!Condition MultiZone, !Equals [!Ref InternalLoadBalancer, 'true']]\n SingleZone: !Equals [!Ref NumberOfZones, 1]\n PAYG:\n !Or [ !And [!Equals [!Ref LicenseKey, ''], !Equals [!Ref Licensee, '']], !And [!Equals [!Ref LicenseKey, 'none'], !Equals [!Ref Licensee, 'none']] ]\n UseVolumeEncryption: !Equals [!Ref VolumeEncryption, 'enable']\n HasCustomEBSKey: !Not [!Equals [!Ref VolumeEncryptionKey, '']]\n GP3: !Equals [!Ref VolumeType, 'gp3']\nMappings:\n Variable:\n LambdaPackageBucket:\n base: 'ml-db-lambda-'\n TemplateUrl:\n base: 'https://s3.amazonaws.com/marklogic-db-template-releases'\n S3Directory:\n base: '12.0.1'\n LicenseRegion2AMI:\n us-east-1:\n PAYGAl2023: ami-0198b8931e9597271\n BYOLAl2023: ami-0a8536507241f95b0\n us-east-2:\n PAYGAl2023: ami-0877b64dae8264415\n BYOLAl2023: ami-082cc98b2c01e486a\n us-west-1:\n PAYGAl2023: ami-07890fc78f4ddfa20\n BYOLAl2023: ami-05c9a962410c2821b\n us-west-2:\n PAYGAl2023: ami-0577eb149c9e0f53f\n BYOLAl2023: ami-0262dd8d014bf71ba\n eu-central-1:\n PAYGAl2023: ami-06348556399c8ab69\n BYOLAl2023: ami-00cb5a3527e7c0d11\n eu-west-1:\n PAYGAl2023: ami-0fa7bc44cd9ab1f85\n BYOLAl2023: ami-0bc2b4d46367806b0\n ap-south-1:\n PAYGAl2023: ami-0f481ba0a6819ced6\n BYOLAl2023: ami-00b59374107e5efb6\n ap-southeast-1:\n PAYGAl2023: ami-0c373c6c8a2316c80\n BYOLAl2023: ami-0b9bd265ef165a07b\n ap-southeast-2:\n PAYGAl2023: ami-0c65a907408226a3e\n BYOLAl2023: ami-02bad1ef2c6d4a91a\n ap-northeast-1:\n PAYGAl2023: ami-0254bc4adaf13e3b9\n BYOLAl2023: ami-07e8b312b1016bf67\n ap-northeast-2:\n PAYGAl2023: ami-05995b5f5807873d7\n BYOLAl2023: ami-0afd77ba0d7a0c129\n sa-east-1:\n PAYGAl2023: ami-05ec8fee12de236a5\n BYOLAl2023: ami-09d883ea308449555\n eu-west-2:\n PAYGAl2023: ami-0f5cff9d243f31521\n BYOLAl2023: ami-0588d104a52fbc326\n ca-central-1:\n PAYGAl2023: ami-0f34d118b23b51bf5\n BYOLAl2023: ami-0c78eccd03e957005\n eu-west-3:\n PAYGAl2023: ami-01fa9155eb17992c5\n BYOLAl2023: ami-0637199acc5327534\nResources:\n ManagedEniStack:\n Type: AWS::CloudFormation::Stack\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n NodesPerZone: !Ref NodesPerZone\n NumberOfZones: !Ref NumberOfZones\n Subnets: !If [MultiZone, !Join [',', [!Ref PrivateSubnet1, !Ref PrivateSubnet2, !Ref PrivateSubnet3]], !Ref PrivateSubnet1]\n ParentStackName: !Ref 'AWS::StackName'\n ParentStackId: !Ref 'AWS::StackId'\n SecurityGroup: !Ref InstanceSecurityGroup\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-managedeni.template']]\n TimeoutInMinutes: 5\n NodeMgrLambdaStack:\n Type: AWS::CloudFormation::Stack\n DependsOn: ManagedEniStack\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-nodemanager.template']]\n TimeoutInMinutes: 5\n MarklogicVolume1:\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [0, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupA-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c81032f7-b0ec-47ca-a236-e24d57b49ae3\n MarklogicVolume2:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [1, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupB-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: ddb55ae1-a00b-42ed-addd-5e03e4a2764b\n MarklogicVolume3:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [2, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupC-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 9094a65e-9d01-4c4c-9586-c33720e2cc9c\n MarkLogicDDBTable:\n Type: 'AWS::DynamoDB::Table'\n Properties:\n AttributeDefinitions:\n - AttributeName: node\n AttributeType: S\n KeySchema:\n - KeyType: HASH\n AttributeName: node\n ProvisionedThroughput:\n WriteCapacityUnits: '10'\n ReadCapacityUnits: '10'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e7190602-c2de-47ab-81e7-1315f8c01e2d\n #AutoScalingGroup used for SingleZone deployments that is connected to Classic Load Balancer.\n MarkLogicServerGroup:\n Condition: SingleZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup1:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup2:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet2\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp2\n Version: !GetAtt LaunchTemp2.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 87d75478-787a-41d5-bb21-9de6fe4b662e\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup3:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet3\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp3\n Version: !GetAtt LaunchTemp3.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: bbd8314a-6e59-4102-9ed5-232739dd0dfa\n InstanceSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable access to MarkLogic instances from Load Balancers and other cluster members\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n InstanceSecurityGroupIngress:\n Type: 'AWS::EC2::SecurityGroupIngress'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n IpProtocol: tcp\n FromPort: '0'\n ToPort: '65355'\n GroupId: !Ref InstanceSecurityGroup\n SourceSecurityGroupId: !Ref InstanceSecurityGroup\n InternalElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Allow access from ECS clsuter to internal ALB for marklogic cluster.\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n ElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable SSH access and HTTP access on the inbound port\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '22'\n ToPort: '22'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n CidrIp: !Ref ExternalAccessCidrIP\n LaunchTemp1:\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume1\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeA#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=1\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 2efb8cfb-df53-401d-8ff2-34af0dd25993\n LaunchTemp2:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume2\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeB#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c8296a50-a29e-4646-aa74-8f1b735a9a3f\n LaunchTemp3:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume3\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeC#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 7fa68c90-39bc-4874-ad20-8cd8c974ed52\n #Application Load Balancer description for MultiZone deployments (3 zones).\n Alb:\n Condition: CreatePublicAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - ElbSecurityGroup\n Properties: \n SecurityGroups: \n - !Ref ElbSecurityGroup\n Subnets:\n - !Ref PublicSubnet1\n - !If [MultiZone, !Ref PublicSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PublicSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 9 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n AlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicExternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n #Descriptions of the 9 Listeners for MultiZone deployments (3 zones). Each Listener connects Application Load Balancer to a TargetGroup with a particular port.\n AlbListener1:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8000\n Protocol: HTTP\n AlbListener2:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8001\n Protocol: HTTP\n AlbListener3:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8002\n Protocol: HTTP\n AlbListener4:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8003\n Protocol: HTTP\n AlbListener5:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8004\n Protocol: HTTP\n AlbListener6:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8005\n Protocol: HTTP\n AlbListener7:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8006\n Protocol: HTTP\n AlbListener8:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8007\n Protocol: HTTP\n AlbListener9:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8008\n Protocol: HTTP\n MarklogicExternal8011Listener:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - MarklogicExternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicExternal8011\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8011\n Protocol: HTTP\n #Application Load Balancer description for MultiZone deployments (3 zones).\n InternalAlb:\n Condition: CreateInternalAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - InternalElbSecurityGroup\n Properties: \n Scheme: internal\n SecurityGroups: \n - !Ref InternalElbSecurityGroup\n Subnets:\n - !Ref PrivateSubnet1\n - !If [MultiZone, !Ref PrivateSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PrivateSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 1 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n MarklogicInternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicInternal8011Listener:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - MarklogicInternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicInternal8011\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8011\n Protocol: HTTP\n InternalAlbListener1:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8000\n Protocol: HTTP\n InternalAlbListener2:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8001\n Protocol: HTTP\n InternalAlbListener3:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8002\n Protocol: HTTP\n InternalAlbListener4:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8003\n Protocol: HTTP\n InternalAlbListener5:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8004\n Protocol: HTTP\n InternalAlbListener6:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8005\n Protocol: HTTP\n InternalAlbListener7:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8006\n Protocol: HTTP\n InternalAlbListener8:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8007\n Protocol: HTTP\n InternalAlbListener9:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8008\n Protocol: HTTP\nOutputs:\n URL:\n Description: The URL of the MarkLogic Cluster\n Value: !Join\n - ''\n - - 'http://'\n - !If [CreatePublicAlb, !GetAtt [Alb, DNSName], !If [CreateInternalAlb, !GetAtt [InternalAlb, DNSName], !GetAtt [ManagedEniStack, Outputs.ENI]]]\n - ':8001'",
"diffStat": {
"model_added_lines": 6,
"model_removed_lines": 6,
"model_added_chars": 255,
"model_removed_chars": 207,
"user_added_lines": 0,
"user_removed_lines": 2317,
"user_added_chars": 0,
"user_removed_chars": 64999
},
"isNewFile": false
},
"displayName": "Edit",
"description": "Replaces text within a file. By default, replaces a single occurrence, but can replace multiple occurrences when `expected_replacements` is specified. This tool requires providing significant context around the change to ensure precise targeting. Always use the read_file tool to examine the file's current content before attempting a text replacement.\n \n The user has the ability to modify the `new_string` content. If modified, this will be stated in the response.\n \n Expectation for required parameters:\n 1. `old_string` MUST be the exact literal text to replace (including all whitespace, indentation, newlines, and surrounding code etc.).\n 2. `new_string` MUST be the exact literal text to replace `old_string` with (also including all whitespace, indentation, newlines, and surrounding code etc.). Ensure the resulting code is correct and idiomatic and that `old_string` and `new_string` are different.\n 3. `instruction` is the detailed instruction of what needs to be changed. It is important to Make it specific and detailed so developers or large language models can understand what needs to be changed and perform the changes on their own if necessary. \n 4. NEVER escape `old_string` or `new_string`, that would break the exact literal text requirement.\n **Important:** If ANY of the above are not satisfied, the tool will fail. CRITICAL for `old_string`: Must uniquely identify the single instance to change. Include at least 3 lines of context BEFORE and AFTER the target text, matching whitespace and indentation precisely. If this string matches multiple locations, or does not match exactly, the tool will fail.\n 5. Prefer to break down complex and long changes into multiple smaller atomic calls to this tool. Always check the content of the file after changes or not finding a string to match.\n **Multiple replacements:** Set `expected_replacements` to the number of occurrences you want to replace. The tool will replace ALL occurrences that match `old_string` exactly. Ensure the number of replacements matches your expectation.",
"renderOutputAsMarkdown": true
}
]
},
{
"id": "45f90ce5-36d6-4560-83ed-25a816c75c13",
"timestamp": "2026-01-30T11:34:24.708Z",
"type": "gemini",
"content": "I will read lines 1050-1260 of `mlcluster.template` to verify the current configuration of `MarkLogicServerGroup1`, `MarkLogicServerGroup2`, and `MarkLogicServerGroup3`, specifically focusing on the `TargetGroupARNs` property, so I can accurately append the `InternalAlbTargetGroup` references.",
"thoughts": [
{
"subject": "Considering Modifications",
"description": "I'm currently focused on the proposed modification to `MarkLogicServerGroup1 -3`. Before implementing the change, I'll need to examine the content of `MarkLogicServerGroup1`, `MarkLogicServerGroup2`, and `MarkLogicServerGroup3` to ensure the context is correct. I plan to read those files line by line for verification.",
"timestamp": "2026-01-30T11:34:24.348Z"
},
{
"subject": "Analyzing Next Steps",
"description": "I've just finished the assessment. I'm now tasked with updating `MarkLogicServerGroup1-3` to include `InternalAlbTargetGroup1-9`. To verify the relevant content, I'll review lines 1050-1260 of `mlcluster.template`, ensuring everything lines up correctly before proceeding.",
"timestamp": "2026-01-30T11:34:24.388Z"
}
],
"tokens": {
"input": 63990,
"output": 94,
"cached": 61534,
"thoughts": 86,
"tool": 0,
"total": 64170
},
"model": "gemini-3-pro-preview",
"toolCalls": [
{
"id": "read_file-1769772864704-78383304eaa608",
"name": "read_file",
"args": {
"offset": 1050,
"file_path": "mlcluster.template",
"limit": 210
},
"result": [
{
"functionResponse": {
"id": "read_file-1769772864704-78383304eaa608",
"name": "read_file",
"response": {
"output": "\nIMPORTANT: The file content has been truncated.\nStatus: Showing lines 1051-1260 of 2356 total lines.\nAction: To read more of the file, you can use the 'offset' and 'limit' parameters in a subsequent 'read_file' call. For example, to read the next section of the file, use offset: 1260.\n\n--- FILE CONTENT (truncated) ---\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup1:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup2:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet2\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp2\n Version: !GetAtt LaunchTemp2.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 87d75478-787a-41d5-bb21-9de6fe4b662e\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup3:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet3\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp3\n Version: !GetAtt LaunchTemp3.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: bbd8314a-6e59-4102-9ed5-232739dd0dfa\n InstanceSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable access to MarkLogic instances from Load Balancers and other cluster members\n VpcId: !Ref VPC"
}
}
}
],
"status": "success",
"timestamp": "2026-01-30T11:34:24.723Z",
"resultDisplay": "Read lines 1051-1260 of 2356 from mlcluster.template",
"displayName": "ReadFile",
"description": "Reads and returns the content of a specified file. If the file is large, the content will be truncated. The tool's response will clearly indicate if truncation has occurred and will provide details on how to read more of the file using the 'offset' and 'limit' parameters. Handles text, images (PNG, JPG, GIF, WEBP, SVG, BMP), audio files (MP3, WAV, AIFF, AAC, OGG, FLAC), and PDF files. For text files, it can read specific line ranges.",
"renderOutputAsMarkdown": true
}
]
},
{
"id": "9e219734-5fdd-4e77-b7e6-350b4499a68d",
"timestamp": "2026-01-30T11:34:51.280Z",
"type": "gemini",
"content": "I will update the `MarkLogicServerGroup1` resource in `mlcluster.template` to include `InternalAlbTargetGroup1` through `InternalAlbTargetGroup9` in both its `DependsOn` list and its `TargetGroupARNs` property, ensuring the Auto Scaling Group interacts correctly with the new internal target groups.",
"thoughts": [
{
"subject": "Defining Target Groups",
"description": "I'm currently focused on incorporating the `InternalAlbTargetGroup` resources into the `TargetGroupARNs` of the `MarkLogicServerGroup` resources. This involves updating three server groups to include nine target groups. I'm also considering the `DependsOn` attribute to ensure proper resource ordering and dependencies within the infrastructure.",
"timestamp": "2026-01-30T11:34:32.215Z"
},
{
"subject": "Integrating Target Groups",
"description": "I'm now focusing on integrating `InternalAlbTargetGroup` references into the `MarkLogicServerGroup` resources. I've noted the existing `DependsOn` and `TargetGroupARNs` patterns. I plan to update `MarkLogicServerGroup1`, `MarkLogicServerGroup2`, and `MarkLogicServerGroup3` individually, adding `InternalAlbTargetGroup1` through `InternalAlbTargetGroup9` to both the `DependsOn` and `TargetGroupARNs` sections of each. The previous analysis revealed these resources are separate, requiring individual updates.",
"timestamp": "2026-01-30T11:34:35.318Z"
},
{
"subject": "Crafting the Replacement Block",
"description": "I'm now constructing the replacement block for `MarkLogicServerGroup1`. I'll update both the `DependsOn` and `TargetGroupARNs` sections. This should be a large replacement, around 60 lines, and I'll use the `replace` tool, which should handle it. I'm focusing on ensuring that the `InternalAlbTargetGroup` resources are correctly integrated into both sections of the configuration for `MarkLogicServerGroup1`.",
"timestamp": "2026-01-30T11:34:38.256Z"
},
{
"subject": "Modifying ASG Dependencies",
"description": "I'm now starting to construct the replacement blocks for `MarkLogicServerGroup1`. My plan is to add the `InternalAlbTargetGroup` resources to both the `DependsOn` and `TargetGroupARNs` sections. I will then perform similar updates for `MarkLogicServerGroup2` and `MarkLogicServerGroup3`, ensuring each server group accurately reflects its dependencies. The 'replace' tool should make this straightforward.",
"timestamp": "2026-01-30T11:34:40.368Z"
}
],
"tokens": {
"input": 66394,
"output": 1510,
"cached": 61691,
"thoughts": 944,
"tool": 0,
"total": 68848
},
"model": "gemini-3-pro-preview",
"toolCalls": [
{
"id": "replace-1769772891270-8efb77fba276b8",
"name": "replace",
"args": {
"file_path": "/Users/bob/git/dxw/marklogic-cf-templates/mlcluster.template",
"old_string": " MarkLogicServerGroup1:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011",
"new_string": " MarkLogicServerGroup1:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - InternalAlbTargetGroup1\n - InternalAlbTargetGroup2\n - InternalAlbTargetGroup3\n - InternalAlbTargetGroup4\n - InternalAlbTargetGroup5\n - InternalAlbTargetGroup6\n - InternalAlbTargetGroup7\n - InternalAlbTargetGroup8\n - InternalAlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref InternalAlbTargetGroup1\n - !Ref InternalAlbTargetGroup2\n - !Ref InternalAlbTargetGroup3\n - !Ref InternalAlbTargetGroup4\n - !Ref InternalAlbTargetGroup5\n - !Ref InternalAlbTargetGroup6\n - !Ref InternalAlbTargetGroup7\n - !Ref InternalAlbTargetGroup8\n - !Ref InternalAlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011",
"instruction": "Add InternalAlbTargetGroup1 through InternalAlbTargetGroup9 to DependsOn and TargetGroupARNs in MarkLogicServerGroup1."
},
"result": [
{
"functionResponse": {
"id": "replace-1769772891270-8efb77fba276b8",
"name": "replace",
"response": {
"output": "Successfully modified file: /Users/bob/git/dxw/marklogic-cf-templates/mlcluster.template (1 replacements)."
}
}
}
],
"status": "success",
"timestamp": "2026-01-30T11:35:01.183Z",
"resultDisplay": {
"fileDiff": "Index: mlcluster.template\n===================================================================\n--- mlcluster.template\tCurrent\n+++ mlcluster.template\tProposed\n@@ -1066,6 +1066,15 @@\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n+ - InternalAlbTargetGroup1\n+ - InternalAlbTargetGroup2\n+ - InternalAlbTargetGroup3\n+ - InternalAlbTargetGroup4\n+ - InternalAlbTargetGroup5\n+ - InternalAlbTargetGroup6\n+ - InternalAlbTargetGroup7\n+ - InternalAlbTargetGroup8\n+ - InternalAlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n@@ -1112,6 +1121,15 @@\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n+ - !Ref InternalAlbTargetGroup1\n+ - !Ref InternalAlbTargetGroup2\n+ - !Ref InternalAlbTargetGroup3\n+ - !Ref InternalAlbTargetGroup4\n+ - !Ref InternalAlbTargetGroup5\n+ - !Ref InternalAlbTargetGroup6\n+ - !Ref InternalAlbTargetGroup7\n+ - !Ref InternalAlbTargetGroup8\n+ - !Ref InternalAlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n",
"fileName": "mlcluster.template",
"filePath": "/Users/bob/git/dxw/marklogic-cf-templates/mlcluster.template",
"originalContent": "AWSTemplateFormatVersion: 2010-09-09\nDescription: Deploy a MarkLogic Cluster on AWS in existing VPC (Virtual Private Cloud).\nMetadata:\n version: 12.0.1\n binary: MarkLogic-12.0.1-rhel.x86_64.rpm\n AWS::CloudFormation::Interface:\n ParameterGroups:\n - Label:\n default: \"Resource Configuration\"\n Parameters:\n - IAMRole\n - VolumeSize\n - VolumeType\n - VolumeIOPS\n - VolumeThroughput\n - VolumeEncryption\n - VolumeEncryptionKey\n - InstanceType\n - SpotPrice\n - KeyName\n - NumberOfZones\n - NodesPerZone\n - AZ\n - LogSNS\n - Label:\n default: \"Network Configuration\"\n Parameters:\n - VPC\n - PublicSubnet1\n - PublicSubnet2\n - PublicSubnet3\n - PrivateSubnet1\n - PrivateSubnet2\n - PrivateSubnet3\n - PublicLoadBalancer\n - InternalLoadBalancer\n - ExternalAccessCidrIP\n - ECSSecurityGroup\n - Label:\n default: \"MarkLogic Configuration\"\n Parameters:\n - AdminUser\n - AdminPass\n - Licensee\n - LicenseKey\n ParameterLabels:\n AdminUser:\n default: Admin User\n AdminPass:\n default: Admin password\n Licensee:\n default: Licensee\n LicenseKey:\n default: License Key\n IAMRole:\n default: IAM Role\n LogSNS:\n default: Logging SNS ARN\n VolumeSize:\n default: Volume Size\n VolumeType:\n default: Volume Type\n VolumeIOPS:\n default: Volume Iops\n VolumeThroughput:\n default: Volume Throughput\n VolumeEncryption:\n default: Volume Encryption\n VolumeEncryptionKey:\n default: Volume Encryption Key ARN\n InstanceType:\n default: Instance Type\n SpotPrice:\n default: Spot Price\n KeyName:\n default: SSH Key Name\n NumberOfZones:\n default: Number of Zones\n NodesPerZone:\n default: Nodes per Zone\n AZ:\n default: Availability Zone\n VPC:\n default: VPC\n PublicSubnet1:\n default: Public Subnet 1\n PublicSubnet2:\n default: Public Subnet 2\n PublicSubnet3:\n default: Public Subnet 3\n PrivateSubnet1:\n default: Private Subnet 1\n PrivateSubnet2:\n default: Private Subnet 2\n PrivateSubnet3:\n default: Private Subnet 3\n PublicLoadBalancer:\n default: Public Load Balancer\n InternalLoadBalancer:\n default: Internal Load Balancer\n ExternalAccessCidrIP:\n default: External IP address range for access to admin site\n ECSSecurityGroup:\n default: the security group the ecs cluster is in\nParameters:\n # resource configuration\n IAMRole:\n Description: IAM Role\n Type: String\n VolumeSize:\n Description: The EBS Data volume size (GB) for all nodes\n Type: Number\n MinValue: '10'\n MaxValue: '1000'\n Default: '50'\n VolumeType:\n Description: The EBS Data volume Type\n Type: String\n AllowedValues:\n - standard\n - gp2\n - gp3\n Default: gp3\n VolumeIOPS:\n Description: The number of I/O operations per second for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '3000'\n MaxValue: '16000'\n Default: '3000'\n VolumeThroughput:\n Description: The throughput to provision for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '125'\n MaxValue: '1000'\n Default: '125'\n VolumeEncryption:\n Description: Whether to enable volume encryption\n Type: String\n AllowedValues:\n - enable\n - disable\n Default: enable\n VolumeEncryptionKey:\n Description: The key ID of AWS KMS key to encrypt volumes - Optional\n Type: String\n Default: \"\"\n InstanceType:\n Description: Type of EC2 instance to launch\n Type: String\n Default: r5.4xlarge\n AllowedValues:\n - ---- Pay-As-You-Go and Bring-Your-Own-License ----\n - c3.xlarge\n - c3.2xlarge\n - c3.4xlarge\n - c3.8xlarge\n - c4.xlarge\n - c4.2xlarge\n - c4.4xlarge\n - c4.8xlarge\n - c5.xlarge\n - c5.2xlarge\n - c5.4xlarge\n - c5.9xlarge\n - c5.12xlarge\n - c5.18xlarge\n - c5.24xlarge\n - c5a.xlarge\n - c5a.2xlarge\n - c5a.4xlarge\n - c5a.8xlarge\n - c5a.12xlarge\n - c5a.16xlarge\n - c5a.24xlarge\n - c5ad.xlarge\n - c5ad.2xlarge\n - c5ad.4xlarge\n - c5ad.8xlarge\n - c5ad.12xlarge\n - c5ad.16xlarge\n - c5ad.24xlarge\n - c5d.xlarge\n - c5d.2xlarge\n - c5d.4xlarge\n - c5d.9xlarge\n - c5d.12xlarge\n - c5d.18xlarge\n - c5d.24xlarge\n - c5n.xlarge\n - c5n.2xlarge\n - c5n.4xlarge\n - c5n.9xlarge\n - c5n.18xlarge\n - c6a.xlarge\n - c6a.2xlarge\n - c6a.4xlarge\n - c6a.8xlarge\n - c6a.12xlarge\n - c6a.16xlarge\n - c6a.24xlarge\n - c6a.32xlarge\n - c6a.48xlarge\n - c6i.xlarge\n - c6i.2xlarge\n - c6i.4xlarge\n - c6i.8xlarge\n - c6i.12xlarge\n - c6i.16xlarge\n - c6i.24xlarge\n - c6i.32xlarge\n - c6id.xlarge\n - c6id.2xlarge\n - c6id.4xlarge\n - c6id.8xlarge\n - c6id.12xlarge\n - c6id.16xlarge\n - c6id.24xlarge\n - c6id.32xlarge\n - c7i.xlarge\n - c7i.2xlarge\n - c7i.4xlarge\n - c7i.8xlarge\n - c7i.12xlarge\n - c7i.16xlarge\n - c7i.24xlarge\n - c7i.48xlarge\n - c7i-flex.xlarge\n - c7i-flex.2xlarge\n - c7i-flex.4xlarge\n - c7i-flex.8xlarge\n - c7i-flex.12xlarge\n - c7i-flex.16xlarge\n - c7a.xlarge\n - c7a.2xlarge\n - c7a.4xlarge\n - c7a.8xlarge\n - c7a.12xlarge\n - c7a.16xlarge\n - c7a.24xlarge\n - c7a.32xlarge\n - c7a.48xlarge\n - c8i.xlarge\n - c8i.2xlarge\n - c8i.4xlarge\n - c8i.8xlarge\n - c8i.12xlarge\n - c8i.16xlarge\n - c8i.24xlarge\n - c8i.32xlarge\n - c8i.48xlarge\n - c8i.96xlarge\n - c8i-flex.xlarge\n - c8i-flex.2xlarge\n - c8i-flex.4xlarge\n - c8i-flex.8xlarge\n - c8i-flex.12xlarge\n - c8i-flex.16xlarge\n - i2.2xlarge\n - i2.4xlarge\n - i2.8xlarge\n - i2.xlarge\n - i3.xlarge\n - i3.2xlarge\n - i3.4xlarge\n - i3.8xlarge\n - i3.16xlarge\n - i3en.xlarge\n - i3en.2xlarge\n - i3en.3xlarge\n - i3en.6xlarge\n - i3en.12xlarge\n - i3en.24xlarge\n - i4i.xlarge\n - i4i.2xlarge\n - i4i.4xlarge\n - i4i.8xlarge\n - i4i.12xlarge\n - i4i.16xlarge\n - i4i.24xlarge\n - i4i.32xlarge\n - i7ie.xlarge\n - i7ie.2xlarge\n - i7ie.3xlarge\n - i7ie.6xlarge\n - i7ie.12xlarge\n - i7ie.18xlarge\n - i7ie.24xlarge\n - i7ie.48xlarge\n - m3.xlarge\n - m3.2xlarge\n - m4.xlarge\n - m4.2xlarge\n - m4.4xlarge\n - m4.10xlarge\n - m4.16xlarge\n - m5.xlarge\n - m5.2xlarge\n - m5.4xlarge\n - m5.8xlarge\n - m5.12xlarge\n - m5.16xlarge\n - m5.24xlarge\n - m5a.xlarge\n - m5a.2xlarge\n - m5a.4xlarge\n - m5a.8xlarge\n - m5a.12xlarge\n - m5a.16xlarge\n - m5a.24xlarge\n - m5d.xlarge\n - m5d.2xlarge\n - m5d.4xlarge\n - m5d.8xlarge\n - m5d.16xlarge\n - m5d.12xlarge\n - m5d.24xlarge\n - m5ad.xlarge\n - m5ad.2xlarge\n - m5ad.4xlarge\n - m5ad.8xlarge\n - m5ad.12xlarge\n - m5ad.16xlarge\n - m5ad.24xlarge\n - m5zn.xlarge\n - m5zn.2xlarge\n - m5zn.3xlarge\n - m5zn.6xlarge\n - m5zn.12xlarge\n - m5n.xlarge\n - m5n.2xlarge\n - m5n.4xlarge\n - m5n.8xlarge\n - m5n.12xlarge\n - m5n.16xlarge\n - m5n.24xlarge\n - m5dn.xlarge\n - m5dn.2xlarge\n - m5dn.4xlarge\n - m5dn.8xlarge\n - m5dn.12xlarge\n - m5dn.16xlarge\n - m5dn.24xlarge\n - m6a.xlarge\n - m6a.2xlarge\n - m6a.4xlarge\n - m6a.8xlarge\n - m6a.12xlarge\n - m6a.16xlarge\n - m6a.24xlarge\n - m6a.32xlarge\n - m6a.48xlarge\n - m6i.xlarge\n - m6i.2xlarge\n - m6i.4xlarge\n - m6i.8xlarge\n - m6i.12xlarge\n - m6i.16xlarge\n - m6i.24xlarge\n - m6i.32xlarge\n - m6id.xlarge\n - m6id.2xlarge\n - m6id.4xlarge\n - m6id.8xlarge\n - m6id.12xlarge\n - m6id.16xlarge\n - m6id.24xlarge\n - m6id.32xlarge\n - m7i.xlarge\n - m7i.2xlarge\n - m7i.4xlarge\n - m7i.8xlarge\n - m7i.12xlarge\n - m7i.16xlarge\n - m7i.24xlarge\n - m7i.48xlarge\n - m7i-flex.xlarge\n - m7i-flex.2xlarge\n - m7i-flex.4xlarge\n - m7i-flex.8xlarge\n - m7i-flex.12xlarge\n - m7i-flex.16xlarge\n - m7a.xlarge\n - m7a.2xlarge\n - m7a.4xlarge\n - m7a.8xlarge\n - m7a.12xlarge\n - m7a.16xlarge\n - m7a.24xlarge\n - m7a.32xlarge\n - m7a.48xlarge\n - m8a.xlarge\n - m8a.2xlarge\n - m8a.4xlarge\n - m8a.8xlarge\n - m8a.12xlarge\n - m8a.16xlarge\n - m8a.24xlarge\n - m8a.48xlarge\n - m8i.xlarge\n - m8i.2xlarge\n - m8i.4xlarge\n - m8i.8xlarge\n - m8i.12xlarge\n - m8i.16xlarge\n - m8i.24xlarge\n - m8i.32xlarge\n - m8i.48xlarge\n - m8i.96xlarge\n - m8i-flex.xlarge\n - m8i-flex.2xlarge\n - m8i-flex.4xlarge\n - m8i-flex.8xlarge\n - m8i-flex.12xlarge\n - m8i-flex.16xlarge\n - r3.xlarge\n - r3.2xlarge\n - r3.4xlarge\n - r3.8xlarge\n - r4.xlarge\n - r4.2xlarge\n - r4.4xlarge\n - r4.8xlarge\n - r4.16xlarge\n - r5.xlarge\n - r5.2xlarge\n - r5.4xlarge\n - r5.8xlarge\n - r5.12xlarge\n - r5.16xlarge\n - r5.24xlarge\n - r5a.xlarge\n - r5a.2xlarge\n - r5a.4xlarge\n - r5a.8xlarge\n - r5a.12xlarge\n - r5a.16xlarge\n - r5a.24xlarge\n - r5ad.xlarge\n - r5ad.2xlarge\n - r5ad.4xlarge\n - r5ad.8xlarge\n - r5ad.12xlarge\n - r5ad.16xlarge\n - r5ad.24xlarge\n - r5b.xlarge\n - r5b.2xlarge\n - r5b.4xlarge\n - r5b.8xlarge\n - r5b.12xlarge\n - r5b.16xlarge\n - r5b.24xlarge\n - r5d.xlarge\n - r5d.2xlarge\n - r5d.4xlarge\n - r5d.8xlarge\n - r5d.12xlarge\n - r5d.16xlarge\n - r5d.24xlarge\n - r5dn.xlarge\n - r5dn.2xlarge\n - r5dn.4xlarge\n - r5dn.8xlarge\n - r5dn.12xlarge\n - r5dn.16xlarge\n - r5dn.24xlarge\n - r5n.xlarge\n - r5n.2xlarge\n - r5n.4xlarge\n - r5n.8xlarge\n - r5n.12xlarge\n - r5n.16xlarge\n - r5n.24xlarge\n - r6a.xlarge\n - r6a.2xlarge\n - r6a.4xlarge\n - r6a.8xlarge\n - r6a.12xlarge\n - r6a.16xlarge\n - r6a.24xlarge\n - r6a.32xlarge\n - r6a.48xlarge\n - r6i.xlarge\n - r6i.2xlarge\n - r6i.4xlarge\n - r6i.8xlarge\n - r6i.12xlarge\n - r6i.16xlarge\n - r6i.24xlarge\n - r6i.32xlarge\n - r6id.xlarge\n - r6id.2xlarge\n - r6id.4xlarge\n - r6id.8xlarge\n - r6id.12xlarge\n - r6id.16xlarge\n - r6id.24xlarge\n - r6id.32xlarge\n - r7i.xlarge\n - r7i.2xlarge\n - r7i.4xlarge\n - r7i.8xlarge\n - r7i.12xlarge\n - r7i.16xlarge\n - r7i.24xlarge\n - r7i.48xlarge\n - r7iz.xlarge\n - r7iz.2xlarge\n - r7iz.4xlarge\n - r7iz.8xlarge\n - r7iz.12xlarge\n - r7iz.16xlarge\n - r7iz.32xlarge\n - r7a.xlarge\n - r7a.2xlarge\n - r7a.4xlarge\n - r7a.8xlarge\n - r7a.12xlarge\n - r7a.16xlarge\n - r7a.24xlarge\n - r7a.32xlarge\n - r7a.48xlarge\n - r8a.xlarge\n - r8a.2xlarge\n - r8a.4xlarge\n - r8a.8xlarge\n - r8a.12xlarge\n - r8a.16xlarge\n - r8a.24xlarge\n - r8a.48xlarge\n - r8i.xlarge\n - r8i.2xlarge\n - r8i.4xlarge\n - r8i.8xlarge\n - r8i.12xlarge\n - r8i.16xlarge\n - r8i.24xlarge\n - r8i.32xlarge\n - r8i.48xlarge\n - r8i.96xlarge\n - r8i-flex.xlarge\n - r8i-flex.2xlarge\n - r8i-flex.4xlarge\n - r8i-flex.8xlarge\n - r8i-flex.12xlarge\n - r8i-flex.16xlarge\n - x1.16xlarge\n - x1.32xlarge\n - x1e.xlarge\n - x1e.2xlarge\n - x1e.4xlarge\n - x1e.8xlarge\n - x1e.16xlarge\n - x1e.32xlarge\n - x2idn.16xlarge\n - x2idn.24xlarge\n - x2idn.32xlarge\n - x2iedn.xlarge\n - x2iedn.2xlarge\n - x2iedn.4xlarge\n - x2iedn.8xlarge\n - x2iedn.16xlarge\n - x2iedn.24xlarge\n - x2iedn.32xlarge\n - x2iezn.2xlarge\n - x2iezn.4xlarge\n - x2iezn.6xlarge\n - x2iezn.8xlarge\n - x2iezn.12xlarge\n - d2.xlarge\n - d2.2xlarge\n - d2.4xlarge\n - d2.8xlarge\n - d3.xlarge\n - d3.2xlarge\n - d3.4xlarge\n - d3.8xlarge\n - d3en.xlarge\n - d3en.2xlarge\n - d3en.4xlarge\n - d3en.6xlarge\n - d3en.8xlarge\n - d3en.12xlarge\n - dl1.24xlarge\n - h1.2xlarge\n - h1.4xlarge\n - h1.8xlarge\n - h1.16xlarge\n - inf1.xlarge\n - inf1.2xlarge\n - inf1.6xlarge\n - inf1.24xlarge\n - trn1.2xlarge\n - trn1.32xlarge\n - u-3tb1.56xlarge\n - u-6tb1.56xlarge\n - u-6tb1.112xlarge\n - u-9tb1.112xlarge\n - u-12tb1.112xlarge\n - u-18tb1.112xlarge\n - vt1.3xlarge\n - vt1.6xlarge\n - vt1.24xlarge\n - z1d.xlarge\n - z1d.2xlarge\n - z1d.3xlarge\n - z1d.6xlarge\n - z1d.12xlarge\n - -------------- Bring-Your-Own-License Only --------------\n - c3.large\n - c4.large\n - c5.metal\n - c5.large\n - c5a.large\n - c5ad.large\n - c5d.metal\n - c5d.large\n - c5n.large\n - c5n.metal\n - c6a.large\n - c6a.metal\n - c6i.large\n - c6i.metal\n - c6id.large\n - c6id.metal\n - c7i.large\n - c7i.metal-24xl\n - c7i.metal-48xl\n - c7i-flex.large\n - c7a.medium\n - c7a.large\n - c7a.metal-48xl\n - c8i.large\n - c8i.metal-48xl\n - c8i.metal-96xl\n - c8i-flex.large\n - i3.large\n - i3.metal\n - i3en.large\n - i3en.metal\n - i4i.large\n - i4i.metal\n - i7ie.large\n - i7ie.metal-24xl\n - i7ie.metal-48xl\n - m3.large\n - m3.medium\n - m4.large\n - m5.metal\n - m5.large\n - m5a.large\n - m5ad.large\n - m5d.metal\n - m5d.large\n - m5zn.large\n - m5zn.metal\n - m5n.large\n - m5n.metal\n - m5dn.large\n - m5dn.metal\n - m6a.large\n - m6a.metal\n - m6i.large\n - m6i.metal\n - m6id.large\n - m6id.metal\n - m7i.large\n - m7i.metal-24xl\n - m7i.metal-48xl\n - m7i-flex.large\n - m7a.medium\n - m7a.large\n - m7a.metal-48xl\n - m8a.medium\n - m8a.large\n - m8a.metal-24xl\n - m8a.metal-48xl\n - m8i.large\n - m8i.metal-48xl\n - m8i.metal-96xl\n - m8i-flex.large\n - r3.large\n - r4.large\n - r5.metal\n - r5.large\n - r5a.large\n - r5d.metal\n - r5ad.large\n - r5d.large\n - r5dn.large\n - r5dn.metal\n - r5b.large\n - r5b.metal\n - r5n.large\n - r5n.metal\n - r6a.large\n - r6a.metal\n - r6i.large\n - r6i.metal\n - r6id.large\n - r6id.metal\n - r7i.large\n - r7i.metal-24xl\n - r7i.metal-48xl\n - r7iz.large\n - r7iz.metal-16xl\n - r7iz.metal-32xl\n - r7a.medium\n - r7a.large\n - r7a.metal-48xl\n - r8a.medium\n - r8a.large\n - r8a.metal-24xl\n - r8a.metal-48xl\n - r8i.large\n - r8i.metal-48xl\n - r8i.metal-96xl\n - r8i-flex.large\n - t2.2xlarge\n - t2.large\n - t2.medium\n - t2.micro\n - t2.nano\n - t2.small\n - t2.xlarge\n - t3.2xlarge\n - t3.large\n - t3.medium\n - t3.micro\n - t3.nano\n - t3.small\n - t3.xlarge\n - t3a.2xlarge\n - t3a.large\n - t3a.medium\n - t3a.micro\n - t3a.nano\n - t3a.small\n - t3a.xlarge\n - x2idn.metal\n - x2iedn.metal\n - x2iezn.metal\n - z1d.metal\n - z1d.large\n SpotPrice:\n Description: Spot price for instances in USD/Hour - Optional/advanced\n Type: Number\n MinValue: '0'\n MaxValue: '2'\n Default: '0'\n KeyName:\n Description: Name of an existing EC2 KeyPair to enable SSH access to the instance\n Type: String\n NumberOfZones:\n Description: Total number of Availability Zones, which can be 1 or 3. Load balancer type depends on the number of zones selected. Select 3 zones for Application Load Balancer (OR) Select 1 zone for Classic Load Balancer.\n Type: Number\n AllowedValues:\n - 1\n - 3\n Default: 3\n NodesPerZone:\n Description: Total number of nodes per Zone. Set to 0 to shutdown/hibernate\n Type: Number\n MinValue: '0'\n MaxValue: '20'\n Default: '1'\n AZ:\n Description: The Availability Zones for VPC subnets. Accept either 1 zone or 3 zones. In the order of Subnet 1, Subnet 2 and Subnet 3 (if applicable).\n Type: 'List<AWS::EC2::AvailabilityZone::Name>'\n LogSNS:\n Description: SNS Topic for logging - optional/advanced.\n Type: String\n Default: none\n PublicLoadBalancer:\n Description: Enable Public Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n InternalLoadBalancer:\n Description: Enable Internal Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n # network configuration\n VPC:\n Description: ID of an existing Virtual Private Cloud (VPC)\n Type: 'AWS::EC2::VPC::Id'\n PublicSubnet1:\n Description: The public subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet2:\n Description: The public subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet3:\n Description: The public subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet1:\n Description: The private subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet2:\n Description: The private subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet3:\n Description: The private subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n ExternalAccessCidrIP:\n Description: A CIDR IP range to allow external access from\n Type: String\n Default: 54.76.254.148/32\n ECSSecurityGroup:\n Description: the security group the ECS cluster is in\n Type: 'AWS::EC2::SecurityGroup::Id'\n\n # marklogic configuration\n AdminUser:\n Description: The MarkLogic administrator username\n Type: String\n AdminPass:\n Description: The MarkLogic administrator password\n Type: String\n NoEcho: 'true'\n AllowedPattern: >-\n ^(?!.*[*]).*$\n ConstraintDescription: Admin password must contain any characters except asterisk (*).\n Licensee:\n Description: The MarkLogic Licensee or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\n LicenseKey:\n Description: The MarkLogic License Key or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\nConditions:\n UseLogSNS: !Not [!Equals [!Ref LogSNS, \"none\"]]\n UseSpot: !Not\n - !Equals\n - !Ref SpotPrice\n - 0\n #MultiZone (3 zones) and SingleZone conditions used for the conditional resource creation based on number of zones selected.\n MultiZone:\n !Not [!Equals [!Ref NumberOfZones, 1]]\n CreatePublicAlb: !And [!Condition MultiZone, !Equals [!Ref PublicLoadBalancer, 'true']]\n CreateInternalAlb: !And [!Condition MultiZone, !Equals [!Ref InternalLoadBalancer, 'true']]\n SingleZone: !Equals [!Ref NumberOfZones, 1]\n PAYG:\n !Or [ !And [!Equals [!Ref LicenseKey, ''], !Equals [!Ref Licensee, '']], !And [!Equals [!Ref LicenseKey, 'none'], !Equals [!Ref Licensee, 'none']] ]\n UseVolumeEncryption: !Equals [!Ref VolumeEncryption, 'enable']\n HasCustomEBSKey: !Not [!Equals [!Ref VolumeEncryptionKey, '']]\n GP3: !Equals [!Ref VolumeType, 'gp3']\nMappings:\n Variable:\n LambdaPackageBucket:\n base: 'ml-db-lambda-'\n TemplateUrl:\n base: 'https://s3.amazonaws.com/marklogic-db-template-releases'\n S3Directory:\n base: '12.0.1'\n LicenseRegion2AMI:\n us-east-1:\n PAYGAl2023: ami-0198b8931e9597271\n BYOLAl2023: ami-0a8536507241f95b0\n us-east-2:\n PAYGAl2023: ami-0877b64dae8264415\n BYOLAl2023: ami-082cc98b2c01e486a\n us-west-1:\n PAYGAl2023: ami-07890fc78f4ddfa20\n BYOLAl2023: ami-05c9a962410c2821b\n us-west-2:\n PAYGAl2023: ami-0577eb149c9e0f53f\n BYOLAl2023: ami-0262dd8d014bf71ba\n eu-central-1:\n PAYGAl2023: ami-06348556399c8ab69\n BYOLAl2023: ami-00cb5a3527e7c0d11\n eu-west-1:\n PAYGAl2023: ami-0fa7bc44cd9ab1f85\n BYOLAl2023: ami-0bc2b4d46367806b0\n ap-south-1:\n PAYGAl2023: ami-0f481ba0a6819ced6\n BYOLAl2023: ami-00b59374107e5efb6\n ap-southeast-1:\n PAYGAl2023: ami-0c373c6c8a2316c80\n BYOLAl2023: ami-0b9bd265ef165a07b\n ap-southeast-2:\n PAYGAl2023: ami-0c65a907408226a3e\n BYOLAl2023: ami-02bad1ef2c6d4a91a\n ap-northeast-1:\n PAYGAl2023: ami-0254bc4adaf13e3b9\n BYOLAl2023: ami-07e8b312b1016bf67\n ap-northeast-2:\n PAYGAl2023: ami-05995b5f5807873d7\n BYOLAl2023: ami-0afd77ba0d7a0c129\n sa-east-1:\n PAYGAl2023: ami-05ec8fee12de236a5\n BYOLAl2023: ami-09d883ea308449555\n eu-west-2:\n PAYGAl2023: ami-0f5cff9d243f31521\n BYOLAl2023: ami-0588d104a52fbc326\n ca-central-1:\n PAYGAl2023: ami-0f34d118b23b51bf5\n BYOLAl2023: ami-0c78eccd03e957005\n eu-west-3:\n PAYGAl2023: ami-01fa9155eb17992c5\n BYOLAl2023: ami-0637199acc5327534\nResources:\n ManagedEniStack:\n Type: AWS::CloudFormation::Stack\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n NodesPerZone: !Ref NodesPerZone\n NumberOfZones: !Ref NumberOfZones\n Subnets: !If [MultiZone, !Join [',', [!Ref PrivateSubnet1, !Ref PrivateSubnet2, !Ref PrivateSubnet3]], !Ref PrivateSubnet1]\n ParentStackName: !Ref 'AWS::StackName'\n ParentStackId: !Ref 'AWS::StackId'\n SecurityGroup: !Ref InstanceSecurityGroup\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-managedeni.template']]\n TimeoutInMinutes: 5\n NodeMgrLambdaStack:\n Type: AWS::CloudFormation::Stack\n DependsOn: ManagedEniStack\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-nodemanager.template']]\n TimeoutInMinutes: 5\n MarklogicVolume1:\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [0, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupA-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c81032f7-b0ec-47ca-a236-e24d57b49ae3\n MarklogicVolume2:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [1, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupB-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: ddb55ae1-a00b-42ed-addd-5e03e4a2764b\n MarklogicVolume3:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [2, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupC-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 9094a65e-9d01-4c4c-9586-c33720e2cc9c\n MarkLogicDDBTable:\n Type: 'AWS::DynamoDB::Table'\n Properties:\n AttributeDefinitions:\n - AttributeName: node\n AttributeType: S\n KeySchema:\n - KeyType: HASH\n AttributeName: node\n ProvisionedThroughput:\n WriteCapacityUnits: '10'\n ReadCapacityUnits: '10'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e7190602-c2de-47ab-81e7-1315f8c01e2d\n #AutoScalingGroup used for SingleZone deployments that is connected to Classic Load Balancer.\n MarkLogicServerGroup:\n Condition: SingleZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup1:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup2:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet2\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp2\n Version: !GetAtt LaunchTemp2.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 87d75478-787a-41d5-bb21-9de6fe4b662e\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup3:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet3\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp3\n Version: !GetAtt LaunchTemp3.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: bbd8314a-6e59-4102-9ed5-232739dd0dfa\n InstanceSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable access to MarkLogic instances from Load Balancers and other cluster members\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n InstanceSecurityGroupIngress:\n Type: 'AWS::EC2::SecurityGroupIngress'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n IpProtocol: tcp\n FromPort: '0'\n ToPort: '65355'\n GroupId: !Ref InstanceSecurityGroup\n SourceSecurityGroupId: !Ref InstanceSecurityGroup\n InternalElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Allow access from ECS clsuter to internal ALB for marklogic cluster.\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n ElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable SSH access and HTTP access on the inbound port\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '22'\n ToPort: '22'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n CidrIp: !Ref ExternalAccessCidrIP\n LaunchTemp1:\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume1\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeA#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=1\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 2efb8cfb-df53-401d-8ff2-34af0dd25993\n LaunchTemp2:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume2\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeB#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c8296a50-a29e-4646-aa74-8f1b735a9a3f\n LaunchTemp3:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume3\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeC#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 7fa68c90-39bc-4874-ad20-8cd8c974ed52\n #Application Load Balancer description for MultiZone deployments (3 zones).\n Alb:\n Condition: CreatePublicAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - ElbSecurityGroup\n Properties: \n SecurityGroups: \n - !Ref ElbSecurityGroup\n Subnets:\n - !Ref PublicSubnet1\n - !If [MultiZone, !Ref PublicSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PublicSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 9 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n AlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicExternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n #Descriptions of the 9 Listeners for MultiZone deployments (3 zones). Each Listener connects Application Load Balancer to a TargetGroup with a particular port.\n AlbListener1:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8000\n Protocol: HTTP\n AlbListener2:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8001\n Protocol: HTTP\n AlbListener3:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8002\n Protocol: HTTP\n AlbListener4:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8003\n Protocol: HTTP\n AlbListener5:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8004\n Protocol: HTTP\n AlbListener6:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8005\n Protocol: HTTP\n AlbListener7:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8006\n Protocol: HTTP\n AlbListener8:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8007\n Protocol: HTTP\n AlbListener9:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8008\n Protocol: HTTP\n MarklogicExternal8011Listener:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - MarklogicExternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicExternal8011\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8011\n Protocol: HTTP\n #Application Load Balancer description for MultiZone deployments (3 zones).\n InternalAlb:\n Condition: CreateInternalAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - InternalElbSecurityGroup\n Properties: \n Scheme: internal\n SecurityGroups: \n - !Ref InternalElbSecurityGroup\n Subnets:\n - !Ref PrivateSubnet1\n - !If [MultiZone, !Ref PrivateSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PrivateSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 1 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n MarklogicInternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicInternal8011Listener:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - MarklogicInternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicInternal8011\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8011\n Protocol: HTTP\n InternalAlbListener1:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8000\n Protocol: HTTP\n InternalAlbListener2:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8001\n Protocol: HTTP\n InternalAlbListener3:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8002\n Protocol: HTTP\n InternalAlbListener4:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8003\n Protocol: HTTP\n InternalAlbListener5:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8004\n Protocol: HTTP\n InternalAlbListener6:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8005\n Protocol: HTTP\n InternalAlbListener7:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8006\n Protocol: HTTP\n InternalAlbListener8:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8007\n Protocol: HTTP\n InternalAlbListener9:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8008\n Protocol: HTTP\nOutputs:\n URL:\n Description: The URL of the MarkLogic Cluster\n Value: !Join\n - ''\n - - 'http://'\n - !If [CreatePublicAlb, !GetAtt [Alb, DNSName], !If [CreateInternalAlb, !GetAtt [InternalAlb, DNSName], !GetAtt [ManagedEniStack, Outputs.ENI]]]\n - ':8001'",
"newContent": "AWSTemplateFormatVersion: 2010-09-09\nDescription: Deploy a MarkLogic Cluster on AWS in existing VPC (Virtual Private Cloud).\nMetadata:\n version: 12.0.1\n binary: MarkLogic-12.0.1-rhel.x86_64.rpm\n AWS::CloudFormation::Interface:\n ParameterGroups:\n - Label:\n default: \"Resource Configuration\"\n Parameters:\n - IAMRole\n - VolumeSize\n - VolumeType\n - VolumeIOPS\n - VolumeThroughput\n - VolumeEncryption\n - VolumeEncryptionKey\n - InstanceType\n - SpotPrice\n - KeyName\n - NumberOfZones\n - NodesPerZone\n - AZ\n - LogSNS\n - Label:\n default: \"Network Configuration\"\n Parameters:\n - VPC\n - PublicSubnet1\n - PublicSubnet2\n - PublicSubnet3\n - PrivateSubnet1\n - PrivateSubnet2\n - PrivateSubnet3\n - PublicLoadBalancer\n - InternalLoadBalancer\n - ExternalAccessCidrIP\n - ECSSecurityGroup\n - Label:\n default: \"MarkLogic Configuration\"\n Parameters:\n - AdminUser\n - AdminPass\n - Licensee\n - LicenseKey\n ParameterLabels:\n AdminUser:\n default: Admin User\n AdminPass:\n default: Admin password\n Licensee:\n default: Licensee\n LicenseKey:\n default: License Key\n IAMRole:\n default: IAM Role\n LogSNS:\n default: Logging SNS ARN\n VolumeSize:\n default: Volume Size\n VolumeType:\n default: Volume Type\n VolumeIOPS:\n default: Volume Iops\n VolumeThroughput:\n default: Volume Throughput\n VolumeEncryption:\n default: Volume Encryption\n VolumeEncryptionKey:\n default: Volume Encryption Key ARN\n InstanceType:\n default: Instance Type\n SpotPrice:\n default: Spot Price\n KeyName:\n default: SSH Key Name\n NumberOfZones:\n default: Number of Zones\n NodesPerZone:\n default: Nodes per Zone\n AZ:\n default: Availability Zone\n VPC:\n default: VPC\n PublicSubnet1:\n default: Public Subnet 1\n PublicSubnet2:\n default: Public Subnet 2\n PublicSubnet3:\n default: Public Subnet 3\n PrivateSubnet1:\n default: Private Subnet 1\n PrivateSubnet2:\n default: Private Subnet 2\n PrivateSubnet3:\n default: Private Subnet 3\n PublicLoadBalancer:\n default: Public Load Balancer\n InternalLoadBalancer:\n default: Internal Load Balancer\n ExternalAccessCidrIP:\n default: External IP address range for access to admin site\n ECSSecurityGroup:\n default: the security group the ecs cluster is in\nParameters:\n # resource configuration\n IAMRole:\n Description: IAM Role\n Type: String\n VolumeSize:\n Description: The EBS Data volume size (GB) for all nodes\n Type: Number\n MinValue: '10'\n MaxValue: '1000'\n Default: '50'\n VolumeType:\n Description: The EBS Data volume Type\n Type: String\n AllowedValues:\n - standard\n - gp2\n - gp3\n Default: gp3\n VolumeIOPS:\n Description: The number of I/O operations per second for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '3000'\n MaxValue: '16000'\n Default: '3000'\n VolumeThroughput:\n Description: The throughput to provision for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '125'\n MaxValue: '1000'\n Default: '125'\n VolumeEncryption:\n Description: Whether to enable volume encryption\n Type: String\n AllowedValues:\n - enable\n - disable\n Default: enable\n VolumeEncryptionKey:\n Description: The key ID of AWS KMS key to encrypt volumes - Optional\n Type: String\n Default: \"\"\n InstanceType:\n Description: Type of EC2 instance to launch\n Type: String\n Default: r5.4xlarge\n AllowedValues:\n - ---- Pay-As-You-Go and Bring-Your-Own-License ----\n - c3.xlarge\n - c3.2xlarge\n - c3.4xlarge\n - c3.8xlarge\n - c4.xlarge\n - c4.2xlarge\n - c4.4xlarge\n - c4.8xlarge\n - c5.xlarge\n - c5.2xlarge\n - c5.4xlarge\n - c5.9xlarge\n - c5.12xlarge\n - c5.18xlarge\n - c5.24xlarge\n - c5a.xlarge\n - c5a.2xlarge\n - c5a.4xlarge\n - c5a.8xlarge\n - c5a.12xlarge\n - c5a.16xlarge\n - c5a.24xlarge\n - c5ad.xlarge\n - c5ad.2xlarge\n - c5ad.4xlarge\n - c5ad.8xlarge\n - c5ad.12xlarge\n - c5ad.16xlarge\n - c5ad.24xlarge\n - c5d.xlarge\n - c5d.2xlarge\n - c5d.4xlarge\n - c5d.9xlarge\n - c5d.12xlarge\n - c5d.18xlarge\n - c5d.24xlarge\n - c5n.xlarge\n - c5n.2xlarge\n - c5n.4xlarge\n - c5n.9xlarge\n - c5n.18xlarge\n - c6a.xlarge\n - c6a.2xlarge\n - c6a.4xlarge\n - c6a.8xlarge\n - c6a.12xlarge\n - c6a.16xlarge\n - c6a.24xlarge\n - c6a.32xlarge\n - c6a.48xlarge\n - c6i.xlarge\n - c6i.2xlarge\n - c6i.4xlarge\n - c6i.8xlarge\n - c6i.12xlarge\n - c6i.16xlarge\n - c6i.24xlarge\n - c6i.32xlarge\n - c6id.xlarge\n - c6id.2xlarge\n - c6id.4xlarge\n - c6id.8xlarge\n - c6id.12xlarge\n - c6id.16xlarge\n - c6id.24xlarge\n - c6id.32xlarge\n - c7i.xlarge\n - c7i.2xlarge\n - c7i.4xlarge\n - c7i.8xlarge\n - c7i.12xlarge\n - c7i.16xlarge\n - c7i.24xlarge\n - c7i.48xlarge\n - c7i-flex.xlarge\n - c7i-flex.2xlarge\n - c7i-flex.4xlarge\n - c7i-flex.8xlarge\n - c7i-flex.12xlarge\n - c7i-flex.16xlarge\n - c7a.xlarge\n - c7a.2xlarge\n - c7a.4xlarge\n - c7a.8xlarge\n - c7a.12xlarge\n - c7a.16xlarge\n - c7a.24xlarge\n - c7a.32xlarge\n - c7a.48xlarge\n - c8i.xlarge\n - c8i.2xlarge\n - c8i.4xlarge\n - c8i.8xlarge\n - c8i.12xlarge\n - c8i.16xlarge\n - c8i.24xlarge\n - c8i.32xlarge\n - c8i.48xlarge\n - c8i.96xlarge\n - c8i-flex.xlarge\n - c8i-flex.2xlarge\n - c8i-flex.4xlarge\n - c8i-flex.8xlarge\n - c8i-flex.12xlarge\n - c8i-flex.16xlarge\n - i2.2xlarge\n - i2.4xlarge\n - i2.8xlarge\n - i2.xlarge\n - i3.xlarge\n - i3.2xlarge\n - i3.4xlarge\n - i3.8xlarge\n - i3.16xlarge\n - i3en.xlarge\n - i3en.2xlarge\n - i3en.3xlarge\n - i3en.6xlarge\n - i3en.12xlarge\n - i3en.24xlarge\n - i4i.xlarge\n - i4i.2xlarge\n - i4i.4xlarge\n - i4i.8xlarge\n - i4i.12xlarge\n - i4i.16xlarge\n - i4i.24xlarge\n - i4i.32xlarge\n - i7ie.xlarge\n - i7ie.2xlarge\n - i7ie.3xlarge\n - i7ie.6xlarge\n - i7ie.12xlarge\n - i7ie.18xlarge\n - i7ie.24xlarge\n - i7ie.48xlarge\n - m3.xlarge\n - m3.2xlarge\n - m4.xlarge\n - m4.2xlarge\n - m4.4xlarge\n - m4.10xlarge\n - m4.16xlarge\n - m5.xlarge\n - m5.2xlarge\n - m5.4xlarge\n - m5.8xlarge\n - m5.12xlarge\n - m5.16xlarge\n - m5.24xlarge\n - m5a.xlarge\n - m5a.2xlarge\n - m5a.4xlarge\n - m5a.8xlarge\n - m5a.12xlarge\n - m5a.16xlarge\n - m5a.24xlarge\n - m5d.xlarge\n - m5d.2xlarge\n - m5d.4xlarge\n - m5d.8xlarge\n - m5d.16xlarge\n - m5d.12xlarge\n - m5d.24xlarge\n - m5ad.xlarge\n - m5ad.2xlarge\n - m5ad.4xlarge\n - m5ad.8xlarge\n - m5ad.12xlarge\n - m5ad.16xlarge\n - m5ad.24xlarge\n - m5zn.xlarge\n - m5zn.2xlarge\n - m5zn.3xlarge\n - m5zn.6xlarge\n - m5zn.12xlarge\n - m5n.xlarge\n - m5n.2xlarge\n - m5n.4xlarge\n - m5n.8xlarge\n - m5n.12xlarge\n - m5n.16xlarge\n - m5n.24xlarge\n - m5dn.xlarge\n - m5dn.2xlarge\n - m5dn.4xlarge\n - m5dn.8xlarge\n - m5dn.12xlarge\n - m5dn.16xlarge\n - m5dn.24xlarge\n - m6a.xlarge\n - m6a.2xlarge\n - m6a.4xlarge\n - m6a.8xlarge\n - m6a.12xlarge\n - m6a.16xlarge\n - m6a.24xlarge\n - m6a.32xlarge\n - m6a.48xlarge\n - m6i.xlarge\n - m6i.2xlarge\n - m6i.4xlarge\n - m6i.8xlarge\n - m6i.12xlarge\n - m6i.16xlarge\n - m6i.24xlarge\n - m6i.32xlarge\n - m6id.xlarge\n - m6id.2xlarge\n - m6id.4xlarge\n - m6id.8xlarge\n - m6id.12xlarge\n - m6id.16xlarge\n - m6id.24xlarge\n - m6id.32xlarge\n - m7i.xlarge\n - m7i.2xlarge\n - m7i.4xlarge\n - m7i.8xlarge\n - m7i.12xlarge\n - m7i.16xlarge\n - m7i.24xlarge\n - m7i.48xlarge\n - m7i-flex.xlarge\n - m7i-flex.2xlarge\n - m7i-flex.4xlarge\n - m7i-flex.8xlarge\n - m7i-flex.12xlarge\n - m7i-flex.16xlarge\n - m7a.xlarge\n - m7a.2xlarge\n - m7a.4xlarge\n - m7a.8xlarge\n - m7a.12xlarge\n - m7a.16xlarge\n - m7a.24xlarge\n - m7a.32xlarge\n - m7a.48xlarge\n - m8a.xlarge\n - m8a.2xlarge\n - m8a.4xlarge\n - m8a.8xlarge\n - m8a.12xlarge\n - m8a.16xlarge\n - m8a.24xlarge\n - m8a.48xlarge\n - m8i.xlarge\n - m8i.2xlarge\n - m8i.4xlarge\n - m8i.8xlarge\n - m8i.12xlarge\n - m8i.16xlarge\n - m8i.24xlarge\n - m8i.32xlarge\n - m8i.48xlarge\n - m8i.96xlarge\n - m8i-flex.xlarge\n - m8i-flex.2xlarge\n - m8i-flex.4xlarge\n - m8i-flex.8xlarge\n - m8i-flex.12xlarge\n - m8i-flex.16xlarge\n - r3.xlarge\n - r3.2xlarge\n - r3.4xlarge\n - r3.8xlarge\n - r4.xlarge\n - r4.2xlarge\n - r4.4xlarge\n - r4.8xlarge\n - r4.16xlarge\n - r5.xlarge\n - r5.2xlarge\n - r5.4xlarge\n - r5.8xlarge\n - r5.12xlarge\n - r5.16xlarge\n - r5.24xlarge\n - r5a.xlarge\n - r5a.2xlarge\n - r5a.4xlarge\n - r5a.8xlarge\n - r5a.12xlarge\n - r5a.16xlarge\n - r5a.24xlarge\n - r5ad.xlarge\n - r5ad.2xlarge\n - r5ad.4xlarge\n - r5ad.8xlarge\n - r5ad.12xlarge\n - r5ad.16xlarge\n - r5ad.24xlarge\n - r5b.xlarge\n - r5b.2xlarge\n - r5b.4xlarge\n - r5b.8xlarge\n - r5b.12xlarge\n - r5b.16xlarge\n - r5b.24xlarge\n - r5d.xlarge\n - r5d.2xlarge\n - r5d.4xlarge\n - r5d.8xlarge\n - r5d.12xlarge\n - r5d.16xlarge\n - r5d.24xlarge\n - r5dn.xlarge\n - r5dn.2xlarge\n - r5dn.4xlarge\n - r5dn.8xlarge\n - r5dn.12xlarge\n - r5dn.16xlarge\n - r5dn.24xlarge\n - r5n.xlarge\n - r5n.2xlarge\n - r5n.4xlarge\n - r5n.8xlarge\n - r5n.12xlarge\n - r5n.16xlarge\n - r5n.24xlarge\n - r6a.xlarge\n - r6a.2xlarge\n - r6a.4xlarge\n - r6a.8xlarge\n - r6a.12xlarge\n - r6a.16xlarge\n - r6a.24xlarge\n - r6a.32xlarge\n - r6a.48xlarge\n - r6i.xlarge\n - r6i.2xlarge\n - r6i.4xlarge\n - r6i.8xlarge\n - r6i.12xlarge\n - r6i.16xlarge\n - r6i.24xlarge\n - r6i.32xlarge\n - r6id.xlarge\n - r6id.2xlarge\n - r6id.4xlarge\n - r6id.8xlarge\n - r6id.12xlarge\n - r6id.16xlarge\n - r6id.24xlarge\n - r6id.32xlarge\n - r7i.xlarge\n - r7i.2xlarge\n - r7i.4xlarge\n - r7i.8xlarge\n - r7i.12xlarge\n - r7i.16xlarge\n - r7i.24xlarge\n - r7i.48xlarge\n - r7iz.xlarge\n - r7iz.2xlarge\n - r7iz.4xlarge\n - r7iz.8xlarge\n - r7iz.12xlarge\n - r7iz.16xlarge\n - r7iz.32xlarge\n - r7a.xlarge\n - r7a.2xlarge\n - r7a.4xlarge\n - r7a.8xlarge\n - r7a.12xlarge\n - r7a.16xlarge\n - r7a.24xlarge\n - r7a.32xlarge\n - r7a.48xlarge\n - r8a.xlarge\n - r8a.2xlarge\n - r8a.4xlarge\n - r8a.8xlarge\n - r8a.12xlarge\n - r8a.16xlarge\n - r8a.24xlarge\n - r8a.48xlarge\n - r8i.xlarge\n - r8i.2xlarge\n - r8i.4xlarge\n - r8i.8xlarge\n - r8i.12xlarge\n - r8i.16xlarge\n - r8i.24xlarge\n - r8i.32xlarge\n - r8i.48xlarge\n - r8i.96xlarge\n - r8i-flex.xlarge\n - r8i-flex.2xlarge\n - r8i-flex.4xlarge\n - r8i-flex.8xlarge\n - r8i-flex.12xlarge\n - r8i-flex.16xlarge\n - x1.16xlarge\n - x1.32xlarge\n - x1e.xlarge\n - x1e.2xlarge\n - x1e.4xlarge\n - x1e.8xlarge\n - x1e.16xlarge\n - x1e.32xlarge\n - x2idn.16xlarge\n - x2idn.24xlarge\n - x2idn.32xlarge\n - x2iedn.xlarge\n - x2iedn.2xlarge\n - x2iedn.4xlarge\n - x2iedn.8xlarge\n - x2iedn.16xlarge\n - x2iedn.24xlarge\n - x2iedn.32xlarge\n - x2iezn.2xlarge\n - x2iezn.4xlarge\n - x2iezn.6xlarge\n - x2iezn.8xlarge\n - x2iezn.12xlarge\n - d2.xlarge\n - d2.2xlarge\n - d2.4xlarge\n - d2.8xlarge\n - d3.xlarge\n - d3.2xlarge\n - d3.4xlarge\n - d3.8xlarge\n - d3en.xlarge\n - d3en.2xlarge\n - d3en.4xlarge\n - d3en.6xlarge\n - d3en.8xlarge\n - d3en.12xlarge\n - dl1.24xlarge\n - h1.2xlarge\n - h1.4xlarge\n - h1.8xlarge\n - h1.16xlarge\n - inf1.xlarge\n - inf1.2xlarge\n - inf1.6xlarge\n - inf1.24xlarge\n - trn1.2xlarge\n - trn1.32xlarge\n - u-3tb1.56xlarge\n - u-6tb1.56xlarge\n - u-6tb1.112xlarge\n - u-9tb1.112xlarge\n - u-12tb1.112xlarge\n - u-18tb1.112xlarge\n - vt1.3xlarge\n - vt1.6xlarge\n - vt1.24xlarge\n - z1d.xlarge\n - z1d.2xlarge\n - z1d.3xlarge\n - z1d.6xlarge\n - z1d.12xlarge\n - -------------- Bring-Your-Own-License Only --------------\n - c3.large\n - c4.large\n - c5.metal\n - c5.large\n - c5a.large\n - c5ad.large\n - c5d.metal\n - c5d.large\n - c5n.large\n - c5n.metal\n - c6a.large\n - c6a.metal\n - c6i.large\n - c6i.metal\n - c6id.large\n - c6id.metal\n - c7i.large\n - c7i.metal-24xl\n - c7i.metal-48xl\n - c7i-flex.large\n - c7a.medium\n - c7a.large\n - c7a.metal-48xl\n - c8i.large\n - c8i.metal-48xl\n - c8i.metal-96xl\n - c8i-flex.large\n - i3.large\n - i3.metal\n - i3en.large\n - i3en.metal\n - i4i.large\n - i4i.metal\n - i7ie.large\n - i7ie.metal-24xl\n - i7ie.metal-48xl\n - m3.large\n - m3.medium\n - m4.large\n - m5.metal\n - m5.large\n - m5a.large\n - m5ad.large\n - m5d.metal\n - m5d.large\n - m5zn.large\n - m5zn.metal\n - m5n.large\n - m5n.metal\n - m5dn.large\n - m5dn.metal\n - m6a.large\n - m6a.metal\n - m6i.large\n - m6i.metal\n - m6id.large\n - m6id.metal\n - m7i.large\n - m7i.metal-24xl\n - m7i.metal-48xl\n - m7i-flex.large\n - m7a.medium\n - m7a.large\n - m7a.metal-48xl\n - m8a.medium\n - m8a.large\n - m8a.metal-24xl\n - m8a.metal-48xl\n - m8i.large\n - m8i.metal-48xl\n - m8i.metal-96xl\n - m8i-flex.large\n - r3.large\n - r4.large\n - r5.metal\n - r5.large\n - r5a.large\n - r5d.metal\n - r5ad.large\n - r5d.large\n - r5dn.large\n - r5dn.metal\n - r5b.large\n - r5b.metal\n - r5n.large\n - r5n.metal\n - r6a.large\n - r6a.metal\n - r6i.large\n - r6i.metal\n - r6id.large\n - r6id.metal\n - r7i.large\n - r7i.metal-24xl\n - r7i.metal-48xl\n - r7iz.large\n - r7iz.metal-16xl\n - r7iz.metal-32xl\n - r7a.medium\n - r7a.large\n - r7a.metal-48xl\n - r8a.medium\n - r8a.large\n - r8a.metal-24xl\n - r8a.metal-48xl\n - r8i.large\n - r8i.metal-48xl\n - r8i.metal-96xl\n - r8i-flex.large\n - t2.2xlarge\n - t2.large\n - t2.medium\n - t2.micro\n - t2.nano\n - t2.small\n - t2.xlarge\n - t3.2xlarge\n - t3.large\n - t3.medium\n - t3.micro\n - t3.nano\n - t3.small\n - t3.xlarge\n - t3a.2xlarge\n - t3a.large\n - t3a.medium\n - t3a.micro\n - t3a.nano\n - t3a.small\n - t3a.xlarge\n - x2idn.metal\n - x2iedn.metal\n - x2iezn.metal\n - z1d.metal\n - z1d.large\n SpotPrice:\n Description: Spot price for instances in USD/Hour - Optional/advanced\n Type: Number\n MinValue: '0'\n MaxValue: '2'\n Default: '0'\n KeyName:\n Description: Name of an existing EC2 KeyPair to enable SSH access to the instance\n Type: String\n NumberOfZones:\n Description: Total number of Availability Zones, which can be 1 or 3. Load balancer type depends on the number of zones selected. Select 3 zones for Application Load Balancer (OR) Select 1 zone for Classic Load Balancer.\n Type: Number\n AllowedValues:\n - 1\n - 3\n Default: 3\n NodesPerZone:\n Description: Total number of nodes per Zone. Set to 0 to shutdown/hibernate\n Type: Number\n MinValue: '0'\n MaxValue: '20'\n Default: '1'\n AZ:\n Description: The Availability Zones for VPC subnets. Accept either 1 zone or 3 zones. In the order of Subnet 1, Subnet 2 and Subnet 3 (if applicable).\n Type: 'List<AWS::EC2::AvailabilityZone::Name>'\n LogSNS:\n Description: SNS Topic for logging - optional/advanced.\n Type: String\n Default: none\n PublicLoadBalancer:\n Description: Enable Public Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n InternalLoadBalancer:\n Description: Enable Internal Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n # network configuration\n VPC:\n Description: ID of an existing Virtual Private Cloud (VPC)\n Type: 'AWS::EC2::VPC::Id'\n PublicSubnet1:\n Description: The public subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet2:\n Description: The public subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet3:\n Description: The public subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet1:\n Description: The private subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet2:\n Description: The private subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet3:\n Description: The private subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n ExternalAccessCidrIP:\n Description: A CIDR IP range to allow external access from\n Type: String\n Default: 54.76.254.148/32\n ECSSecurityGroup:\n Description: the security group the ECS cluster is in\n Type: 'AWS::EC2::SecurityGroup::Id'\n\n # marklogic configuration\n AdminUser:\n Description: The MarkLogic administrator username\n Type: String\n AdminPass:\n Description: The MarkLogic administrator password\n Type: String\n NoEcho: 'true'\n AllowedPattern: >-\n ^(?!.*[*]).*$\n ConstraintDescription: Admin password must contain any characters except asterisk (*).\n Licensee:\n Description: The MarkLogic Licensee or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\n LicenseKey:\n Description: The MarkLogic License Key or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\nConditions:\n UseLogSNS: !Not [!Equals [!Ref LogSNS, \"none\"]]\n UseSpot: !Not\n - !Equals\n - !Ref SpotPrice\n - 0\n #MultiZone (3 zones) and SingleZone conditions used for the conditional resource creation based on number of zones selected.\n MultiZone:\n !Not [!Equals [!Ref NumberOfZones, 1]]\n CreatePublicAlb: !And [!Condition MultiZone, !Equals [!Ref PublicLoadBalancer, 'true']]\n CreateInternalAlb: !And [!Condition MultiZone, !Equals [!Ref InternalLoadBalancer, 'true']]\n SingleZone: !Equals [!Ref NumberOfZones, 1]\n PAYG:\n !Or [ !And [!Equals [!Ref LicenseKey, ''], !Equals [!Ref Licensee, '']], !And [!Equals [!Ref LicenseKey, 'none'], !Equals [!Ref Licensee, 'none']] ]\n UseVolumeEncryption: !Equals [!Ref VolumeEncryption, 'enable']\n HasCustomEBSKey: !Not [!Equals [!Ref VolumeEncryptionKey, '']]\n GP3: !Equals [!Ref VolumeType, 'gp3']\nMappings:\n Variable:\n LambdaPackageBucket:\n base: 'ml-db-lambda-'\n TemplateUrl:\n base: 'https://s3.amazonaws.com/marklogic-db-template-releases'\n S3Directory:\n base: '12.0.1'\n LicenseRegion2AMI:\n us-east-1:\n PAYGAl2023: ami-0198b8931e9597271\n BYOLAl2023: ami-0a8536507241f95b0\n us-east-2:\n PAYGAl2023: ami-0877b64dae8264415\n BYOLAl2023: ami-082cc98b2c01e486a\n us-west-1:\n PAYGAl2023: ami-07890fc78f4ddfa20\n BYOLAl2023: ami-05c9a962410c2821b\n us-west-2:\n PAYGAl2023: ami-0577eb149c9e0f53f\n BYOLAl2023: ami-0262dd8d014bf71ba\n eu-central-1:\n PAYGAl2023: ami-06348556399c8ab69\n BYOLAl2023: ami-00cb5a3527e7c0d11\n eu-west-1:\n PAYGAl2023: ami-0fa7bc44cd9ab1f85\n BYOLAl2023: ami-0bc2b4d46367806b0\n ap-south-1:\n PAYGAl2023: ami-0f481ba0a6819ced6\n BYOLAl2023: ami-00b59374107e5efb6\n ap-southeast-1:\n PAYGAl2023: ami-0c373c6c8a2316c80\n BYOLAl2023: ami-0b9bd265ef165a07b\n ap-southeast-2:\n PAYGAl2023: ami-0c65a907408226a3e\n BYOLAl2023: ami-02bad1ef2c6d4a91a\n ap-northeast-1:\n PAYGAl2023: ami-0254bc4adaf13e3b9\n BYOLAl2023: ami-07e8b312b1016bf67\n ap-northeast-2:\n PAYGAl2023: ami-05995b5f5807873d7\n BYOLAl2023: ami-0afd77ba0d7a0c129\n sa-east-1:\n PAYGAl2023: ami-05ec8fee12de236a5\n BYOLAl2023: ami-09d883ea308449555\n eu-west-2:\n PAYGAl2023: ami-0f5cff9d243f31521\n BYOLAl2023: ami-0588d104a52fbc326\n ca-central-1:\n PAYGAl2023: ami-0f34d118b23b51bf5\n BYOLAl2023: ami-0c78eccd03e957005\n eu-west-3:\n PAYGAl2023: ami-01fa9155eb17992c5\n BYOLAl2023: ami-0637199acc5327534\nResources:\n ManagedEniStack:\n Type: AWS::CloudFormation::Stack\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n NodesPerZone: !Ref NodesPerZone\n NumberOfZones: !Ref NumberOfZones\n Subnets: !If [MultiZone, !Join [',', [!Ref PrivateSubnet1, !Ref PrivateSubnet2, !Ref PrivateSubnet3]], !Ref PrivateSubnet1]\n ParentStackName: !Ref 'AWS::StackName'\n ParentStackId: !Ref 'AWS::StackId'\n SecurityGroup: !Ref InstanceSecurityGroup\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-managedeni.template']]\n TimeoutInMinutes: 5\n NodeMgrLambdaStack:\n Type: AWS::CloudFormation::Stack\n DependsOn: ManagedEniStack\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-nodemanager.template']]\n TimeoutInMinutes: 5\n MarklogicVolume1:\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [0, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupA-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c81032f7-b0ec-47ca-a236-e24d57b49ae3\n MarklogicVolume2:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [1, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupB-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: ddb55ae1-a00b-42ed-addd-5e03e4a2764b\n MarklogicVolume3:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [2, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupC-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 9094a65e-9d01-4c4c-9586-c33720e2cc9c\n MarkLogicDDBTable:\n Type: 'AWS::DynamoDB::Table'\n Properties:\n AttributeDefinitions:\n - AttributeName: node\n AttributeType: S\n KeySchema:\n - KeyType: HASH\n AttributeName: node\n ProvisionedThroughput:\n WriteCapacityUnits: '10'\n ReadCapacityUnits: '10'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e7190602-c2de-47ab-81e7-1315f8c01e2d\n #AutoScalingGroup used for SingleZone deployments that is connected to Classic Load Balancer.\n MarkLogicServerGroup:\n Condition: SingleZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup1:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - InternalAlbTargetGroup1\n - InternalAlbTargetGroup2\n - InternalAlbTargetGroup3\n - InternalAlbTargetGroup4\n - InternalAlbTargetGroup5\n - InternalAlbTargetGroup6\n - InternalAlbTargetGroup7\n - InternalAlbTargetGroup8\n - InternalAlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref InternalAlbTargetGroup1\n - !Ref InternalAlbTargetGroup2\n - !Ref InternalAlbTargetGroup3\n - !Ref InternalAlbTargetGroup4\n - !Ref InternalAlbTargetGroup5\n - !Ref InternalAlbTargetGroup6\n - !Ref InternalAlbTargetGroup7\n - !Ref InternalAlbTargetGroup8\n - !Ref InternalAlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup2:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet2\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp2\n Version: !GetAtt LaunchTemp2.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 87d75478-787a-41d5-bb21-9de6fe4b662e\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup3:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet3\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp3\n Version: !GetAtt LaunchTemp3.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: bbd8314a-6e59-4102-9ed5-232739dd0dfa\n InstanceSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable access to MarkLogic instances from Load Balancers and other cluster members\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n InstanceSecurityGroupIngress:\n Type: 'AWS::EC2::SecurityGroupIngress'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n IpProtocol: tcp\n FromPort: '0'\n ToPort: '65355'\n GroupId: !Ref InstanceSecurityGroup\n SourceSecurityGroupId: !Ref InstanceSecurityGroup\n InternalElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Allow access from ECS clsuter to internal ALB for marklogic cluster.\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n ElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable SSH access and HTTP access on the inbound port\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '22'\n ToPort: '22'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n CidrIp: !Ref ExternalAccessCidrIP\n LaunchTemp1:\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume1\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeA#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=1\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 2efb8cfb-df53-401d-8ff2-34af0dd25993\n LaunchTemp2:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume2\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeB#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c8296a50-a29e-4646-aa74-8f1b735a9a3f\n LaunchTemp3:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume3\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeC#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 7fa68c90-39bc-4874-ad20-8cd8c974ed52\n #Application Load Balancer description for MultiZone deployments (3 zones).\n Alb:\n Condition: CreatePublicAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - ElbSecurityGroup\n Properties: \n SecurityGroups: \n - !Ref ElbSecurityGroup\n Subnets:\n - !Ref PublicSubnet1\n - !If [MultiZone, !Ref PublicSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PublicSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 9 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n AlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicExternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n #Descriptions of the 9 Listeners for MultiZone deployments (3 zones). Each Listener connects Application Load Balancer to a TargetGroup with a particular port.\n AlbListener1:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8000\n Protocol: HTTP\n AlbListener2:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8001\n Protocol: HTTP\n AlbListener3:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8002\n Protocol: HTTP\n AlbListener4:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8003\n Protocol: HTTP\n AlbListener5:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8004\n Protocol: HTTP\n AlbListener6:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8005\n Protocol: HTTP\n AlbListener7:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8006\n Protocol: HTTP\n AlbListener8:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8007\n Protocol: HTTP\n AlbListener9:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8008\n Protocol: HTTP\n MarklogicExternal8011Listener:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - MarklogicExternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicExternal8011\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8011\n Protocol: HTTP\n #Application Load Balancer description for MultiZone deployments (3 zones).\n InternalAlb:\n Condition: CreateInternalAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - InternalElbSecurityGroup\n Properties: \n Scheme: internal\n SecurityGroups: \n - !Ref InternalElbSecurityGroup\n Subnets:\n - !Ref PrivateSubnet1\n - !If [MultiZone, !Ref PrivateSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PrivateSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 1 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n MarklogicInternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicInternal8011Listener:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - MarklogicInternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicInternal8011\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8011\n Protocol: HTTP\n InternalAlbListener1:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8000\n Protocol: HTTP\n InternalAlbListener2:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8001\n Protocol: HTTP\n InternalAlbListener3:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8002\n Protocol: HTTP\n InternalAlbListener4:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8003\n Protocol: HTTP\n InternalAlbListener5:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8004\n Protocol: HTTP\n InternalAlbListener6:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8005\n Protocol: HTTP\n InternalAlbListener7:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8006\n Protocol: HTTP\n InternalAlbListener8:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8007\n Protocol: HTTP\n InternalAlbListener9:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8008\n Protocol: HTTP\nOutputs:\n URL:\n Description: The URL of the MarkLogic Cluster\n Value: !Join\n - ''\n - - 'http://'\n - !If [CreatePublicAlb, !GetAtt [Alb, DNSName], !If [CreateInternalAlb, !GetAtt [InternalAlb, DNSName], !GetAtt [ManagedEniStack, Outputs.ENI]]]\n - ':8001'",
"diffStat": {
"model_added_lines": 18,
"model_removed_lines": 0,
"model_added_chars": 621,
"model_removed_chars": 0,
"user_added_lines": 0,
"user_removed_lines": 2293,
"user_added_chars": 0,
"user_removed_chars": 64013
},
"isNewFile": false
},
"displayName": "Edit",
"description": "Replaces text within a file. By default, replaces a single occurrence, but can replace multiple occurrences when `expected_replacements` is specified. This tool requires providing significant context around the change to ensure precise targeting. Always use the read_file tool to examine the file's current content before attempting a text replacement.\n \n The user has the ability to modify the `new_string` content. If modified, this will be stated in the response.\n \n Expectation for required parameters:\n 1. `old_string` MUST be the exact literal text to replace (including all whitespace, indentation, newlines, and surrounding code etc.).\n 2. `new_string` MUST be the exact literal text to replace `old_string` with (also including all whitespace, indentation, newlines, and surrounding code etc.). Ensure the resulting code is correct and idiomatic and that `old_string` and `new_string` are different.\n 3. `instruction` is the detailed instruction of what needs to be changed. It is important to Make it specific and detailed so developers or large language models can understand what needs to be changed and perform the changes on their own if necessary. \n 4. NEVER escape `old_string` or `new_string`, that would break the exact literal text requirement.\n **Important:** If ANY of the above are not satisfied, the tool will fail. CRITICAL for `old_string`: Must uniquely identify the single instance to change. Include at least 3 lines of context BEFORE and AFTER the target text, matching whitespace and indentation precisely. If this string matches multiple locations, or does not match exactly, the tool will fail.\n 5. Prefer to break down complex and long changes into multiple smaller atomic calls to this tool. Always check the content of the file after changes or not finding a string to match.\n **Multiple replacements:** Set `expected_replacements` to the number of occurrences you want to replace. The tool will replace ALL occurrences that match `old_string` exactly. Ensure the number of replacements matches your expectation.",
"renderOutputAsMarkdown": true
}
]
},
{
"id": "a2a9a810-9242-49d5-93ef-e67bfccddcad",
"timestamp": "2026-01-30T11:35:16.554Z",
"type": "gemini",
"content": "I will update the `MarkLogicServerGroup2` resource in `mlcluster.template` to include `InternalAlbTargetGroup1` through `InternalAlbTargetGroup9` in both its `DependsOn` list and its `TargetGroupARNs` property, matching the changes made to `MarkLogicServerGroup1`.",
"thoughts": [
{
"subject": "Analyzing MarkLogicServerGroup2",
"description": "I'm now diving into `MarkLogicServerGroup2`, applying the same analytical lens. Initial observations mirror the previous analysis, though I'm anticipating nuanced differences that will require closer scrutiny. I'm looking for the key differentiators between the two groups.",
"timestamp": "2026-01-30T11:35:05.183Z"
}
],
"tokens": {
"input": 67931,
"output": 1509,
"cached": 64655,
"thoughts": 11,
"tool": 0,
"total": 69451
},
"model": "gemini-3-pro-preview",
"toolCalls": [
{
"id": "replace-1769772916548-8f18c63f9e3128",
"name": "replace",
"args": {
"instruction": "Add InternalAlbTargetGroup1 through InternalAlbTargetGroup9 to DependsOn and TargetGroupARNs in MarkLogicServerGroup2.",
"old_string": " MarkLogicServerGroup2:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet2\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp2\n Version: !GetAtt LaunchTemp2.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011",
"file_path": "/Users/bob/git/dxw/marklogic-cf-templates/mlcluster.template",
"new_string": " MarkLogicServerGroup2:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - InternalAlbTargetGroup1\n - InternalAlbTargetGroup2\n - InternalAlbTargetGroup3\n - InternalAlbTargetGroup4\n - InternalAlbTargetGroup5\n - InternalAlbTargetGroup6\n - InternalAlbTargetGroup7\n - InternalAlbTargetGroup8\n - InternalAlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet2\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp2\n Version: !GetAtt LaunchTemp2.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref InternalAlbTargetGroup1\n - !Ref InternalAlbTargetGroup2\n - !Ref InternalAlbTargetGroup3\n - !Ref InternalAlbTargetGroup4\n - !Ref InternalAlbTargetGroup5\n - !Ref InternalAlbTargetGroup6\n - !Ref InternalAlbTargetGroup7\n - !Ref InternalAlbTargetGroup8\n - !Ref InternalAlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011"
},
"result": [
{
"functionResponse": {
"id": "replace-1769772916548-8f18c63f9e3128",
"name": "replace",
"response": {
"output": "Successfully modified file: /Users/bob/git/dxw/marklogic-cf-templates/mlcluster.template (1 replacements)."
}
}
}
],
"status": "success",
"timestamp": "2026-01-30T11:35:21.881Z",
"resultDisplay": {
"fileDiff": "Index: mlcluster.template\n===================================================================\n--- mlcluster.template\tCurrent\n+++ mlcluster.template\tProposed\n@@ -1152,6 +1152,15 @@\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n+ - InternalAlbTargetGroup1\n+ - InternalAlbTargetGroup2\n+ - InternalAlbTargetGroup3\n+ - InternalAlbTargetGroup4\n+ - InternalAlbTargetGroup5\n+ - InternalAlbTargetGroup6\n+ - InternalAlbTargetGroup7\n+ - InternalAlbTargetGroup8\n+ - InternalAlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n@@ -1198,6 +1207,15 @@\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n+ - !Ref InternalAlbTargetGroup1\n+ - !Ref InternalAlbTargetGroup2\n+ - !Ref InternalAlbTargetGroup3\n+ - !Ref InternalAlbTargetGroup4\n+ - !Ref InternalAlbTargetGroup5\n+ - !Ref InternalAlbTargetGroup6\n+ - !Ref InternalAlbTargetGroup7\n+ - !Ref InternalAlbTargetGroup8\n+ - !Ref InternalAlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n",
"fileName": "mlcluster.template",
"filePath": "/Users/bob/git/dxw/marklogic-cf-templates/mlcluster.template",
"originalContent": "AWSTemplateFormatVersion: 2010-09-09\nDescription: Deploy a MarkLogic Cluster on AWS in existing VPC (Virtual Private Cloud).\nMetadata:\n version: 12.0.1\n binary: MarkLogic-12.0.1-rhel.x86_64.rpm\n AWS::CloudFormation::Interface:\n ParameterGroups:\n - Label:\n default: \"Resource Configuration\"\n Parameters:\n - IAMRole\n - VolumeSize\n - VolumeType\n - VolumeIOPS\n - VolumeThroughput\n - VolumeEncryption\n - VolumeEncryptionKey\n - InstanceType\n - SpotPrice\n - KeyName\n - NumberOfZones\n - NodesPerZone\n - AZ\n - LogSNS\n - Label:\n default: \"Network Configuration\"\n Parameters:\n - VPC\n - PublicSubnet1\n - PublicSubnet2\n - PublicSubnet3\n - PrivateSubnet1\n - PrivateSubnet2\n - PrivateSubnet3\n - PublicLoadBalancer\n - InternalLoadBalancer\n - ExternalAccessCidrIP\n - ECSSecurityGroup\n - Label:\n default: \"MarkLogic Configuration\"\n Parameters:\n - AdminUser\n - AdminPass\n - Licensee\n - LicenseKey\n ParameterLabels:\n AdminUser:\n default: Admin User\n AdminPass:\n default: Admin password\n Licensee:\n default: Licensee\n LicenseKey:\n default: License Key\n IAMRole:\n default: IAM Role\n LogSNS:\n default: Logging SNS ARN\n VolumeSize:\n default: Volume Size\n VolumeType:\n default: Volume Type\n VolumeIOPS:\n default: Volume Iops\n VolumeThroughput:\n default: Volume Throughput\n VolumeEncryption:\n default: Volume Encryption\n VolumeEncryptionKey:\n default: Volume Encryption Key ARN\n InstanceType:\n default: Instance Type\n SpotPrice:\n default: Spot Price\n KeyName:\n default: SSH Key Name\n NumberOfZones:\n default: Number of Zones\n NodesPerZone:\n default: Nodes per Zone\n AZ:\n default: Availability Zone\n VPC:\n default: VPC\n PublicSubnet1:\n default: Public Subnet 1\n PublicSubnet2:\n default: Public Subnet 2\n PublicSubnet3:\n default: Public Subnet 3\n PrivateSubnet1:\n default: Private Subnet 1\n PrivateSubnet2:\n default: Private Subnet 2\n PrivateSubnet3:\n default: Private Subnet 3\n PublicLoadBalancer:\n default: Public Load Balancer\n InternalLoadBalancer:\n default: Internal Load Balancer\n ExternalAccessCidrIP:\n default: External IP address range for access to admin site\n ECSSecurityGroup:\n default: the security group the ecs cluster is in\nParameters:\n # resource configuration\n IAMRole:\n Description: IAM Role\n Type: String\n VolumeSize:\n Description: The EBS Data volume size (GB) for all nodes\n Type: Number\n MinValue: '10'\n MaxValue: '1000'\n Default: '50'\n VolumeType:\n Description: The EBS Data volume Type\n Type: String\n AllowedValues:\n - standard\n - gp2\n - gp3\n Default: gp3\n VolumeIOPS:\n Description: The number of I/O operations per second for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '3000'\n MaxValue: '16000'\n Default: '3000'\n VolumeThroughput:\n Description: The throughput to provision for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '125'\n MaxValue: '1000'\n Default: '125'\n VolumeEncryption:\n Description: Whether to enable volume encryption\n Type: String\n AllowedValues:\n - enable\n - disable\n Default: enable\n VolumeEncryptionKey:\n Description: The key ID of AWS KMS key to encrypt volumes - Optional\n Type: String\n Default: \"\"\n InstanceType:\n Description: Type of EC2 instance to launch\n Type: String\n Default: r5.4xlarge\n AllowedValues:\n - ---- Pay-As-You-Go and Bring-Your-Own-License ----\n - c3.xlarge\n - c3.2xlarge\n - c3.4xlarge\n - c3.8xlarge\n - c4.xlarge\n - c4.2xlarge\n - c4.4xlarge\n - c4.8xlarge\n - c5.xlarge\n - c5.2xlarge\n - c5.4xlarge\n - c5.9xlarge\n - c5.12xlarge\n - c5.18xlarge\n - c5.24xlarge\n - c5a.xlarge\n - c5a.2xlarge\n - c5a.4xlarge\n - c5a.8xlarge\n - c5a.12xlarge\n - c5a.16xlarge\n - c5a.24xlarge\n - c5ad.xlarge\n - c5ad.2xlarge\n - c5ad.4xlarge\n - c5ad.8xlarge\n - c5ad.12xlarge\n - c5ad.16xlarge\n - c5ad.24xlarge\n - c5d.xlarge\n - c5d.2xlarge\n - c5d.4xlarge\n - c5d.9xlarge\n - c5d.12xlarge\n - c5d.18xlarge\n - c5d.24xlarge\n - c5n.xlarge\n - c5n.2xlarge\n - c5n.4xlarge\n - c5n.9xlarge\n - c5n.18xlarge\n - c6a.xlarge\n - c6a.2xlarge\n - c6a.4xlarge\n - c6a.8xlarge\n - c6a.12xlarge\n - c6a.16xlarge\n - c6a.24xlarge\n - c6a.32xlarge\n - c6a.48xlarge\n - c6i.xlarge\n - c6i.2xlarge\n - c6i.4xlarge\n - c6i.8xlarge\n - c6i.12xlarge\n - c6i.16xlarge\n - c6i.24xlarge\n - c6i.32xlarge\n - c6id.xlarge\n - c6id.2xlarge\n - c6id.4xlarge\n - c6id.8xlarge\n - c6id.12xlarge\n - c6id.16xlarge\n - c6id.24xlarge\n - c6id.32xlarge\n - c7i.xlarge\n - c7i.2xlarge\n - c7i.4xlarge\n - c7i.8xlarge\n - c7i.12xlarge\n - c7i.16xlarge\n - c7i.24xlarge\n - c7i.48xlarge\n - c7i-flex.xlarge\n - c7i-flex.2xlarge\n - c7i-flex.4xlarge\n - c7i-flex.8xlarge\n - c7i-flex.12xlarge\n - c7i-flex.16xlarge\n - c7a.xlarge\n - c7a.2xlarge\n - c7a.4xlarge\n - c7a.8xlarge\n - c7a.12xlarge\n - c7a.16xlarge\n - c7a.24xlarge\n - c7a.32xlarge\n - c7a.48xlarge\n - c8i.xlarge\n - c8i.2xlarge\n - c8i.4xlarge\n - c8i.8xlarge\n - c8i.12xlarge\n - c8i.16xlarge\n - c8i.24xlarge\n - c8i.32xlarge\n - c8i.48xlarge\n - c8i.96xlarge\n - c8i-flex.xlarge\n - c8i-flex.2xlarge\n - c8i-flex.4xlarge\n - c8i-flex.8xlarge\n - c8i-flex.12xlarge\n - c8i-flex.16xlarge\n - i2.2xlarge\n - i2.4xlarge\n - i2.8xlarge\n - i2.xlarge\n - i3.xlarge\n - i3.2xlarge\n - i3.4xlarge\n - i3.8xlarge\n - i3.16xlarge\n - i3en.xlarge\n - i3en.2xlarge\n - i3en.3xlarge\n - i3en.6xlarge\n - i3en.12xlarge\n - i3en.24xlarge\n - i4i.xlarge\n - i4i.2xlarge\n - i4i.4xlarge\n - i4i.8xlarge\n - i4i.12xlarge\n - i4i.16xlarge\n - i4i.24xlarge\n - i4i.32xlarge\n - i7ie.xlarge\n - i7ie.2xlarge\n - i7ie.3xlarge\n - i7ie.6xlarge\n - i7ie.12xlarge\n - i7ie.18xlarge\n - i7ie.24xlarge\n - i7ie.48xlarge\n - m3.xlarge\n - m3.2xlarge\n - m4.xlarge\n - m4.2xlarge\n - m4.4xlarge\n - m4.10xlarge\n - m4.16xlarge\n - m5.xlarge\n - m5.2xlarge\n - m5.4xlarge\n - m5.8xlarge\n - m5.12xlarge\n - m5.16xlarge\n - m5.24xlarge\n - m5a.xlarge\n - m5a.2xlarge\n - m5a.4xlarge\n - m5a.8xlarge\n - m5a.12xlarge\n - m5a.16xlarge\n - m5a.24xlarge\n - m5d.xlarge\n - m5d.2xlarge\n - m5d.4xlarge\n - m5d.8xlarge\n - m5d.16xlarge\n - m5d.12xlarge\n - m5d.24xlarge\n - m5ad.xlarge\n - m5ad.2xlarge\n - m5ad.4xlarge\n - m5ad.8xlarge\n - m5ad.12xlarge\n - m5ad.16xlarge\n - m5ad.24xlarge\n - m5zn.xlarge\n - m5zn.2xlarge\n - m5zn.3xlarge\n - m5zn.6xlarge\n - m5zn.12xlarge\n - m5n.xlarge\n - m5n.2xlarge\n - m5n.4xlarge\n - m5n.8xlarge\n - m5n.12xlarge\n - m5n.16xlarge\n - m5n.24xlarge\n - m5dn.xlarge\n - m5dn.2xlarge\n - m5dn.4xlarge\n - m5dn.8xlarge\n - m5dn.12xlarge\n - m5dn.16xlarge\n - m5dn.24xlarge\n - m6a.xlarge\n - m6a.2xlarge\n - m6a.4xlarge\n - m6a.8xlarge\n - m6a.12xlarge\n - m6a.16xlarge\n - m6a.24xlarge\n - m6a.32xlarge\n - m6a.48xlarge\n - m6i.xlarge\n - m6i.2xlarge\n - m6i.4xlarge\n - m6i.8xlarge\n - m6i.12xlarge\n - m6i.16xlarge\n - m6i.24xlarge\n - m6i.32xlarge\n - m6id.xlarge\n - m6id.2xlarge\n - m6id.4xlarge\n - m6id.8xlarge\n - m6id.12xlarge\n - m6id.16xlarge\n - m6id.24xlarge\n - m6id.32xlarge\n - m7i.xlarge\n - m7i.2xlarge\n - m7i.4xlarge\n - m7i.8xlarge\n - m7i.12xlarge\n - m7i.16xlarge\n - m7i.24xlarge\n - m7i.48xlarge\n - m7i-flex.xlarge\n - m7i-flex.2xlarge\n - m7i-flex.4xlarge\n - m7i-flex.8xlarge\n - m7i-flex.12xlarge\n - m7i-flex.16xlarge\n - m7a.xlarge\n - m7a.2xlarge\n - m7a.4xlarge\n - m7a.8xlarge\n - m7a.12xlarge\n - m7a.16xlarge\n - m7a.24xlarge\n - m7a.32xlarge\n - m7a.48xlarge\n - m8a.xlarge\n - m8a.2xlarge\n - m8a.4xlarge\n - m8a.8xlarge\n - m8a.12xlarge\n - m8a.16xlarge\n - m8a.24xlarge\n - m8a.48xlarge\n - m8i.xlarge\n - m8i.2xlarge\n - m8i.4xlarge\n - m8i.8xlarge\n - m8i.12xlarge\n - m8i.16xlarge\n - m8i.24xlarge\n - m8i.32xlarge\n - m8i.48xlarge\n - m8i.96xlarge\n - m8i-flex.xlarge\n - m8i-flex.2xlarge\n - m8i-flex.4xlarge\n - m8i-flex.8xlarge\n - m8i-flex.12xlarge\n - m8i-flex.16xlarge\n - r3.xlarge\n - r3.2xlarge\n - r3.4xlarge\n - r3.8xlarge\n - r4.xlarge\n - r4.2xlarge\n - r4.4xlarge\n - r4.8xlarge\n - r4.16xlarge\n - r5.xlarge\n - r5.2xlarge\n - r5.4xlarge\n - r5.8xlarge\n - r5.12xlarge\n - r5.16xlarge\n - r5.24xlarge\n - r5a.xlarge\n - r5a.2xlarge\n - r5a.4xlarge\n - r5a.8xlarge\n - r5a.12xlarge\n - r5a.16xlarge\n - r5a.24xlarge\n - r5ad.xlarge\n - r5ad.2xlarge\n - r5ad.4xlarge\n - r5ad.8xlarge\n - r5ad.12xlarge\n - r5ad.16xlarge\n - r5ad.24xlarge\n - r5b.xlarge\n - r5b.2xlarge\n - r5b.4xlarge\n - r5b.8xlarge\n - r5b.12xlarge\n - r5b.16xlarge\n - r5b.24xlarge\n - r5d.xlarge\n - r5d.2xlarge\n - r5d.4xlarge\n - r5d.8xlarge\n - r5d.12xlarge\n - r5d.16xlarge\n - r5d.24xlarge\n - r5dn.xlarge\n - r5dn.2xlarge\n - r5dn.4xlarge\n - r5dn.8xlarge\n - r5dn.12xlarge\n - r5dn.16xlarge\n - r5dn.24xlarge\n - r5n.xlarge\n - r5n.2xlarge\n - r5n.4xlarge\n - r5n.8xlarge\n - r5n.12xlarge\n - r5n.16xlarge\n - r5n.24xlarge\n - r6a.xlarge\n - r6a.2xlarge\n - r6a.4xlarge\n - r6a.8xlarge\n - r6a.12xlarge\n - r6a.16xlarge\n - r6a.24xlarge\n - r6a.32xlarge\n - r6a.48xlarge\n - r6i.xlarge\n - r6i.2xlarge\n - r6i.4xlarge\n - r6i.8xlarge\n - r6i.12xlarge\n - r6i.16xlarge\n - r6i.24xlarge\n - r6i.32xlarge\n - r6id.xlarge\n - r6id.2xlarge\n - r6id.4xlarge\n - r6id.8xlarge\n - r6id.12xlarge\n - r6id.16xlarge\n - r6id.24xlarge\n - r6id.32xlarge\n - r7i.xlarge\n - r7i.2xlarge\n - r7i.4xlarge\n - r7i.8xlarge\n - r7i.12xlarge\n - r7i.16xlarge\n - r7i.24xlarge\n - r7i.48xlarge\n - r7iz.xlarge\n - r7iz.2xlarge\n - r7iz.4xlarge\n - r7iz.8xlarge\n - r7iz.12xlarge\n - r7iz.16xlarge\n - r7iz.32xlarge\n - r7a.xlarge\n - r7a.2xlarge\n - r7a.4xlarge\n - r7a.8xlarge\n - r7a.12xlarge\n - r7a.16xlarge\n - r7a.24xlarge\n - r7a.32xlarge\n - r7a.48xlarge\n - r8a.xlarge\n - r8a.2xlarge\n - r8a.4xlarge\n - r8a.8xlarge\n - r8a.12xlarge\n - r8a.16xlarge\n - r8a.24xlarge\n - r8a.48xlarge\n - r8i.xlarge\n - r8i.2xlarge\n - r8i.4xlarge\n - r8i.8xlarge\n - r8i.12xlarge\n - r8i.16xlarge\n - r8i.24xlarge\n - r8i.32xlarge\n - r8i.48xlarge\n - r8i.96xlarge\n - r8i-flex.xlarge\n - r8i-flex.2xlarge\n - r8i-flex.4xlarge\n - r8i-flex.8xlarge\n - r8i-flex.12xlarge\n - r8i-flex.16xlarge\n - x1.16xlarge\n - x1.32xlarge\n - x1e.xlarge\n - x1e.2xlarge\n - x1e.4xlarge\n - x1e.8xlarge\n - x1e.16xlarge\n - x1e.32xlarge\n - x2idn.16xlarge\n - x2idn.24xlarge\n - x2idn.32xlarge\n - x2iedn.xlarge\n - x2iedn.2xlarge\n - x2iedn.4xlarge\n - x2iedn.8xlarge\n - x2iedn.16xlarge\n - x2iedn.24xlarge\n - x2iedn.32xlarge\n - x2iezn.2xlarge\n - x2iezn.4xlarge\n - x2iezn.6xlarge\n - x2iezn.8xlarge\n - x2iezn.12xlarge\n - d2.xlarge\n - d2.2xlarge\n - d2.4xlarge\n - d2.8xlarge\n - d3.xlarge\n - d3.2xlarge\n - d3.4xlarge\n - d3.8xlarge\n - d3en.xlarge\n - d3en.2xlarge\n - d3en.4xlarge\n - d3en.6xlarge\n - d3en.8xlarge\n - d3en.12xlarge\n - dl1.24xlarge\n - h1.2xlarge\n - h1.4xlarge\n - h1.8xlarge\n - h1.16xlarge\n - inf1.xlarge\n - inf1.2xlarge\n - inf1.6xlarge\n - inf1.24xlarge\n - trn1.2xlarge\n - trn1.32xlarge\n - u-3tb1.56xlarge\n - u-6tb1.56xlarge\n - u-6tb1.112xlarge\n - u-9tb1.112xlarge\n - u-12tb1.112xlarge\n - u-18tb1.112xlarge\n - vt1.3xlarge\n - vt1.6xlarge\n - vt1.24xlarge\n - z1d.xlarge\n - z1d.2xlarge\n - z1d.3xlarge\n - z1d.6xlarge\n - z1d.12xlarge\n - -------------- Bring-Your-Own-License Only --------------\n - c3.large\n - c4.large\n - c5.metal\n - c5.large\n - c5a.large\n - c5ad.large\n - c5d.metal\n - c5d.large\n - c5n.large\n - c5n.metal\n - c6a.large\n - c6a.metal\n - c6i.large\n - c6i.metal\n - c6id.large\n - c6id.metal\n - c7i.large\n - c7i.metal-24xl\n - c7i.metal-48xl\n - c7i-flex.large\n - c7a.medium\n - c7a.large\n - c7a.metal-48xl\n - c8i.large\n - c8i.metal-48xl\n - c8i.metal-96xl\n - c8i-flex.large\n - i3.large\n - i3.metal\n - i3en.large\n - i3en.metal\n - i4i.large\n - i4i.metal\n - i7ie.large\n - i7ie.metal-24xl\n - i7ie.metal-48xl\n - m3.large\n - m3.medium\n - m4.large\n - m5.metal\n - m5.large\n - m5a.large\n - m5ad.large\n - m5d.metal\n - m5d.large\n - m5zn.large\n - m5zn.metal\n - m5n.large\n - m5n.metal\n - m5dn.large\n - m5dn.metal\n - m6a.large\n - m6a.metal\n - m6i.large\n - m6i.metal\n - m6id.large\n - m6id.metal\n - m7i.large\n - m7i.metal-24xl\n - m7i.metal-48xl\n - m7i-flex.large\n - m7a.medium\n - m7a.large\n - m7a.metal-48xl\n - m8a.medium\n - m8a.large\n - m8a.metal-24xl\n - m8a.metal-48xl\n - m8i.large\n - m8i.metal-48xl\n - m8i.metal-96xl\n - m8i-flex.large\n - r3.large\n - r4.large\n - r5.metal\n - r5.large\n - r5a.large\n - r5d.metal\n - r5ad.large\n - r5d.large\n - r5dn.large\n - r5dn.metal\n - r5b.large\n - r5b.metal\n - r5n.large\n - r5n.metal\n - r6a.large\n - r6a.metal\n - r6i.large\n - r6i.metal\n - r6id.large\n - r6id.metal\n - r7i.large\n - r7i.metal-24xl\n - r7i.metal-48xl\n - r7iz.large\n - r7iz.metal-16xl\n - r7iz.metal-32xl\n - r7a.medium\n - r7a.large\n - r7a.metal-48xl\n - r8a.medium\n - r8a.large\n - r8a.metal-24xl\n - r8a.metal-48xl\n - r8i.large\n - r8i.metal-48xl\n - r8i.metal-96xl\n - r8i-flex.large\n - t2.2xlarge\n - t2.large\n - t2.medium\n - t2.micro\n - t2.nano\n - t2.small\n - t2.xlarge\n - t3.2xlarge\n - t3.large\n - t3.medium\n - t3.micro\n - t3.nano\n - t3.small\n - t3.xlarge\n - t3a.2xlarge\n - t3a.large\n - t3a.medium\n - t3a.micro\n - t3a.nano\n - t3a.small\n - t3a.xlarge\n - x2idn.metal\n - x2iedn.metal\n - x2iezn.metal\n - z1d.metal\n - z1d.large\n SpotPrice:\n Description: Spot price for instances in USD/Hour - Optional/advanced\n Type: Number\n MinValue: '0'\n MaxValue: '2'\n Default: '0'\n KeyName:\n Description: Name of an existing EC2 KeyPair to enable SSH access to the instance\n Type: String\n NumberOfZones:\n Description: Total number of Availability Zones, which can be 1 or 3. Load balancer type depends on the number of zones selected. Select 3 zones for Application Load Balancer (OR) Select 1 zone for Classic Load Balancer.\n Type: Number\n AllowedValues:\n - 1\n - 3\n Default: 3\n NodesPerZone:\n Description: Total number of nodes per Zone. Set to 0 to shutdown/hibernate\n Type: Number\n MinValue: '0'\n MaxValue: '20'\n Default: '1'\n AZ:\n Description: The Availability Zones for VPC subnets. Accept either 1 zone or 3 zones. In the order of Subnet 1, Subnet 2 and Subnet 3 (if applicable).\n Type: 'List<AWS::EC2::AvailabilityZone::Name>'\n LogSNS:\n Description: SNS Topic for logging - optional/advanced.\n Type: String\n Default: none\n PublicLoadBalancer:\n Description: Enable Public Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n InternalLoadBalancer:\n Description: Enable Internal Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n # network configuration\n VPC:\n Description: ID of an existing Virtual Private Cloud (VPC)\n Type: 'AWS::EC2::VPC::Id'\n PublicSubnet1:\n Description: The public subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet2:\n Description: The public subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet3:\n Description: The public subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet1:\n Description: The private subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet2:\n Description: The private subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet3:\n Description: The private subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n ExternalAccessCidrIP:\n Description: A CIDR IP range to allow external access from\n Type: String\n Default: 54.76.254.148/32\n ECSSecurityGroup:\n Description: the security group the ECS cluster is in\n Type: 'AWS::EC2::SecurityGroup::Id'\n\n # marklogic configuration\n AdminUser:\n Description: The MarkLogic administrator username\n Type: String\n AdminPass:\n Description: The MarkLogic administrator password\n Type: String\n NoEcho: 'true'\n AllowedPattern: >-\n ^(?!.*[*]).*$\n ConstraintDescription: Admin password must contain any characters except asterisk (*).\n Licensee:\n Description: The MarkLogic Licensee or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\n LicenseKey:\n Description: The MarkLogic License Key or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\nConditions:\n UseLogSNS: !Not [!Equals [!Ref LogSNS, \"none\"]]\n UseSpot: !Not\n - !Equals\n - !Ref SpotPrice\n - 0\n #MultiZone (3 zones) and SingleZone conditions used for the conditional resource creation based on number of zones selected.\n MultiZone:\n !Not [!Equals [!Ref NumberOfZones, 1]]\n CreatePublicAlb: !And [!Condition MultiZone, !Equals [!Ref PublicLoadBalancer, 'true']]\n CreateInternalAlb: !And [!Condition MultiZone, !Equals [!Ref InternalLoadBalancer, 'true']]\n SingleZone: !Equals [!Ref NumberOfZones, 1]\n PAYG:\n !Or [ !And [!Equals [!Ref LicenseKey, ''], !Equals [!Ref Licensee, '']], !And [!Equals [!Ref LicenseKey, 'none'], !Equals [!Ref Licensee, 'none']] ]\n UseVolumeEncryption: !Equals [!Ref VolumeEncryption, 'enable']\n HasCustomEBSKey: !Not [!Equals [!Ref VolumeEncryptionKey, '']]\n GP3: !Equals [!Ref VolumeType, 'gp3']\nMappings:\n Variable:\n LambdaPackageBucket:\n base: 'ml-db-lambda-'\n TemplateUrl:\n base: 'https://s3.amazonaws.com/marklogic-db-template-releases'\n S3Directory:\n base: '12.0.1'\n LicenseRegion2AMI:\n us-east-1:\n PAYGAl2023: ami-0198b8931e9597271\n BYOLAl2023: ami-0a8536507241f95b0\n us-east-2:\n PAYGAl2023: ami-0877b64dae8264415\n BYOLAl2023: ami-082cc98b2c01e486a\n us-west-1:\n PAYGAl2023: ami-07890fc78f4ddfa20\n BYOLAl2023: ami-05c9a962410c2821b\n us-west-2:\n PAYGAl2023: ami-0577eb149c9e0f53f\n BYOLAl2023: ami-0262dd8d014bf71ba\n eu-central-1:\n PAYGAl2023: ami-06348556399c8ab69\n BYOLAl2023: ami-00cb5a3527e7c0d11\n eu-west-1:\n PAYGAl2023: ami-0fa7bc44cd9ab1f85\n BYOLAl2023: ami-0bc2b4d46367806b0\n ap-south-1:\n PAYGAl2023: ami-0f481ba0a6819ced6\n BYOLAl2023: ami-00b59374107e5efb6\n ap-southeast-1:\n PAYGAl2023: ami-0c373c6c8a2316c80\n BYOLAl2023: ami-0b9bd265ef165a07b\n ap-southeast-2:\n PAYGAl2023: ami-0c65a907408226a3e\n BYOLAl2023: ami-02bad1ef2c6d4a91a\n ap-northeast-1:\n PAYGAl2023: ami-0254bc4adaf13e3b9\n BYOLAl2023: ami-07e8b312b1016bf67\n ap-northeast-2:\n PAYGAl2023: ami-05995b5f5807873d7\n BYOLAl2023: ami-0afd77ba0d7a0c129\n sa-east-1:\n PAYGAl2023: ami-05ec8fee12de236a5\n BYOLAl2023: ami-09d883ea308449555\n eu-west-2:\n PAYGAl2023: ami-0f5cff9d243f31521\n BYOLAl2023: ami-0588d104a52fbc326\n ca-central-1:\n PAYGAl2023: ami-0f34d118b23b51bf5\n BYOLAl2023: ami-0c78eccd03e957005\n eu-west-3:\n PAYGAl2023: ami-01fa9155eb17992c5\n BYOLAl2023: ami-0637199acc5327534\nResources:\n ManagedEniStack:\n Type: AWS::CloudFormation::Stack\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n NodesPerZone: !Ref NodesPerZone\n NumberOfZones: !Ref NumberOfZones\n Subnets: !If [MultiZone, !Join [',', [!Ref PrivateSubnet1, !Ref PrivateSubnet2, !Ref PrivateSubnet3]], !Ref PrivateSubnet1]\n ParentStackName: !Ref 'AWS::StackName'\n ParentStackId: !Ref 'AWS::StackId'\n SecurityGroup: !Ref InstanceSecurityGroup\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-managedeni.template']]\n TimeoutInMinutes: 5\n NodeMgrLambdaStack:\n Type: AWS::CloudFormation::Stack\n DependsOn: ManagedEniStack\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-nodemanager.template']]\n TimeoutInMinutes: 5\n MarklogicVolume1:\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [0, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupA-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c81032f7-b0ec-47ca-a236-e24d57b49ae3\n MarklogicVolume2:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [1, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupB-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: ddb55ae1-a00b-42ed-addd-5e03e4a2764b\n MarklogicVolume3:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [2, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupC-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 9094a65e-9d01-4c4c-9586-c33720e2cc9c\n MarkLogicDDBTable:\n Type: 'AWS::DynamoDB::Table'\n Properties:\n AttributeDefinitions:\n - AttributeName: node\n AttributeType: S\n KeySchema:\n - KeyType: HASH\n AttributeName: node\n ProvisionedThroughput:\n WriteCapacityUnits: '10'\n ReadCapacityUnits: '10'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e7190602-c2de-47ab-81e7-1315f8c01e2d\n #AutoScalingGroup used for SingleZone deployments that is connected to Classic Load Balancer.\n MarkLogicServerGroup:\n Condition: SingleZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup1:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - InternalAlbTargetGroup1\n - InternalAlbTargetGroup2\n - InternalAlbTargetGroup3\n - InternalAlbTargetGroup4\n - InternalAlbTargetGroup5\n - InternalAlbTargetGroup6\n - InternalAlbTargetGroup7\n - InternalAlbTargetGroup8\n - InternalAlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref InternalAlbTargetGroup1\n - !Ref InternalAlbTargetGroup2\n - !Ref InternalAlbTargetGroup3\n - !Ref InternalAlbTargetGroup4\n - !Ref InternalAlbTargetGroup5\n - !Ref InternalAlbTargetGroup6\n - !Ref InternalAlbTargetGroup7\n - !Ref InternalAlbTargetGroup8\n - !Ref InternalAlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup2:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet2\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp2\n Version: !GetAtt LaunchTemp2.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 87d75478-787a-41d5-bb21-9de6fe4b662e\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup3:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet3\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp3\n Version: !GetAtt LaunchTemp3.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: bbd8314a-6e59-4102-9ed5-232739dd0dfa\n InstanceSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable access to MarkLogic instances from Load Balancers and other cluster members\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n InstanceSecurityGroupIngress:\n Type: 'AWS::EC2::SecurityGroupIngress'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n IpProtocol: tcp\n FromPort: '0'\n ToPort: '65355'\n GroupId: !Ref InstanceSecurityGroup\n SourceSecurityGroupId: !Ref InstanceSecurityGroup\n InternalElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Allow access from ECS clsuter to internal ALB for marklogic cluster.\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n ElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable SSH access and HTTP access on the inbound port\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '22'\n ToPort: '22'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n CidrIp: !Ref ExternalAccessCidrIP\n LaunchTemp1:\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume1\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeA#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=1\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 2efb8cfb-df53-401d-8ff2-34af0dd25993\n LaunchTemp2:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume2\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeB#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c8296a50-a29e-4646-aa74-8f1b735a9a3f\n LaunchTemp3:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume3\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeC#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 7fa68c90-39bc-4874-ad20-8cd8c974ed52\n #Application Load Balancer description for MultiZone deployments (3 zones).\n Alb:\n Condition: CreatePublicAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - ElbSecurityGroup\n Properties: \n SecurityGroups: \n - !Ref ElbSecurityGroup\n Subnets:\n - !Ref PublicSubnet1\n - !If [MultiZone, !Ref PublicSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PublicSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 9 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n AlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicExternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n #Descriptions of the 9 Listeners for MultiZone deployments (3 zones). Each Listener connects Application Load Balancer to a TargetGroup with a particular port.\n AlbListener1:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8000\n Protocol: HTTP\n AlbListener2:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8001\n Protocol: HTTP\n AlbListener3:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8002\n Protocol: HTTP\n AlbListener4:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8003\n Protocol: HTTP\n AlbListener5:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8004\n Protocol: HTTP\n AlbListener6:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8005\n Protocol: HTTP\n AlbListener7:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8006\n Protocol: HTTP\n AlbListener8:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8007\n Protocol: HTTP\n AlbListener9:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8008\n Protocol: HTTP\n MarklogicExternal8011Listener:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - MarklogicExternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicExternal8011\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8011\n Protocol: HTTP\n #Application Load Balancer description for MultiZone deployments (3 zones).\n InternalAlb:\n Condition: CreateInternalAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - InternalElbSecurityGroup\n Properties: \n Scheme: internal\n SecurityGroups: \n - !Ref InternalElbSecurityGroup\n Subnets:\n - !Ref PrivateSubnet1\n - !If [MultiZone, !Ref PrivateSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PrivateSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 1 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n MarklogicInternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicInternal8011Listener:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - MarklogicInternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicInternal8011\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8011\n Protocol: HTTP\n InternalAlbListener1:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8000\n Protocol: HTTP\n InternalAlbListener2:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8001\n Protocol: HTTP\n InternalAlbListener3:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8002\n Protocol: HTTP\n InternalAlbListener4:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8003\n Protocol: HTTP\n InternalAlbListener5:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8004\n Protocol: HTTP\n InternalAlbListener6:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8005\n Protocol: HTTP\n InternalAlbListener7:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8006\n Protocol: HTTP\n InternalAlbListener8:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8007\n Protocol: HTTP\n InternalAlbListener9:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8008\n Protocol: HTTP\nOutputs:\n URL:\n Description: The URL of the MarkLogic Cluster\n Value: !Join\n - ''\n - - 'http://'\n - !If [CreatePublicAlb, !GetAtt [Alb, DNSName], !If [CreateInternalAlb, !GetAtt [InternalAlb, DNSName], !GetAtt [ManagedEniStack, Outputs.ENI]]]\n - ':8001'",
"newContent": "AWSTemplateFormatVersion: 2010-09-09\nDescription: Deploy a MarkLogic Cluster on AWS in existing VPC (Virtual Private Cloud).\nMetadata:\n version: 12.0.1\n binary: MarkLogic-12.0.1-rhel.x86_64.rpm\n AWS::CloudFormation::Interface:\n ParameterGroups:\n - Label:\n default: \"Resource Configuration\"\n Parameters:\n - IAMRole\n - VolumeSize\n - VolumeType\n - VolumeIOPS\n - VolumeThroughput\n - VolumeEncryption\n - VolumeEncryptionKey\n - InstanceType\n - SpotPrice\n - KeyName\n - NumberOfZones\n - NodesPerZone\n - AZ\n - LogSNS\n - Label:\n default: \"Network Configuration\"\n Parameters:\n - VPC\n - PublicSubnet1\n - PublicSubnet2\n - PublicSubnet3\n - PrivateSubnet1\n - PrivateSubnet2\n - PrivateSubnet3\n - PublicLoadBalancer\n - InternalLoadBalancer\n - ExternalAccessCidrIP\n - ECSSecurityGroup\n - Label:\n default: \"MarkLogic Configuration\"\n Parameters:\n - AdminUser\n - AdminPass\n - Licensee\n - LicenseKey\n ParameterLabels:\n AdminUser:\n default: Admin User\n AdminPass:\n default: Admin password\n Licensee:\n default: Licensee\n LicenseKey:\n default: License Key\n IAMRole:\n default: IAM Role\n LogSNS:\n default: Logging SNS ARN\n VolumeSize:\n default: Volume Size\n VolumeType:\n default: Volume Type\n VolumeIOPS:\n default: Volume Iops\n VolumeThroughput:\n default: Volume Throughput\n VolumeEncryption:\n default: Volume Encryption\n VolumeEncryptionKey:\n default: Volume Encryption Key ARN\n InstanceType:\n default: Instance Type\n SpotPrice:\n default: Spot Price\n KeyName:\n default: SSH Key Name\n NumberOfZones:\n default: Number of Zones\n NodesPerZone:\n default: Nodes per Zone\n AZ:\n default: Availability Zone\n VPC:\n default: VPC\n PublicSubnet1:\n default: Public Subnet 1\n PublicSubnet2:\n default: Public Subnet 2\n PublicSubnet3:\n default: Public Subnet 3\n PrivateSubnet1:\n default: Private Subnet 1\n PrivateSubnet2:\n default: Private Subnet 2\n PrivateSubnet3:\n default: Private Subnet 3\n PublicLoadBalancer:\n default: Public Load Balancer\n InternalLoadBalancer:\n default: Internal Load Balancer\n ExternalAccessCidrIP:\n default: External IP address range for access to admin site\n ECSSecurityGroup:\n default: the security group the ecs cluster is in\nParameters:\n # resource configuration\n IAMRole:\n Description: IAM Role\n Type: String\n VolumeSize:\n Description: The EBS Data volume size (GB) for all nodes\n Type: Number\n MinValue: '10'\n MaxValue: '1000'\n Default: '50'\n VolumeType:\n Description: The EBS Data volume Type\n Type: String\n AllowedValues:\n - standard\n - gp2\n - gp3\n Default: gp3\n VolumeIOPS:\n Description: The number of I/O operations per second for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '3000'\n MaxValue: '16000'\n Default: '3000'\n VolumeThroughput:\n Description: The throughput to provision for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '125'\n MaxValue: '1000'\n Default: '125'\n VolumeEncryption:\n Description: Whether to enable volume encryption\n Type: String\n AllowedValues:\n - enable\n - disable\n Default: enable\n VolumeEncryptionKey:\n Description: The key ID of AWS KMS key to encrypt volumes - Optional\n Type: String\n Default: \"\"\n InstanceType:\n Description: Type of EC2 instance to launch\n Type: String\n Default: r5.4xlarge\n AllowedValues:\n - ---- Pay-As-You-Go and Bring-Your-Own-License ----\n - c3.xlarge\n - c3.2xlarge\n - c3.4xlarge\n - c3.8xlarge\n - c4.xlarge\n - c4.2xlarge\n - c4.4xlarge\n - c4.8xlarge\n - c5.xlarge\n - c5.2xlarge\n - c5.4xlarge\n - c5.9xlarge\n - c5.12xlarge\n - c5.18xlarge\n - c5.24xlarge\n - c5a.xlarge\n - c5a.2xlarge\n - c5a.4xlarge\n - c5a.8xlarge\n - c5a.12xlarge\n - c5a.16xlarge\n - c5a.24xlarge\n - c5ad.xlarge\n - c5ad.2xlarge\n - c5ad.4xlarge\n - c5ad.8xlarge\n - c5ad.12xlarge\n - c5ad.16xlarge\n - c5ad.24xlarge\n - c5d.xlarge\n - c5d.2xlarge\n - c5d.4xlarge\n - c5d.9xlarge\n - c5d.12xlarge\n - c5d.18xlarge\n - c5d.24xlarge\n - c5n.xlarge\n - c5n.2xlarge\n - c5n.4xlarge\n - c5n.9xlarge\n - c5n.18xlarge\n - c6a.xlarge\n - c6a.2xlarge\n - c6a.4xlarge\n - c6a.8xlarge\n - c6a.12xlarge\n - c6a.16xlarge\n - c6a.24xlarge\n - c6a.32xlarge\n - c6a.48xlarge\n - c6i.xlarge\n - c6i.2xlarge\n - c6i.4xlarge\n - c6i.8xlarge\n - c6i.12xlarge\n - c6i.16xlarge\n - c6i.24xlarge\n - c6i.32xlarge\n - c6id.xlarge\n - c6id.2xlarge\n - c6id.4xlarge\n - c6id.8xlarge\n - c6id.12xlarge\n - c6id.16xlarge\n - c6id.24xlarge\n - c6id.32xlarge\n - c7i.xlarge\n - c7i.2xlarge\n - c7i.4xlarge\n - c7i.8xlarge\n - c7i.12xlarge\n - c7i.16xlarge\n - c7i.24xlarge\n - c7i.48xlarge\n - c7i-flex.xlarge\n - c7i-flex.2xlarge\n - c7i-flex.4xlarge\n - c7i-flex.8xlarge\n - c7i-flex.12xlarge\n - c7i-flex.16xlarge\n - c7a.xlarge\n - c7a.2xlarge\n - c7a.4xlarge\n - c7a.8xlarge\n - c7a.12xlarge\n - c7a.16xlarge\n - c7a.24xlarge\n - c7a.32xlarge\n - c7a.48xlarge\n - c8i.xlarge\n - c8i.2xlarge\n - c8i.4xlarge\n - c8i.8xlarge\n - c8i.12xlarge\n - c8i.16xlarge\n - c8i.24xlarge\n - c8i.32xlarge\n - c8i.48xlarge\n - c8i.96xlarge\n - c8i-flex.xlarge\n - c8i-flex.2xlarge\n - c8i-flex.4xlarge\n - c8i-flex.8xlarge\n - c8i-flex.12xlarge\n - c8i-flex.16xlarge\n - i2.2xlarge\n - i2.4xlarge\n - i2.8xlarge\n - i2.xlarge\n - i3.xlarge\n - i3.2xlarge\n - i3.4xlarge\n - i3.8xlarge\n - i3.16xlarge\n - i3en.xlarge\n - i3en.2xlarge\n - i3en.3xlarge\n - i3en.6xlarge\n - i3en.12xlarge\n - i3en.24xlarge\n - i4i.xlarge\n - i4i.2xlarge\n - i4i.4xlarge\n - i4i.8xlarge\n - i4i.12xlarge\n - i4i.16xlarge\n - i4i.24xlarge\n - i4i.32xlarge\n - i7ie.xlarge\n - i7ie.2xlarge\n - i7ie.3xlarge\n - i7ie.6xlarge\n - i7ie.12xlarge\n - i7ie.18xlarge\n - i7ie.24xlarge\n - i7ie.48xlarge\n - m3.xlarge\n - m3.2xlarge\n - m4.xlarge\n - m4.2xlarge\n - m4.4xlarge\n - m4.10xlarge\n - m4.16xlarge\n - m5.xlarge\n - m5.2xlarge\n - m5.4xlarge\n - m5.8xlarge\n - m5.12xlarge\n - m5.16xlarge\n - m5.24xlarge\n - m5a.xlarge\n - m5a.2xlarge\n - m5a.4xlarge\n - m5a.8xlarge\n - m5a.12xlarge\n - m5a.16xlarge\n - m5a.24xlarge\n - m5d.xlarge\n - m5d.2xlarge\n - m5d.4xlarge\n - m5d.8xlarge\n - m5d.16xlarge\n - m5d.12xlarge\n - m5d.24xlarge\n - m5ad.xlarge\n - m5ad.2xlarge\n - m5ad.4xlarge\n - m5ad.8xlarge\n - m5ad.12xlarge\n - m5ad.16xlarge\n - m5ad.24xlarge\n - m5zn.xlarge\n - m5zn.2xlarge\n - m5zn.3xlarge\n - m5zn.6xlarge\n - m5zn.12xlarge\n - m5n.xlarge\n - m5n.2xlarge\n - m5n.4xlarge\n - m5n.8xlarge\n - m5n.12xlarge\n - m5n.16xlarge\n - m5n.24xlarge\n - m5dn.xlarge\n - m5dn.2xlarge\n - m5dn.4xlarge\n - m5dn.8xlarge\n - m5dn.12xlarge\n - m5dn.16xlarge\n - m5dn.24xlarge\n - m6a.xlarge\n - m6a.2xlarge\n - m6a.4xlarge\n - m6a.8xlarge\n - m6a.12xlarge\n - m6a.16xlarge\n - m6a.24xlarge\n - m6a.32xlarge\n - m6a.48xlarge\n - m6i.xlarge\n - m6i.2xlarge\n - m6i.4xlarge\n - m6i.8xlarge\n - m6i.12xlarge\n - m6i.16xlarge\n - m6i.24xlarge\n - m6i.32xlarge\n - m6id.xlarge\n - m6id.2xlarge\n - m6id.4xlarge\n - m6id.8xlarge\n - m6id.12xlarge\n - m6id.16xlarge\n - m6id.24xlarge\n - m6id.32xlarge\n - m7i.xlarge\n - m7i.2xlarge\n - m7i.4xlarge\n - m7i.8xlarge\n - m7i.12xlarge\n - m7i.16xlarge\n - m7i.24xlarge\n - m7i.48xlarge\n - m7i-flex.xlarge\n - m7i-flex.2xlarge\n - m7i-flex.4xlarge\n - m7i-flex.8xlarge\n - m7i-flex.12xlarge\n - m7i-flex.16xlarge\n - m7a.xlarge\n - m7a.2xlarge\n - m7a.4xlarge\n - m7a.8xlarge\n - m7a.12xlarge\n - m7a.16xlarge\n - m7a.24xlarge\n - m7a.32xlarge\n - m7a.48xlarge\n - m8a.xlarge\n - m8a.2xlarge\n - m8a.4xlarge\n - m8a.8xlarge\n - m8a.12xlarge\n - m8a.16xlarge\n - m8a.24xlarge\n - m8a.48xlarge\n - m8i.xlarge\n - m8i.2xlarge\n - m8i.4xlarge\n - m8i.8xlarge\n - m8i.12xlarge\n - m8i.16xlarge\n - m8i.24xlarge\n - m8i.32xlarge\n - m8i.48xlarge\n - m8i.96xlarge\n - m8i-flex.xlarge\n - m8i-flex.2xlarge\n - m8i-flex.4xlarge\n - m8i-flex.8xlarge\n - m8i-flex.12xlarge\n - m8i-flex.16xlarge\n - r3.xlarge\n - r3.2xlarge\n - r3.4xlarge\n - r3.8xlarge\n - r4.xlarge\n - r4.2xlarge\n - r4.4xlarge\n - r4.8xlarge\n - r4.16xlarge\n - r5.xlarge\n - r5.2xlarge\n - r5.4xlarge\n - r5.8xlarge\n - r5.12xlarge\n - r5.16xlarge\n - r5.24xlarge\n - r5a.xlarge\n - r5a.2xlarge\n - r5a.4xlarge\n - r5a.8xlarge\n - r5a.12xlarge\n - r5a.16xlarge\n - r5a.24xlarge\n - r5ad.xlarge\n - r5ad.2xlarge\n - r5ad.4xlarge\n - r5ad.8xlarge\n - r5ad.12xlarge\n - r5ad.16xlarge\n - r5ad.24xlarge\n - r5b.xlarge\n - r5b.2xlarge\n - r5b.4xlarge\n - r5b.8xlarge\n - r5b.12xlarge\n - r5b.16xlarge\n - r5b.24xlarge\n - r5d.xlarge\n - r5d.2xlarge\n - r5d.4xlarge\n - r5d.8xlarge\n - r5d.12xlarge\n - r5d.16xlarge\n - r5d.24xlarge\n - r5dn.xlarge\n - r5dn.2xlarge\n - r5dn.4xlarge\n - r5dn.8xlarge\n - r5dn.12xlarge\n - r5dn.16xlarge\n - r5dn.24xlarge\n - r5n.xlarge\n - r5n.2xlarge\n - r5n.4xlarge\n - r5n.8xlarge\n - r5n.12xlarge\n - r5n.16xlarge\n - r5n.24xlarge\n - r6a.xlarge\n - r6a.2xlarge\n - r6a.4xlarge\n - r6a.8xlarge\n - r6a.12xlarge\n - r6a.16xlarge\n - r6a.24xlarge\n - r6a.32xlarge\n - r6a.48xlarge\n - r6i.xlarge\n - r6i.2xlarge\n - r6i.4xlarge\n - r6i.8xlarge\n - r6i.12xlarge\n - r6i.16xlarge\n - r6i.24xlarge\n - r6i.32xlarge\n - r6id.xlarge\n - r6id.2xlarge\n - r6id.4xlarge\n - r6id.8xlarge\n - r6id.12xlarge\n - r6id.16xlarge\n - r6id.24xlarge\n - r6id.32xlarge\n - r7i.xlarge\n - r7i.2xlarge\n - r7i.4xlarge\n - r7i.8xlarge\n - r7i.12xlarge\n - r7i.16xlarge\n - r7i.24xlarge\n - r7i.48xlarge\n - r7iz.xlarge\n - r7iz.2xlarge\n - r7iz.4xlarge\n - r7iz.8xlarge\n - r7iz.12xlarge\n - r7iz.16xlarge\n - r7iz.32xlarge\n - r7a.xlarge\n - r7a.2xlarge\n - r7a.4xlarge\n - r7a.8xlarge\n - r7a.12xlarge\n - r7a.16xlarge\n - r7a.24xlarge\n - r7a.32xlarge\n - r7a.48xlarge\n - r8a.xlarge\n - r8a.2xlarge\n - r8a.4xlarge\n - r8a.8xlarge\n - r8a.12xlarge\n - r8a.16xlarge\n - r8a.24xlarge\n - r8a.48xlarge\n - r8i.xlarge\n - r8i.2xlarge\n - r8i.4xlarge\n - r8i.8xlarge\n - r8i.12xlarge\n - r8i.16xlarge\n - r8i.24xlarge\n - r8i.32xlarge\n - r8i.48xlarge\n - r8i.96xlarge\n - r8i-flex.xlarge\n - r8i-flex.2xlarge\n - r8i-flex.4xlarge\n - r8i-flex.8xlarge\n - r8i-flex.12xlarge\n - r8i-flex.16xlarge\n - x1.16xlarge\n - x1.32xlarge\n - x1e.xlarge\n - x1e.2xlarge\n - x1e.4xlarge\n - x1e.8xlarge\n - x1e.16xlarge\n - x1e.32xlarge\n - x2idn.16xlarge\n - x2idn.24xlarge\n - x2idn.32xlarge\n - x2iedn.xlarge\n - x2iedn.2xlarge\n - x2iedn.4xlarge\n - x2iedn.8xlarge\n - x2iedn.16xlarge\n - x2iedn.24xlarge\n - x2iedn.32xlarge\n - x2iezn.2xlarge\n - x2iezn.4xlarge\n - x2iezn.6xlarge\n - x2iezn.8xlarge\n - x2iezn.12xlarge\n - d2.xlarge\n - d2.2xlarge\n - d2.4xlarge\n - d2.8xlarge\n - d3.xlarge\n - d3.2xlarge\n - d3.4xlarge\n - d3.8xlarge\n - d3en.xlarge\n - d3en.2xlarge\n - d3en.4xlarge\n - d3en.6xlarge\n - d3en.8xlarge\n - d3en.12xlarge\n - dl1.24xlarge\n - h1.2xlarge\n - h1.4xlarge\n - h1.8xlarge\n - h1.16xlarge\n - inf1.xlarge\n - inf1.2xlarge\n - inf1.6xlarge\n - inf1.24xlarge\n - trn1.2xlarge\n - trn1.32xlarge\n - u-3tb1.56xlarge\n - u-6tb1.56xlarge\n - u-6tb1.112xlarge\n - u-9tb1.112xlarge\n - u-12tb1.112xlarge\n - u-18tb1.112xlarge\n - vt1.3xlarge\n - vt1.6xlarge\n - vt1.24xlarge\n - z1d.xlarge\n - z1d.2xlarge\n - z1d.3xlarge\n - z1d.6xlarge\n - z1d.12xlarge\n - -------------- Bring-Your-Own-License Only --------------\n - c3.large\n - c4.large\n - c5.metal\n - c5.large\n - c5a.large\n - c5ad.large\n - c5d.metal\n - c5d.large\n - c5n.large\n - c5n.metal\n - c6a.large\n - c6a.metal\n - c6i.large\n - c6i.metal\n - c6id.large\n - c6id.metal\n - c7i.large\n - c7i.metal-24xl\n - c7i.metal-48xl\n - c7i-flex.large\n - c7a.medium\n - c7a.large\n - c7a.metal-48xl\n - c8i.large\n - c8i.metal-48xl\n - c8i.metal-96xl\n - c8i-flex.large\n - i3.large\n - i3.metal\n - i3en.large\n - i3en.metal\n - i4i.large\n - i4i.metal\n - i7ie.large\n - i7ie.metal-24xl\n - i7ie.metal-48xl\n - m3.large\n - m3.medium\n - m4.large\n - m5.metal\n - m5.large\n - m5a.large\n - m5ad.large\n - m5d.metal\n - m5d.large\n - m5zn.large\n - m5zn.metal\n - m5n.large\n - m5n.metal\n - m5dn.large\n - m5dn.metal\n - m6a.large\n - m6a.metal\n - m6i.large\n - m6i.metal\n - m6id.large\n - m6id.metal\n - m7i.large\n - m7i.metal-24xl\n - m7i.metal-48xl\n - m7i-flex.large\n - m7a.medium\n - m7a.large\n - m7a.metal-48xl\n - m8a.medium\n - m8a.large\n - m8a.metal-24xl\n - m8a.metal-48xl\n - m8i.large\n - m8i.metal-48xl\n - m8i.metal-96xl\n - m8i-flex.large\n - r3.large\n - r4.large\n - r5.metal\n - r5.large\n - r5a.large\n - r5d.metal\n - r5ad.large\n - r5d.large\n - r5dn.large\n - r5dn.metal\n - r5b.large\n - r5b.metal\n - r5n.large\n - r5n.metal\n - r6a.large\n - r6a.metal\n - r6i.large\n - r6i.metal\n - r6id.large\n - r6id.metal\n - r7i.large\n - r7i.metal-24xl\n - r7i.metal-48xl\n - r7iz.large\n - r7iz.metal-16xl\n - r7iz.metal-32xl\n - r7a.medium\n - r7a.large\n - r7a.metal-48xl\n - r8a.medium\n - r8a.large\n - r8a.metal-24xl\n - r8a.metal-48xl\n - r8i.large\n - r8i.metal-48xl\n - r8i.metal-96xl\n - r8i-flex.large\n - t2.2xlarge\n - t2.large\n - t2.medium\n - t2.micro\n - t2.nano\n - t2.small\n - t2.xlarge\n - t3.2xlarge\n - t3.large\n - t3.medium\n - t3.micro\n - t3.nano\n - t3.small\n - t3.xlarge\n - t3a.2xlarge\n - t3a.large\n - t3a.medium\n - t3a.micro\n - t3a.nano\n - t3a.small\n - t3a.xlarge\n - x2idn.metal\n - x2iedn.metal\n - x2iezn.metal\n - z1d.metal\n - z1d.large\n SpotPrice:\n Description: Spot price for instances in USD/Hour - Optional/advanced\n Type: Number\n MinValue: '0'\n MaxValue: '2'\n Default: '0'\n KeyName:\n Description: Name of an existing EC2 KeyPair to enable SSH access to the instance\n Type: String\n NumberOfZones:\n Description: Total number of Availability Zones, which can be 1 or 3. Load balancer type depends on the number of zones selected. Select 3 zones for Application Load Balancer (OR) Select 1 zone for Classic Load Balancer.\n Type: Number\n AllowedValues:\n - 1\n - 3\n Default: 3\n NodesPerZone:\n Description: Total number of nodes per Zone. Set to 0 to shutdown/hibernate\n Type: Number\n MinValue: '0'\n MaxValue: '20'\n Default: '1'\n AZ:\n Description: The Availability Zones for VPC subnets. Accept either 1 zone or 3 zones. In the order of Subnet 1, Subnet 2 and Subnet 3 (if applicable).\n Type: 'List<AWS::EC2::AvailabilityZone::Name>'\n LogSNS:\n Description: SNS Topic for logging - optional/advanced.\n Type: String\n Default: none\n PublicLoadBalancer:\n Description: Enable Public Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n InternalLoadBalancer:\n Description: Enable Internal Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n # network configuration\n VPC:\n Description: ID of an existing Virtual Private Cloud (VPC)\n Type: 'AWS::EC2::VPC::Id'\n PublicSubnet1:\n Description: The public subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet2:\n Description: The public subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet3:\n Description: The public subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet1:\n Description: The private subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet2:\n Description: The private subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet3:\n Description: The private subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n ExternalAccessCidrIP:\n Description: A CIDR IP range to allow external access from\n Type: String\n Default: 54.76.254.148/32\n ECSSecurityGroup:\n Description: the security group the ECS cluster is in\n Type: 'AWS::EC2::SecurityGroup::Id'\n\n # marklogic configuration\n AdminUser:\n Description: The MarkLogic administrator username\n Type: String\n AdminPass:\n Description: The MarkLogic administrator password\n Type: String\n NoEcho: 'true'\n AllowedPattern: >-\n ^(?!.*[*]).*$\n ConstraintDescription: Admin password must contain any characters except asterisk (*).\n Licensee:\n Description: The MarkLogic Licensee or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\n LicenseKey:\n Description: The MarkLogic License Key or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\nConditions:\n UseLogSNS: !Not [!Equals [!Ref LogSNS, \"none\"]]\n UseSpot: !Not\n - !Equals\n - !Ref SpotPrice\n - 0\n #MultiZone (3 zones) and SingleZone conditions used for the conditional resource creation based on number of zones selected.\n MultiZone:\n !Not [!Equals [!Ref NumberOfZones, 1]]\n CreatePublicAlb: !And [!Condition MultiZone, !Equals [!Ref PublicLoadBalancer, 'true']]\n CreateInternalAlb: !And [!Condition MultiZone, !Equals [!Ref InternalLoadBalancer, 'true']]\n SingleZone: !Equals [!Ref NumberOfZones, 1]\n PAYG:\n !Or [ !And [!Equals [!Ref LicenseKey, ''], !Equals [!Ref Licensee, '']], !And [!Equals [!Ref LicenseKey, 'none'], !Equals [!Ref Licensee, 'none']] ]\n UseVolumeEncryption: !Equals [!Ref VolumeEncryption, 'enable']\n HasCustomEBSKey: !Not [!Equals [!Ref VolumeEncryptionKey, '']]\n GP3: !Equals [!Ref VolumeType, 'gp3']\nMappings:\n Variable:\n LambdaPackageBucket:\n base: 'ml-db-lambda-'\n TemplateUrl:\n base: 'https://s3.amazonaws.com/marklogic-db-template-releases'\n S3Directory:\n base: '12.0.1'\n LicenseRegion2AMI:\n us-east-1:\n PAYGAl2023: ami-0198b8931e9597271\n BYOLAl2023: ami-0a8536507241f95b0\n us-east-2:\n PAYGAl2023: ami-0877b64dae8264415\n BYOLAl2023: ami-082cc98b2c01e486a\n us-west-1:\n PAYGAl2023: ami-07890fc78f4ddfa20\n BYOLAl2023: ami-05c9a962410c2821b\n us-west-2:\n PAYGAl2023: ami-0577eb149c9e0f53f\n BYOLAl2023: ami-0262dd8d014bf71ba\n eu-central-1:\n PAYGAl2023: ami-06348556399c8ab69\n BYOLAl2023: ami-00cb5a3527e7c0d11\n eu-west-1:\n PAYGAl2023: ami-0fa7bc44cd9ab1f85\n BYOLAl2023: ami-0bc2b4d46367806b0\n ap-south-1:\n PAYGAl2023: ami-0f481ba0a6819ced6\n BYOLAl2023: ami-00b59374107e5efb6\n ap-southeast-1:\n PAYGAl2023: ami-0c373c6c8a2316c80\n BYOLAl2023: ami-0b9bd265ef165a07b\n ap-southeast-2:\n PAYGAl2023: ami-0c65a907408226a3e\n BYOLAl2023: ami-02bad1ef2c6d4a91a\n ap-northeast-1:\n PAYGAl2023: ami-0254bc4adaf13e3b9\n BYOLAl2023: ami-07e8b312b1016bf67\n ap-northeast-2:\n PAYGAl2023: ami-05995b5f5807873d7\n BYOLAl2023: ami-0afd77ba0d7a0c129\n sa-east-1:\n PAYGAl2023: ami-05ec8fee12de236a5\n BYOLAl2023: ami-09d883ea308449555\n eu-west-2:\n PAYGAl2023: ami-0f5cff9d243f31521\n BYOLAl2023: ami-0588d104a52fbc326\n ca-central-1:\n PAYGAl2023: ami-0f34d118b23b51bf5\n BYOLAl2023: ami-0c78eccd03e957005\n eu-west-3:\n PAYGAl2023: ami-01fa9155eb17992c5\n BYOLAl2023: ami-0637199acc5327534\nResources:\n ManagedEniStack:\n Type: AWS::CloudFormation::Stack\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n NodesPerZone: !Ref NodesPerZone\n NumberOfZones: !Ref NumberOfZones\n Subnets: !If [MultiZone, !Join [',', [!Ref PrivateSubnet1, !Ref PrivateSubnet2, !Ref PrivateSubnet3]], !Ref PrivateSubnet1]\n ParentStackName: !Ref 'AWS::StackName'\n ParentStackId: !Ref 'AWS::StackId'\n SecurityGroup: !Ref InstanceSecurityGroup\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-managedeni.template']]\n TimeoutInMinutes: 5\n NodeMgrLambdaStack:\n Type: AWS::CloudFormation::Stack\n DependsOn: ManagedEniStack\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-nodemanager.template']]\n TimeoutInMinutes: 5\n MarklogicVolume1:\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [0, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupA-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c81032f7-b0ec-47ca-a236-e24d57b49ae3\n MarklogicVolume2:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [1, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupB-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: ddb55ae1-a00b-42ed-addd-5e03e4a2764b\n MarklogicVolume3:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [2, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupC-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 9094a65e-9d01-4c4c-9586-c33720e2cc9c\n MarkLogicDDBTable:\n Type: 'AWS::DynamoDB::Table'\n Properties:\n AttributeDefinitions:\n - AttributeName: node\n AttributeType: S\n KeySchema:\n - KeyType: HASH\n AttributeName: node\n ProvisionedThroughput:\n WriteCapacityUnits: '10'\n ReadCapacityUnits: '10'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e7190602-c2de-47ab-81e7-1315f8c01e2d\n #AutoScalingGroup used for SingleZone deployments that is connected to Classic Load Balancer.\n MarkLogicServerGroup:\n Condition: SingleZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup1:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - InternalAlbTargetGroup1\n - InternalAlbTargetGroup2\n - InternalAlbTargetGroup3\n - InternalAlbTargetGroup4\n - InternalAlbTargetGroup5\n - InternalAlbTargetGroup6\n - InternalAlbTargetGroup7\n - InternalAlbTargetGroup8\n - InternalAlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref InternalAlbTargetGroup1\n - !Ref InternalAlbTargetGroup2\n - !Ref InternalAlbTargetGroup3\n - !Ref InternalAlbTargetGroup4\n - !Ref InternalAlbTargetGroup5\n - !Ref InternalAlbTargetGroup6\n - !Ref InternalAlbTargetGroup7\n - !Ref InternalAlbTargetGroup8\n - !Ref InternalAlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup2:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - InternalAlbTargetGroup1\n - InternalAlbTargetGroup2\n - InternalAlbTargetGroup3\n - InternalAlbTargetGroup4\n - InternalAlbTargetGroup5\n - InternalAlbTargetGroup6\n - InternalAlbTargetGroup7\n - InternalAlbTargetGroup8\n - InternalAlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet2\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp2\n Version: !GetAtt LaunchTemp2.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref InternalAlbTargetGroup1\n - !Ref InternalAlbTargetGroup2\n - !Ref InternalAlbTargetGroup3\n - !Ref InternalAlbTargetGroup4\n - !Ref InternalAlbTargetGroup5\n - !Ref InternalAlbTargetGroup6\n - !Ref InternalAlbTargetGroup7\n - !Ref InternalAlbTargetGroup8\n - !Ref InternalAlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 87d75478-787a-41d5-bb21-9de6fe4b662e\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup3:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet3\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp3\n Version: !GetAtt LaunchTemp3.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: bbd8314a-6e59-4102-9ed5-232739dd0dfa\n InstanceSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable access to MarkLogic instances from Load Balancers and other cluster members\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n InstanceSecurityGroupIngress:\n Type: 'AWS::EC2::SecurityGroupIngress'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n IpProtocol: tcp\n FromPort: '0'\n ToPort: '65355'\n GroupId: !Ref InstanceSecurityGroup\n SourceSecurityGroupId: !Ref InstanceSecurityGroup\n InternalElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Allow access from ECS clsuter to internal ALB for marklogic cluster.\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n ElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable SSH access and HTTP access on the inbound port\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '22'\n ToPort: '22'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n CidrIp: !Ref ExternalAccessCidrIP\n LaunchTemp1:\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume1\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeA#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=1\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 2efb8cfb-df53-401d-8ff2-34af0dd25993\n LaunchTemp2:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume2\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeB#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c8296a50-a29e-4646-aa74-8f1b735a9a3f\n LaunchTemp3:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume3\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeC#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 7fa68c90-39bc-4874-ad20-8cd8c974ed52\n #Application Load Balancer description for MultiZone deployments (3 zones).\n Alb:\n Condition: CreatePublicAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - ElbSecurityGroup\n Properties: \n SecurityGroups: \n - !Ref ElbSecurityGroup\n Subnets:\n - !Ref PublicSubnet1\n - !If [MultiZone, !Ref PublicSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PublicSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 9 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n AlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicExternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n #Descriptions of the 9 Listeners for MultiZone deployments (3 zones). Each Listener connects Application Load Balancer to a TargetGroup with a particular port.\n AlbListener1:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8000\n Protocol: HTTP\n AlbListener2:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8001\n Protocol: HTTP\n AlbListener3:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8002\n Protocol: HTTP\n AlbListener4:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8003\n Protocol: HTTP\n AlbListener5:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8004\n Protocol: HTTP\n AlbListener6:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8005\n Protocol: HTTP\n AlbListener7:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8006\n Protocol: HTTP\n AlbListener8:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8007\n Protocol: HTTP\n AlbListener9:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8008\n Protocol: HTTP\n MarklogicExternal8011Listener:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - MarklogicExternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicExternal8011\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8011\n Protocol: HTTP\n #Application Load Balancer description for MultiZone deployments (3 zones).\n InternalAlb:\n Condition: CreateInternalAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - InternalElbSecurityGroup\n Properties: \n Scheme: internal\n SecurityGroups: \n - !Ref InternalElbSecurityGroup\n Subnets:\n - !Ref PrivateSubnet1\n - !If [MultiZone, !Ref PrivateSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PrivateSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 1 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n MarklogicInternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicInternal8011Listener:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - MarklogicInternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicInternal8011\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8011\n Protocol: HTTP\n InternalAlbListener1:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8000\n Protocol: HTTP\n InternalAlbListener2:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8001\n Protocol: HTTP\n InternalAlbListener3:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8002\n Protocol: HTTP\n InternalAlbListener4:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8003\n Protocol: HTTP\n InternalAlbListener5:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8004\n Protocol: HTTP\n InternalAlbListener6:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8005\n Protocol: HTTP\n InternalAlbListener7:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8006\n Protocol: HTTP\n InternalAlbListener8:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8007\n Protocol: HTTP\n InternalAlbListener9:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8008\n Protocol: HTTP\nOutputs:\n URL:\n Description: The URL of the MarkLogic Cluster\n Value: !Join\n - ''\n - - 'http://'\n - !If [CreatePublicAlb, !GetAtt [Alb, DNSName], !If [CreateInternalAlb, !GetAtt [InternalAlb, DNSName], !GetAtt [ManagedEniStack, Outputs.ENI]]]\n - ':8001'",
"diffStat": {
"model_added_lines": 18,
"model_removed_lines": 0,
"model_added_chars": 621,
"model_removed_chars": 0,
"user_added_lines": 0,
"user_removed_lines": 2311,
"user_added_chars": 0,
"user_removed_chars": 64634
},
"isNewFile": false
},
"displayName": "Edit",
"description": "Replaces text within a file. By default, replaces a single occurrence, but can replace multiple occurrences when `expected_replacements` is specified. This tool requires providing significant context around the change to ensure precise targeting. Always use the read_file tool to examine the file's current content before attempting a text replacement.\n \n The user has the ability to modify the `new_string` content. If modified, this will be stated in the response.\n \n Expectation for required parameters:\n 1. `old_string` MUST be the exact literal text to replace (including all whitespace, indentation, newlines, and surrounding code etc.).\n 2. `new_string` MUST be the exact literal text to replace `old_string` with (also including all whitespace, indentation, newlines, and surrounding code etc.). Ensure the resulting code is correct and idiomatic and that `old_string` and `new_string` are different.\n 3. `instruction` is the detailed instruction of what needs to be changed. It is important to Make it specific and detailed so developers or large language models can understand what needs to be changed and perform the changes on their own if necessary. \n 4. NEVER escape `old_string` or `new_string`, that would break the exact literal text requirement.\n **Important:** If ANY of the above are not satisfied, the tool will fail. CRITICAL for `old_string`: Must uniquely identify the single instance to change. Include at least 3 lines of context BEFORE and AFTER the target text, matching whitespace and indentation precisely. If this string matches multiple locations, or does not match exactly, the tool will fail.\n 5. Prefer to break down complex and long changes into multiple smaller atomic calls to this tool. Always check the content of the file after changes or not finding a string to match.\n **Multiple replacements:** Set `expected_replacements` to the number of occurrences you want to replace. The tool will replace ALL occurrences that match `old_string` exactly. Ensure the number of replacements matches your expectation.",
"renderOutputAsMarkdown": true
}
]
},
{
"id": "a1c813c7-d5ef-4689-9d3d-2b2df417ecda",
"timestamp": "2026-01-30T11:35:36.921Z",
"type": "gemini",
"content": "I will update the `MarkLogicServerGroup3` resource in `mlcluster.template` to include `InternalAlbTargetGroup1` through `InternalAlbTargetGroup9` in both its `DependsOn` list and its `TargetGroupARNs` property, completing the updates for all Auto Scaling Groups.",
"thoughts": [
{
"subject": "Analyzing Database Grouping",
"description": "I'm now applying the same logic to `MarkLogicServerGroup3`. It's a straightforward continuation of the pattern, focusing on efficient data grouping and processing within the database environment. No major roadblocks yet, just consistent replication of the established approach.",
"timestamp": "2026-01-30T11:35:27.101Z"
}
],
"tokens": {
"input": 69466,
"output": 1506,
"cached": 64788,
"thoughts": 11,
"tool": 0,
"total": 70983
},
"model": "gemini-3-pro-preview",
"toolCalls": [
{
"id": "replace-1769772936915-aabd1152a9abb8",
"name": "replace",
"args": {
"new_string": " MarkLogicServerGroup3:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - InternalAlbTargetGroup1\n - InternalAlbTargetGroup2\n - InternalAlbTargetGroup3\n - InternalAlbTargetGroup4\n - InternalAlbTargetGroup5\n - InternalAlbTargetGroup6\n - InternalAlbTargetGroup7\n - InternalAlbTargetGroup8\n - InternalAlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet3\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp3\n Version: !GetAtt LaunchTemp3.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref InternalAlbTargetGroup1\n - !Ref InternalAlbTargetGroup2\n - !Ref InternalAlbTargetGroup3\n - !Ref InternalAlbTargetGroup4\n - !Ref InternalAlbTargetGroup5\n - !Ref InternalAlbTargetGroup6\n - !Ref InternalAlbTargetGroup7\n - !Ref InternalAlbTargetGroup8\n - !Ref InternalAlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011",
"instruction": "Add InternalAlbTargetGroup1 through InternalAlbTargetGroup9 to DependsOn and TargetGroupARNs in MarkLogicServerGroup3.",
"file_path": "/Users/bob/git/dxw/marklogic-cf-templates/mlcluster.template",
"old_string": " MarkLogicServerGroup3:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet3\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp3\n Version: !GetAtt LaunchTemp3.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011"
},
"result": [
{
"functionResponse": {
"id": "replace-1769772936915-aabd1152a9abb8",
"name": "replace",
"response": {
"output": "Successfully modified file: /Users/bob/git/dxw/marklogic-cf-templates/mlcluster.template (1 replacements)."
}
}
}
],
"status": "success",
"timestamp": "2026-01-30T11:35:40.336Z",
"resultDisplay": {
"fileDiff": "Index: mlcluster.template\n===================================================================\n--- mlcluster.template\tCurrent\n+++ mlcluster.template\tProposed\n@@ -1238,6 +1238,15 @@\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n+ - InternalAlbTargetGroup1\n+ - InternalAlbTargetGroup2\n+ - InternalAlbTargetGroup3\n+ - InternalAlbTargetGroup4\n+ - InternalAlbTargetGroup5\n+ - InternalAlbTargetGroup6\n+ - InternalAlbTargetGroup7\n+ - InternalAlbTargetGroup8\n+ - InternalAlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n@@ -1284,6 +1293,15 @@\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n+ - !Ref InternalAlbTargetGroup1\n+ - !Ref InternalAlbTargetGroup2\n+ - !Ref InternalAlbTargetGroup3\n+ - !Ref InternalAlbTargetGroup4\n+ - !Ref InternalAlbTargetGroup5\n+ - !Ref InternalAlbTargetGroup6\n+ - !Ref InternalAlbTargetGroup7\n+ - !Ref InternalAlbTargetGroup8\n+ - !Ref InternalAlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n",
"fileName": "mlcluster.template",
"filePath": "/Users/bob/git/dxw/marklogic-cf-templates/mlcluster.template",
"originalContent": "AWSTemplateFormatVersion: 2010-09-09\nDescription: Deploy a MarkLogic Cluster on AWS in existing VPC (Virtual Private Cloud).\nMetadata:\n version: 12.0.1\n binary: MarkLogic-12.0.1-rhel.x86_64.rpm\n AWS::CloudFormation::Interface:\n ParameterGroups:\n - Label:\n default: \"Resource Configuration\"\n Parameters:\n - IAMRole\n - VolumeSize\n - VolumeType\n - VolumeIOPS\n - VolumeThroughput\n - VolumeEncryption\n - VolumeEncryptionKey\n - InstanceType\n - SpotPrice\n - KeyName\n - NumberOfZones\n - NodesPerZone\n - AZ\n - LogSNS\n - Label:\n default: \"Network Configuration\"\n Parameters:\n - VPC\n - PublicSubnet1\n - PublicSubnet2\n - PublicSubnet3\n - PrivateSubnet1\n - PrivateSubnet2\n - PrivateSubnet3\n - PublicLoadBalancer\n - InternalLoadBalancer\n - ExternalAccessCidrIP\n - ECSSecurityGroup\n - Label:\n default: \"MarkLogic Configuration\"\n Parameters:\n - AdminUser\n - AdminPass\n - Licensee\n - LicenseKey\n ParameterLabels:\n AdminUser:\n default: Admin User\n AdminPass:\n default: Admin password\n Licensee:\n default: Licensee\n LicenseKey:\n default: License Key\n IAMRole:\n default: IAM Role\n LogSNS:\n default: Logging SNS ARN\n VolumeSize:\n default: Volume Size\n VolumeType:\n default: Volume Type\n VolumeIOPS:\n default: Volume Iops\n VolumeThroughput:\n default: Volume Throughput\n VolumeEncryption:\n default: Volume Encryption\n VolumeEncryptionKey:\n default: Volume Encryption Key ARN\n InstanceType:\n default: Instance Type\n SpotPrice:\n default: Spot Price\n KeyName:\n default: SSH Key Name\n NumberOfZones:\n default: Number of Zones\n NodesPerZone:\n default: Nodes per Zone\n AZ:\n default: Availability Zone\n VPC:\n default: VPC\n PublicSubnet1:\n default: Public Subnet 1\n PublicSubnet2:\n default: Public Subnet 2\n PublicSubnet3:\n default: Public Subnet 3\n PrivateSubnet1:\n default: Private Subnet 1\n PrivateSubnet2:\n default: Private Subnet 2\n PrivateSubnet3:\n default: Private Subnet 3\n PublicLoadBalancer:\n default: Public Load Balancer\n InternalLoadBalancer:\n default: Internal Load Balancer\n ExternalAccessCidrIP:\n default: External IP address range for access to admin site\n ECSSecurityGroup:\n default: the security group the ecs cluster is in\nParameters:\n # resource configuration\n IAMRole:\n Description: IAM Role\n Type: String\n VolumeSize:\n Description: The EBS Data volume size (GB) for all nodes\n Type: Number\n MinValue: '10'\n MaxValue: '1000'\n Default: '50'\n VolumeType:\n Description: The EBS Data volume Type\n Type: String\n AllowedValues:\n - standard\n - gp2\n - gp3\n Default: gp3\n VolumeIOPS:\n Description: The number of I/O operations per second for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '3000'\n MaxValue: '16000'\n Default: '3000'\n VolumeThroughput:\n Description: The throughput to provision for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '125'\n MaxValue: '1000'\n Default: '125'\n VolumeEncryption:\n Description: Whether to enable volume encryption\n Type: String\n AllowedValues:\n - enable\n - disable\n Default: enable\n VolumeEncryptionKey:\n Description: The key ID of AWS KMS key to encrypt volumes - Optional\n Type: String\n Default: \"\"\n InstanceType:\n Description: Type of EC2 instance to launch\n Type: String\n Default: r5.4xlarge\n AllowedValues:\n - ---- Pay-As-You-Go and Bring-Your-Own-License ----\n - c3.xlarge\n - c3.2xlarge\n - c3.4xlarge\n - c3.8xlarge\n - c4.xlarge\n - c4.2xlarge\n - c4.4xlarge\n - c4.8xlarge\n - c5.xlarge\n - c5.2xlarge\n - c5.4xlarge\n - c5.9xlarge\n - c5.12xlarge\n - c5.18xlarge\n - c5.24xlarge\n - c5a.xlarge\n - c5a.2xlarge\n - c5a.4xlarge\n - c5a.8xlarge\n - c5a.12xlarge\n - c5a.16xlarge\n - c5a.24xlarge\n - c5ad.xlarge\n - c5ad.2xlarge\n - c5ad.4xlarge\n - c5ad.8xlarge\n - c5ad.12xlarge\n - c5ad.16xlarge\n - c5ad.24xlarge\n - c5d.xlarge\n - c5d.2xlarge\n - c5d.4xlarge\n - c5d.9xlarge\n - c5d.12xlarge\n - c5d.18xlarge\n - c5d.24xlarge\n - c5n.xlarge\n - c5n.2xlarge\n - c5n.4xlarge\n - c5n.9xlarge\n - c5n.18xlarge\n - c6a.xlarge\n - c6a.2xlarge\n - c6a.4xlarge\n - c6a.8xlarge\n - c6a.12xlarge\n - c6a.16xlarge\n - c6a.24xlarge\n - c6a.32xlarge\n - c6a.48xlarge\n - c6i.xlarge\n - c6i.2xlarge\n - c6i.4xlarge\n - c6i.8xlarge\n - c6i.12xlarge\n - c6i.16xlarge\n - c6i.24xlarge\n - c6i.32xlarge\n - c6id.xlarge\n - c6id.2xlarge\n - c6id.4xlarge\n - c6id.8xlarge\n - c6id.12xlarge\n - c6id.16xlarge\n - c6id.24xlarge\n - c6id.32xlarge\n - c7i.xlarge\n - c7i.2xlarge\n - c7i.4xlarge\n - c7i.8xlarge\n - c7i.12xlarge\n - c7i.16xlarge\n - c7i.24xlarge\n - c7i.48xlarge\n - c7i-flex.xlarge\n - c7i-flex.2xlarge\n - c7i-flex.4xlarge\n - c7i-flex.8xlarge\n - c7i-flex.12xlarge\n - c7i-flex.16xlarge\n - c7a.xlarge\n - c7a.2xlarge\n - c7a.4xlarge\n - c7a.8xlarge\n - c7a.12xlarge\n - c7a.16xlarge\n - c7a.24xlarge\n - c7a.32xlarge\n - c7a.48xlarge\n - c8i.xlarge\n - c8i.2xlarge\n - c8i.4xlarge\n - c8i.8xlarge\n - c8i.12xlarge\n - c8i.16xlarge\n - c8i.24xlarge\n - c8i.32xlarge\n - c8i.48xlarge\n - c8i.96xlarge\n - c8i-flex.xlarge\n - c8i-flex.2xlarge\n - c8i-flex.4xlarge\n - c8i-flex.8xlarge\n - c8i-flex.12xlarge\n - c8i-flex.16xlarge\n - i2.2xlarge\n - i2.4xlarge\n - i2.8xlarge\n - i2.xlarge\n - i3.xlarge\n - i3.2xlarge\n - i3.4xlarge\n - i3.8xlarge\n - i3.16xlarge\n - i3en.xlarge\n - i3en.2xlarge\n - i3en.3xlarge\n - i3en.6xlarge\n - i3en.12xlarge\n - i3en.24xlarge\n - i4i.xlarge\n - i4i.2xlarge\n - i4i.4xlarge\n - i4i.8xlarge\n - i4i.12xlarge\n - i4i.16xlarge\n - i4i.24xlarge\n - i4i.32xlarge\n - i7ie.xlarge\n - i7ie.2xlarge\n - i7ie.3xlarge\n - i7ie.6xlarge\n - i7ie.12xlarge\n - i7ie.18xlarge\n - i7ie.24xlarge\n - i7ie.48xlarge\n - m3.xlarge\n - m3.2xlarge\n - m4.xlarge\n - m4.2xlarge\n - m4.4xlarge\n - m4.10xlarge\n - m4.16xlarge\n - m5.xlarge\n - m5.2xlarge\n - m5.4xlarge\n - m5.8xlarge\n - m5.12xlarge\n - m5.16xlarge\n - m5.24xlarge\n - m5a.xlarge\n - m5a.2xlarge\n - m5a.4xlarge\n - m5a.8xlarge\n - m5a.12xlarge\n - m5a.16xlarge\n - m5a.24xlarge\n - m5d.xlarge\n - m5d.2xlarge\n - m5d.4xlarge\n - m5d.8xlarge\n - m5d.16xlarge\n - m5d.12xlarge\n - m5d.24xlarge\n - m5ad.xlarge\n - m5ad.2xlarge\n - m5ad.4xlarge\n - m5ad.8xlarge\n - m5ad.12xlarge\n - m5ad.16xlarge\n - m5ad.24xlarge\n - m5zn.xlarge\n - m5zn.2xlarge\n - m5zn.3xlarge\n - m5zn.6xlarge\n - m5zn.12xlarge\n - m5n.xlarge\n - m5n.2xlarge\n - m5n.4xlarge\n - m5n.8xlarge\n - m5n.12xlarge\n - m5n.16xlarge\n - m5n.24xlarge\n - m5dn.xlarge\n - m5dn.2xlarge\n - m5dn.4xlarge\n - m5dn.8xlarge\n - m5dn.12xlarge\n - m5dn.16xlarge\n - m5dn.24xlarge\n - m6a.xlarge\n - m6a.2xlarge\n - m6a.4xlarge\n - m6a.8xlarge\n - m6a.12xlarge\n - m6a.16xlarge\n - m6a.24xlarge\n - m6a.32xlarge\n - m6a.48xlarge\n - m6i.xlarge\n - m6i.2xlarge\n - m6i.4xlarge\n - m6i.8xlarge\n - m6i.12xlarge\n - m6i.16xlarge\n - m6i.24xlarge\n - m6i.32xlarge\n - m6id.xlarge\n - m6id.2xlarge\n - m6id.4xlarge\n - m6id.8xlarge\n - m6id.12xlarge\n - m6id.16xlarge\n - m6id.24xlarge\n - m6id.32xlarge\n - m7i.xlarge\n - m7i.2xlarge\n - m7i.4xlarge\n - m7i.8xlarge\n - m7i.12xlarge\n - m7i.16xlarge\n - m7i.24xlarge\n - m7i.48xlarge\n - m7i-flex.xlarge\n - m7i-flex.2xlarge\n - m7i-flex.4xlarge\n - m7i-flex.8xlarge\n - m7i-flex.12xlarge\n - m7i-flex.16xlarge\n - m7a.xlarge\n - m7a.2xlarge\n - m7a.4xlarge\n - m7a.8xlarge\n - m7a.12xlarge\n - m7a.16xlarge\n - m7a.24xlarge\n - m7a.32xlarge\n - m7a.48xlarge\n - m8a.xlarge\n - m8a.2xlarge\n - m8a.4xlarge\n - m8a.8xlarge\n - m8a.12xlarge\n - m8a.16xlarge\n - m8a.24xlarge\n - m8a.48xlarge\n - m8i.xlarge\n - m8i.2xlarge\n - m8i.4xlarge\n - m8i.8xlarge\n - m8i.12xlarge\n - m8i.16xlarge\n - m8i.24xlarge\n - m8i.32xlarge\n - m8i.48xlarge\n - m8i.96xlarge\n - m8i-flex.xlarge\n - m8i-flex.2xlarge\n - m8i-flex.4xlarge\n - m8i-flex.8xlarge\n - m8i-flex.12xlarge\n - m8i-flex.16xlarge\n - r3.xlarge\n - r3.2xlarge\n - r3.4xlarge\n - r3.8xlarge\n - r4.xlarge\n - r4.2xlarge\n - r4.4xlarge\n - r4.8xlarge\n - r4.16xlarge\n - r5.xlarge\n - r5.2xlarge\n - r5.4xlarge\n - r5.8xlarge\n - r5.12xlarge\n - r5.16xlarge\n - r5.24xlarge\n - r5a.xlarge\n - r5a.2xlarge\n - r5a.4xlarge\n - r5a.8xlarge\n - r5a.12xlarge\n - r5a.16xlarge\n - r5a.24xlarge\n - r5ad.xlarge\n - r5ad.2xlarge\n - r5ad.4xlarge\n - r5ad.8xlarge\n - r5ad.12xlarge\n - r5ad.16xlarge\n - r5ad.24xlarge\n - r5b.xlarge\n - r5b.2xlarge\n - r5b.4xlarge\n - r5b.8xlarge\n - r5b.12xlarge\n - r5b.16xlarge\n - r5b.24xlarge\n - r5d.xlarge\n - r5d.2xlarge\n - r5d.4xlarge\n - r5d.8xlarge\n - r5d.12xlarge\n - r5d.16xlarge\n - r5d.24xlarge\n - r5dn.xlarge\n - r5dn.2xlarge\n - r5dn.4xlarge\n - r5dn.8xlarge\n - r5dn.12xlarge\n - r5dn.16xlarge\n - r5dn.24xlarge\n - r5n.xlarge\n - r5n.2xlarge\n - r5n.4xlarge\n - r5n.8xlarge\n - r5n.12xlarge\n - r5n.16xlarge\n - r5n.24xlarge\n - r6a.xlarge\n - r6a.2xlarge\n - r6a.4xlarge\n - r6a.8xlarge\n - r6a.12xlarge\n - r6a.16xlarge\n - r6a.24xlarge\n - r6a.32xlarge\n - r6a.48xlarge\n - r6i.xlarge\n - r6i.2xlarge\n - r6i.4xlarge\n - r6i.8xlarge\n - r6i.12xlarge\n - r6i.16xlarge\n - r6i.24xlarge\n - r6i.32xlarge\n - r6id.xlarge\n - r6id.2xlarge\n - r6id.4xlarge\n - r6id.8xlarge\n - r6id.12xlarge\n - r6id.16xlarge\n - r6id.24xlarge\n - r6id.32xlarge\n - r7i.xlarge\n - r7i.2xlarge\n - r7i.4xlarge\n - r7i.8xlarge\n - r7i.12xlarge\n - r7i.16xlarge\n - r7i.24xlarge\n - r7i.48xlarge\n - r7iz.xlarge\n - r7iz.2xlarge\n - r7iz.4xlarge\n - r7iz.8xlarge\n - r7iz.12xlarge\n - r7iz.16xlarge\n - r7iz.32xlarge\n - r7a.xlarge\n - r7a.2xlarge\n - r7a.4xlarge\n - r7a.8xlarge\n - r7a.12xlarge\n - r7a.16xlarge\n - r7a.24xlarge\n - r7a.32xlarge\n - r7a.48xlarge\n - r8a.xlarge\n - r8a.2xlarge\n - r8a.4xlarge\n - r8a.8xlarge\n - r8a.12xlarge\n - r8a.16xlarge\n - r8a.24xlarge\n - r8a.48xlarge\n - r8i.xlarge\n - r8i.2xlarge\n - r8i.4xlarge\n - r8i.8xlarge\n - r8i.12xlarge\n - r8i.16xlarge\n - r8i.24xlarge\n - r8i.32xlarge\n - r8i.48xlarge\n - r8i.96xlarge\n - r8i-flex.xlarge\n - r8i-flex.2xlarge\n - r8i-flex.4xlarge\n - r8i-flex.8xlarge\n - r8i-flex.12xlarge\n - r8i-flex.16xlarge\n - x1.16xlarge\n - x1.32xlarge\n - x1e.xlarge\n - x1e.2xlarge\n - x1e.4xlarge\n - x1e.8xlarge\n - x1e.16xlarge\n - x1e.32xlarge\n - x2idn.16xlarge\n - x2idn.24xlarge\n - x2idn.32xlarge\n - x2iedn.xlarge\n - x2iedn.2xlarge\n - x2iedn.4xlarge\n - x2iedn.8xlarge\n - x2iedn.16xlarge\n - x2iedn.24xlarge\n - x2iedn.32xlarge\n - x2iezn.2xlarge\n - x2iezn.4xlarge\n - x2iezn.6xlarge\n - x2iezn.8xlarge\n - x2iezn.12xlarge\n - d2.xlarge\n - d2.2xlarge\n - d2.4xlarge\n - d2.8xlarge\n - d3.xlarge\n - d3.2xlarge\n - d3.4xlarge\n - d3.8xlarge\n - d3en.xlarge\n - d3en.2xlarge\n - d3en.4xlarge\n - d3en.6xlarge\n - d3en.8xlarge\n - d3en.12xlarge\n - dl1.24xlarge\n - h1.2xlarge\n - h1.4xlarge\n - h1.8xlarge\n - h1.16xlarge\n - inf1.xlarge\n - inf1.2xlarge\n - inf1.6xlarge\n - inf1.24xlarge\n - trn1.2xlarge\n - trn1.32xlarge\n - u-3tb1.56xlarge\n - u-6tb1.56xlarge\n - u-6tb1.112xlarge\n - u-9tb1.112xlarge\n - u-12tb1.112xlarge\n - u-18tb1.112xlarge\n - vt1.3xlarge\n - vt1.6xlarge\n - vt1.24xlarge\n - z1d.xlarge\n - z1d.2xlarge\n - z1d.3xlarge\n - z1d.6xlarge\n - z1d.12xlarge\n - -------------- Bring-Your-Own-License Only --------------\n - c3.large\n - c4.large\n - c5.metal\n - c5.large\n - c5a.large\n - c5ad.large\n - c5d.metal\n - c5d.large\n - c5n.large\n - c5n.metal\n - c6a.large\n - c6a.metal\n - c6i.large\n - c6i.metal\n - c6id.large\n - c6id.metal\n - c7i.large\n - c7i.metal-24xl\n - c7i.metal-48xl\n - c7i-flex.large\n - c7a.medium\n - c7a.large\n - c7a.metal-48xl\n - c8i.large\n - c8i.metal-48xl\n - c8i.metal-96xl\n - c8i-flex.large\n - i3.large\n - i3.metal\n - i3en.large\n - i3en.metal\n - i4i.large\n - i4i.metal\n - i7ie.large\n - i7ie.metal-24xl\n - i7ie.metal-48xl\n - m3.large\n - m3.medium\n - m4.large\n - m5.metal\n - m5.large\n - m5a.large\n - m5ad.large\n - m5d.metal\n - m5d.large\n - m5zn.large\n - m5zn.metal\n - m5n.large\n - m5n.metal\n - m5dn.large\n - m5dn.metal\n - m6a.large\n - m6a.metal\n - m6i.large\n - m6i.metal\n - m6id.large\n - m6id.metal\n - m7i.large\n - m7i.metal-24xl\n - m7i.metal-48xl\n - m7i-flex.large\n - m7a.medium\n - m7a.large\n - m7a.metal-48xl\n - m8a.medium\n - m8a.large\n - m8a.metal-24xl\n - m8a.metal-48xl\n - m8i.large\n - m8i.metal-48xl\n - m8i.metal-96xl\n - m8i-flex.large\n - r3.large\n - r4.large\n - r5.metal\n - r5.large\n - r5a.large\n - r5d.metal\n - r5ad.large\n - r5d.large\n - r5dn.large\n - r5dn.metal\n - r5b.large\n - r5b.metal\n - r5n.large\n - r5n.metal\n - r6a.large\n - r6a.metal\n - r6i.large\n - r6i.metal\n - r6id.large\n - r6id.metal\n - r7i.large\n - r7i.metal-24xl\n - r7i.metal-48xl\n - r7iz.large\n - r7iz.metal-16xl\n - r7iz.metal-32xl\n - r7a.medium\n - r7a.large\n - r7a.metal-48xl\n - r8a.medium\n - r8a.large\n - r8a.metal-24xl\n - r8a.metal-48xl\n - r8i.large\n - r8i.metal-48xl\n - r8i.metal-96xl\n - r8i-flex.large\n - t2.2xlarge\n - t2.large\n - t2.medium\n - t2.micro\n - t2.nano\n - t2.small\n - t2.xlarge\n - t3.2xlarge\n - t3.large\n - t3.medium\n - t3.micro\n - t3.nano\n - t3.small\n - t3.xlarge\n - t3a.2xlarge\n - t3a.large\n - t3a.medium\n - t3a.micro\n - t3a.nano\n - t3a.small\n - t3a.xlarge\n - x2idn.metal\n - x2iedn.metal\n - x2iezn.metal\n - z1d.metal\n - z1d.large\n SpotPrice:\n Description: Spot price for instances in USD/Hour - Optional/advanced\n Type: Number\n MinValue: '0'\n MaxValue: '2'\n Default: '0'\n KeyName:\n Description: Name of an existing EC2 KeyPair to enable SSH access to the instance\n Type: String\n NumberOfZones:\n Description: Total number of Availability Zones, which can be 1 or 3. Load balancer type depends on the number of zones selected. Select 3 zones for Application Load Balancer (OR) Select 1 zone for Classic Load Balancer.\n Type: Number\n AllowedValues:\n - 1\n - 3\n Default: 3\n NodesPerZone:\n Description: Total number of nodes per Zone. Set to 0 to shutdown/hibernate\n Type: Number\n MinValue: '0'\n MaxValue: '20'\n Default: '1'\n AZ:\n Description: The Availability Zones for VPC subnets. Accept either 1 zone or 3 zones. In the order of Subnet 1, Subnet 2 and Subnet 3 (if applicable).\n Type: 'List<AWS::EC2::AvailabilityZone::Name>'\n LogSNS:\n Description: SNS Topic for logging - optional/advanced.\n Type: String\n Default: none\n PublicLoadBalancer:\n Description: Enable Public Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n InternalLoadBalancer:\n Description: Enable Internal Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n # network configuration\n VPC:\n Description: ID of an existing Virtual Private Cloud (VPC)\n Type: 'AWS::EC2::VPC::Id'\n PublicSubnet1:\n Description: The public subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet2:\n Description: The public subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet3:\n Description: The public subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet1:\n Description: The private subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet2:\n Description: The private subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet3:\n Description: The private subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n ExternalAccessCidrIP:\n Description: A CIDR IP range to allow external access from\n Type: String\n Default: 54.76.254.148/32\n ECSSecurityGroup:\n Description: the security group the ECS cluster is in\n Type: 'AWS::EC2::SecurityGroup::Id'\n\n # marklogic configuration\n AdminUser:\n Description: The MarkLogic administrator username\n Type: String\n AdminPass:\n Description: The MarkLogic administrator password\n Type: String\n NoEcho: 'true'\n AllowedPattern: >-\n ^(?!.*[*]).*$\n ConstraintDescription: Admin password must contain any characters except asterisk (*).\n Licensee:\n Description: The MarkLogic Licensee or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\n LicenseKey:\n Description: The MarkLogic License Key or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\nConditions:\n UseLogSNS: !Not [!Equals [!Ref LogSNS, \"none\"]]\n UseSpot: !Not\n - !Equals\n - !Ref SpotPrice\n - 0\n #MultiZone (3 zones) and SingleZone conditions used for the conditional resource creation based on number of zones selected.\n MultiZone:\n !Not [!Equals [!Ref NumberOfZones, 1]]\n CreatePublicAlb: !And [!Condition MultiZone, !Equals [!Ref PublicLoadBalancer, 'true']]\n CreateInternalAlb: !And [!Condition MultiZone, !Equals [!Ref InternalLoadBalancer, 'true']]\n SingleZone: !Equals [!Ref NumberOfZones, 1]\n PAYG:\n !Or [ !And [!Equals [!Ref LicenseKey, ''], !Equals [!Ref Licensee, '']], !And [!Equals [!Ref LicenseKey, 'none'], !Equals [!Ref Licensee, 'none']] ]\n UseVolumeEncryption: !Equals [!Ref VolumeEncryption, 'enable']\n HasCustomEBSKey: !Not [!Equals [!Ref VolumeEncryptionKey, '']]\n GP3: !Equals [!Ref VolumeType, 'gp3']\nMappings:\n Variable:\n LambdaPackageBucket:\n base: 'ml-db-lambda-'\n TemplateUrl:\n base: 'https://s3.amazonaws.com/marklogic-db-template-releases'\n S3Directory:\n base: '12.0.1'\n LicenseRegion2AMI:\n us-east-1:\n PAYGAl2023: ami-0198b8931e9597271\n BYOLAl2023: ami-0a8536507241f95b0\n us-east-2:\n PAYGAl2023: ami-0877b64dae8264415\n BYOLAl2023: ami-082cc98b2c01e486a\n us-west-1:\n PAYGAl2023: ami-07890fc78f4ddfa20\n BYOLAl2023: ami-05c9a962410c2821b\n us-west-2:\n PAYGAl2023: ami-0577eb149c9e0f53f\n BYOLAl2023: ami-0262dd8d014bf71ba\n eu-central-1:\n PAYGAl2023: ami-06348556399c8ab69\n BYOLAl2023: ami-00cb5a3527e7c0d11\n eu-west-1:\n PAYGAl2023: ami-0fa7bc44cd9ab1f85\n BYOLAl2023: ami-0bc2b4d46367806b0\n ap-south-1:\n PAYGAl2023: ami-0f481ba0a6819ced6\n BYOLAl2023: ami-00b59374107e5efb6\n ap-southeast-1:\n PAYGAl2023: ami-0c373c6c8a2316c80\n BYOLAl2023: ami-0b9bd265ef165a07b\n ap-southeast-2:\n PAYGAl2023: ami-0c65a907408226a3e\n BYOLAl2023: ami-02bad1ef2c6d4a91a\n ap-northeast-1:\n PAYGAl2023: ami-0254bc4adaf13e3b9\n BYOLAl2023: ami-07e8b312b1016bf67\n ap-northeast-2:\n PAYGAl2023: ami-05995b5f5807873d7\n BYOLAl2023: ami-0afd77ba0d7a0c129\n sa-east-1:\n PAYGAl2023: ami-05ec8fee12de236a5\n BYOLAl2023: ami-09d883ea308449555\n eu-west-2:\n PAYGAl2023: ami-0f5cff9d243f31521\n BYOLAl2023: ami-0588d104a52fbc326\n ca-central-1:\n PAYGAl2023: ami-0f34d118b23b51bf5\n BYOLAl2023: ami-0c78eccd03e957005\n eu-west-3:\n PAYGAl2023: ami-01fa9155eb17992c5\n BYOLAl2023: ami-0637199acc5327534\nResources:\n ManagedEniStack:\n Type: AWS::CloudFormation::Stack\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n NodesPerZone: !Ref NodesPerZone\n NumberOfZones: !Ref NumberOfZones\n Subnets: !If [MultiZone, !Join [',', [!Ref PrivateSubnet1, !Ref PrivateSubnet2, !Ref PrivateSubnet3]], !Ref PrivateSubnet1]\n ParentStackName: !Ref 'AWS::StackName'\n ParentStackId: !Ref 'AWS::StackId'\n SecurityGroup: !Ref InstanceSecurityGroup\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-managedeni.template']]\n TimeoutInMinutes: 5\n NodeMgrLambdaStack:\n Type: AWS::CloudFormation::Stack\n DependsOn: ManagedEniStack\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-nodemanager.template']]\n TimeoutInMinutes: 5\n MarklogicVolume1:\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [0, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupA-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c81032f7-b0ec-47ca-a236-e24d57b49ae3\n MarklogicVolume2:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [1, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupB-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: ddb55ae1-a00b-42ed-addd-5e03e4a2764b\n MarklogicVolume3:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [2, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupC-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 9094a65e-9d01-4c4c-9586-c33720e2cc9c\n MarkLogicDDBTable:\n Type: 'AWS::DynamoDB::Table'\n Properties:\n AttributeDefinitions:\n - AttributeName: node\n AttributeType: S\n KeySchema:\n - KeyType: HASH\n AttributeName: node\n ProvisionedThroughput:\n WriteCapacityUnits: '10'\n ReadCapacityUnits: '10'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e7190602-c2de-47ab-81e7-1315f8c01e2d\n #AutoScalingGroup used for SingleZone deployments that is connected to Classic Load Balancer.\n MarkLogicServerGroup:\n Condition: SingleZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup1:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - InternalAlbTargetGroup1\n - InternalAlbTargetGroup2\n - InternalAlbTargetGroup3\n - InternalAlbTargetGroup4\n - InternalAlbTargetGroup5\n - InternalAlbTargetGroup6\n - InternalAlbTargetGroup7\n - InternalAlbTargetGroup8\n - InternalAlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref InternalAlbTargetGroup1\n - !Ref InternalAlbTargetGroup2\n - !Ref InternalAlbTargetGroup3\n - !Ref InternalAlbTargetGroup4\n - !Ref InternalAlbTargetGroup5\n - !Ref InternalAlbTargetGroup6\n - !Ref InternalAlbTargetGroup7\n - !Ref InternalAlbTargetGroup8\n - !Ref InternalAlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup2:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - InternalAlbTargetGroup1\n - InternalAlbTargetGroup2\n - InternalAlbTargetGroup3\n - InternalAlbTargetGroup4\n - InternalAlbTargetGroup5\n - InternalAlbTargetGroup6\n - InternalAlbTargetGroup7\n - InternalAlbTargetGroup8\n - InternalAlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet2\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp2\n Version: !GetAtt LaunchTemp2.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref InternalAlbTargetGroup1\n - !Ref InternalAlbTargetGroup2\n - !Ref InternalAlbTargetGroup3\n - !Ref InternalAlbTargetGroup4\n - !Ref InternalAlbTargetGroup5\n - !Ref InternalAlbTargetGroup6\n - !Ref InternalAlbTargetGroup7\n - !Ref InternalAlbTargetGroup8\n - !Ref InternalAlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 87d75478-787a-41d5-bb21-9de6fe4b662e\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup3:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet3\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp3\n Version: !GetAtt LaunchTemp3.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: bbd8314a-6e59-4102-9ed5-232739dd0dfa\n InstanceSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable access to MarkLogic instances from Load Balancers and other cluster members\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n InstanceSecurityGroupIngress:\n Type: 'AWS::EC2::SecurityGroupIngress'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n IpProtocol: tcp\n FromPort: '0'\n ToPort: '65355'\n GroupId: !Ref InstanceSecurityGroup\n SourceSecurityGroupId: !Ref InstanceSecurityGroup\n InternalElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Allow access from ECS clsuter to internal ALB for marklogic cluster.\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n ElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable SSH access and HTTP access on the inbound port\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '22'\n ToPort: '22'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n CidrIp: !Ref ExternalAccessCidrIP\n LaunchTemp1:\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume1\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeA#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=1\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 2efb8cfb-df53-401d-8ff2-34af0dd25993\n LaunchTemp2:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume2\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeB#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c8296a50-a29e-4646-aa74-8f1b735a9a3f\n LaunchTemp3:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume3\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeC#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 7fa68c90-39bc-4874-ad20-8cd8c974ed52\n #Application Load Balancer description for MultiZone deployments (3 zones).\n Alb:\n Condition: CreatePublicAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - ElbSecurityGroup\n Properties: \n SecurityGroups: \n - !Ref ElbSecurityGroup\n Subnets:\n - !Ref PublicSubnet1\n - !If [MultiZone, !Ref PublicSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PublicSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 9 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n AlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicExternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n #Descriptions of the 9 Listeners for MultiZone deployments (3 zones). Each Listener connects Application Load Balancer to a TargetGroup with a particular port.\n AlbListener1:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8000\n Protocol: HTTP\n AlbListener2:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8001\n Protocol: HTTP\n AlbListener3:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8002\n Protocol: HTTP\n AlbListener4:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8003\n Protocol: HTTP\n AlbListener5:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8004\n Protocol: HTTP\n AlbListener6:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8005\n Protocol: HTTP\n AlbListener7:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8006\n Protocol: HTTP\n AlbListener8:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8007\n Protocol: HTTP\n AlbListener9:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8008\n Protocol: HTTP\n MarklogicExternal8011Listener:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - MarklogicExternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicExternal8011\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8011\n Protocol: HTTP\n #Application Load Balancer description for MultiZone deployments (3 zones).\n InternalAlb:\n Condition: CreateInternalAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - InternalElbSecurityGroup\n Properties: \n Scheme: internal\n SecurityGroups: \n - !Ref InternalElbSecurityGroup\n Subnets:\n - !Ref PrivateSubnet1\n - !If [MultiZone, !Ref PrivateSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PrivateSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 1 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n MarklogicInternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicInternal8011Listener:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - MarklogicInternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicInternal8011\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8011\n Protocol: HTTP\n InternalAlbListener1:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8000\n Protocol: HTTP\n InternalAlbListener2:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8001\n Protocol: HTTP\n InternalAlbListener3:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8002\n Protocol: HTTP\n InternalAlbListener4:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8003\n Protocol: HTTP\n InternalAlbListener5:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8004\n Protocol: HTTP\n InternalAlbListener6:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8005\n Protocol: HTTP\n InternalAlbListener7:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8006\n Protocol: HTTP\n InternalAlbListener8:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8007\n Protocol: HTTP\n InternalAlbListener9:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8008\n Protocol: HTTP\nOutputs:\n URL:\n Description: The URL of the MarkLogic Cluster\n Value: !Join\n - ''\n - - 'http://'\n - !If [CreatePublicAlb, !GetAtt [Alb, DNSName], !If [CreateInternalAlb, !GetAtt [InternalAlb, DNSName], !GetAtt [ManagedEniStack, Outputs.ENI]]]\n - ':8001'",
"newContent": "AWSTemplateFormatVersion: 2010-09-09\nDescription: Deploy a MarkLogic Cluster on AWS in existing VPC (Virtual Private Cloud).\nMetadata:\n version: 12.0.1\n binary: MarkLogic-12.0.1-rhel.x86_64.rpm\n AWS::CloudFormation::Interface:\n ParameterGroups:\n - Label:\n default: \"Resource Configuration\"\n Parameters:\n - IAMRole\n - VolumeSize\n - VolumeType\n - VolumeIOPS\n - VolumeThroughput\n - VolumeEncryption\n - VolumeEncryptionKey\n - InstanceType\n - SpotPrice\n - KeyName\n - NumberOfZones\n - NodesPerZone\n - AZ\n - LogSNS\n - Label:\n default: \"Network Configuration\"\n Parameters:\n - VPC\n - PublicSubnet1\n - PublicSubnet2\n - PublicSubnet3\n - PrivateSubnet1\n - PrivateSubnet2\n - PrivateSubnet3\n - PublicLoadBalancer\n - InternalLoadBalancer\n - ExternalAccessCidrIP\n - ECSSecurityGroup\n - Label:\n default: \"MarkLogic Configuration\"\n Parameters:\n - AdminUser\n - AdminPass\n - Licensee\n - LicenseKey\n ParameterLabels:\n AdminUser:\n default: Admin User\n AdminPass:\n default: Admin password\n Licensee:\n default: Licensee\n LicenseKey:\n default: License Key\n IAMRole:\n default: IAM Role\n LogSNS:\n default: Logging SNS ARN\n VolumeSize:\n default: Volume Size\n VolumeType:\n default: Volume Type\n VolumeIOPS:\n default: Volume Iops\n VolumeThroughput:\n default: Volume Throughput\n VolumeEncryption:\n default: Volume Encryption\n VolumeEncryptionKey:\n default: Volume Encryption Key ARN\n InstanceType:\n default: Instance Type\n SpotPrice:\n default: Spot Price\n KeyName:\n default: SSH Key Name\n NumberOfZones:\n default: Number of Zones\n NodesPerZone:\n default: Nodes per Zone\n AZ:\n default: Availability Zone\n VPC:\n default: VPC\n PublicSubnet1:\n default: Public Subnet 1\n PublicSubnet2:\n default: Public Subnet 2\n PublicSubnet3:\n default: Public Subnet 3\n PrivateSubnet1:\n default: Private Subnet 1\n PrivateSubnet2:\n default: Private Subnet 2\n PrivateSubnet3:\n default: Private Subnet 3\n PublicLoadBalancer:\n default: Public Load Balancer\n InternalLoadBalancer:\n default: Internal Load Balancer\n ExternalAccessCidrIP:\n default: External IP address range for access to admin site\n ECSSecurityGroup:\n default: the security group the ecs cluster is in\nParameters:\n # resource configuration\n IAMRole:\n Description: IAM Role\n Type: String\n VolumeSize:\n Description: The EBS Data volume size (GB) for all nodes\n Type: Number\n MinValue: '10'\n MaxValue: '1000'\n Default: '50'\n VolumeType:\n Description: The EBS Data volume Type\n Type: String\n AllowedValues:\n - standard\n - gp2\n - gp3\n Default: gp3\n VolumeIOPS:\n Description: The number of I/O operations per second for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '3000'\n MaxValue: '16000'\n Default: '3000'\n VolumeThroughput:\n Description: The throughput to provision for a gp3 volume. This parameter is only applicable for a gp3 volume\n Type: Number\n MinValue: '125'\n MaxValue: '1000'\n Default: '125'\n VolumeEncryption:\n Description: Whether to enable volume encryption\n Type: String\n AllowedValues:\n - enable\n - disable\n Default: enable\n VolumeEncryptionKey:\n Description: The key ID of AWS KMS key to encrypt volumes - Optional\n Type: String\n Default: \"\"\n InstanceType:\n Description: Type of EC2 instance to launch\n Type: String\n Default: r5.4xlarge\n AllowedValues:\n - ---- Pay-As-You-Go and Bring-Your-Own-License ----\n - c3.xlarge\n - c3.2xlarge\n - c3.4xlarge\n - c3.8xlarge\n - c4.xlarge\n - c4.2xlarge\n - c4.4xlarge\n - c4.8xlarge\n - c5.xlarge\n - c5.2xlarge\n - c5.4xlarge\n - c5.9xlarge\n - c5.12xlarge\n - c5.18xlarge\n - c5.24xlarge\n - c5a.xlarge\n - c5a.2xlarge\n - c5a.4xlarge\n - c5a.8xlarge\n - c5a.12xlarge\n - c5a.16xlarge\n - c5a.24xlarge\n - c5ad.xlarge\n - c5ad.2xlarge\n - c5ad.4xlarge\n - c5ad.8xlarge\n - c5ad.12xlarge\n - c5ad.16xlarge\n - c5ad.24xlarge\n - c5d.xlarge\n - c5d.2xlarge\n - c5d.4xlarge\n - c5d.9xlarge\n - c5d.12xlarge\n - c5d.18xlarge\n - c5d.24xlarge\n - c5n.xlarge\n - c5n.2xlarge\n - c5n.4xlarge\n - c5n.9xlarge\n - c5n.18xlarge\n - c6a.xlarge\n - c6a.2xlarge\n - c6a.4xlarge\n - c6a.8xlarge\n - c6a.12xlarge\n - c6a.16xlarge\n - c6a.24xlarge\n - c6a.32xlarge\n - c6a.48xlarge\n - c6i.xlarge\n - c6i.2xlarge\n - c6i.4xlarge\n - c6i.8xlarge\n - c6i.12xlarge\n - c6i.16xlarge\n - c6i.24xlarge\n - c6i.32xlarge\n - c6id.xlarge\n - c6id.2xlarge\n - c6id.4xlarge\n - c6id.8xlarge\n - c6id.12xlarge\n - c6id.16xlarge\n - c6id.24xlarge\n - c6id.32xlarge\n - c7i.xlarge\n - c7i.2xlarge\n - c7i.4xlarge\n - c7i.8xlarge\n - c7i.12xlarge\n - c7i.16xlarge\n - c7i.24xlarge\n - c7i.48xlarge\n - c7i-flex.xlarge\n - c7i-flex.2xlarge\n - c7i-flex.4xlarge\n - c7i-flex.8xlarge\n - c7i-flex.12xlarge\n - c7i-flex.16xlarge\n - c7a.xlarge\n - c7a.2xlarge\n - c7a.4xlarge\n - c7a.8xlarge\n - c7a.12xlarge\n - c7a.16xlarge\n - c7a.24xlarge\n - c7a.32xlarge\n - c7a.48xlarge\n - c8i.xlarge\n - c8i.2xlarge\n - c8i.4xlarge\n - c8i.8xlarge\n - c8i.12xlarge\n - c8i.16xlarge\n - c8i.24xlarge\n - c8i.32xlarge\n - c8i.48xlarge\n - c8i.96xlarge\n - c8i-flex.xlarge\n - c8i-flex.2xlarge\n - c8i-flex.4xlarge\n - c8i-flex.8xlarge\n - c8i-flex.12xlarge\n - c8i-flex.16xlarge\n - i2.2xlarge\n - i2.4xlarge\n - i2.8xlarge\n - i2.xlarge\n - i3.xlarge\n - i3.2xlarge\n - i3.4xlarge\n - i3.8xlarge\n - i3.16xlarge\n - i3en.xlarge\n - i3en.2xlarge\n - i3en.3xlarge\n - i3en.6xlarge\n - i3en.12xlarge\n - i3en.24xlarge\n - i4i.xlarge\n - i4i.2xlarge\n - i4i.4xlarge\n - i4i.8xlarge\n - i4i.12xlarge\n - i4i.16xlarge\n - i4i.24xlarge\n - i4i.32xlarge\n - i7ie.xlarge\n - i7ie.2xlarge\n - i7ie.3xlarge\n - i7ie.6xlarge\n - i7ie.12xlarge\n - i7ie.18xlarge\n - i7ie.24xlarge\n - i7ie.48xlarge\n - m3.xlarge\n - m3.2xlarge\n - m4.xlarge\n - m4.2xlarge\n - m4.4xlarge\n - m4.10xlarge\n - m4.16xlarge\n - m5.xlarge\n - m5.2xlarge\n - m5.4xlarge\n - m5.8xlarge\n - m5.12xlarge\n - m5.16xlarge\n - m5.24xlarge\n - m5a.xlarge\n - m5a.2xlarge\n - m5a.4xlarge\n - m5a.8xlarge\n - m5a.12xlarge\n - m5a.16xlarge\n - m5a.24xlarge\n - m5d.xlarge\n - m5d.2xlarge\n - m5d.4xlarge\n - m5d.8xlarge\n - m5d.16xlarge\n - m5d.12xlarge\n - m5d.24xlarge\n - m5ad.xlarge\n - m5ad.2xlarge\n - m5ad.4xlarge\n - m5ad.8xlarge\n - m5ad.12xlarge\n - m5ad.16xlarge\n - m5ad.24xlarge\n - m5zn.xlarge\n - m5zn.2xlarge\n - m5zn.3xlarge\n - m5zn.6xlarge\n - m5zn.12xlarge\n - m5n.xlarge\n - m5n.2xlarge\n - m5n.4xlarge\n - m5n.8xlarge\n - m5n.12xlarge\n - m5n.16xlarge\n - m5n.24xlarge\n - m5dn.xlarge\n - m5dn.2xlarge\n - m5dn.4xlarge\n - m5dn.8xlarge\n - m5dn.12xlarge\n - m5dn.16xlarge\n - m5dn.24xlarge\n - m6a.xlarge\n - m6a.2xlarge\n - m6a.4xlarge\n - m6a.8xlarge\n - m6a.12xlarge\n - m6a.16xlarge\n - m6a.24xlarge\n - m6a.32xlarge\n - m6a.48xlarge\n - m6i.xlarge\n - m6i.2xlarge\n - m6i.4xlarge\n - m6i.8xlarge\n - m6i.12xlarge\n - m6i.16xlarge\n - m6i.24xlarge\n - m6i.32xlarge\n - m6id.xlarge\n - m6id.2xlarge\n - m6id.4xlarge\n - m6id.8xlarge\n - m6id.12xlarge\n - m6id.16xlarge\n - m6id.24xlarge\n - m6id.32xlarge\n - m7i.xlarge\n - m7i.2xlarge\n - m7i.4xlarge\n - m7i.8xlarge\n - m7i.12xlarge\n - m7i.16xlarge\n - m7i.24xlarge\n - m7i.48xlarge\n - m7i-flex.xlarge\n - m7i-flex.2xlarge\n - m7i-flex.4xlarge\n - m7i-flex.8xlarge\n - m7i-flex.12xlarge\n - m7i-flex.16xlarge\n - m7a.xlarge\n - m7a.2xlarge\n - m7a.4xlarge\n - m7a.8xlarge\n - m7a.12xlarge\n - m7a.16xlarge\n - m7a.24xlarge\n - m7a.32xlarge\n - m7a.48xlarge\n - m8a.xlarge\n - m8a.2xlarge\n - m8a.4xlarge\n - m8a.8xlarge\n - m8a.12xlarge\n - m8a.16xlarge\n - m8a.24xlarge\n - m8a.48xlarge\n - m8i.xlarge\n - m8i.2xlarge\n - m8i.4xlarge\n - m8i.8xlarge\n - m8i.12xlarge\n - m8i.16xlarge\n - m8i.24xlarge\n - m8i.32xlarge\n - m8i.48xlarge\n - m8i.96xlarge\n - m8i-flex.xlarge\n - m8i-flex.2xlarge\n - m8i-flex.4xlarge\n - m8i-flex.8xlarge\n - m8i-flex.12xlarge\n - m8i-flex.16xlarge\n - r3.xlarge\n - r3.2xlarge\n - r3.4xlarge\n - r3.8xlarge\n - r4.xlarge\n - r4.2xlarge\n - r4.4xlarge\n - r4.8xlarge\n - r4.16xlarge\n - r5.xlarge\n - r5.2xlarge\n - r5.4xlarge\n - r5.8xlarge\n - r5.12xlarge\n - r5.16xlarge\n - r5.24xlarge\n - r5a.xlarge\n - r5a.2xlarge\n - r5a.4xlarge\n - r5a.8xlarge\n - r5a.12xlarge\n - r5a.16xlarge\n - r5a.24xlarge\n - r5ad.xlarge\n - r5ad.2xlarge\n - r5ad.4xlarge\n - r5ad.8xlarge\n - r5ad.12xlarge\n - r5ad.16xlarge\n - r5ad.24xlarge\n - r5b.xlarge\n - r5b.2xlarge\n - r5b.4xlarge\n - r5b.8xlarge\n - r5b.12xlarge\n - r5b.16xlarge\n - r5b.24xlarge\n - r5d.xlarge\n - r5d.2xlarge\n - r5d.4xlarge\n - r5d.8xlarge\n - r5d.12xlarge\n - r5d.16xlarge\n - r5d.24xlarge\n - r5dn.xlarge\n - r5dn.2xlarge\n - r5dn.4xlarge\n - r5dn.8xlarge\n - r5dn.12xlarge\n - r5dn.16xlarge\n - r5dn.24xlarge\n - r5n.xlarge\n - r5n.2xlarge\n - r5n.4xlarge\n - r5n.8xlarge\n - r5n.12xlarge\n - r5n.16xlarge\n - r5n.24xlarge\n - r6a.xlarge\n - r6a.2xlarge\n - r6a.4xlarge\n - r6a.8xlarge\n - r6a.12xlarge\n - r6a.16xlarge\n - r6a.24xlarge\n - r6a.32xlarge\n - r6a.48xlarge\n - r6i.xlarge\n - r6i.2xlarge\n - r6i.4xlarge\n - r6i.8xlarge\n - r6i.12xlarge\n - r6i.16xlarge\n - r6i.24xlarge\n - r6i.32xlarge\n - r6id.xlarge\n - r6id.2xlarge\n - r6id.4xlarge\n - r6id.8xlarge\n - r6id.12xlarge\n - r6id.16xlarge\n - r6id.24xlarge\n - r6id.32xlarge\n - r7i.xlarge\n - r7i.2xlarge\n - r7i.4xlarge\n - r7i.8xlarge\n - r7i.12xlarge\n - r7i.16xlarge\n - r7i.24xlarge\n - r7i.48xlarge\n - r7iz.xlarge\n - r7iz.2xlarge\n - r7iz.4xlarge\n - r7iz.8xlarge\n - r7iz.12xlarge\n - r7iz.16xlarge\n - r7iz.32xlarge\n - r7a.xlarge\n - r7a.2xlarge\n - r7a.4xlarge\n - r7a.8xlarge\n - r7a.12xlarge\n - r7a.16xlarge\n - r7a.24xlarge\n - r7a.32xlarge\n - r7a.48xlarge\n - r8a.xlarge\n - r8a.2xlarge\n - r8a.4xlarge\n - r8a.8xlarge\n - r8a.12xlarge\n - r8a.16xlarge\n - r8a.24xlarge\n - r8a.48xlarge\n - r8i.xlarge\n - r8i.2xlarge\n - r8i.4xlarge\n - r8i.8xlarge\n - r8i.12xlarge\n - r8i.16xlarge\n - r8i.24xlarge\n - r8i.32xlarge\n - r8i.48xlarge\n - r8i.96xlarge\n - r8i-flex.xlarge\n - r8i-flex.2xlarge\n - r8i-flex.4xlarge\n - r8i-flex.8xlarge\n - r8i-flex.12xlarge\n - r8i-flex.16xlarge\n - x1.16xlarge\n - x1.32xlarge\n - x1e.xlarge\n - x1e.2xlarge\n - x1e.4xlarge\n - x1e.8xlarge\n - x1e.16xlarge\n - x1e.32xlarge\n - x2idn.16xlarge\n - x2idn.24xlarge\n - x2idn.32xlarge\n - x2iedn.xlarge\n - x2iedn.2xlarge\n - x2iedn.4xlarge\n - x2iedn.8xlarge\n - x2iedn.16xlarge\n - x2iedn.24xlarge\n - x2iedn.32xlarge\n - x2iezn.2xlarge\n - x2iezn.4xlarge\n - x2iezn.6xlarge\n - x2iezn.8xlarge\n - x2iezn.12xlarge\n - d2.xlarge\n - d2.2xlarge\n - d2.4xlarge\n - d2.8xlarge\n - d3.xlarge\n - d3.2xlarge\n - d3.4xlarge\n - d3.8xlarge\n - d3en.xlarge\n - d3en.2xlarge\n - d3en.4xlarge\n - d3en.6xlarge\n - d3en.8xlarge\n - d3en.12xlarge\n - dl1.24xlarge\n - h1.2xlarge\n - h1.4xlarge\n - h1.8xlarge\n - h1.16xlarge\n - inf1.xlarge\n - inf1.2xlarge\n - inf1.6xlarge\n - inf1.24xlarge\n - trn1.2xlarge\n - trn1.32xlarge\n - u-3tb1.56xlarge\n - u-6tb1.56xlarge\n - u-6tb1.112xlarge\n - u-9tb1.112xlarge\n - u-12tb1.112xlarge\n - u-18tb1.112xlarge\n - vt1.3xlarge\n - vt1.6xlarge\n - vt1.24xlarge\n - z1d.xlarge\n - z1d.2xlarge\n - z1d.3xlarge\n - z1d.6xlarge\n - z1d.12xlarge\n - -------------- Bring-Your-Own-License Only --------------\n - c3.large\n - c4.large\n - c5.metal\n - c5.large\n - c5a.large\n - c5ad.large\n - c5d.metal\n - c5d.large\n - c5n.large\n - c5n.metal\n - c6a.large\n - c6a.metal\n - c6i.large\n - c6i.metal\n - c6id.large\n - c6id.metal\n - c7i.large\n - c7i.metal-24xl\n - c7i.metal-48xl\n - c7i-flex.large\n - c7a.medium\n - c7a.large\n - c7a.metal-48xl\n - c8i.large\n - c8i.metal-48xl\n - c8i.metal-96xl\n - c8i-flex.large\n - i3.large\n - i3.metal\n - i3en.large\n - i3en.metal\n - i4i.large\n - i4i.metal\n - i7ie.large\n - i7ie.metal-24xl\n - i7ie.metal-48xl\n - m3.large\n - m3.medium\n - m4.large\n - m5.metal\n - m5.large\n - m5a.large\n - m5ad.large\n - m5d.metal\n - m5d.large\n - m5zn.large\n - m5zn.metal\n - m5n.large\n - m5n.metal\n - m5dn.large\n - m5dn.metal\n - m6a.large\n - m6a.metal\n - m6i.large\n - m6i.metal\n - m6id.large\n - m6id.metal\n - m7i.large\n - m7i.metal-24xl\n - m7i.metal-48xl\n - m7i-flex.large\n - m7a.medium\n - m7a.large\n - m7a.metal-48xl\n - m8a.medium\n - m8a.large\n - m8a.metal-24xl\n - m8a.metal-48xl\n - m8i.large\n - m8i.metal-48xl\n - m8i.metal-96xl\n - m8i-flex.large\n - r3.large\n - r4.large\n - r5.metal\n - r5.large\n - r5a.large\n - r5d.metal\n - r5ad.large\n - r5d.large\n - r5dn.large\n - r5dn.metal\n - r5b.large\n - r5b.metal\n - r5n.large\n - r5n.metal\n - r6a.large\n - r6a.metal\n - r6i.large\n - r6i.metal\n - r6id.large\n - r6id.metal\n - r7i.large\n - r7i.metal-24xl\n - r7i.metal-48xl\n - r7iz.large\n - r7iz.metal-16xl\n - r7iz.metal-32xl\n - r7a.medium\n - r7a.large\n - r7a.metal-48xl\n - r8a.medium\n - r8a.large\n - r8a.metal-24xl\n - r8a.metal-48xl\n - r8i.large\n - r8i.metal-48xl\n - r8i.metal-96xl\n - r8i-flex.large\n - t2.2xlarge\n - t2.large\n - t2.medium\n - t2.micro\n - t2.nano\n - t2.small\n - t2.xlarge\n - t3.2xlarge\n - t3.large\n - t3.medium\n - t3.micro\n - t3.nano\n - t3.small\n - t3.xlarge\n - t3a.2xlarge\n - t3a.large\n - t3a.medium\n - t3a.micro\n - t3a.nano\n - t3a.small\n - t3a.xlarge\n - x2idn.metal\n - x2iedn.metal\n - x2iezn.metal\n - z1d.metal\n - z1d.large\n SpotPrice:\n Description: Spot price for instances in USD/Hour - Optional/advanced\n Type: Number\n MinValue: '0'\n MaxValue: '2'\n Default: '0'\n KeyName:\n Description: Name of an existing EC2 KeyPair to enable SSH access to the instance\n Type: String\n NumberOfZones:\n Description: Total number of Availability Zones, which can be 1 or 3. Load balancer type depends on the number of zones selected. Select 3 zones for Application Load Balancer (OR) Select 1 zone for Classic Load Balancer.\n Type: Number\n AllowedValues:\n - 1\n - 3\n Default: 3\n NodesPerZone:\n Description: Total number of nodes per Zone. Set to 0 to shutdown/hibernate\n Type: Number\n MinValue: '0'\n MaxValue: '20'\n Default: '1'\n AZ:\n Description: The Availability Zones for VPC subnets. Accept either 1 zone or 3 zones. In the order of Subnet 1, Subnet 2 and Subnet 3 (if applicable).\n Type: 'List<AWS::EC2::AvailabilityZone::Name>'\n LogSNS:\n Description: SNS Topic for logging - optional/advanced.\n Type: String\n Default: none\n PublicLoadBalancer:\n Description: Enable Public Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n InternalLoadBalancer:\n Description: Enable Internal Load Balancer\n Type: String\n AllowedValues:\n - 'true'\n - 'false'\n Default: 'true'\n # network configuration\n VPC:\n Description: ID of an existing Virtual Private Cloud (VPC)\n Type: 'AWS::EC2::VPC::Id'\n PublicSubnet1:\n Description: The public subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet2:\n Description: The public subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PublicSubnet3:\n Description: The public subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three public subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet1:\n Description: The private subnet 1 in the VPC. This subnet must reside within the first selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet2:\n Description: The private subnet 2 in the VPC. This subnet must reside within the second selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n PrivateSubnet3:\n Description: The private subnet 3 in the VPC. This subnet must reside within the third selected Availability Zone (AZ). You must provide values for all three private subnets. If you only select one AZ, the second and third subnets will be ignored.\n Type: 'AWS::EC2::Subnet::Id'\n ExternalAccessCidrIP:\n Description: A CIDR IP range to allow external access from\n Type: String\n Default: 54.76.254.148/32\n ECSSecurityGroup:\n Description: the security group the ECS cluster is in\n Type: 'AWS::EC2::SecurityGroup::Id'\n\n # marklogic configuration\n AdminUser:\n Description: The MarkLogic administrator username\n Type: String\n AdminPass:\n Description: The MarkLogic administrator password\n Type: String\n NoEcho: 'true'\n AllowedPattern: >-\n ^(?!.*[*]).*$\n ConstraintDescription: Admin password must contain any characters except asterisk (*).\n Licensee:\n Description: The MarkLogic Licensee or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\n LicenseKey:\n Description: The MarkLogic License Key or 'none'. Provide none/none to choose \"Pay as you Go\"/Enterprise version. Provide valid Licensee/Licensekey to choose BYOL/developer version.\n Type: String\n Default: none\nConditions:\n UseLogSNS: !Not [!Equals [!Ref LogSNS, \"none\"]]\n UseSpot: !Not\n - !Equals\n - !Ref SpotPrice\n - 0\n #MultiZone (3 zones) and SingleZone conditions used for the conditional resource creation based on number of zones selected.\n MultiZone:\n !Not [!Equals [!Ref NumberOfZones, 1]]\n CreatePublicAlb: !And [!Condition MultiZone, !Equals [!Ref PublicLoadBalancer, 'true']]\n CreateInternalAlb: !And [!Condition MultiZone, !Equals [!Ref InternalLoadBalancer, 'true']]\n SingleZone: !Equals [!Ref NumberOfZones, 1]\n PAYG:\n !Or [ !And [!Equals [!Ref LicenseKey, ''], !Equals [!Ref Licensee, '']], !And [!Equals [!Ref LicenseKey, 'none'], !Equals [!Ref Licensee, 'none']] ]\n UseVolumeEncryption: !Equals [!Ref VolumeEncryption, 'enable']\n HasCustomEBSKey: !Not [!Equals [!Ref VolumeEncryptionKey, '']]\n GP3: !Equals [!Ref VolumeType, 'gp3']\nMappings:\n Variable:\n LambdaPackageBucket:\n base: 'ml-db-lambda-'\n TemplateUrl:\n base: 'https://s3.amazonaws.com/marklogic-db-template-releases'\n S3Directory:\n base: '12.0.1'\n LicenseRegion2AMI:\n us-east-1:\n PAYGAl2023: ami-0198b8931e9597271\n BYOLAl2023: ami-0a8536507241f95b0\n us-east-2:\n PAYGAl2023: ami-0877b64dae8264415\n BYOLAl2023: ami-082cc98b2c01e486a\n us-west-1:\n PAYGAl2023: ami-07890fc78f4ddfa20\n BYOLAl2023: ami-05c9a962410c2821b\n us-west-2:\n PAYGAl2023: ami-0577eb149c9e0f53f\n BYOLAl2023: ami-0262dd8d014bf71ba\n eu-central-1:\n PAYGAl2023: ami-06348556399c8ab69\n BYOLAl2023: ami-00cb5a3527e7c0d11\n eu-west-1:\n PAYGAl2023: ami-0fa7bc44cd9ab1f85\n BYOLAl2023: ami-0bc2b4d46367806b0\n ap-south-1:\n PAYGAl2023: ami-0f481ba0a6819ced6\n BYOLAl2023: ami-00b59374107e5efb6\n ap-southeast-1:\n PAYGAl2023: ami-0c373c6c8a2316c80\n BYOLAl2023: ami-0b9bd265ef165a07b\n ap-southeast-2:\n PAYGAl2023: ami-0c65a907408226a3e\n BYOLAl2023: ami-02bad1ef2c6d4a91a\n ap-northeast-1:\n PAYGAl2023: ami-0254bc4adaf13e3b9\n BYOLAl2023: ami-07e8b312b1016bf67\n ap-northeast-2:\n PAYGAl2023: ami-05995b5f5807873d7\n BYOLAl2023: ami-0afd77ba0d7a0c129\n sa-east-1:\n PAYGAl2023: ami-05ec8fee12de236a5\n BYOLAl2023: ami-09d883ea308449555\n eu-west-2:\n PAYGAl2023: ami-0f5cff9d243f31521\n BYOLAl2023: ami-0588d104a52fbc326\n ca-central-1:\n PAYGAl2023: ami-0f34d118b23b51bf5\n BYOLAl2023: ami-0c78eccd03e957005\n eu-west-3:\n PAYGAl2023: ami-01fa9155eb17992c5\n BYOLAl2023: ami-0637199acc5327534\nResources:\n ManagedEniStack:\n Type: AWS::CloudFormation::Stack\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n NodesPerZone: !Ref NodesPerZone\n NumberOfZones: !Ref NumberOfZones\n Subnets: !If [MultiZone, !Join [',', [!Ref PrivateSubnet1, !Ref PrivateSubnet2, !Ref PrivateSubnet3]], !Ref PrivateSubnet1]\n ParentStackName: !Ref 'AWS::StackName'\n ParentStackId: !Ref 'AWS::StackId'\n SecurityGroup: !Ref InstanceSecurityGroup\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-managedeni.template']]\n TimeoutInMinutes: 5\n NodeMgrLambdaStack:\n Type: AWS::CloudFormation::Stack\n DependsOn: ManagedEniStack\n Properties:\n NotificationARNs:\n - !If\n - UseLogSNS\n - !Ref LogSNS\n - !Ref 'AWS::NoValue'\n Parameters:\n S3Bucket: !Join [ \"\", [!FindInMap [Variable,\"LambdaPackageBucket\",\"base\"], !Ref 'AWS::Region']]\n S3Directory: !FindInMap [Variable,\"S3Directory\",\"base\"]\n TemplateURL: !Join ['/', [!FindInMap [Variable,\"TemplateUrl\",\"base\"],!FindInMap [Variable,\"S3Directory\",\"base\"],'ml-nodemanager.template']]\n TimeoutInMinutes: 5\n MarklogicVolume1:\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [0, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupA-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c81032f7-b0ec-47ca-a236-e24d57b49ae3\n MarklogicVolume2:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [1, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupB-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: ddb55ae1-a00b-42ed-addd-5e03e4a2764b\n MarklogicVolume3:\n Condition: MultiZone\n Type: 'AWS::EC2::Volume'\n Properties:\n AvailabilityZone: !Select [2, !Ref AZ]\n Size: !Ref VolumeSize\n Tags:\n - Key: Name\n Value: MarkLogic-GroupC-Host1-Volume0\n VolumeType: !Ref VolumeType\n Iops: !If [GP3, !Ref VolumeIOPS, !Ref 'AWS::NoValue']\n Throughput: !If [GP3, !Ref VolumeThroughput, !Ref 'AWS::NoValue']\n Encrypted: !If [UseVolumeEncryption, 'true', 'false']\n KmsKeyId: !If [HasCustomEBSKey, !Ref VolumeEncryptionKey, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 9094a65e-9d01-4c4c-9586-c33720e2cc9c\n MarkLogicDDBTable:\n Type: 'AWS::DynamoDB::Table'\n Properties:\n AttributeDefinitions:\n - AttributeName: node\n AttributeType: S\n KeySchema:\n - KeyType: HASH\n AttributeName: node\n ProvisionedThroughput:\n WriteCapacityUnits: '10'\n ReadCapacityUnits: '10'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e7190602-c2de-47ab-81e7-1315f8c01e2d\n #AutoScalingGroup used for SingleZone deployments that is connected to Classic Load Balancer.\n MarkLogicServerGroup:\n Condition: SingleZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup1:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - InternalAlbTargetGroup1\n - InternalAlbTargetGroup2\n - InternalAlbTargetGroup3\n - InternalAlbTargetGroup4\n - InternalAlbTargetGroup5\n - InternalAlbTargetGroup6\n - InternalAlbTargetGroup7\n - InternalAlbTargetGroup8\n - InternalAlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref InternalAlbTargetGroup1\n - !Ref InternalAlbTargetGroup2\n - !Ref InternalAlbTargetGroup3\n - !Ref InternalAlbTargetGroup4\n - !Ref InternalAlbTargetGroup5\n - !Ref InternalAlbTargetGroup6\n - !Ref InternalAlbTargetGroup7\n - !Ref InternalAlbTargetGroup8\n - !Ref InternalAlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup2:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - InternalAlbTargetGroup1\n - InternalAlbTargetGroup2\n - InternalAlbTargetGroup3\n - InternalAlbTargetGroup4\n - InternalAlbTargetGroup5\n - InternalAlbTargetGroup6\n - InternalAlbTargetGroup7\n - InternalAlbTargetGroup8\n - InternalAlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet2\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp2\n Version: !GetAtt LaunchTemp2.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref InternalAlbTargetGroup1\n - !Ref InternalAlbTargetGroup2\n - !Ref InternalAlbTargetGroup3\n - !Ref InternalAlbTargetGroup4\n - !Ref InternalAlbTargetGroup5\n - !Ref InternalAlbTargetGroup6\n - !Ref InternalAlbTargetGroup7\n - !Ref InternalAlbTargetGroup8\n - !Ref InternalAlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 87d75478-787a-41d5-bb21-9de6fe4b662e\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup3:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - InternalAlbTargetGroup1\n - InternalAlbTargetGroup2\n - InternalAlbTargetGroup3\n - InternalAlbTargetGroup4\n - InternalAlbTargetGroup5\n - InternalAlbTargetGroup6\n - InternalAlbTargetGroup7\n - InternalAlbTargetGroup8\n - InternalAlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet3\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp3\n Version: !GetAtt LaunchTemp3.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref InternalAlbTargetGroup1\n - !Ref InternalAlbTargetGroup2\n - !Ref InternalAlbTargetGroup3\n - !Ref InternalAlbTargetGroup4\n - !Ref InternalAlbTargetGroup5\n - !Ref InternalAlbTargetGroup6\n - !Ref InternalAlbTargetGroup7\n - !Ref InternalAlbTargetGroup8\n - !Ref InternalAlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: bbd8314a-6e59-4102-9ed5-232739dd0dfa\n InstanceSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable access to MarkLogic instances from Load Balancers and other cluster members\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref ElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n - IpProtocol: tcp\n FromPort: '7999'\n ToPort: '7999'\n SourceSecurityGroupId: !Ref InternalElbSecurityGroup\n InstanceSecurityGroupIngress:\n Type: 'AWS::EC2::SecurityGroupIngress'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n IpProtocol: tcp\n FromPort: '0'\n ToPort: '65355'\n GroupId: !Ref InstanceSecurityGroup\n SourceSecurityGroupId: !Ref InstanceSecurityGroup\n InternalElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Allow access from ECS clsuter to internal ALB for marklogic cluster.\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n SourceSecurityGroupId: !Ref ECSSecurityGroup\n ElbSecurityGroup:\n Type: 'AWS::EC2::SecurityGroup'\n Properties:\n GroupDescription: Enable SSH access and HTTP access on the inbound port\n VpcId: !Ref VPC\n SecurityGroupIngress:\n - IpProtocol: tcp\n FromPort: '22'\n ToPort: '22'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7998'\n ToPort: '7998'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '8000'\n ToPort: '8011'\n CidrIp: !Ref ExternalAccessCidrIP\n - IpProtocol: tcp\n FromPort: '7997'\n ToPort: '7997'\n CidrIp: !Ref ExternalAccessCidrIP\n LaunchTemp1:\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume1\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeA#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=1\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 2efb8cfb-df53-401d-8ff2-34af0dd25993\n LaunchTemp2:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume2\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeB#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: c8296a50-a29e-4646-aa74-8f1b735a9a3f\n LaunchTemp3:\n Condition: MultiZone\n Type: 'AWS::EC2::LaunchTemplate'\n DependsOn:\n - InstanceSecurityGroup\n Properties:\n LaunchTemplateData:\n BlockDeviceMappings:\n - DeviceName: /dev/xvda\n Ebs:\n VolumeSize: 40\n - DeviceName: /dev/sdf\n NoDevice: true\n Ebs: {}\n KeyName: !Ref KeyName\n ImageId: !If [PAYG, !FindInMap [LicenseRegion2AMI,!Ref 'AWS::Region',\"PAYGAl2023\"], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', \"BYOLAl2023\"]]\n UserData: !Base64\n 'Fn::Join':\n - ''\n - - MARKLOGIC_CLUSTER_NAME=\n - !Ref MarkLogicDDBTable\n - |+\n\n - MARKLOGIC_EBS_VOLUME=\n - !Ref MarklogicVolume3\n - ',:'\n - !Ref VolumeSize\n - '::'\n - !Ref VolumeType\n - ':'\n - !If\n - GP3\n - !Ref VolumeIOPS\n - ''\n - ':'\n - !If\n - GP3\n - !Ref VolumeThroughput\n - ''\n - |\n :,*\n - |\n MARKLOGIC_NODE_NAME=NodeC#\n - MARKLOGIC_ADMIN_USERNAME=\n - !Ref AdminUser\n - |+\n\n - MARKLOGIC_ADMIN_PASSWORD=\n - !Ref AdminPass\n - |+\n\n - |\n MARKLOGIC_CLUSTER_MASTER=0\n - MARKLOGIC_LICENSEE=\n - !Ref Licensee\n - |+\n\n - MARKLOGIC_LICENSE_KEY=\n - !Ref LicenseKey\n - |+\n\n - MARKLOGIC_LOG_SNS=\n - !Ref LogSNS\n - |+\n\n - MARKLOGIC_AWS_SWAP_SIZE=\n - 32\n - |+\n\n - !If\n - UseVolumeEncryption\n - !Join\n - ''\n - - 'MARKLOGIC_EBS_KEY='\n - !If\n - HasCustomEBSKey\n - !Ref VolumeEncryptionKey\n - 'default'\n - ''\n\n SecurityGroupIds:\n - !Ref InstanceSecurityGroup\n InstanceType: !Ref InstanceType\n IamInstanceProfile: \n Name: !Ref IAMRole\n MetadataOptions:\n HttpTokens: required\n InstanceMarketOptions: !If\n - UseSpot\n - MarketType: spot \n SpotOptions: \n MaxPrice: !Ref SpotPrice\n - !Ref 'AWS::NoValue'\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 7fa68c90-39bc-4874-ad20-8cd8c974ed52\n #Application Load Balancer description for MultiZone deployments (3 zones).\n Alb:\n Condition: CreatePublicAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - ElbSecurityGroup\n Properties: \n SecurityGroups: \n - !Ref ElbSecurityGroup\n Subnets:\n - !Ref PublicSubnet1\n - !If [MultiZone, !Ref PublicSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PublicSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 9 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n AlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n AlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicExternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n #Descriptions of the 9 Listeners for MultiZone deployments (3 zones). Each Listener connects Application Load Balancer to a TargetGroup with a particular port.\n AlbListener1:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8000\n Protocol: HTTP\n AlbListener2:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8001\n Protocol: HTTP\n AlbListener3:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8002\n Protocol: HTTP\n AlbListener4:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8003\n Protocol: HTTP\n AlbListener5:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8004\n Protocol: HTTP\n AlbListener6:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8005\n Protocol: HTTP\n AlbListener7:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8006\n Protocol: HTTP\n AlbListener8:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8007\n Protocol: HTTP\n AlbListener9:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - AlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref AlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8008\n Protocol: HTTP\n MarklogicExternal8011Listener:\n Condition: CreatePublicAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - Alb\n - MarklogicExternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicExternal8011\n Type: forward\n LoadBalancerArn: !Ref Alb\n Port: 8011\n Protocol: HTTP\n #Application Load Balancer description for MultiZone deployments (3 zones).\n InternalAlb:\n Condition: CreateInternalAlb\n Type: AWS::ElasticLoadBalancingV2::LoadBalancer\n DependsOn:\n - InternalElbSecurityGroup\n Properties: \n Scheme: internal\n SecurityGroups: \n - !Ref InternalElbSecurityGroup\n Subnets:\n - !Ref PrivateSubnet1\n - !If [MultiZone, !Ref PrivateSubnet2, !Ref 'AWS::NoValue']\n - !If [MultiZone, !Ref PrivateSubnet3, !Ref 'AWS::NoValue']\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: e188e71e-5f01-4816-896e-9bd30b9a96c1\n #Descriptions of the 1 TargetGroups for MultiZone deployments (3 zones). TargetGroups route requests to registered targets.\n #Health checks are performed on each TargetGroup.\n MarklogicInternal8011:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8011\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup1:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8000\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup2:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8001\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup3:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8002\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup4:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8003\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup5:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8004\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup6:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8005\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicInternal8011Listener:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - MarklogicInternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicInternal8011\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8011\n Protocol: HTTP\n InternalAlbListener1:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8000\n Protocol: HTTP\n InternalAlbListener2:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8001\n Protocol: HTTP\n InternalAlbListener3:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8002\n Protocol: HTTP\n InternalAlbListener4:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8003\n Protocol: HTTP\n InternalAlbListener5:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8004\n Protocol: HTTP\n InternalAlbListener6:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8005\n Protocol: HTTP\n InternalAlbListener7:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8006\n Protocol: HTTP\n InternalAlbListener8:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8007\n Protocol: HTTP\n InternalAlbListener9:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8008\n Protocol: HTTP\nOutputs:\n URL:\n Description: The URL of the MarkLogic Cluster\n Value: !Join\n - ''\n - - 'http://'\n - !If [CreatePublicAlb, !GetAtt [Alb, DNSName], !If [CreateInternalAlb, !GetAtt [InternalAlb, DNSName], !GetAtt [ManagedEniStack, Outputs.ENI]]]\n - ':8001'",
"diffStat": {
"model_added_lines": 18,
"model_removed_lines": 0,
"model_added_chars": 621,
"model_removed_chars": 0,
"user_added_lines": 0,
"user_removed_lines": 2329,
"user_added_chars": 0,
"user_removed_chars": 65255
},
"isNewFile": false
},
"displayName": "Edit",
"description": "Replaces text within a file. By default, replaces a single occurrence, but can replace multiple occurrences when `expected_replacements` is specified. This tool requires providing significant context around the change to ensure precise targeting. Always use the read_file tool to examine the file's current content before attempting a text replacement.\n \n The user has the ability to modify the `new_string` content. If modified, this will be stated in the response.\n \n Expectation for required parameters:\n 1. `old_string` MUST be the exact literal text to replace (including all whitespace, indentation, newlines, and surrounding code etc.).\n 2. `new_string` MUST be the exact literal text to replace `old_string` with (also including all whitespace, indentation, newlines, and surrounding code etc.). Ensure the resulting code is correct and idiomatic and that `old_string` and `new_string` are different.\n 3. `instruction` is the detailed instruction of what needs to be changed. It is important to Make it specific and detailed so developers or large language models can understand what needs to be changed and perform the changes on their own if necessary. \n 4. NEVER escape `old_string` or `new_string`, that would break the exact literal text requirement.\n **Important:** If ANY of the above are not satisfied, the tool will fail. CRITICAL for `old_string`: Must uniquely identify the single instance to change. Include at least 3 lines of context BEFORE and AFTER the target text, matching whitespace and indentation precisely. If this string matches multiple locations, or does not match exactly, the tool will fail.\n 5. Prefer to break down complex and long changes into multiple smaller atomic calls to this tool. Always check the content of the file after changes or not finding a string to match.\n **Multiple replacements:** Set `expected_replacements` to the number of occurrences you want to replace. The tool will replace ALL occurrences that match `old_string` exactly. Ensure the number of replacements matches your expectation.",
"renderOutputAsMarkdown": true
}
]
},
{
"id": "d8efce76-b096-4cdd-9862-149c4b2ff594",
"timestamp": "2026-01-30T11:35:50.444Z",
"type": "gemini",
"content": "I will read lines 1050-1260 of `mlcluster.template` to verify the syntax and indentation of the modified `MarkLogicServerGroup` resources, ensuring the changes were applied correctly.",
"thoughts": [
{
"subject": "Analyzing Template Modifications",
"description": "I've just finished the modifications to `mlcluster.template`, specifically creating the nine `InternalAlbTargetGroup` resources. Following that, I updated the corresponding listeners, `InternalAlbListener1` through `InternalAlbListener9`, to point towards the new target groups. Next up: `MarkLogicServerGroup1`.",
"timestamp": "2026-01-30T11:35:47.507Z"
},
{
"subject": "Checking ASG Updates",
"description": "I've moved on to examining the ASG changes. I've reviewed lines 1050-1260 in `mlcluster.template` to confirm the updates to `MarkLogicServerGroup1` through `MarkLogicServerGroup3` are configured as expected with the new target groups. Next, I'll examine the TargetGroup and Listener updates.",
"timestamp": "2026-01-30T11:35:50.152Z"
}
],
"tokens": {
"input": 70998,
"output": 64,
"cached": 68522,
"thoughts": 275,
"tool": 0,
"total": 71337
},
"model": "gemini-3-pro-preview",
"toolCalls": [
{
"id": "read_file-1769772950439-1646911be6b978",
"name": "read_file",
"args": {
"limit": 210,
"offset": 1050,
"file_path": "mlcluster.template"
},
"result": [
{
"functionResponse": {
"id": "read_file-1769772950439-1646911be6b978",
"name": "read_file",
"response": {
"output": "\nIMPORTANT: The file content has been truncated.\nStatus: Showing lines 1051-1260 of 2410 total lines.\nAction: To read more of the file, you can use the 'offset' and 'limit' parameters in a subsequent 'read_file' call. For example, to read the next section of the file, use offset: 1260.\n\n--- FILE CONTENT (truncated) ---\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup1:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - InternalAlbTargetGroup1\n - InternalAlbTargetGroup2\n - InternalAlbTargetGroup3\n - InternalAlbTargetGroup4\n - InternalAlbTargetGroup5\n - InternalAlbTargetGroup6\n - InternalAlbTargetGroup7\n - InternalAlbTargetGroup8\n - InternalAlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet1\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp1\n Version: !GetAtt LaunchTemp1.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref InternalAlbTargetGroup1\n - !Ref InternalAlbTargetGroup2\n - !Ref InternalAlbTargetGroup3\n - !Ref InternalAlbTargetGroup4\n - !Ref InternalAlbTargetGroup5\n - !Ref InternalAlbTargetGroup6\n - !Ref InternalAlbTargetGroup7\n - !Ref InternalAlbTargetGroup8\n - !Ref InternalAlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 31621dd0-4b18-4dcd-b443-db9cef64ebb1\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup2:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - InternalAlbTargetGroup1\n - InternalAlbTargetGroup2\n - InternalAlbTargetGroup3\n - InternalAlbTargetGroup4\n - InternalAlbTargetGroup5\n - InternalAlbTargetGroup6\n - InternalAlbTargetGroup7\n - InternalAlbTargetGroup8\n - InternalAlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet2\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp2\n Version: !GetAtt LaunchTemp2.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone\n Cooldown: '300'\n HealthCheckType: EC2\n HealthCheckGracePeriod: '300'\n NotificationConfiguration: !If\n - UseLogSNS\n - TopicARN: !Ref LogSNS\n NotificationTypes:\n - 'autoscaling:EC2_INSTANCE_LAUNCH'\n - 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR'\n - 'autoscaling:EC2_INSTANCE_TERMINATE'\n - 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR'\n - !Ref 'AWS::NoValue'\n Tags:\n - Key: marklogic:stack:name\n Value: !Ref 'AWS::StackName'\n PropagateAtLaunch: 'true'\n - Key: marklogic:stack:id\n Value: !Ref 'AWS::StackId'\n PropagateAtLaunch: 'true'\n LifecycleHookSpecificationList:\n - LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING'\n LifecycleHookName: NodeManager\n HeartbeatTimeout: 4800\n NotificationTargetARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrSnsArn]\n RoleARN: !GetAtt [NodeMgrLambdaStack, Outputs.NodeMgrIamArn]\n TargetGroupARNs:\n - !Ref AlbTargetGroup1\n - !Ref AlbTargetGroup2\n - !Ref AlbTargetGroup3\n - !Ref AlbTargetGroup4\n - !Ref AlbTargetGroup5\n - !Ref AlbTargetGroup6\n - !Ref AlbTargetGroup7\n - !Ref AlbTargetGroup8\n - !Ref AlbTargetGroup9\n - !Ref InternalAlbTargetGroup1\n - !Ref InternalAlbTargetGroup2\n - !Ref InternalAlbTargetGroup3\n - !Ref InternalAlbTargetGroup4\n - !Ref InternalAlbTargetGroup5\n - !Ref InternalAlbTargetGroup6\n - !Ref InternalAlbTargetGroup7\n - !Ref InternalAlbTargetGroup8\n - !Ref InternalAlbTargetGroup9\n - !Ref MarklogicExternal8011\n - !Ref MarklogicInternal8011\n Metadata:\n 'AWS::CloudFormation::Designer':\n id: 87d75478-787a-41d5-bb21-9de6fe4b662e\n #AutoScalingGroup used for MultiZone deployments (3 zones) that is connected to Application Load Balancer via 9 TargetGroups.\n #All of the instances in this AutoScalingGroup will be registered to all 9 TargetGroups.\n MarkLogicServerGroup3:\n Condition: MultiZone\n Type: 'AWS::AutoScaling::AutoScalingGroup'\n DependsOn:\n - ManagedEniStack\n - NodeMgrLambdaStack\n - AlbTargetGroup1\n - AlbTargetGroup2\n - AlbTargetGroup3\n - AlbTargetGroup4\n - AlbTargetGroup5\n - AlbTargetGroup6\n - AlbTargetGroup7 \n - AlbTargetGroup8\n - AlbTargetGroup9\n - InternalAlbTargetGroup1\n - InternalAlbTargetGroup2\n - InternalAlbTargetGroup3\n - InternalAlbTargetGroup4\n - InternalAlbTargetGroup5\n - InternalAlbTargetGroup6\n - InternalAlbTargetGroup7\n - InternalAlbTargetGroup8\n - InternalAlbTargetGroup9\n - MarklogicExternal8011\n - MarklogicInternal8011\n Properties:\n VPCZoneIdentifier:\n - !Ref PrivateSubnet3\n LaunchTemplate: \n LaunchTemplateId: !Ref LaunchTemp3\n Version: !GetAtt LaunchTemp3.LatestVersionNumber\n MinSize: '0'\n MaxSize: !Ref NodesPerZone\n DesiredCapacity: !Ref NodesPerZone"
}
}
}
],
"status": "success",
"timestamp": "2026-01-30T11:35:50.463Z",
"resultDisplay": "Read lines 1051-1260 of 2410 from mlcluster.template",
"displayName": "ReadFile",
"description": "Reads and returns the content of a specified file. If the file is large, the content will be truncated. The tool's response will clearly indicate if truncation has occurred and will provide details on how to read more of the file using the 'offset' and 'limit' parameters. Handles text, images (PNG, JPG, GIF, WEBP, SVG, BMP), audio files (MP3, WAV, AIFF, AAC, OGG, FLAC), and PDF files. For text files, it can read specific line ranges.",
"renderOutputAsMarkdown": true
}
]
},
{
"id": "40a7c4b0-a13b-4114-9886-0040608b0d1f",
"timestamp": "2026-01-30T11:35:57.060Z",
"type": "gemini",
"content": "I will read the last section of `mlcluster.template` again, specifically focusing on lines 2200 to 2410, to verify that the `InternalAlbListener` resources have been correctly updated to reference the new `InternalAlbTargetGroup` resources.",
"thoughts": [
{
"subject": "Analyzing ASG Configuration",
"description": "I've confirmed the ASG changes. The `TargetGroupARNs` and `DependsOn` properties now reference the `InternalAlbTargetGroupX` resources as expected, reflecting the modifications. Next, I'll shift focus to the Listeners at the file's conclusion to ensure complete configuration consistency.",
"timestamp": "2026-01-30T11:35:56.707Z"
}
],
"tokens": {
"input": 73267,
"output": 76,
"cached": 68517,
"thoughts": 42,
"tool": 0,
"total": 73385
},
"model": "gemini-3-pro-preview",
"toolCalls": [
{
"id": "read_file-1769772957048-5afd2d3d4a82b",
"name": "read_file",
"args": {
"file_path": "mlcluster.template",
"limit": 210,
"offset": 2200
},
"result": [
{
"functionResponse": {
"id": "read_file-1769772957048-5afd2d3d4a82b",
"name": "read_file",
"response": {
"output": "\nIMPORTANT: The file content has been truncated.\nStatus: Showing lines 2201-2410 of 2410 total lines.\nAction: To read more of the file, you can use the 'offset' and 'limit' parameters in a subsequent 'read_file' call. For example, to read the next section of the file, use offset: 2410.\n\n--- FILE CONTENT (truncated) ---\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup7:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8006\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup8:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8007\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n InternalAlbTargetGroup9:\n Condition: MultiZone\n Type: \"AWS::ElasticLoadBalancingV2::TargetGroup\"\n Properties:\n HealthCheckIntervalSeconds: 10\n HealthCheckTimeoutSeconds: 5\n HealthyThresholdCount: 3\n HealthCheckPort: 7997\n UnhealthyThresholdCount: 5\n Port: 8008\n Protocol: HTTP\n TargetGroupAttributes:\n - Key: stickiness.enabled\n Value: true\n - Key: stickiness.type\n Value: lb_cookie\n - Key: stickiness.lb_cookie.duration_seconds\n Value: 3600\n - Key: deregistration_delay.timeout_seconds\n Value: 60\n VpcId: !Ref VPC\n MarklogicInternal8011Listener:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - MarklogicInternal8011\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref MarklogicInternal8011\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8011\n Protocol: HTTP\n InternalAlbListener1:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup1\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup1\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8000\n Protocol: HTTP\n InternalAlbListener2:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup2\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup2\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8001\n Protocol: HTTP\n InternalAlbListener3:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup3\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup3\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8002\n Protocol: HTTP\n InternalAlbListener4:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup4\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup4\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8003\n Protocol: HTTP\n InternalAlbListener5:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup5\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup5\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8004\n Protocol: HTTP\n InternalAlbListener6:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup6\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup6\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8005\n Protocol: HTTP\n InternalAlbListener7:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup7\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup7\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8006\n Protocol: HTTP\n InternalAlbListener8:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup8\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup8\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8007\n Protocol: HTTP\n InternalAlbListener9:\n Condition: CreateInternalAlb\n Type: \"AWS::ElasticLoadBalancingV2::Listener\"\n DependsOn:\n - InternalAlb\n - InternalAlbTargetGroup9\n Properties:\n DefaultActions:\n - TargetGroupArn: !Ref InternalAlbTargetGroup9\n Type: forward\n LoadBalancerArn: !Ref InternalAlb\n Port: 8008\n Protocol: HTTP\nOutputs:\n URL:\n Description: The URL of the MarkLogic Cluster\n Value: !Join\n - ''\n - - 'http://'\n - !If [CreatePublicAlb, !GetAtt [Alb, DNSName], !If [CreateInternalAlb, !GetAtt [InternalAlb, DNSName], !GetAtt [ManagedEniStack, Outputs.ENI]]]\n - ':8001'"
}
}
}
],
"status": "success",
"timestamp": "2026-01-30T11:35:57.080Z",
"resultDisplay": "Read lines 2201-2410 of 2410 from mlcluster.template",
"displayName": "ReadFile",
"description": "Reads and returns the content of a specified file. If the file is large, the content will be truncated. The tool's response will clearly indicate if truncation has occurred and will provide details on how to read more of the file using the 'offset' and 'limit' parameters. Handles text, images (PNG, JPG, GIF, WEBP, SVG, BMP), audio files (MP3, WAV, AIFF, AAC, OGG, FLAC), and PDF files. For text files, it can read specific line ranges.",
"renderOutputAsMarkdown": true
}
]
},
{
"id": "2b6629cf-b445-4c4a-b69b-957b5c05fdc5",
"timestamp": "2026-01-30T11:36:06.962Z",
"type": "gemini",
"content": "I have successfully updated the `mlcluster.template` file to separate the target groups for the internal and public load balancers.\n\nHere is a summary of the changes:\n1. **Created Internal Target Groups:** I added `InternalAlbTargetGroup1` through `InternalAlbTargetGroup9` to the template. These duplicate the configuration of the existing `AlbTargetGroup` resources but are intended for exclusive use by the Internal Load Balancer.\n2. **Updated Internal Listeners:** I modified `InternalAlbListener1` through `InternalAlbListener9` to reference the newly created `InternalAlbTargetGroup` resources instead of the shared `AlbTargetGroup` resources.\n3. **Updated Auto Scaling Groups:** I updated `MarkLogicServerGroup1`, `MarkLogicServerGroup2`, and `MarkLogicServerGroup3` to include the new `InternalAlbTargetGroup` resources in their `TargetGroupARNs` list. This ensures that instances are registered with both the public and internal target groups.\n\nThese changes ensure that target groups are no longer shared between the public and internal load balancers, satisfying the requirement.",
"thoughts": [
{
"subject": "Assessing the Infrastructure",
"description": "I've validated the Listeners and TargetGroups; those seem solid. I'm feeling good about the `mlcluster.template` updates. Next, I'll take a quick peek at `templates/ml-vpc.template`, though it's probably fine as it's just about the VPC.",
"timestamp": "2026-01-30T11:36:04.268Z"
},
{
"subject": "Finalizing the Configuration",
"description": "I'm satisfied with the separation of target groups for the Public and Internal ALBs. Instances are registered correctly, and the constraint about target group sharing is met. I've confirmed that `AlbTargetGroupX` is exclusively attached to `Alb`, and `InternalAlbTargetGroupX` is only linked to `InternalAlb`. My work is complete, and the updates feel robust.",
"timestamp": "2026-01-30T11:36:05.993Z"
}
],
"tokens": {
"input": 75179,
"output": 234,
"cached": 72274,
"thoughts": 308,
"tool": 0,
"total": 75721
},
"model": "gemini-3-pro-preview"
}
]
}