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

ML Engine Models in Terraform #2071

Merged
merged 8 commits into from
Aug 19, 2019
Merged

ML Engine Models in Terraform #2071

merged 8 commits into from
Aug 19, 2019

Conversation

rambleraptor
Copy link
Contributor

@rambleraptor rambleraptor commented Jul 17, 2019

My first Terraform resource!

I ran the lone acceptance test (no updates on this resource) and it passed!

Please tear this resource apart.

Referencing: https://github.com/GoogleCloudPlatform/magic-modules/issues/2061

Release Note for Downstream PRs (will be copied)


@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
This PR seems not to have generated downstream PRs before, as of b581159.

Pull request statuses

No diff detected in Inspec.

New Pull Requests

I built this PR into one or more new PRs on other repositories, and when those are closed, this PR will also be merged and closed.
depends: hashicorp/terraform-provider-google-beta#957
depends: GoogleCloudPlatform/terraform-google-conversion#128
depends: hashicorp/terraform-provider-google#4053
depends: modular-magician/ansible#316

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, 795f6c8.

Pull request statuses

terraform-provider-google-beta already has an open PR.
terraform-google-conversion already has an open PR.
terraform-provider-google already has an open PR.
Ansible already has an open PR.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

Copy link
Contributor

@danawillow danawillow left a comment

Choose a reason for hiding this comment

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

Can you add a link to the docs in third_party/terraform/website-compiled/google.erb?

Also ref: hashicorp/terraform-provider-google#3038 (I guess it doesn't fix it outright because it doesn't do IAM, though now we have the ability to generate those for TF so it should be a really easy followup)

third_party/terraform/utils/config.go.erb Outdated Show resolved Hide resolved
products/mlengine/terraform.yaml Show resolved Hide resolved
products/mlengine/terraform.yaml Show resolved Hide resolved
templates/terraform/examples/ml_model_basic.tf.erb Outdated Show resolved Hide resolved
templates/terraform/examples/ml_model_basic.tf.erb Outdated Show resolved Hide resolved
@rambleraptor
Copy link
Contributor Author

Comments have been addressed! But, the tests do not pass. This is because the vars Hash in examples injects in dashes, which the ML Engine API does not accept.

I'm making a separate PR with a change because it's gonna touch all the files.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, d511706.

Pull request statuses

terraform-provider-google-beta already has an open PR.
terraform-google-conversion already has an open PR.
terraform-provider-google already has an open PR.
Ansible already has an open PR.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

@rambleraptor
Copy link
Contributor Author

@danawillow please take a look! With the dash-removing PR, the ML generated tests (full + basic) both pass!

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, a930e37.

Pull request statuses

terraform-provider-google-beta already has an open PR.
terraform-google-conversion already has an open PR.
terraform-provider-google already has an open PR.
Ansible already has an open PR.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

Copy link
Contributor

@danawillow danawillow left a comment

Choose a reason for hiding this comment

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

almost there!

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, 85d36bb.

Pull request statuses

terraform-provider-google-beta already has an open PR.
terraform-google-conversion already has an open PR.
terraform-provider-google already has an open PR.
Ansible already has an open PR.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, 9bd2cb0.

Pull request statuses

terraform-provider-google-beta already has an open PR.
terraform-google-conversion already has an open PR.
terraform-provider-google already has an open PR.
Ansible already has an open PR.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

@rambleraptor
Copy link
Contributor Author

I completely forgot about this PR (thanks email filters!). Made those changes + it's running through the Magician now.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, af3324d.

Pull request statuses

terraform-provider-google-beta already has an open PR.
terraform-google-conversion already has an open PR.
terraform-provider-google already has an open PR.
Ansible already has an open PR.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

Copy link
Contributor

@danawillow danawillow left a comment

Choose a reason for hiding this comment

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

Looks good, merging TF PRs now, will leave the rest for you

@rambleraptor rambleraptor force-pushed the ml-engine branch 2 times, most recently from f808855 to 39c4b44 Compare August 19, 2019 17:37
Tracked submodules are build/terraform-beta build/terraform-mapper build/terraform build/ansible build/inspec.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants