Skip to content

Conversation

@sbkok
Copy link
Collaborator

@sbkok sbkok commented Dec 9, 2022

Why?

The identify-out-of-date-pipelines process will iterate over the S3 files and delete the stale pipelines that are no longer defined.

However, if you delete a deployment map file, the old deployment map would still exist in the pipelines bucket. Which will put the identify-out-of-date-pipeline process in the wrong direction, as it will think that these pipelines are still active.

What?

Instructing the sync to S3 process to delete stale files in the S3 bucket, so deleted deployment map files are also deleted in the pipeline bucket.


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

@sbkok sbkok added the bug Something isn't working label Dec 9, 2022
@sbkok sbkok added this to the v3.2.0 milestone Dec 9, 2022
javydekoning
javydekoning previously approved these changes Dec 9, 2022
@sbkok sbkok force-pushed the fix/clean-up-old-deployment-maps branch from 6ed93b6 to 30cb204 Compare December 9, 2022 10:55
**Why?**

The identify-out-of-date-pipelines process will iterate over the S3 files and
delete the stale pipelines that are no longer defined.

However, if you delete a deployment map file, the old deployment map would
still exist in the pipelines bucket. Which will put the
identify-out-of-date-pipeline process in the wrong direction, as it will think
that these pipelines are still active.

**What?**

Updated the sync to S3 process to delete stale files in the S3 bucket, so
deleted deployment map files are also deleted in the pipeline bucket.

Also added `DeleteObject` permissions to the CodeBuild Pipeline provisioner,
such that it can perform the required S3 calls.
@sbkok sbkok force-pushed the fix/clean-up-old-deployment-maps branch from 30cb204 to efd1b2f Compare December 9, 2022 10:57
@sbkok sbkok requested a review from javydekoning December 9, 2022 10:57
@sbkok
Copy link
Collaborator Author

sbkok commented Dec 9, 2022

Also added DeleteObject permissions to the CodeBuild Pipeline provisioner,
such that it can perform the required S3 calls.

@sbkok sbkok merged commit 03ef737 into awslabs:master Dec 9, 2022
@sbkok sbkok deleted the fix/clean-up-old-deployment-maps branch December 9, 2022 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants