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

event archive bucket policy modification according different env #250

Merged
merged 10 commits into from
Apr 29, 2024

Conversation

raylrui
Copy link
Contributor

@raylrui raylrui commented Apr 24, 2024

Fix/Refactor of event archiver:

  1. RemovalPolicy:
    RemovalPolicy.DESTROY mode in our dev/test envs,
    only enable RemovalPolicy.RETAIN in prod env.
    For dev/test redeployment, we may still delete all contents in the bucket and get the bucket physically deleted.

  2. unique bucket name
    beta: orcabus-event-archive-devAccountId,
    gamma: orcabus-event-archive-stgAccountId,
    prod: orcabus-event-archive-prodAccountId,

From discuss: https://umccr.slack.com/archives/C03ABJTSN7J/p1713927722151309

@victorskl
Copy link
Member

... will review in tick, eta 4pm.

Copy link
Member

@victorskl victorskl left a comment

Choose a reason for hiding this comment

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

Not major of comment from me.

Better wait from @reisingerf approval on bucket naming before merging. There is some naming convention attach to this. He can advice/guide better.

@raylrui raylrui force-pushed the feature/universal-event-archiver branch from 5765a64 to 7041d00 Compare April 29, 2024 01:39
@victorskl victorskl linked an issue Apr 29, 2024 that may be closed by this pull request
@victorskl victorskl added the fix label Apr 29, 2024
@victorskl
Copy link
Member

This should be good. @reisingerf PR pls

@@ -63,8 +77,8 @@ export const eventBusName = 'OrcaBusMain';
export const eventSourceQueueName = 'orcabus-event-source-queue';

// Event Archiver constants for EventBus Contruct in SharedStack
export const archiveBucketName = 'event-archive-bucket';
export const archiveSecurityGroupName = 'OrcaBusEventArchiveSecurityGroup';
export const archiveBucketNamePrefix = 'orcabus-event-archive-';
Copy link
Member

Choose a reason for hiding this comment

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

Hm, a quite generic name for a specific purpose bucket. There may be other archive buckets besides the event archive...

Also, I am not sure this bucket is meant to be for anything else than internal use. Nobody else needs to know that name and it does not have to be configurable. As such we could move its definition into the stack (or even construct) level?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I move the Event Archiver definition from into the EventBus Stack level config, as event bus users may need config archiver

@raylrui raylrui merged commit ebeea05 into main Apr 29, 2024
2 checks passed
@raylrui raylrui deleted the feature/universal-event-archiver branch April 29, 2024 06:51
@raylrui raylrui restored the feature/universal-event-archiver branch April 29, 2024 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create universal event archive for OrcaBus events
4 participants