Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/1.5.7 #194

Merged
merged 16 commits into from
Jan 20, 2023
Merged

Release/1.5.7 #194

merged 16 commits into from
Jan 20, 2023

Conversation

silavjy and others added 16 commits May 5, 2022 11:42
* upgraded lambda runtime python to 3.9

* changed SSL permissions set * as principal all buckets

* added version and manifest

* removed action from lambda code bucket policy PutObjectAcl

* added update request type Update event  to password policy lambda

* stack changes for AWSConfigRole to AWS_ConfigRole replacement
* Updated runtime engine for LandingZoneLocalSNSNotificationForwarder to python 3.9

* created manifest for 1.5.5
* Update Readme.md documentation. 

* Deleted EC-Create-Account.sh (deprecated, not valid anymore)

* Added switch SECLOG scripts

* Added Delete landing zone script

* Preparing the release
…cript if status is not in 'CREATE_COMPLETE','UPDATE_COMPLETE'
@silavjy silavjy merged commit b68650b into master Jan 20, 2023
@@ -150,6 +150,11 @@ def main(argv):
print("Exiting...")
sys.exit(1)

if pre_flight_cfn(account_session) == False:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommendation generated by Amazon CodeGuru Reviewer. Leave feedback on this recommendation by replying to the comment or by reacting to the comment using emoji.

The == and != operators use the compared objects' __eq__ method to test if they are equal. To check if an object is a singleton, such as None, we recommend that you use the is identity comparison operator.

Learn more

Similar issue at line numbers 183 and 202.

def pre_flight_cfn(session):
status = True
cfn = session.client('cloudformation')
response = cfn.describe_stacks()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommendation generated by Amazon CodeGuru Reviewer. Leave feedback on this recommendation by replying to the comment or by reacting to the comment using emoji.

The API method describe_stacks returns paginated results instead of all results. Consider using the pagination API or checking one of the following keys in the response to verify that all results were returned: IsTruncated, NextToken.

Learn more

@neisije
Copy link
Contributor

neisije commented Jan 20, 2023

We identified new issues on unchanged lines of code. Navigate to the Amazon CodeGuru Reviewer console to view the recommendations to fix them.

@@ -150,6 +150,12 @@ def main(argv):
print("Exiting...")
sys.exit(1)

if pre_flight_cfn(account_session) == False:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommendation generated by Amazon CodeGuru Reviewer. Leave feedback on this recommendation by replying to the comment or by reacting to the comment using emoji.

The == and != operators use the compared objects' __eq__ method to test if they are equal. To check if an object is a singleton, such as None, we recommend that you use the is identity comparison operator.

Learn more

Similar issue at line numbers 184 and 203.

@silavjy silavjy deleted the release/1.5.7 branch June 12, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants