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 enhanced monitoring #6

Merged

Conversation

robinbowes
Copy link
Contributor

Re-working of terraform-community-modules/tf_aws_rds#37

(plus a terraform fmt :) )

Enhanced Monitoring example
===========================

Configuration in this directory creates the additional resources required to use Enhanced Monitoring.
Copy link
Member

Choose a reason for hiding this comment

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

Remember that these examples should always be executed using just terraform init, plan, apply. Users should not be asked to update anything in the example to try them out. Please include "provider" section and "rest of params here as per complete example".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are there guidelines for examples?

Copy link
Member

Choose a reason for hiding this comment

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

No, but there will be (probably during next week or two).

README.md Outdated

# Enhanced Monitoring
monitoring_interval = "${var.monitoring_interval}
monitoring_role_arn = "${var.monitoring_interval == "0" ? "" : aws_iam_role.rds_monitoring.arn}"
Copy link
Member

Choose a reason for hiding this comment

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

Similar should be in usage section. Most users want to just copy-paste this from readme file and put as little effort as possible to get it up, but line 44 will make them think that they need to create IAM role somehow.

Keep this section as easy as possible and make it look as end result:

monitoring_interval = "10"
monitoring_role_arn = "arn:aws:i-don't-know-but-you-know-what-to-write-here:12345678"

No need to use variables here - again, for simplicity.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I didn't mean to include that.

But, there's no magic role arn you can include - you have to create the role. Not sure how best to document it.

Copy link
Member

Choose a reason for hiding this comment

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

I think it will be best to make an example, where you create everything what is needed for it. And link to this example on the main readme page.

Maybe soon we can also start section "Features", where we can highlight what this module can do. Something like:

Features:
* Create RDS resources with most of the options supported
* Support [enhanced monitoring](example/...). This module does not create IAM role for you. Check example code for more details.

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, I'll pull the params from the README and fix pu the example.

@robinbowes
Copy link
Contributor Author

How's this?

README.md Outdated
monitoring_role_arn = "${var.monitoring_interval == "0" ? "" : aws_iam_role.rds_monitoring.arn}"
# Enhanced Monitoring - see example for details on how to create the role
# monitoring_interval = "10"
# monitoring_role_arn = "aws_iam_role.rds_enhanced_monitoring.arn"
Copy link
Member

Choose a reason for hiding this comment

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

Write how the end result will have to look like - monitoring_role_arn = "arn:aws:iam::123456789012:role/RDSEnhancedMonitoring" and leave it to curious user to figure out how to get the value (maybe he will use data-source to find the one he has already make, maybe he will create resource himself, maybe he will hardcode it, maybe he passes it as variable, ...)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is it worth putting in a link to the relevant AWS page?

Copy link
Member

Choose a reason for hiding this comment

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

I think so, a small note is usually a good idea. In general, I would love to hear from real users what do they miss.

@robinbowes
Copy link
Contributor Author

Did you get chance to look at this?

@antonbabenko antonbabenko merged commit d40e3a6 into terraform-aws-modules:master Oct 11, 2017
@robinbowes robinbowes deleted the enable_enhanced_monitoring branch October 11, 2017 10:11
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants