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

Changed bucket name to env variable #26

Merged

Conversation

bshien
Copy link
Contributor

@bshien bshien commented Oct 9, 2024

Description

Changed bucket name to env variable to allow the user to chose which s3 bucket to upload events to.

Issues Resolved

opensearch-project/opensearch-metrics#85

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@@ -26,7 +26,7 @@ export default async function githubEventsToS3(app: Probot, context: any, resour
try {
const s3Client = new S3Client({ region: String(process.env.REGION) });
const putObjectCommand = new PutObjectCommand({
Bucket: 'opensearch-project-github-events',
Bucket: String(process.env.BUCKET_NAME),
Copy link
Collaborator

@prudhvigodithi prudhvigodithi Oct 9, 2024

Choose a reason for hiding this comment

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

Just change this to OPENSEARCH_EVENTS_BUCKET, so that we can accommodate different buckets for future use cases.

@bshien bshien force-pushed the change-event-bucket-name branch 2 times, most recently from db7c713 to 6d5377d Compare October 9, 2024 16:53
@prudhvigodithi prudhvigodithi merged commit 1761661 into opensearch-project:main Oct 9, 2024
6 of 7 checks passed
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.

2 participants