Skip to content

Commit

Permalink
Fixed EFS Services gen
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnPreston committed Mar 5, 2024
1 parent 906ef7b commit ec1dcf6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ecs_composex/common/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,10 @@ def set_efs(self) -> None:
"Properties": volume.efs_definition,
"MacroParameters": volume.parameters,
"Lookup": volume.lookup,
"Services": [
{"name": service.name, "access": "RW"}
"Services": {
service.name: {"Access": "RW"}
for service in volume.services
],
},
"Settings": {"Subnets": "StorageSubnets"},
"Volume": volume,
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Feature: ecs_composex.cloudmap
Feature: ecs_composex.efs

@compose
Scenario Outline: AWS CloudMap network settings
@efs

Scenario Outline: AWS EFS/NFS
Given I use <file_path> as my docker-compose file and <override_file> as override file
Then I render the docker-compose to composex to validate
And I render all files to verify execution
Expand Down
2 changes: 2 additions & 0 deletions use-cases/blog.features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ services:
size: 1024
- normal-vol:/var/tmp/shared
- some-volume:/var/anotherpath:ro
- shared-images:/app/images

links:
- app03:dateteller
ports:
Expand Down

0 comments on commit ec1dcf6

Please sign in to comment.