Change Log¶
All notable changes to this project will be documented in this file.
0.10.3 - [2021-08-12]¶
Fixes¶
- Update condition handling for
IpAddress
to handleIPv*Network
comparison withsubnet_of
method.
0.10.2 - [2021-08-05]¶
Fixes¶
- Update evaluators on Conditions when
arg_b
is of type List, to match AWS sema\ntics. - Update
IPv4Network
andIPv6Network
to not be strict when parsing strings.
Before:A ValueError is raised if address does not represent a valid IPv4 or IPv6 address, or if the network has host bits set.
After:A ValueError is raised if address does not represent a valid IPv4 or IPv6 address.
0.10.1 - [2021-07-23]¶
Fixes¶
- Fix bug when calling
resolve
onCFModel
with default (empty dict)Conditions
0.10.0 - [2021-06-14]¶
Additions¶
- Resolver able to handle AWS SSM values in templates.
Fixes¶
- Update
CLOUDFORMATION_ACTIONS
0.9.1 - [2021-05-06]¶
Fixes¶
- Update
CLOUDFORMATION_ACTIONS
StatementCondition
only builds evaluator ifeval
is called.
0.9.0 - [2021-05-05]¶
Improvements¶
- Add
StatementCondition
class, with a function resolver as a replacement forConditionDict
.
Removes¶
- Removes constants
CONDITION_MODIFIERS
andCONDITION_FUNCTIONS
frompycfmodel/constants.py
- Removes
is_conditional_dict
frompycfmodel/utils.py
Fixes¶
- Update
CLOUDFORMATION_ACTIONS
- Change Metadata dict values to accept any type.
0.8.4 - [2021-04-27]¶
Fixes¶
- Fix to ensure all
Statement.Effect
fields are always capitalized - Update
CLOUDFORMATION_ACTIONS
0.8.3 - [2021-02-15]¶
Fixes¶
- Fix to
policy_documents
method onEC2 VPC Endpoint
resource type for when no policy document is added to the resource.
0.8.2 - [2021-02-11]¶
Additions¶
- Add
EC2 VPC Endpoint Policy
resource.
Changes¶
- Update list of all CloudFormation actions.
0.8.1 - [2020-11-27]¶
Additions¶
- New property
policy_documents
to Resources - New
model.utils
module - New helper dataclass:
model.utils.OptionallyNamedPolicyDocument
Improvements¶
- Added basic tests for the resources that didn't have
Changes¶
_build_regex
moved toutils
and renamed toregex_from_cf_string
Fixes¶
- Fixed IAMGroup model
0.8.0 - [2020-11-23]¶
Additions¶
- New function
pycfmodel.model.resources.properties.policy_document.PolicyDocument.get_allowed_actions
Improvements¶
- Improve action expansion to support
NotAction
- Improve Cloudformation action file generator
- Update Cloudformation actions to latest
- Improved tests
- New optional parameters added to
pycfmodel.model.resources.properties.statement.Statement.get_action_list
- New optional parameters added to
pycfmodel.action_expander._expand_action
- New optional parameters added to
pycfmodel.action_expander._expand_actions
Fixes¶
- Fix isort testing issue
0.7.2 - [2020-09-01]¶
Improvements¶
- Added all cloudformation actions file (script to generate them and test to check for new actions)
- Added
expand_actions
, it will return a new model expanding stars to get all implied actions - Added
get_expanded_action_list
to Statement to get all implied actions
0.7.1 - [2020-04-06]¶
Improvements¶
- Refactor
SecurityGroupIngress
,SecurityGroupEgress
,SecurityGroupIngressProp
andSecurityGroupEgressProp
. SecurityGroupEgress
also supportsipv4_slash_zero
andipv6_slash_zero
.
0.7.0 - [2020-03-25]¶
Improvements¶
CidrIp
andCidrIpv6
properties of Security Group ingress and egress now use typeIPv4Network
andIPv6Network
respectively.- This has led to modified
ipv4_slash_zero
andipv6_slash_zero
functions.
0.6.4 - [2020-02-27]¶
Fixes¶
- Allow multiple operands in
or
andand
functions.
0.6.3 - [2020-01-08]¶
Added¶
- Added support for
Rules
section in template - Added tests for
allowed_principals_with
andnon_whitelisted_allowed_principals
Fixes¶
- Fix types in
allowed_principals_with
,non_whitelisted_allowed_principals
andPSEUDO_PARAMETERS
.
0.6.2 - [2019-12-20]¶
Improvements¶
- Added the
resources_filtered_by_type
function inCFModel
class
0.6.1 - [2019-12-09]¶
Fixes¶
- Fix CloudFormation conditions which were logically boolean to now successfully be evaluated as boolean.
0.6.0 - [2019-11-25]¶
Improvements¶
- Improve equal function
Breaking Changes¶
- Resolver now returns strings for most primitives
0.5.1 - [2019-11-25]¶
Improvements¶
- Add
NO_ECHO_WITH_VALUE
param value
0.5.0¶
Improvements¶
- Implements pydantic for all classes.
- Change the template parser, now it uses pydantic.
- Adds a resolve method to process cloudformation intrinsic functions.
- Adds lots of tests
Breaking changes¶
- API has been rewritten from scratch.