Skip to content

Commit

Permalink
Release 0.24.0 (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnPreston authored Nov 21, 2023
1 parent cc9f9b4 commit 71a5047
Show file tree
Hide file tree
Showing 8 changed files with 125 additions and 43 deletions.
84 changes: 84 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,90 @@
History
=======

0.24.0 (2023-11-21)
===================

0.23 has had a number of fixes, and small improvements but no significant new feature.
On the other hand, it has had new contributors and bug reports, so I'd like to thank you all for the interest and
time given to the project.

New features
-----------------

* 71fbeb0 Allows to set DomainName in DHCP Options (#713) (John Preston)
* 37d5bac Enable to set DeletionPolicy at the module level, applying to the module stack (#688) (John Preston)
* 53895e0 Docker image as meta docker label (John "Preston" Mille)
* 7f288f4 Expose env vars as parameters to the stack (#682) (John Preston)
* b4e8e6b Basic working x-aps (John "Preston" Mille)

General improvements & Bug fixes
----------------------------------

* 1d1cc0c Fixes non working FirelensConfiguration.Options in x-logging.Firelens.Advanced (#711) (John Preston)
* b242d7e Working eval for compute platform (#706) (John Preston)
* 2c91974 Build docker image only for py3.10 (John "Preston" Mille)
* 6b23aae Fixing x-rds connection string build to something simpler (John "Preston" Mille)
* fa98419 Removes env var if var.Name is already set in secrets (#710) (John Preston)
* df66b95 Generate a connection string from existing RDS Secret (#712) (John Preston)
* 0d91541 Added new oci type and better handling of the docker interpolate errors (John "Preston" Mille)
* 2d04b3b Fix elbv2 conditions without setting access (#702) (John Preston)
* 51bae41 [FIX] x-cloudmap VpcId use Ref on Parameter (#705) (@thorfi)
* cb2c62e Fix/service multi families assignment (#701) (John Preston)
* b3b95a8 Fix missing ingress.SG AccountOwner parameter (#703) (John Preston)
* 3eafa5e [FIX] elbv2 with empty DefaultActions crashes on target with Conditions (#697) (@thorfi)
* b0d7bc1 Removing enum for Target attributes to enable users to add any new ones (John "Preston" Mille)
* a8a0190 Add new TGT Group attribute (John "Preston" Mille)
* 2d2ffee Fix condition test for AWS Source ingress (John "Preston" Mille)
* 975f1f0 Using troposphere 4.5.1 (#691) (John Preston)
* 84e4ce1 Fix/duplicate efs entries (#694) (John Preston)
* 4b882c7 Bump to 0.23.27-rc0 (John "Preston" Mille)
* 2182121 Change the way epoch timestamp is generated (#693) (Sam D)
* 7cd3b19 Fix x-sns validation (#690) (John Preston)
* 7a7c3ef Using long format of YAML Functions to be compat with all YAML loaders (John "Preston" Mille)
* 7b47965 Bump to 0.23.24 (John "Preston" Mille)
* 987fb3a Add docker label with original docker image tag if interpolated (John "Preston" Mille)
* 2b3a154 Fixing up launch type (#686) (John Preston)
* bedd9f5 Better EC2 default policy. Log Router preload use digest (John "Preston" Mille)
* e41243e Granting Regional describe access (John "Preston" Mille)
* ecdef96 Ensuring that we don't tag Event:Rule (#685) (John Preston)
* 8e19e0d Updated deps (John "Preston" Mille)
* 6e22aea Fix firelens config files import (#683) (John Preston)
* d288d52 Uniqfy rules with the priority count (#681) (John Preston)
* a10bd10 x-kinesis - Fixing up conditions for new stream. Fix Lookup. (#678) (John Preston)
* 1c9f234 Removing arbitrary max for fluent-bit sidecar memory (John "Preston" Mille)
* 394be4c x-elbv2.TargetGroups (#674) (John Preston)
* 7473448 VPC Subnets discovery/settings improvements (#675) (John Preston)
* 92a5016 Fix/elbv2 alarms bug (#672) (John Preston)
* 9c3fbb1 Improve scheduled action and docs (#671) (John Preston)
* f0f09b5 Support for Scheduled Actions (#670) (John Preston)
* 0c80e8a Allow to update CPU Limit on FluentBit sidecar (#669) (John Preston)
* ddb613e Sort env vars and secrets by Name to provide consistency across Task Definitions (#668) (John Preston)
* 98a2bc9 Fixed memory assignment for fluent-bit sidecar (#667) (John Preston)
* c3b921d Updated deps (John "Preston" Mille)
* cb47e0c Changing confusing ECR Scan outcome (John "Preston" Mille)
* b8b6c6b Correct warning on max CPU Count for fargate (John "Preston" Mille)
* 5b96f57 x-ecs capacity providers when empty lauch type (#664) (John Preston)
* 691e2bd Fixed validation condition logic (#663) (John Preston)
* 4d58860 Fix ECR scans conditions (#662) (John Preston)
* ac142b2 x-wafv2_webacl (#661) (John Preston)
* 7f159c4 Fix logging for service image. (John "Preston" Mille)
* a58e731 Improved logging (John "Preston" Mille)
* 53774e1 Fix x-ecr security findings error (John "Preston" Mille)
* 06b1fe4 Allow to specify Lookup of private zones. Adds logical name of DNS record to differentiate overlapping zones in the same x-route53 (John "Preston" Mille)
* b52dfe3 Fixing up elbv2 subnets assignments (John "Preston" Mille)
* a1805dc Fix resource.Tags import (#659) (John Preston)
* c302b1a Fixing RDS tests (John "Preston" Mille)
* a359787 Fixing loglevel error in CLI (John "Preston" Mille)
* 63b2f8b Updated dockerfile using main upstream python (John "Preston" Mille)
* 95ae027 Updated SNS topics imports. Updated post_processing to manage list (#656) (John Preston)
* 5994b6d Enabling CW Agent image override/digest when enabling EMF (#655) (John Preston)
* e0ff828 Resource Logical ID should not change based on the resource as to force replacement on update (John "Preston" Mille)
* 68b40a2 Fix for alarms families iteration (John "Preston" Mille)
* 68bbce4 Fixed using the same container as target more than once (#653) (John Preston)

* 3c7a262 CW Agent configuration & EMF improvement (#651) (John Preston)


0.23.0 (2023-01-11)
===================

Expand Down
2 changes: 1 addition & 1 deletion ecs_composex/aps/aps_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def add_extra_outputs(self):
def create_aps_log_group(
new_aps: ManagedPrometheus,
props: dict,
macro_value: Union[bool, dict],
macro_value: bool | dict,
template: Template,
) -> None:
"""Handles the CreateNewLogGroup macro parameter"""
Expand Down
4 changes: 2 additions & 2 deletions ecs_composex/kinesis/kcl_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def add_cloudwatch_metric_data_permission(family: ComposeFamily) -> None:
)


def define_dynamodb_statement(dynamodb_definition: Union[bool, dict]) -> list:
def define_dynamodb_statement(dynamodb_definition: bool | dict) -> list:
sid = "DynamodbKCL"
if isinstance(dynamodb_definition, bool):
statement = [
Expand Down Expand Up @@ -108,7 +108,7 @@ def define_dynamodb_statement(dynamodb_definition: Union[bool, dict]) -> list:


def add_dynamodb_permissions(
family: ComposeFamily, dynamodb_definition: Union[bool, dict]
family: ComposeFamily, dynamodb_definition: bool | dict
) -> None:
"""
Adds permissions to access DynamoDB
Expand Down
68 changes: 33 additions & 35 deletions ecs_composex/mods_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ def __init__(
res_key: str,
x_class,
posix_path,
resource_class: Union[
XResource,
ServicesXResource,
ApiXResource,
AwsEnvironmentResource,
NetworkXResource,
DatabaseXResource,
] = None,
resource_class: (
XResource
| ServicesXResource
| ApiXResource
| AwsEnvironmentResource
| NetworkXResource
| DatabaseXResource
) = None,
definition: dict = None,
):
if definition and not isinstance(definition, dict):
Expand Down Expand Up @@ -90,14 +90,14 @@ def __del__(self):
@property
def resource_class(
self,
) -> Union[
XResource,
ServicesXResource,
ApiXResource,
AwsEnvironmentResource,
NetworkXResource,
DatabaseXResource,
]:
) -> (
XResource
| ServicesXResource
| ApiXResource
| AwsEnvironmentResource
| NetworkXResource
| DatabaseXResource
):
return self._resource_class

@property
Expand Down Expand Up @@ -153,29 +153,29 @@ def resources(
self,
) -> dict[
str,
Union[
XResource,
ServicesXResource,
ApiXResource,
AwsEnvironmentResource,
NetworkXResource,
DatabaseXResource,
],
(
XResource
| ServicesXResource
| ApiXResource
| AwsEnvironmentResource
| NetworkXResource
| DatabaseXResource
),
]:
return self._resources

@property
def resources_list(
self,
) -> list[
Union[
XResource,
ServicesXResource,
ApiXResource,
AwsEnvironmentResource,
NetworkXResource,
DatabaseXResource,
]
(
XResource
| ServicesXResource
| ApiXResource
| AwsEnvironmentResource
| NetworkXResource
| DatabaseXResource
)
]:
return [_res for _res in self._resources.values() if _res is not None]

Expand Down Expand Up @@ -343,9 +343,7 @@ def add_module_from_module_def(self, res_key: str, mod_key: str, module_name: st
if extension_module:
return extension_module

def load_module(
self, res_key: str, res_def: Union[dict, bool]
) -> Union[XResourceModule, None]:
def load_module(self, res_key: str, res_def: dict | bool) -> XResourceModule | None:
if not res_key.startswith(X_KEY):
return
mod_key = re.sub(X_KEY, "", res_key)
Expand Down
2 changes: 1 addition & 1 deletion ecs_composex/rds/rds_db_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def override_set_properties(props: dict, db: Rds) -> None:
)


def determine_resource_type(db_name: str, properties: dict) -> Union[type, None]:
def determine_resource_type(db_name: str, properties: dict) -> type | None:
"""
Function to determine if the properties are the ones of a DB Cluster or DB Instance.
Default assumes DBCluster if it can't make it out from properties.
Expand Down
2 changes: 1 addition & 1 deletion ecs_composex/rds/rds_parameter_groups_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def get_db_cluster_engine_parameter_group_defaults(

def get_family_from_engine_version(
engine_name: str, engine_version: str, session: Session = None
) -> Union[str, None]:
) -> str | None:
"""
Get the engine family from engine name and version
"""
Expand Down
4 changes: 2 additions & 2 deletions ecs_composex/rds_resources_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def add_secrets_access_policy(
service_family: ComposeFamily,
secret_import,
db: DatabaseXResource,
use_task_role: Union[bool, dict] = False,
use_task_role: bool | dict = False,
) -> None:
"""
Function to add or append policy to access DB Secret for the Execution Role
Expand Down Expand Up @@ -451,7 +451,7 @@ def add_secrets_access_policy(


def handle_task_role_access(
use_task_role: Union[dict, bool],
use_task_role: dict | bool,
policy: PolicyType,
secret_import,
task_role,
Expand Down
2 changes: 1 addition & 1 deletion ecs_composex/resource_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def define_iam_permissions(
dest_resource_template,
policy_title,
access_type_policy_model,
access_definition: Union[str, dict],
access_definition: str | dict,
resource_arns,
access_subkey: str = None,
roles=None,
Expand Down

0 comments on commit 71a5047

Please sign in to comment.