Skip to content

Conversation

@SumoSourabh
Copy link
Contributor

No description provided.

sourabh added 30 commits January 22, 2020 16:24
…tor is created, install the MetaData Source for EC2.

Do not fetch the existing collector and source, as it will be deleted when CF template is deleted.
@SumoSourabh SumoSourabh requested a review from himanshu219 May 20, 2020 06:57

return {"TAG_CREATION": "Successful"}, "Tag"

def update(self, region_value, aws_resource, tags, account_id, filter_regex, *args, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

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

what happens to the old tag when we create the new ones during update? will the stay as it is? Is it documented?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is documented in AWS Observability docs. We don't have a functionality doc for Sumo App utils.

Copy link
Contributor

Choose a reason for hiding this comment

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

and customers are ok if the old tags remain as it is?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We do not ask for Tags from Customers. We just take the value. So, we do not change the Key for tags just the value.

But yes, in general it can be improved, if we keep track of old tag keys that were passed.

Copy link
Contributor

@himanshu219 himanshu219 May 27, 2020

Choose a reason for hiding this comment

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

cool then we should add this to observability improvement backlog jira so that it can tracked.

response = self.sumologic_cli.import_content(personal_folder_id, content, is_overwrite="true")

if "AWS Observability" in appname:
folder_id = self._create_or_fetch_quickstart_apps_parent_folder("Sumo Logic AWS Observability Apps ")
Copy link
Contributor

Choose a reason for hiding this comment

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

is this a recursive function? Also can we remove the "Sumo Logic AWS Observability Apps" thing similar to how we removed for "SumoLogic Amazon QuickStart Apps "?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Quick Start is present for folder naming. Similarly Observability is added for folder naming.

Copy link
Contributor

Choose a reason for hiding this comment

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

Quickstart was removed as I can see in the diff can't we pass observability folder name as well. Asking this because this is a library(not just for aws observability) and should be generic.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

QuickStart is present but Yes, we can make it generic.

Copy link
Contributor

Choose a reason for hiding this comment

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

quickstart is also present I thought you handled it using folder_prefix (see the githubdiff 605) seems then we'll have to create a backlog jira for this since it will require multiple changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A new parameter as folder name should suffice, if it is present, then create that folder. I will track this in my tasks with AWS Observability

Copy link
Contributor

Choose a reason for hiding this comment

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

cool then we should add this to observability improvement backlog jira so that it can tracked.


# Field Extraction Rule can be updated and deleted from the main stack where it was created.
def update(self, fer_id, fer_name, fer_scope, fer_expression, fer_enabled, *args, **kwargs):
data, fer_id = self.create(fer_name, fer_scope, fer_expression, fer_enabled, *args, **kwargs)
Copy link
Contributor

Choose a reason for hiding this comment

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

what if someone changed the fer name, will the old FER still exists?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah. We should call update method here. I will update it in the next set of changes.

Copy link
Contributor

Choose a reason for hiding this comment

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

cool then we should add this to observability improvement backlog jira so that it can tracked.

…s in PR

- Include testing of all resources for updates scenario. Updated update method with scenarios.
- Added description for Update fields custom resource.
- Removed function name from YAMl
- Added export for Role ARN.
@SumoSourabh SumoSourabh requested a review from himanshu219 May 29, 2020 16:13
@SumoSourabh SumoSourabh merged commit b1b8daa into master Jun 15, 2020
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.

3 participants