Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 79 additions & 1 deletion mlcluster-vpc.template
Original file line number Diff line number Diff line change
Expand Up @@ -1689,6 +1689,19 @@ Resources:
FromPort: '7997'
ToPort: '7997'
CidrIp: 0.0.0.0/0
- IpProtocol: tcp
FromPort: '9000'
ToPort: '9008'
CidrIp: 0.0.0.0/0
DynamicAlbTargetPortsIngress:
Condition: MultiZone
Type: 'AWS::EC2::SecurityGroupIngress'
Properties:
GroupId: !Ref InstanceSecurityGroup
IpProtocol: tcp
FromPort: '9000'
ToPort: '9008'
SourceSecurityGroupId: !Ref ElbSecurityGroup
LaunchTemp1:
Type: 'AWS::EC2::LaunchTemplate'
DependsOn:
Expand Down Expand Up @@ -2363,4 +2376,69 @@ Outputs:
Value: !GetAtt [VpcStack, Outputs.PrivateSubnetRouteTableID]
InstanceSecurityGroupID:
Description: Instance Security Group ID
Value: !Ref InstanceSecurityGroup
Value: !Ref InstanceSecurityGroup
VpcId:
Description: VPC ID for resources created by dependent stacks
Value: !GetAtt [VpcStack, Outputs.VpcId]
Export:
Name: !Sub ${AWS::StackName}-VpcId
AlbArn:
Condition: MultiZone
Description: ARN of the multi-zone Application Load Balancer
Value: !Ref Alb
Export:
Name: !Sub ${AWS::StackName}-AlbArn
ClusterEndpoint:
Description: The endpoint URL for the MarkLogic Cluster (DNS name or IP) - Primary endpoint only
Value: !If
- MultiZone
- !GetAtt [Alb, DNSName]
- !Select
- 0
- !Split
- ','
- !GetAtt [ManagedEniStack, Outputs.ENI]
Export:
Name: !Sub ${AWS::StackName}-ClusterEndpoint
SecurityGroupId:
Description: Security Group ID for Lambda VPC access
Value: !Ref InstanceSecurityGroup
Export:
Name: !Sub ${AWS::StackName}-SecurityGroup
PrivateSubnet1Id:
Description: Private Subnet 1 ID for Lambda VPC access
Value: !GetAtt [VpcStack, Outputs.PrivateSubnet1Id]
Export:
Name: !Sub ${AWS::StackName}-PrivateSubnet1
IsMultiZone:
Description: Whether the cluster is deployed in MultiZone (true/false)
Value: !If [MultiZone, 'true', 'false']
Export:
Name: !Sub ${AWS::StackName}-IsMultiZone
PrivateSubnet2Id:
Condition: MultiZone
Description: Private Subnet 2 ID (AZ2). Only exported for multi-zone deployments.
Value: !GetAtt [VpcStack, Outputs.PrivateSubnet2Id]
Export:
Name: !Sub ${AWS::StackName}-PrivateSubnet2
PrivateSubnet3Id:
Condition: MultiZone
Description: Private Subnet 3 ID (AZ3). Only exported for multi-zone deployments.
Value: !GetAtt [VpcStack, Outputs.PrivateSubnet3Id]
Export:
Name: !Sub ${AWS::StackName}-PrivateSubnet3
NodeAMIId:
Description: AMI ID used for MarkLogic nodes (PAYG or BYOL, resolved for the deployed region)
Value: !If [PAYG, !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', PAYGAl2023], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', BYOLAl2023]]
Export:
Name: !Sub ${AWS::StackName}-NodeAMIId
KeyName:
Description: EC2 KeyPair name used for SSH access to MarkLogic nodes
Value: !Ref KeyName
Export:
Name: !Sub ${AWS::StackName}-KeyName
IAMRole:
Description: IAM instance profile name attached to MarkLogic nodes
Value: !Ref IAMRole
Export:
Name: !Sub ${AWS::StackName}-IAMRole
80 changes: 79 additions & 1 deletion mlcluster.template
Original file line number Diff line number Diff line change
Expand Up @@ -1626,6 +1626,19 @@ Resources:
FromPort: '7997'
ToPort: '7997'
CidrIp: 0.0.0.0/0
- IpProtocol: tcp
FromPort: '9000'
ToPort: '9008'
CidrIp: 0.0.0.0/0
DynamicAlbTargetPortsIngress:
Condition: MultiZone
Type: 'AWS::EC2::SecurityGroupIngress'
Properties:
GroupId: !Ref InstanceSecurityGroup
IpProtocol: tcp
FromPort: '9000'
ToPort: '9008'
SourceSecurityGroupId: !Ref ElbSecurityGroup
LaunchTemp1:
Type: 'AWS::EC2::LaunchTemplate'
DependsOn:
Expand Down Expand Up @@ -2275,4 +2288,69 @@ Outputs:
- ''
- - 'http://'
- !If [MultiZone, !GetAtt [Alb, DNSName], !GetAtt [ManagedEniStack, Outputs.ENI]]
- ':8001'
- ':8001'
VpcId:
Description: VPC ID for resources created by dependent stacks
Value: !Ref VPC
Export:
Name: !Sub ${AWS::StackName}-VpcId
AlbArn:
Condition: MultiZone
Description: ARN of the multi-zone Application Load Balancer
Value: !Ref Alb
Export:
Name: !Sub ${AWS::StackName}-AlbArn
ClusterEndpoint:
Description: The endpoint URL for the MarkLogic Cluster (DNS name or IP) - Primary endpoint only
Value: !If
- MultiZone
- !GetAtt [Alb, DNSName]
- !Select
- 0
- !Split
- ','
- !GetAtt [ManagedEniStack, Outputs.ENI]
Export:
Name: !Sub ${AWS::StackName}-ClusterEndpoint
SecurityGroupId:
Description: Security Group ID for Lambda VPC access
Value: !Ref InstanceSecurityGroup
Export:
Name: !Sub ${AWS::StackName}-SecurityGroup
PrivateSubnet1Id:
Description: Private Subnet 1 ID for Lambda VPC access
Value: !Ref PrivateSubnet1
Export:
Name: !Sub ${AWS::StackName}-PrivateSubnet1
IsMultiZone:
Description: Whether the cluster is deployed in MultiZone (true/false)
Value: !If [MultiZone, 'true', 'false']
Export:
Name: !Sub ${AWS::StackName}-IsMultiZone
PrivateSubnet2Id:
Condition: MultiZone
Description: Private Subnet 2 ID (AZ2). Only exported for multi-zone deployments.
Value: !Ref PrivateSubnet2
Export:
Name: !Sub ${AWS::StackName}-PrivateSubnet2
PrivateSubnet3Id:
Condition: MultiZone
Description: Private Subnet 3 ID (AZ3). Only exported for multi-zone deployments.
Value: !Ref PrivateSubnet3
Export:
Name: !Sub ${AWS::StackName}-PrivateSubnet3
NodeAMIId:
Description: AMI ID used for MarkLogic nodes (PAYG or BYOL, resolved for the deployed region)
Value: !If [PAYG, !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', PAYGAl2023], !FindInMap [LicenseRegion2AMI, !Ref 'AWS::Region', BYOLAl2023]]
Comment thread
sumanthravipati marked this conversation as resolved.
Resolved
Export:
Name: !Sub ${AWS::StackName}-NodeAMIId
KeyName:
Description: EC2 KeyPair name used for SSH access to MarkLogic nodes
Value: !Ref KeyName
Export:
Name: !Sub ${AWS::StackName}-KeyName
IAMRole:
Description: IAM instance profile name attached to MarkLogic nodes
Value: !Ref IAMRole
Export:
Name: !Sub ${AWS::StackName}-IAMRole
Loading
Loading