Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Conversation

@Aayush-Abhyarthi
Copy link
Member

Description

Migrate Data Engine module to TIM

Types of changes in this PR

No release required

  • Examples or tests (addition or updates of examples or tests)
  • Documentation update
  • CI-related update (pipeline, etc.)
  • Other changes that don't affect Terraform code

Release required

  • Bug fix (patch release (x.x.X): Change that fixes an issue and is compatible with earlier versions)
  • New feature (minor release (x.X.x): Change that adds functionality and is compatible with earlier versions)
  • Breaking change (major release (X.x.x): Change that is likely incompatible with previous versions)
Release notes content

Replace this text with information that users need to know about the bug fixes, features, and breaking changes. This information helps the merger write the commit message that is published in the release notes for the module.


Checklist for reviewers

  • If relevant, a test for the change is included or updated with this PR.
  • If relevant, documentation for the change is included or updated with this PR.

Merge actions for mergers

  • Merge by using "Squash and merge".

  • Use a relevant conventional commit message that is based on the PR contents and any release notes provided by the PR author.

    The commit message determines whether a new version of the module is needed, and if so, which semver increment to use (major, minor, or patch).

@Aayush-Abhyarthi Aayush-Abhyarthi requested a review from ocofaigh May 4, 2023 10:52
Copy link
Contributor

@ocofaigh ocofaigh left a comment

Choose a reason for hiding this comment

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

see comments

variables.tf Outdated
}
}

variable "key_protect_region" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need? Doesn't the KMS instance also have to be in the same region as the data engine instance anyway (double check this)? So the region variable should suffice here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

ok so lets rename it to kms_region to be consistent with other variables

providers = {
restapi = restapi.kp
}
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-key-protect-all-inclusive.git?ref=v3.1.2"
Copy link
Contributor

Choose a reason for hiding this comment

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

can you use the latest version of terraform-ibm-key-protect-all-inclusive - that way you can remove the restapi provider completely from the example.

Copy link
Member Author

Choose a reason for hiding this comment

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

updated

Copy link
Contributor

Choose a reason for hiding this comment

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

This is still an old version

Copy link
Contributor

@ocofaigh ocofaigh left a comment

Choose a reason for hiding this comment

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

I also notice the module is missing the code to create the KMS auth policy (and the variable skip_iam_authorization_policy to skip creating it). Can you add please?

@ocofaigh
Copy link
Contributor

ocofaigh commented May 8, 2023

@Aayush-Abhyarthi no point in rebasing the PR (which kicks off the pipeline tests and provisions things in our account which has an associated cost) until PR comments have been addressed

Copy link
Contributor

@ocofaigh ocofaigh left a comment

Choose a reason for hiding this comment

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

see comments

variables.tf Outdated
}
}

variable "key_protect_region" {
Copy link
Contributor

Choose a reason for hiding this comment

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

ok so lets rename it to kms_region to be consistent with other variables

Copy link
Contributor

@ocofaigh ocofaigh left a comment

Choose a reason for hiding this comment

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

see comments

}
}

variable "skip_iam_authorization_policy" {
Copy link
Contributor

Choose a reason for hiding this comment

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

We have decided to go with 1 extra bool variable called kms_encryption_enabled so that we can default the skip_iam_authorization_policy variable to false. Please take a look at the changes in terraform-ibm-modules/terraform-ibm-icd-postgresql#186 and update this PR to be the same. Thanks

Copy link
Contributor

@ocofaigh ocofaigh left a comment

Choose a reason for hiding this comment

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

Copy link
Contributor

@ocofaigh ocofaigh left a comment

Choose a reason for hiding this comment

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

@ocofaigh
Copy link
Contributor

ocofaigh commented May 19, 2023

@Aayush-Abhyarthi We found a bug with auto scale config. Please incorporate the fix into this PR. See terraform-ibm-modules/terraform-ibm-icd-mongodb#163 for exact code change to make

scrap that, auto scaling not supported for data engine

ocofaigh
ocofaigh previously approved these changes May 22, 2023
Copy link
Contributor

@ocofaigh ocofaigh left a comment

Choose a reason for hiding this comment

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

Pushed some final cleanups to this branch so it is consistent with other modules. Approving for merge so we can get the first release out. There are some gaps we need to fill such as support for CBRs and service credentials, but I'll create follow on issues for those.

ocofaigh
ocofaigh previously approved these changes May 22, 2023
@ocofaigh ocofaigh merged commit eb3164c into main May 22, 2023
@terraform-ibm-modules-ops
Copy link
Contributor

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

5 participants