TerminationPolicies:
- "OldestInstance"
Tags:
-
Key: Name
Value: !Sub "ECS Instance-${AWS::StackName}-Batch"
PropagateAtLaunch: 'true'
-
Key: Description
Value: "This instance is the part of the Auto Scaling group which was created through CloudFormation"
PropagateAtLaunch: 'true'
-
Key: service
Value: !Ref "TagService"
PropagateAtLaunch: 'true'
-
Key: environment
Value: !Ref "EnvironmentLowerCase"
PropagateAtLaunch: 'true'
-
Key: contactnetid
Value: !Ref "TagContactNetid"
PropagateAtLaunch: 'true'
-
Key: accountnumber
Value: !Ref "TagAccountNumber"
PropagateAtLaunch: 'true'
-
Key: subaccount
Value: !Ref "TagSubAccount"
PropagateAtLaunch: 'true'
-
Key: ticketnumber
Value: !Ref "TagTicketNumber"
PropagateAtLaunch: 'true'
-
Key: bb_branch
Value: !Ref "AppBitBucketBranch"
PropagateAtLaunch: 'true'
EcsInstanceAsgIb:
Type: AWS::AutoScaling::AutoScalingGroup
Condition: "ThisIsProd"
DependsOn: EcsClusterIb
Properties:
VPCZoneIdentifier:
- Fn::ImportValue:
!Sub "${SecurityGroupCloudFormationName}-PrivSubNet1"
- Fn::ImportValue:
!Sub "${SecurityGroupCloudFormationName}-PrivSubNet2"
LaunchTemplate:
LaunchTemplateId: !Ref EcsInstanceLtIb
Version: !GetAtt EcsInstanceLtIb.LatestVersionNumber
MinSize: '0'
MaxSize: "1"
DesiredCapacity: "1"
LoadBalancerNames:
- !Ref EnvAppLoadBalancer
TerminationPolicies:
- "OldestInstance"
Tags:
-
Key: Name
Value: !Sub "ECS Instance - ${AWS::StackName} - IB"
PropagateAtLaunch: 'true'
-
Key: Description
Value: "This instance is the part of the Auto Scaling group which was created through CloudFormation"
PropagateAtLaunch: 'true'
-
Key: service
Value: !Ref "TagService"
PropagateAtLaunch: 'true'
-
Key: environment
Value: !Ref "EnvironmentLowerCase"
PropagateAtLaunch: 'true'
-
Key: contactnetid
Value: !Ref "TagContactNetid"
PropagateAtLaunch: 'true'
-
Key: accountnumber
Value: !Ref "TagAccountNumber"
PropagateAtLaunch: 'true'
-
Key: subaccount
Value: !Ref "TagSubAccount"
PropagateAtLaunch: 'true'
-
Key: ticketnumber
Value: !Ref "TagTicketNumber"
PropagateAtLaunch: 'true'
-
Key: bb_branch
Value: !Ref "AppBitBucketBranch"
PropagateAtLaunch: 'true'
EcsCluster:
Type: "AWS::ECS::Cluster"
Properties:
ClusterName: !Sub "${PillarUpperCase}${EnvironmentUpperCase}"
EcsClusterBatch:
Type: "AWS::ECS::Cluster"
Condition: "ThisIsProd"
Properties:
ClusterName: !Sub "${PillarUpperCase}${EnvironmentUpperCase}-Batch"
EcsClusterIb:
Type: "AWS::ECS::Cluster"
Condition: "ThisIsProd"
Properties:
ClusterName: !Sub "${PillarUpperCase}${EnvironmentUpperCase}-Ib"
EcsTaskWebAppPs:
Type: "AWS::ECS::TaskDefinition"
Properties:
Family: !Sub "${PillarUpperCase}${EnvironmentUpperCase}-WAP"
NetworkMode: "bridge"
Cpu: !FindInMap [TaskCpuMemory,!Ref "WAPInstClass","Cpu"]
Memory: !FindInMap [TaskCpuMemory,!Ref "WAPInstClass","Memory"]
ContainerDefinitions:
-
Name: "WEB"
Essential: "true"
Image: !Ref WebDockerImage
Links:
- "APP:app"
PortMappings:
-
HostPort: "0"
ContainerPort: "80"
Protocol: "tcp"
-
HostPort: "8200"
ContainerPort: "8080"
Protocol: "tcp"
Hostname: !Sub "${PillarLowerCase}${EnvironmentLowerCase}-web"
Privileged: "true"
Environment:
-
Name: "PS_EL_EFS_FS_ID"
Value:
Fn::ImportValue:
!Sub "${SecurityGroupCloudFormationName}-ELMEFSID"
-
Name: "PS_HR_EFS_FS_ID"
Value:
Fn::ImportValue:
!Sub "${SecurityGroupCloudFormationName}-HREFSID"
-
Name: "PS_SA_EFS_FS_ID"
Value:
Fn::ImportValue:
!Sub "${SecurityGroupCloudFormationName}-SAEncryptedEFSID"
-
Name: "PS_EFS_FS_IDS"
Value:
!Sub
- "hr=${HR_EFS_ID};el=${EL_EFS_ID};sa=${SA_EFS_ID}"
-
{ "HR_EFS_ID": !ImportValue "PeopleSoftSG-HREFSID",
"EL_EFS_ID": !ImportValue "PeopleSoftSG-ELMEFSID",
"SA_EFS_ID": !ImportValue "PeopleSoftSG-SAEncryptedEFSID"
}
-
Name: "AWS_REGION"
Value: !Sub "${AWS::Region}"
-
Name: "PSWEB_APP_ELB"
Value: "app"
-
Name: "PSWEB_AUTH_TOKEN_DOMAIN"
Value: !Ref "AuthTokenDomain"
-
Name: "PSWEB_BITBUCKET_BRANCH"
Value: !Ref "AppBitBucketBranch"
-
Name: "PSWEB_DOMAIN"
Value: !Sub "uaz${PillarLowerCase}${EnvironmentLowerCase}"
-
Name: "PSWEB_PROFILE_NAME"
Value: !Ref "WebProfileName"
-
Name: "PSWEB_FQDN"
Value: !Sub "${FQDNPrefix}.${AuthTokenDomain}"
-
Name: "PSWEB_PSREPORTS_DIR"
Value: !Ref "PsReportsDirecory"
-
Name: "PSWEB_PILLAR"
Value: !Ref "PillarLowerCase"
-
Name: "PSWEB_TLS12"
Value: !Ref "Tls12"
-
Name: "PSWEB_REQUIRE_DUO"
Value: !Ref "PsWebRequireDuo"
LogConfiguration:
LogDriver: "awslogs"
Options:
awslogs-group: !Ref "EcsLogGroup"
awslogs-region: "us-west-2"
awslogs-stream-prefix: "WEB"
-
Name: "APP"
Essential: "true"
Image: !Ref AppDockerImage
Hostname: "app"
Privileged: "true"
PortMappings:
-
HostPort: "9000"
ContainerPort: "9000"
Protocol: "tcp"
-
HostPort: "9001"
ContainerPort: "9001"
Protocol: "tcp"
-
HostPort: "9002"
ContainerPort: "9002"
Protocol: "tcp"
-
HostPort: "9003"
ContainerPort: "9003"
Protocol: "tcp"
-
HostPort: "9004"
ContainerPort: "9004"
Protocol: "tcp"
-
HostPort: "9005"
ContainerPort: "9005"
Protocol: "tcp"
-
HostPort: "9006"
ContainerPort: "9006"
Protocol: "tcp"
-
HostPort: "9007"
ContainerPort: "9007"
Protocol: "tcp"
-
HostPort: "9008"
ContainerPort: "9008"
Protocol: "tcp"
-
HostPort: "9009"
ContainerPort: "9009"
Protocol: "tcp"
-
HostPort: "9010"
ContainerPort: "9010"
Protocol: "tcp"
-
HostPort: "9011"
ContainerPort: "9011"
Protocol: "tcp"
-
HostPort: "9012"
ContainerPort: "9012"
Protocol: "tcp"
-
HostPort: "9013"
ContainerPort: "9013"
Protocol: "tcp"
-
HostPort: "9014"
ContainerPort: "9014"
Protocol: "tcp"
-
HostPort: "9015"
ContainerPort: "9015"
Protocol: "tcp"
-
HostPort: "9016"
ContainerPort: "9016"
Protocol: "tcp"
-
HostPort: "9017"
ContainerPort: "9017"
Protocol: "tcp"
-
HostPort: "9018"
ContainerPort: "9018"
Protocol: "tcp"
-
HostPort: "9019"
ContainerPort: "9019"
Protocol: "tcp"
-
HostPort: "9020"
ContainerPort: "9020"
Protocol: "tcp"
-
HostPort: "9021"
ContainerPort: "9021"
Protocol: "tcp"
-
HostPort: "9022"
ContainerPort: "9022"
Protocol: "tcp"
-
HostPort: "9023"
ContainerPort: "9023"
Protocol: "tcp"
-
HostPort: "9024"
ContainerPort: "9024"
Protocol: "tcp"
-
HostPort: "9025"
ContainerPort: "9025"
Protocol: "tcp"
Environment:
-
Name: "PSAPP_APP_OR_BATCH"
Value: !Ref "AppOrBatch"
-
Name: "PSAPP_DOMAIN"
Value: !Sub "UAZ${PillarUpperCase}${EnvironmentUpperCase}"
-
Name: "PSAPP_TEMPLATE"
Value: !Ref "AppTemplate"
-
Name: "PSAPP_DATABASE"
Value: !Sub "AWS${PillarUpperCase}${EnvironmentUpperCase}"
-
Name: "PSAPP_OPRID"
Value: !Ref "AppOprId"
-
Name: "PSAPP_OPRID_PW"
Value: !Ref "PSAppOpridPw"
-
Name: "PSAPP_DB_CNCT_ID"
Value: "people"
-
Name: "PSAPP_DB_CNCT_PW"
Value: "peop1e"
-
Name: "PSAPP_PILLAR"
Value: !Ref "PillarLowerCase"
-
Name: "PSAPP_ENV"
Value: !Ref "EnvironmentLowerCase"
-
Name: "PSAPP_APP_HOME_REP"
Value: !Sub "peoplesoft-app-home-${PillarLowerCase}"
-
Name: "PSAPP_BITBUCKET_BRANCH"
Value: !Ref "AppBitBucketBranch"
-
Name: "PSAPP_PIA_DOMAIN"
Value: !Sub "uaz${PillarLowerCase}${EnvironmentLowerCase}"
-
Name: "PSAPP_FQDN"
Value: !Sub "${FQDNPrefix}.${AuthTokenDomain}"
-
Name: "PSAPP_APP_ELB"
Value: !Ref AppELBDnsRecord
-
Name: "PSAPP_RUN_POST_REFRESH"
Value: !Ref "RunPostRefresh"
-
Name: "PSSES_SERVER"
Value: !Ref "AppSesServer"
-
Name: "PSSES_DEFNS_TO_INCLUDE"
Value: !Ref "AppSesDefns"
-
Name: "PS_EL_EFS_FS_ID"
Value:
Fn::ImportValue:
!Sub "${SecurityGroupCloudFormationName}-ELMEFSID"
-
Name: "PS_HR_EFS_FS_ID"
Value:
Fn::ImportValue:
!Sub "${SecurityGroupCloudFormationName}-HREFSID"
-
Name: "PS_SA_EFS_FS_ID"
Value:
Fn::ImportValue:
!Sub "${SecurityGroupCloudFormationName}-SAEncryptedEFSID"
-
Name: "PS_EFS_FS_IDS"
Value:
!Sub
- "hr=${HR_EFS_ID};el=${EL_EFS_ID};sa=${SA_EFS_ID}"
-
{ "HR_EFS_ID": !ImportValue "PeopleSoftSG-HREFSID",
"EL_EFS_ID": !ImportValue "PeopleSoftSG-ELMEFSID",
"SA_EFS_ID": !ImportValue "PeopleSoftSG-SAEncryptedEFSID"
}
-
Name: "AWS_REGION"
Value: !Sub "${AWS::Region}"
-
Name: "PSAPP_PUBSUB"
Value: !If [ThisIsNotProd,"Yes","No"]
-
Name: "PSAPP_DBGSRV"
Value: !If [ThisIsDevEnv,"Yes","No"]
-
Name: "PSAPP_WSL"
Value: !If [ThisIsDevEnv,"Yes","No"]
-
Name: "PSAPP_PSAPPSRV_MIN"
Value: !If [ThisIsNotProd,"4","6"]
-
Name: "PSAPP_PSAPPSRV_MAX"
Value: !If [ThisIsNotProd,"4","6"]
-
Name: "PSAPP_PSPUBHND_MIN"
Value: !If [ThisIsNotProd,"3","1"]
-
Name: "PSAPP_PSPUBHND_MAX"
Value: !If [ThisIsNotProd,"3","1"]
-
Name: "PSAPP_PSSUBHND_MIN"
Value: !If [ThisIsNotProd,"3","1"]
-
Name: "PSAPP_PSSUBHND_MAX"
Value: !If [ThisIsNotProd,"3","1"]
-
Name: "PSAPP_JAVAVM_XMS"
Value: "64m"
-
Name: "PSAPP_JAVAVM_XMX"
Value: "256m"
-
Name: "PSAPP_TLS12"
Value: !Ref "Tls12"
-
Name: "PSAPP_OBSCURE"
Value: !Ref "ObscureOnRefresh"
-
Name: "PSAPP_SENDER_EMAIL"
Value: !Ref "AppSenderEmail"
-
Name: "PSAPP_INAS_MAK_FILES"
Value: !Ref "InasMakFiles"
LogConfiguration:
LogDriver: "awslogs"
Options:
awslogs-group: !Ref "EcsLogGroup"
awslogs-region: "us-west-2"
awslogs-stream-prefix: "APP"
EcsTaskPsunx:
Type: "AWS::ECS::TaskDefinition"
Condition: "ThisIsProd"
Properties:
Family: !Sub "${PillarUpperCase}${EnvironmentUpperCase}-PSUNX"
NetworkMode: "bridge"
Cpu: !FindInMap [TaskCpuMemory,!Ref "BATCHInstClass","Cpu"]
Memory: !FindInMap [TaskCpuMemory,!Ref "BATCHInstClass","Memory"]
ContainerDefinitions:
-
Name: "PSUNX"
Essential: "true"
Image: !Ref AppDockerImage
Hostname: "PSUNX"
Privileged: "true"
Environment:
-
Name: "PSAPP_APP_OR_BATCH"
Value: "BATCH"
-
Name: "PSAPP_DOMAIN"
Value: !Sub "UAZ${PillarUpperCase}${EnvironmentUpperCase}"
-
Name: "PSAPP_TEMPLATE"
Value: !Ref "AppTemplate"
-
Name: "PSAPP_DATABASE"
Value: !Sub "AWS${PillarUpperCase}${EnvironmentUpperCase}"
-
Name: "PSAPP_OPRID"
Value: !Ref "AppOprId"
-
Name: "PSAPP_OPRID_PW"
Value: !Ref "PSAppOpridPw"
-
Name: "PSAPP_DB_CNCT_ID"
Value: "people"
-
Name: "PSAPP_DB_CNCT_PW"
Value: "peop1e"
-
Name: "PSAPP_PILLAR"
Value: !Ref "PillarLowerCase"
-
Name: "PSAPP_ENV"
Value: !Ref "EnvironmentLowerCase"
-
Name: "PSAPP_APP_HOME_REP"
Value: !Sub "peoplesoft-app-home-${PillarLowerCase}"
-
Name: "PSAPP_BITBUCKET_BRANCH"
Value: !Ref "AppBitBucketBranch"
-
Name: "PSAPP_PIA_DOMAIN"
Value: !Sub "uaz${PillarLowerCase}${EnvironmentLowerCase}"
-
Name: "PSAPP_FQDN"
Value: !Sub "${FQDNPrefix}.${AuthTokenDomain}"
-
Name: "PSAPP_APP_ELB"
Value: !Ref AppELBDnsRecord
-
Name: "PSAPP_RUN_POST_REFRESH"
Value: !Ref "RunPostRefresh"
-
Name: "PSSES_SERVER"
Value: !Ref "AppSesServer"
-
Name: "PSSES_DEFNS_TO_INCLUDE"
Value: !Ref "AppSesDefns"
-
Name: "PS_EL_EFS_FS_ID"
Value:
Fn::ImportValue:
!Sub "${SecurityGroupCloudFormationName}-ELMEFSID"
-
Name: "PS_HR_EFS_FS_ID"
Value:
Fn::ImportValue:
!Sub "${SecurityGroupCloudFormationName}-HREFSID"
-
Name: "PS_SA_EFS_FS_ID"
Value:
Fn::ImportValue:
!Sub "${SecurityGroupCloudFormationName}-SAEncryptedEFSID"
-
Name: "PS_EFS_FS_IDS"
Value:
!Sub
- "hr=${HR_EFS_ID};el=${EL_EFS_ID};sa=${SA_EFS_ID}"
-
{ "HR_EFS_ID": !ImportValue "PeopleSoftSG-HREFSID",
"EL_EFS_ID": !ImportValue "PeopleSoftSG-ELMEFSID",
"SA_EFS_ID": !ImportValue "PeopleSoftSG-SAEncryptedEFSID"
}
-
Name: "AWS_REGION"
Value: !Sub "${AWS::Region}"
-
Name: "PSAPP_OBSCURE"
Value: !Ref "ObscureOnRefresh"
-
Name: "PSAPP_SENDER_EMAIL"
Value: !Ref "AppSenderEmail"
-
Name: "PSAPP_INAS_MAK_FILES"
Value: !Ref "InasMakFiles"
LogConfiguration:
LogDriver: "awslogs"
Options:
awslogs-group: !Ref "EcsLogGroup"
awslogs-region: "us-west-2"
awslogs-stream-prefix: "BATCH-PSUNX"
EcsTaskPsunx1:
Type: "AWS::ECS::TaskDefinition"
Condition: "ThisIsProd"
Properties:
Family: !Sub "${PillarUpperCase}${EnvironmentUpperCase}-PSUNX1"
NetworkMode: "bridge"
Cpu: !FindInMap [TaskCpuMemory,!Ref "BATCHInstClass","Cpu"]
Memory: !FindInMap [TaskCpuMemory,!Ref "BATCHInstClass","Memory"]
ContainerDefinitions:
-
Name: "PSUNX1"
Essential: "true"
Image: !Ref AppDockerImage
Hostname: "PSUNX1"
Privileged: "true"
Environment:
-
Name: "PSAPP_APP_OR_BATCH"
Value: "BATCH"
-
Name: "PSAPP_DOMAIN"
Value: !Sub "UAZ${PillarUpperCase}${EnvironmentUpperCase}"
-
Name: "PSAPP_TEMPLATE"
Value: !Ref "AppTemplate"
-
Name: "PSAPP_DATABASE"
Value: !Sub "AWS${PillarUpperCase}${EnvironmentUpperCase}"
-
Name: "PSAPP_OPRID"
Value: !Ref "AppOprId"
-
Name: "PSAPP_OPRID_PW"
Value: !Ref "PSAppOpridPw"
-
Name: "PSAPP_DB_CNCT_ID"
Value: "people"
-
Name: "PSAPP_DB_CNCT_PW"
Value: "peop1e"
-
Name: "PSAPP_PILLAR"
Value: !Ref "PillarLowerCase"
-
Name: "PSAPP_ENV"
Value: !Ref "EnvironmentLowerCase"
-
Name: "PSAPP_APP_HOME_REP"
Value: !Sub "peoplesoft-app-home-${PillarLowerCase}"
-
Name: "PSAPP_BITBUCKET_BRANCH"
Value: !Ref "AppBitBucketBranch"
-
Name: "PSAPP_PIA_DOMAIN"
Value: !Sub "uaz${PillarLowerCase}${EnvironmentLowerCase}"
-
Name: "PSAPP_FQDN"
Value: !Sub "${FQDNPrefix}.${AuthTokenDomain}"
-
Name: "PSAPP_APP_ELB"
Value: !Ref AppELBDnsRecord
-
Name: "PSAPP_RUN_POST_REFRESH"
Value: !Ref "RunPostRefresh"
-
Name: "PSSES_SERVER"
Value: !Ref "AppSesServer"
-
Name: "PSSES_DEFNS_TO_INCLUDE"
Value: !Ref "AppSesDefns"
-
Name: "PS_EL_EFS_FS_ID"
Value:
Fn::ImportValue:
!Sub "${SecurityGroupCloudFormationName}-ELMEFSID"
-
Name: "PS_HR_EFS_FS_ID"
Value:
Fn::ImportValue:
!Sub "${SecurityGroupCloudFormationName}-HREFSID"
-
Name: "PS_SA_EFS_FS_ID"
Value:
Fn::ImportValue:
!Sub "${SecurityGroupCloudFormationName}-SAEncryptedEFSID"
-
Name: "PS_EFS_FS_IDS"
Value:
!Sub
- "hr=${HR_EFS_ID};el=${EL_EFS_ID};sa=${SA_EFS_ID}"
-
{ "HR_EFS_ID": !ImportValue "PeopleSoftSG-HREFSID",
"EL_EFS_ID": !ImportValue "PeopleSoftSG-ELMEFSID",
"SA_EFS_ID": !ImportValue "PeopleSoftSG-SAEncryptedEFSID"
}
-
Name: "AWS_REGION"
Value: !Sub "${AWS::Region}"
-
Name: "PSAPP_OBSCURE"
Value: !Ref "ObscureOnRefresh"
-
Name: "PSAPP_SENDER_EMAIL"
Value: !Ref "AppSenderEmail"
-
Name: "PSAPP_INAS_MAK_FILES"
Value: !Ref "InasMakFiles"
LogConfiguration:
LogDriver: "awslogs"
Options:
awslogs-group: !Ref "EcsLogGroup"
awslogs-region: "us-west-2"
awslogs-stream-prefix: "BATCH-PSUNX1"
EcsTaskIb:
Type: "AWS::ECS::TaskDefinition"
Condition: "ThisIsProd"
Properties:
Family: !Sub "${PillarUpperCase}${EnvironmentUpperCase}-IB"
NetworkMode: "bridge"
Cpu: !FindInMap [TaskCpuMemory,!Ref "IBInstClass","Cpu"]
Memory: !FindInMap [TaskCpuMemory,!Ref "IBInstClass","Memory"]
ContainerDefinitions:
-
Name: "WEB"
Essential: "true"
Image: !Ref WebDockerImage
Links:
- "APPIB:appib"
PortMappings:
-
HostPort: "0"
ContainerPort: "80"
Protocol: "tcp"
Hostname: !Sub "${PillarLowerCase}${EnvironmentLowerCase}-webib"
Privileged: "true"
Environment:
-
Name: "PS_EL_EFS_FS_ID"
Value:
Fn::ImportValue:
!Sub "${SecurityGroupCloudFormationName}-ELMEFSID"
-
Name: "PS_HR_EFS_FS_ID"
Value:
Fn::ImportValue:
!Sub "${SecurityGroupCloudFormationName}-HREFSID"
-
Name: "PS_SA_EFS_FS_ID"
Value:
Fn::ImportValue:
!Sub "${SecurityGroupCloudFormationName}-SAEncryptedEFSID"
-
Name: "PS_EFS_FS_IDS"
Value:
!Sub
- "hr=${HR_EFS_ID};el=${EL_EFS_ID};sa=${SA_EFS_ID}"
-
{ "HR_EFS_ID": !ImportValue "PeopleSoftSG-HREFSID",
"EL_EFS_ID": !ImportValue "PeopleSoftSG-ELMEFSID",
"SA_EFS_ID": !ImportValue "PeopleSoftSG-SAEncryptedEFSID"
}
-
Name: "AWS_REGION"
Value: !Sub "${AWS::Region}"
-
Name: "PSWEB_APP_ELB"
Value: "appib"
-
Name: "PSWEB_AUTH_TOKEN_DOMAIN"
Value: !Ref "AuthTokenDomain"
-
Name: "PSWEB_BITBUCKET_BRANCH"
Value: !Ref "AppBitBucketBranch"
-
Name: "PSWEB_DOMAIN"
Value: !Sub "uaz${PillarLowerCase}${EnvironmentLowerCase}"
-
Name: "PSWEB_PROFILE_NAME"
Value: !Ref "WebProfileName"
-
Name: "PSWEB_FQDN"
Value: !Sub "${FQDNPrefix}.${AuthTokenDomain}"
-
Name: "PSWEB_PSREPORTS_DIR"
Value: !Ref "PsReportsDirecory"
-
Name: "PSWEB_PILLAR"
Value: !Ref "PillarLowerCase"
-
Name: "PSWEB_TLS12"
Value: !Ref "Tls12"
LogConfiguration:
LogDriver: "awslogs"
Options:
awslogs-group: !Ref "EcsLogGroup"
awslogs-region: "us-west-2"
awslogs-stream-prefix: "WEBIB"
-
Name: "APPIB"
Essential: "true"
Image: !Ref AppDockerImage
Hostname: "appib"
Privileged: "true"
PortMappings:
-
HostPort: "9000"
ContainerPort: "9000"
Protocol: "tcp"
-
HostPort: "9001"
ContainerPort: "9001"
Protocol: "tcp"
-
HostPort: "9002"
ContainerPort: "9002"
Protocol: "tcp"
-
HostPort: "9003"
ContainerPort: "9003"
Protocol: "tcp"
-
HostPort: "9004"
ContainerPort: "9004"
Protocol: "tcp"
-
HostPort: "9005"
ContainerPort: "9005"
Protocol: "tcp"
-
HostPort: "9006"
ContainerPort: "9006"
Protocol: "tcp"
-
HostPort: "9007"
ContainerPort: "9007"
Protocol: "tcp"
-
HostPort: "9008"
ContainerPort: "9008"
Protocol: "tcp"
-
HostPort: "9009"
ContainerPort: "9009"
Protocol: "tcp"
-
HostPort: "9010"
ContainerPort: "9010"
Protocol: "tcp"
-
HostPort: "9011"
ContainerPort: "9011"
Protocol: "tcp"
-
HostPort: "9012"
ContainerPort: "9012"
Protocol: "tcp"
-
HostPort: "9013"
ContainerPort: "9013"
Protocol: "tcp"
-
HostPort: "9014"
ContainerPort: "9014"
Protocol: "tcp"
-
HostPort: "9015"
ContainerPort: "9015"
Protocol: "tcp"
-
HostPort: "9016"
ContainerPort: "9016"
Protocol: "tcp"
-
HostPort: "9017"
ContainerPort: "9017"
Protocol: "tcp"
-
HostPort: "9018"
ContainerPort: "9018"
Protocol: "tcp"
-
HostPort: "9019"
ContainerPort: "9019"
Protocol: "tcp"
-
HostPort: "9020"
ContainerPort: "9020"
Protocol: "tcp"
-
HostPort: "9021"
ContainerPort: "9021"
Protocol: "tcp"
-
HostPort: "9022"
ContainerPort: "9022"
Protocol: "tcp"
-
HostPort: "9023"
ContainerPort: "9023"
Protocol: "tcp"
-
HostPort: "9024"
ContainerPort: "9024"
Protocol: "tcp"
-
HostPort: "9025"
ContainerPort: "9025"
Protocol: "tcp"
Environment:
-
Name: "PSAPP_APP_OR_BATCH"
Value: !Ref "AppOrBatch"
-
Name: "PSAPP_DOMAIN"
Value: !Sub "UAZ${PillarUpperCase}${EnvironmentUpperCase}"
-
Name: "PSAPP_TEMPLATE"
Value: !Ref "AppTemplate"
-
Name: "PSAPP_DATABASE"
Value: !Sub "AWS${PillarUpperCase}${EnvironmentUpperCase}"
-
Name: "PSAPP_OPRID"
Value: !Ref "AppOprId"
-
Name: "PSAPP_OPRID_PW"
Value: !Ref "PSAppOpridPw"
-
Name: "PSAPP_DB_CNCT_ID"
Value: "people"
-
Name: "PSAPP_DB_CNCT_PW"
Value: "peop1e"
-
Name: "PSAPP_PILLAR"
Value: !Ref "PillarLowerCase"
-
Name: "PSAPP_ENV"
Value: !Ref "EnvironmentLowerCase"
-
Name: "PSAPP_APP_HOME_REP"
Value: !Sub "peoplesoft-app-home-${PillarLowerCase}"
-
Name: "PSAPP_BITBUCKET_BRANCH"
Value: !Ref "AppBitBucketBranch"
-
Name: "PSAPP_PIA_DOMAIN"
Value: !Sub "uaz${PillarLowerCase}${EnvironmentLowerCase}"
-
Name: "PSAPP_FQDN"
Value: !Sub "${FQDNPrefix}.${AuthTokenDomain}"
-
Name: "PSAPP_APP_ELB"
Value: !Ref AppELBDnsRecord
-
Name: "PSAPP_RUN_POST_REFRESH"
Value: !Ref "RunPostRefresh"
-
Name: "PSSES_SERVER"
Value: !Ref "AppSesServer"
-
Name: "PSSES_DEFNS_TO_INCLUDE"
Value: !Ref "AppSesDefns"
-
Name: "PS_EL_EFS_FS_ID"
Value:
Fn::ImportValue:
!Sub "${SecurityGroupCloudFormationName}-ELMEFSID"
-
Name: "PS_HR_EFS_FS_ID"
Value:
Fn::ImportValue:
!Sub "${SecurityGroupCloudFormationName}-HREFSID"
-
Name: "PS_SA_EFS_FS_ID"
Value:
Fn::ImportValue:
!Sub "${SecurityGroupCloudFormationName}-SAEncryptedEFSID"
-
Name: "PS_EFS_FS_IDS"
Value:
!Sub
- "hr=${HR_EFS_ID};el=${EL_EFS_ID};sa=${SA_EFS_ID}"
-
{ "HR_EFS_ID": !ImportValue "PeopleSoftSG-HREFSID",
"EL_EFS_ID": !ImportValue "PeopleSoftSG-ELMEFSID",
"SA_EFS_ID": !ImportValue "PeopleSoftSG-SAEncryptedEFSID"
}
-
Name: "AWS_REGION"
Value: !Sub "${AWS::Region}"
-
Name: "PSAPP_PUBSUB"
Value: "Yes"
-
Name: "PSAPP_DBGSRV"
Value: "No"
-
Name: "PSAPP_WSL"
Value: "No"
-
Name: "PSAPP_PSAPPSRV_MIN"
Value: "6"
-
Name: "PSAPP_PSAPPSRV_MAX"
Value: "6"
-
Name: "PSAPP_PSPUBHND_MIN"
Value: "6"
-
Name: "PSAPP_PSPUBHND_MAX"
Value: "6"
-
Name: "PSAPP_PSSUBHND_MIN"
Value: "6"
-
Name: "PSAPP_PSSUBHND_MAX"
Value: "6"
-
Name: "PSAPP_JAVAVM_XMS"
Value: "64m"
-
Name: "PSAPP_JAVAVM_XMX"
Value: "256m"
-
Name: "PSAPP_TLS12"
Value: !Ref "Tls12"
-
Name: "PSAPP_OBSCURE"
Value: !Ref "ObscureOnRefresh"
-
Name: "PSAPP_SENDER_EMAIL"
Value: !Ref "AppSenderEmail"
-
Name: "PSAPP_INAS_MAK_FILES"
Value: !Ref "InasMakFiles"
LogConfiguration:
LogDriver: "awslogs"
Options:
awslogs-group: !Ref "EcsLogGroup"
awslogs-region: "us-west-2"
awslogs-stream-prefix: "APPIB"
EcsServiceWebAppPs:
Type: "AWS::ECS::Service"
Properties:
ServiceName: !Sub "${PillarUpperCase}${EnvironmentUpperCase}-WAP"
Cluster: !Ref EcsCluster
TaskDefinition: !Ref EcsTaskWebAppPs
HealthCheckGracePeriodSeconds: 900
DesiredCount: !Ref "WAPInstCount"
Role: "ecsServiceRole"
LoadBalancers:
-
ContainerName: "WEB"
ContainerPort: "80"
TargetGroupArn: !Ref EnvWebELBV2TGWAP
Description: DB Snapshot from Which to Restore From Type: String Default: "peoplesoft-eldev-final-snapshot"