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

Add option to upload result to s3 #49

Merged
merged 3 commits into from
Nov 2, 2023

Conversation

dbernstein
Copy link
Collaborator

@dbernstein dbernstein commented Oct 31, 2023

Description

This PR contains changes to support passing dashboard info generated by terraform driven scripts to downstream ansible scripts.

So this PR adds the ability:

  1. to import and publish a dashboard in one operation.
  2. to push the results to S3 so they can be used by other downstream processes (ansible playbook)

These features are invoked here.

Motivation and Context

https://ebce-lyrasis.atlassian.net/browse/PP-516

https://github.com/ThePalaceProject/hosting-playbook/pull/518

How Has This Been Tested?

Changes are covered by updates to existing unit tests.

Checklist

  • I have updated the documentation accordingly.
  • All new and existing tests passed.

@dbernstein dbernstein force-pushed the add-option-to-upload-result-to-s3 branch from 8990a4f to 936fe8e Compare October 31, 2023 17:22
Copy link

@tdilauro tdilauro left a comment

Choose a reason for hiding this comment

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

This looks reasonable to me.

Comment on lines +207 to +212
help="An S3 bucket to save the results to. If specified, you must also specify a result-key",
)
@click.option(
"--result-key",
required=False,
help="An S3 object key to save the results to. If used, result-bucket must be specified.",
Copy link

Choose a reason for hiding this comment

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

Should we check result_bucket and result_key are both provided, if either is provided and emit a helpful error message, if not?

Comment on lines +134 to +143
@click.option(
"--result-bucket",
required=False,
help="An S3 bucket to save the results to. If specified, you must also specify a result-key",
)
@click.option(
"--result-key",
required=False,
help="An S3 object key to save the results to. If used, result-bucket must be specified.",
)
Copy link

Choose a reason for hiding this comment

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

Should we check result_bucket and result_key are both provided, if either is provided and emit a helpful error message, if not?

@dbernstein dbernstein merged commit 7e4d6fb into main Nov 2, 2023
13 checks passed
@dbernstein dbernstein deleted the add-option-to-upload-result-to-s3 branch November 2, 2023 18:30
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