Skip to content

Conversation

@Nr18
Copy link
Contributor

@Nr18 Nr18 commented Apr 8, 2022

Issue #, if available: #468

Description of changes:
When a pipeline description is given it was already propagated to the CodeCommit repository. Only the schema did not allow to provide the description, and the IAM policy contained an invalid action and did not allow description updates.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

When a pipeline description is given it was already propagated to the CodeCommit repository. Only the schema did not allow to provide the description, and the IAM policy contained an invalid action and did not allow description updates.

Issue: awslabs#468
StewartW
StewartW previously approved these changes Apr 8, 2022
@StewartW
Copy link
Contributor

StewartW commented Apr 8, 2022

@javydekoning Can you review this please

javydekoning
javydekoning previously approved these changes Apr 9, 2022
Copy link
Contributor

@javydekoning javydekoning left a comment

Choose a reason for hiding this comment

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

LGTM!

Comment on lines -84 to -90
if not _repo_exists and not _stack_exists:
LOGGER.info(
'Ensuring State for CodeCommit Repository Stack %s on Account %s',
self.name,
self.account_id,
)
cloudformation.create_stack()
Copy link
Collaborator

Choose a reason for hiding this comment

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

The change here will perform updates to the CodeCommit CloudFormation stack.
Before we only created the repository, we didn't update it. I feel we should protect the code from being deleted by accident.
So we will also need an update policy to retain the repository just in case for that to be safe.
Can you add that?

See https://github.com/awslabs/aws-deployment-framework/blob/9420cdb908287dc545eff5a5bb3018f51b091046/src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/templates/codecommit.yml

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure added it in f70bb46

@Nr18 Nr18 dismissed stale reviews from javydekoning and StewartW via f70bb46 August 15, 2022 12:39
Copy link
Contributor

@StewartW StewartW left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Collaborator

@sbkok sbkok left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@sbkok sbkok merged commit b4d304f into awslabs:master Aug 16, 2022
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.

4 participants