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

aws/terraform: support for aws_db_instance #11

Merged
merged 2 commits into from
Dec 17, 2020
Merged

Conversation

patrislav
Copy link
Contributor

This PR adds support for the aws_db_instance resource for both the ingesting and cost estimation.

@patrislav patrislav self-assigned this Dec 10, 2020
Copy link
Member

@xescugc xescugc left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@xlr-8 xlr-8 left a comment

Choose a reason for hiding this comment

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

LGTM, just questions about documentation

Comment on lines +46 to +60
var dbTypeMap = map[string]dbType{
"aurora": {"Aurora MySQL", ""},
"aurora-mysql": {"Aurora MySQL", ""},
"mariadb": {"MariaDB", ""},
"mysql": {"MySQL", ""},
"postgres": {"PostgreSQL", ""},
"oracle-se": {"Oracle", "Standard"},
"oracle-se1": {"Oracle", "Standard One"},
"oracle-se2": {"Oracle", "Standard Two"},
"oracle-ee": {"Oracle", "Enterprise"},
"sqlserver-se": {"SQL Server", "Standard"},
"sqlserver-ee": {"SQL Server", "Enterprise"},
"sqlserver-ex": {"SQL Server", "Express"},
"sqlserver-web": {"SQL Server", "Web"},
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this include all types or are we missing some? I'm asking just in case of documentation

Speaking of contribution, would it be good to have some "collaboration" documentation, like "how to add a new resource" type of thing?

Copy link
Contributor Author

@patrislav patrislav Dec 14, 2020

Choose a reason for hiding this comment

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

It includes all of the possible engines: https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html (can't link to the relevant section directly, but the list is under "Engine")

Yeah, it'd be great to have a CONTRIBUTING file, as well as a good README. I'll start working on them once we have the library working internally and we're ready to go OSS. 👍 (Added it as a point of #10 for now.)

@patrislav patrislav merged commit 1ef7fb0 into master Dec 17, 2020
@patrislav patrislav deleted the pk-aws-rds-support branch December 17, 2020 15:52
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