You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
ecs compose x can successfully find EFS file systems using Lookup, but fails to bind them to services because of an error in one of the Python modules. efs.efs_ecs.looked_up_efs_family_hook line 236 tries to pass family.stack into add_security_group_ingress, but that function expects just the family object itself, as it tries to access .stack attribute again, which fails and causes the tool to terminate execution. Removing .stack and passing the family object solves the issue completely.
To Reproduce
Steps to reproduce the behavior:
Create a simple VPC and EFS file system.
Use the shared test case yaml file with your VPC and EFS
Try to render it using the ecs compose x CLI tool from venv+pip installation
How you installed ECS ComposeX: virutalenv + pip
How you are executing it ? : As a CLI tool, as a library, in lambda? CLI
I can make a PR, I will need a bit of time to setup the dev environment though.
Happy either way :)
If I don't see a PR coming in later I will submit a PR and ping you the branch to test locally for yourself to confirm all is working properly.
lorienx0
pushed a commit
to lorienx0/ecs_composex
that referenced
this issue
Aug 12, 2024
Describe the bug
ecs compose x can successfully find EFS file systems using Lookup, but fails to bind them to services because of an error in one of the Python modules.
efs.efs_ecs.looked_up_efs_family_hook
line 236 tries to passfamily.stack
intoadd_security_group_ingress
, but that function expects just thefamily
object itself, as it tries to access.stack
attribute again, which fails and causes the tool to terminate execution. Removing.stack
and passing thefamily
object solves the issue completely.To Reproduce
Steps to reproduce the behavior:
Create a simple VPC and EFS file system.
Use the shared test case yaml file with your VPC and EFS
Try to render it using the ecs compose x CLI tool from venv+pip installation
AttributeError: stack
Expected behavior
CLI tool rendering CFN stacks, not terminating abnormally.
Logs
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: