Skip to content

Commit

Permalink
#31 removed wss/8255 accoutrements
Browse files Browse the repository at this point in the history
  • Loading branch information
roncewind committed Mar 26, 2024
1 parent e793398 commit a5269a3
Showing 1 changed file with 0 additions and 66 deletions.
66 changes: 0 additions & 66 deletions cloudformation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -797,17 +797,6 @@ Resources:
ToPort: 8251
Type: AWS::EC2::SecurityGroupIngress

Ec2SecurityGroupIngressWebAppWss:
Condition: IfRunWebApp
Properties:
Description: Allow Websocket on Container port 8255 from ALB
FromPort: 8255
GroupId: !GetAtt Ec2SecurityGroupLoadBalancerPublic.GroupId
IpProtocol: tcp
SourceSecurityGroupId: !GetAtt Ec2SecurityGroupLoadBalancerPublic.GroupId
ToPort: 8255
Type: AWS::EC2::SecurityGroupIngress

Ec2SecurityGroupIngressXterm:
Condition: IfRunXterm
Properties:
Expand Down Expand Up @@ -1744,28 +1733,6 @@ Resources:
Fn::Sub: "${DatabaseStack}-ec2-VpcId"
Type: AWS::ElasticLoadBalancingV2::TargetGroup

TargetGroupWebAppWss:
Condition: IfRunWebApp
DependsOn:
- LoadBalancerPublic
Properties:
Matcher:
HttpCode: 200-299
Name: !Sub "${AWS::StackName}-tg-web-wss"
Port: 8255
Protocol: HTTP
Tags:
- Key: Name
Value: !Sub "${AWS::StackName}-tg-web-wss"
TargetGroupAttributes:
- Key: deregistration_delay.timeout_seconds
Value: "60"
TargetType: ip
VpcId:
Fn::ImportValue:
Fn::Sub: "${DatabaseStack}-ec2-VpcId"
Type: AWS::ElasticLoadBalancingV2::TargetGroup

TargetGroupXterm:
Condition: IfRunXterm
DependsOn:
Expand Down Expand Up @@ -1860,30 +1827,6 @@ Resources:
Priority: 6
Type: "AWS::ElasticLoadBalancingV2::ListenerRule"

ListenerRuleWebAppWss:
Condition: IfRunWebApp
Properties:
Actions:
- AuthenticateCognitoConfig:
OnUnauthenticatedRequest: authenticate
Scope: openid
UserPoolArn: !GetAtt "UserPool.Arn"
UserPoolClientId: !Ref UserPoolClient
UserPoolDomain: !Ref UserPoolDomain
Order: 1
Type: authenticate-cognito
- Type: "forward"
TargetGroupArn: !Ref TargetGroupWebAppWss
Order: 2
Conditions:
- Field: "path-pattern"
Values:
- "/app/ws/*"
- "/app/ws"
ListenerArn: !Ref ListenerPort443
Priority: 5
Type: "AWS::ElasticLoadBalancingV2::ListenerRule"

ListenerRuleXterm:
Condition: IfRunXterm
Properties:
Expand Down Expand Up @@ -2132,8 +2075,6 @@ Resources:
Value: "8251"
- Name: SENZING_WEB_SERVER_PROXY_LOGLEVEL
Value: error
- Name: SENZING_WEB_SERVER_STREAM_CLIENT_URL
Value: !Sub "wss://${LoadBalancerPublic.DNSName}/app/ws"
- Name: SENZING_WEB_SERVER_URL
Value: !Sub "http://${LoadBalancerPublic.DNSName}:8251/app"
- Name: SENZING_WEB_SERVER_VIRTUAL_PATH
Expand All @@ -2157,9 +2098,6 @@ Resources:
- ContainerPort: 8251
HostPort: 8251
Protocol: tcp
- ContainerPort: 8255
HostPort: 8255
Protocol: tcp
Privileged: false
ReadonlyRootFilesystem: false
Cpu: "2048"
Expand Down Expand Up @@ -2259,7 +2197,6 @@ Resources:
DependsOn:
- ListenerPort443
- ListenerRuleWebApp
- ListenerRuleWebAppWss
Properties:
Cluster: !Ref EcsCluster
DesiredCount: 1
Expand All @@ -2272,9 +2209,6 @@ Resources:
- ContainerName: webapp
ContainerPort: 8251
TargetGroupArn: !Ref TargetGroupWebApp
- ContainerName: webapp
ContainerPort: 8255
TargetGroupArn: !Ref TargetGroupWebAppWss
NetworkConfiguration:
AwsvpcConfiguration:
AssignPublicIp: DISABLED
Expand Down

0 comments on commit a5269a3

Please sign in to comment.