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

Auto generate rules from AWS API models #274

Merged
merged 2 commits into from
Jun 23, 2019
Merged

Auto generate rules from AWS API models #274

merged 2 commits into from
Jun 23, 2019

Conversation

wata727
Copy link
Member

@wata727 wata727 commented May 12, 2019

This idea is to automatically generate basic validations from AWS API models, just like aws-sdk-go. We only manage mappings of Terraform resource attribute to AWS model shape name, and the rules are generated from the mappings automatically.

The following is an example of the mapping:

import = "aws-sdk-go/models/apis/ec2/2016-11-15/api-2.json"

mapping "aws_launch_template" {
  name = LaunchTemplateName
}

The API version is always assumed to be the latest version. It should be configurable for more accurate verification, but we will address it later.

@wata727 wata727 added this to the v0.9.0 milestone May 12, 2019
@wata727 wata727 force-pushed the aws_model_rules branch 2 times, most recently from 5b97cf8 to 9703545 Compare May 14, 2019 16:16
@wata727 wata727 force-pushed the aws_model_rules branch 13 times, most recently from ec0c0fe to f72070e Compare May 21, 2019 13:25
@wata727 wata727 changed the base branch from next_tflint_dev to master May 25, 2019 18:11
@wata727 wata727 force-pushed the aws_model_rules branch 5 times, most recently from 42c2dcc to da70905 Compare May 31, 2019 16:03
@wata727 wata727 force-pushed the aws_model_rules branch 6 times, most recently from 6f70f1e to 266db9f Compare June 8, 2019 17:35
@wata727 wata727 force-pushed the aws_model_rules branch 15 times, most recently from 01d165f to 38bb5ab Compare June 23, 2019 15:23
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.

1 participant