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 a apiary_logs_retention_days variable that sets the retention_day… #154

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

givanovexpe
Copy link
Contributor

…s of the apiary cloudwatch log group. The default is 30 days.

…s of the apiary cloudwatch log group. The default is 30 days.
CHANGELOG.md Outdated
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [6.1.2] - TBD
### Added
- Added apiary_logs_retention_days variable that sets the default retention period of the apiary cloudwatch group. The default is 30 days.
Copy link
Contributor

Choose a reason for hiding this comment

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

should we name the variable apiary_cloudwatch_logs_retention_days? to avoid confusion with s3 logs retention

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, makes sense. updating.

Copy link
Contributor

Choose a reason for hiding this comment

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

Does the same apply here? ExpediaGroup/apiary-federation#75 (review)

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 can't say. For me adding cloudwatch in the name only makes sense for apiary-data-lake but you may want to make variable names consistent accross the different components.

@rpoluri rpoluri requested a review from barnharts4 May 7, 2020 14:13
Copy link
Contributor

@barnharts4 barnharts4 left a comment

Choose a reason for hiding this comment

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

Agree with @rpoluri about the name of the variable. Elsewhere through the code, "logs" refers to s3 logs.

Otherwise looks good.

barnharts4
barnharts4 previously approved these changes May 11, 2020
CHANGELOG.md Outdated
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [6.1.2] - TBD
### Added
- Added apiary_cloudwatch_logs_retention_days variable that sets the default retention period of the apiary cloudwatch group. The default is 30 days.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- Added apiary_cloudwatch_logs_retention_days variable that sets the default retention period of the apiary cloudwatch group. The default is 30 days.
- Added `apiary_cloudwatch_logs_retention_days` variable that sets the default retention period of the Apiary CloudWatch group. The default is 30 days.

CHANGELOG.md Outdated
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [6.1.2] - TBD
Copy link
Contributor

Choose a reason for hiding this comment

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

Could go with 6.2.0 as this is a new feature rather than a bugfix.

VARIABLES.md Outdated
@@ -10,6 +10,7 @@
| apiary_domain_name | Apiary domain name for Route 53. | string | `` | no |
| apiary_log_bucket | Bucket for Apiary logs. | string | - | yes |
| apiary_log_prefix | Prefix for Apiary logs. | string | `` | no |
| apiary_cloudwatch_logs_retention_days | Log retention in days for the Apiary ECS cloudwatch log group. | string | `30` | no |
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
| apiary_cloudwatch_logs_retention_days | Log retention in days for the Apiary ECS cloudwatch log group. | string | `30` | no |
| apiary_cloudwatch_logs_retention_days | Log retention in days for the Apiary ECS CloudWatch log group. | string | `30` | no |

variables.tf Outdated
@@ -60,6 +60,12 @@ variable "apiary_log_prefix" {
default = ""
}

variable "apiary_cloudwatch_logs_retention_days" {
description = "Log retention in days for the Apiary ECS cloudwatch log group."
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
description = "Log retention in days for the Apiary ECS cloudwatch log group."
description = "Log retention in days for the Apiary ECS CloudWatch log group."

Copy link
Contributor

@barnharts4 barnharts4 left a comment

Choose a reason for hiding this comment

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

I think CHANGELOG.md got modified once or twice since you opened this PR, so the version number and date will need updating, but otherwise, looks good.

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.

4 participants