neilkuan / cdk-budibase

Use AWS CDK deploy Budibase Server.
Apache License 2.0
8 stars 0 forks source link

kind of curious why uid & gui 1001 #95

Open alvarolorentedev opened 1 year ago

alvarolorentedev commented 1 year ago

hello @neilkuan thanks a lot for the awesome project. I am kind of curious about the EFS uid and gui. I tried to find out why to use them and have not find any reference. I am also facing issues of chown changes in EFS so kind of curious if they are related. Thanks in advance for the insights 😄

neilkuan commented 1 year ago

I have referred to several articles and GitHub repositories to reach my conclusion:

Article: "How to Construct ECS Service with EFS Volume" by Ahmad Reza (Link: https://ahmadreza.com/2023/02/how-to-construct-ecs-service-with-efs-volume/) GitHub Repository: "Fargate with EFS" by Miztiik (Link: https://github.com/miztiik/fargate-with-efs) GitHub Repository: "Example CDK Docker ES EFS" by awesome-cdk (Link: https://github.com/awesome-cdk/example-cdk-docker-es-efs)

alvarolorentedev commented 1 year ago

thanks for sharing 😃

I went through the weekend fighting a bit around this, so it is great to have some references.

In my case, actually 1001 did not work, I could actually run budibase, but I was unable to connect my email service or save connections to MS SQL Databases. Have you encountered anything similar?

What was happening is it was not possible to do the chmod to give the user ownership of the budibase files after creating the resources. I change to 1000 and manage to get it working.

hunsche commented 1 month ago

Hi everyone,

I wanted to share a solution that worked perfectly for me when encountering this issue. I made a few small adjustments, specifically, I set the user as '0' in the code, as shown below:

createAcl: {
  ownerGid: '0',
  ownerUid: '0',
  permissions: '0755',
},
posixUser: {
  uid: '0',
  gid: '0',
},

With these settings, everything worked smoothly.