Hi !
Attempts to deploy 3.52.1-stable on ECS/Fargate fail on the deployment of the 'retool' container with:
June 06, 2024 at 17:08 (UTC+2:00) sed: can't read ./dist/mobile/*.js: No such file or directory retool
June 06, 2024 at 17:08 (UTC+2:00) not untarring the bundle
for reference, my task definition is as follows:
RetoolTask:
Type: AWS::ECS::TaskDefinition
Properties:
NetworkMode: awsvpc
Cpu: !Ref RetoolVCpu
Memory: !Ref RetoolMemory
Family: "retool"
TaskRoleArn: !Ref "RetoolTaskRole"
ExecutionRoleArn: !Ref "RetoolExecutionRole"
RequiresCompatibilities:
- FARGATE
ContainerDefinitions:
- Name: "retool"
Essential: "true"
Image: !Ref "Image"
LogConfiguration:
LogDriver: awslogs
Options:
awslogs-group: !Ref "CloudwatchLogsGroup"
awslogs-region: !Ref "AWS::Region"
awslogs-stream-prefix: "SERVICE_RETOOL"
Environment:
- Name: NODE_ENV
Value: production
- Name: SERVICE_TYPE
Value: MAIN_BACKEND,DB_CONNECTOR,DB_SSH_CONNECTOR
- Name: "FORCE_DEPLOYMENT"
Value: !Ref "Force"
- Name: POSTGRES_DB
Value: !If [CreateDatabase, "hammerhead_production", !Ref DBName]
- Name: POSTGRES_HOST
Value:
!If [
CreateDatabase,
!GetAtt [RetoolRDSInstance, Endpoint.Address],
!Ref DBHost,
]
- Name: POSTGRES_SSL_ENABLED
Value: "true"
- Name: POSTGRES_PORT
Value: "5432"
- Name: POSTGRES_USER
Value:
!Join [
"",
[
"{{resolve:secretsmanager:",
!Ref RetoolRDSSecret,
":SecretString:username}}",
],
]
- Name: POSTGRES_PASSWORD
Value:
!Join [
"",
[
"{{resolve:secretsmanager:",
!Ref RetoolRDSSecret,
":SecretString:password}}",
],
]
- Name: JWT_SECRET
Value:
!Join [
"",
[
"{{resolve:secretsmanager:",
!Ref RetoolJWTSecret,
":SecretString:password}}",
],
]
- Name: ENCRYPTION_KEY
Value:
!Join [
"",
[
"{{resolve:secretsmanager:",
!Ref RetoolEncryptionKeySecret,
":SecretString:password}}",
],
]
- Name: LICENSE_KEY
Value: !Ref RetoolLicenceKey
- Name: SANDBOX_DOMAIN
Value: !Ref SandboxDomain
- Name: FORWARDABLE_SAME_DOMAIN_COOKIES_ALLOWLIST
Value: access_token_cookie,refresh_token_cookie
- Name: DISABLE_INTERCOM
Value: "true"
- Name: ALLOW_SAME_ORIGIN_OPTION
Value: "true"
- Name: POSTGRES_SSL_REJECT_UNAUTHORIZED=
Value: "false"
# # Remove below when serving Retool over https
# - Name: COOKIE_INSECURE
# Value: "true"
PortMappings:
- ContainerPort: 3000
# HostPort: '80'
Command: ["./docker_scripts/start_api.sh"]
Any clues ?
thanks
jfp