Valentin Pezon
10/18/2023, 8:36 PMFleetDM on AWS, using Terraform :)
We already have a private VPC, cluster, subnets, route table.. where we host our apps, so we started to work with the “`BYO-ECS`” module since we just need the Fleet instance to be deployed on a fargate
Here is a sample of our config (see image)
We have a problem with the password_secret_arn , whenever we put the ARN we get this error in the fargate deployment process :
Task stopped at: 2023-10-18T09:04:31.028Z
ResourceInitializationError: unable to pull secrets or registry auth: execution resource retrieval failed: unable to retrieve secret from asm: service call has been retried 5 time(s): failed to fetch secret arn:aws:secretsmanager:eu-west-3:xxxxx:secret:FLEET_PRIMO_MYSQL_PASSWORD-xxxx from secrets manager: RequestCanceled: request context canceled caused by: context deadline exceeded. Please check your task network configuration.
This means our ECS cluster can’t reach the secretsmanager services
Any idea on how we can solve it using terraform ? We noticed that if we clone the byo-ecs terraform repo and add assign_public_ip = true under the network_configuration of resource resource "aws_ecs_service" "fleet" {} , it works well and the fargate task manage to deploy without this error
We have another error afterwards but it’s another story haha
Any idea on what we can add in our own configuration to make this thing work ?
Adding assign_public_ip = true in the byo-ecs repo was just a quick workaround obviously
thanks !Grant Bilstad
10/18/2023, 8:44 PMBenjamin Edwards
10/18/2023, 9:22 PMValentin Pezon
10/19/2023, 7:15 AMBenjamin Edwards
10/19/2023, 12:58 PMValentin Pezon
10/19/2023, 1:29 PM2023/10/19 13:23:28 FAIL 20230315104937_EnsureUniformCollation.go (fixing host_users table: aggregating dupes: Error 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '","), ']') as ids
FROM host_users
GROUP BY
host_id,' at line 3), quitting migration.Kathy Satterlee
10/19/2023, 2:03 PMValentin Pezon
10/19/2023, 2:05 PMMysql version 8.0.30Kathy Satterlee
10/19/2023, 2:16 PMKathy Satterlee
10/19/2023, 3:01 PMprepare db step?Valentin Pezon
10/19/2023, 3:21 PMKathy Satterlee
10/19/2023, 4:04 PMBenjamin Edwards
10/19/2023, 4:06 PMKathy Satterlee
10/19/2023, 4:06 PMValentin Pezon
10/19/2023, 7:28 PMmigration-module ended up throwing an error so we tried this as a workaround
This thread is getting confusing ahha, I suggest we wrap up this thread here and we continue on our team slack, I will make a proper message with our exact config and proper question regarding our problems
Thanks @Kathy Satterlee & @Benjamin Edwards 🙏Kathy Satterlee
10/19/2023, 8:05 PM