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

Cleanup branch #115

Merged
merged 19 commits into from
May 24, 2022
Merged

Cleanup branch #115

merged 19 commits into from
May 24, 2022

Conversation

aspacca
Copy link
Contributor

@aspacca aspacca commented May 16, 2022

Cleanup

What does this PR do?

Add CF params to easy deploying through IaC
Replace es_index_or_datastream_name in elasticsearch output with datastream

Why is it important?

Checklist

  • My code follows the style guidelines of this project
    - [ ] I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.md

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

@aspacca aspacca self-assigned this May 16, 2022
Description: >
Elastic Serverless Forwarder

SAM Template for the macro, not intended to be deployed on its own
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ravikesarwani
please, let me know if you want to improve the wording of this sentence in order to instruct the users that this specific application is not the one to be deployed

Choose a reason for hiding this comment

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

Here's my suggestion around naming the helper macro and the application.
Macro:
Name: helper-macro-elastic-serverless-forwarder
Description:
NOTE: DO NOT DEPLOY
Deploy elastic-serverless-forwarder instead. This is a helper SAM template for the macro and not intended to be deployed on its own.

Application:
Name: helper-application-elastic-serverless-forwarder
Description:
NOTE: DO NOT DEPLOY
Deploy elastic-serverless-forwarder instead. This is a helper SAM template for the application and not intended to be deployed on its own.

Copy link
Contributor Author

@aspacca aspacca May 18, 2022

Choose a reason for hiding this comment

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

I will replace the content, but links are not available in the SAR snippet.
Please let me know if you prefer

Deploy elastic-serverless-forwarder instead.

or

Deploy https://serverlessrepo.aws.amazon.com/applications/eu-central-1/267093732750/elastic-serverless-forwarder instead.

(I would rather use the link to the app in SAR, the one you've provided is region specific)

Choose a reason for hiding this comment

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

"Deploy elastic-serverless-forwarder instead." is fine.

docs/README-AWS.md Outdated Show resolved Hide resolved
@elasticmachine
Copy link

elasticmachine commented May 16, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-05-24T02:26:47.021+0000

  • Duration: 24 min 33 sec

Test stats 🧪

Test Results
Failed 0
Passed 66
Skipped 0
Total 66

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine
Copy link

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (5/5) 💚
Files 100.0% (28/28) 💚
Classes 100.0% (28/28) 💚
Lines 100.0% (1584/1584) 💚
Conditionals 100.0% (596/596) 💚

@@ -290,6 +290,11 @@ def add_output(self, output_type: str, **kwargs: Any) -> None:

output: Optional[Output] = None
if output_type == "elasticsearch":
if "es_index_or_datastream_name" in kwargs:
Copy link
Member

@endorama endorama May 17, 2022

Choose a reason for hiding this comment

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

Can we link to an issue where this breaking change is detailed and is written the action item of removing this check at a later version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

share/config.py Outdated
@@ -57,7 +57,7 @@ def __init__(
self.username = username
self.password = password
self.api_key = api_key
self.es_index_or_datastream_name = es_index_or_datastream_name
self.datastream = datastream
Copy link
Member

Choose a reason for hiding this comment

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

Albeit this is called datastream can still receive an index name, is that correct? So the functionality is still there, we just renamed the setting field.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

share/config.py Outdated Show resolved Hide resolved
@ravikesarwani
Copy link

Can we put the current image from SAR showing the 3 apps as will be seen by the customers?
That will help be visualize and think through the name and descriptions we should maybe use.

@aspacca
Copy link
Contributor Author

aspacca commented May 18, 2022

Can we put the current image from SAR showing the 3 apps as will be seen by the customers?

I cannot take the screenshot from SAR before we actually deploy the application.
We can have a patch bump of the version once it's done and added to the readme just for that.

This is a screenshot of my dev deployment (note my name as author):
Schermata 2022-05-18 alle 12 43 40

Not sure about the order the three application areshowed: it seems to be the publication order (first macro helper, then application helper, then the main bundled one), but I remember having seen different order while developing

This is the order when searching for elastic
Schermata 2022-05-18 alle 12 47 48

Copy link
Contributor

@zmoog zmoog left a comment

Choose a reason for hiding this comment

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

LGTM

@aspacca aspacca merged commit 6cd4b55 into elastic:main May 24, 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.

6 participants