Skip to content

Commit 19c2ec0

Browse files
authored
Fix output for Service Subnets (#770)
* Bump to 1.1.3
1 parent 1dc7371 commit 19c2ec0

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

ecs_composex/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
__author__ = """John Preston"""
77
__email__ = "[email protected]"
8-
__version__ = "1.1.2"
8+
__version__ = "1.1.3"

ecs_composex/ecs/ecs_family/__init__.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,14 +300,21 @@ def generate_outputs(self):
300300
"""
301301
Generates a list of CFN outputs for the ECS Service and Task Definition
302302
"""
303-
if self.service_networking.security_group:
303+
if (
304+
self.service_compute.launch_type != "EXTERNAL"
305+
and self.service_networking.security_group
306+
):
304307
self.outputs.append(
305308
CfnOutput(
306309
f"{self.logical_name}GroupId",
307310
Value=Ref(self.service_networking.security_group.parameter.title),
308311
)
309312
)
310-
if ecs_params.SERVICE_SUBNETS.title in self.stack.stack_template.parameters:
313+
if (
314+
self.service_networking.subnets_output
315+
and isinstance(self.service_networking.subnets_output, Ref)
316+
and self.service_compute.launch_type != "EXTERNAL"
317+
):
311318
self.outputs.append(
312319
CfnOutput(
313320
ecs_params.SERVICE_SUBNETS.title,

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "ecs_composex"
3-
version = "1.1.2"
3+
version = "1.1.3"
44
description = "Manage, Configure and Deploy your services and AWS services and applications from your docker-compose definition"
55
authors = ["John Preston <[email protected]>"]
66
maintainers = ["John Preston <[email protected]>"]
@@ -84,7 +84,7 @@ sphinx-material = "^0.0.35"
8484
github_url = "https://github.com/compose-x/ecs_composex"
8585

8686
[tool.tbump.version]
87-
current = "1.1.2"
87+
current = "1.1.3"
8888
regex = '''
8989
(?P<major>\d+)
9090
\.

0 commit comments

Comments
 (0)