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

Added 3 checks for AWS Launch Configuration #318

Merged
merged 6 commits into from Jun 7, 2019

Conversation

krzyzakp
Copy link
Contributor

@krzyzakp krzyzakp commented Jun 6, 2019

Fixes #253

Adds rules checking in Launch Configuration:

  • used ami
  • instance type
  • instance profile

Tested on current release, hope that's fair enough to be merged for next release.

Copy link
Member

@wata727 wata727 left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! LGTM.

I left some comments, but these do not block getting to merge.

// NewAwsLaunchConfigurationInvalidIAMProfileRule returns new rule with default attributes
func NewAwsLaunchConfigurationInvalidIAMProfileRule() *AwsLaunchConfigurationInvalidIAMProfileRule {
return &AwsLaunchConfigurationInvalidIAMProfileRule{
resourceType: "aws_launch_configuration",
Copy link
Member

Choose a reason for hiding this comment

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

[nitpicks] It seems that the indentation is broken. It might be better to run gofmt when saving Go files 🙃

@wata727
Copy link
Member

wata727 commented Jun 6, 2019

It is even better if the following documentation updates are included.
https://github.com/wata727/tflint/tree/master/docs/rules#possible-errors

@krzyzakp
Copy link
Contributor Author

krzyzakp commented Jun 6, 2019

Thanks for your feedback and comments, fixed indentation and update documentation with my new rules.
It's my first commit in Go and was not aware, that there is such tool like gofmt ;)

@wata727 wata727 merged commit 5bca583 into terraform-linters:master Jun 7, 2019
@wata727
Copy link
Member

wata727 commented Jun 7, 2019

Great work @krzyzakp! Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add aws_launch_configuration resource check
2 participants