Skip to content

feat: ability to specify security group name #37

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

Closed
wants to merge 5 commits into from
Closed

Conversation

BScott-c
Copy link
Contributor

When old database instances were NOT created with this terraform module and we migrate it to use this terraform module the security group name is not matching causing further down time in the migration that can be avoided by allowing us to specify the security group name.

Copy link

github-actions bot commented Jun 13, 2024

Terraform Plan for ./examples/ci-1_0:

will create 10 resources:

  • aws_cloudwatch_log_group - db_logs
  • aws_cloudwatch_log_group - db_logs
  • aws_cloudwatch_log_group - db_logs
  • aws_db_instance - database
  • aws_db_parameter_group - parameter_group
  • aws_security_group - db_security_group
  • aws_ssm_parameter - master_password
  • aws_ssm_parameter - master_username
  • random_password - default
  • random_string - default

see details

Copy link

github-actions bot commented Jun 13, 2024

Terraform Plan for ./examples/ci-1_2:

will create 10 resources:

  • aws_cloudwatch_log_group - db_logs
  • aws_cloudwatch_log_group - db_logs
  • aws_cloudwatch_log_group - db_logs
  • aws_db_instance - database
  • aws_db_parameter_group - parameter_group
  • aws_security_group - db_security_group
  • aws_ssm_parameter - master_password
  • aws_ssm_parameter - master_username
  • random_password - default
  • random_string - default

see details

@BScott-c
Copy link
Contributor Author

Question : will it update the version and everything by itself when it deploys or do I need to do that?

stuft2
stuft2 previously approved these changes Jun 13, 2024
@stuft2
Copy link
Contributor

stuft2 commented Jun 13, 2024

I think we have to change all the version numbers in the documentation before we merge

Copy link
Contributor

@yoshutch yoshutch left a comment

Choose a reason for hiding this comment

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

Yeah, we'll need to bump the terraform version in the README.md to the next minor version since you're just adding a variable, so not breaking change. Then add this new variable to the inputs table. Then I think you're good

@BScott-c BScott-c requested review from yoshutch and stuft2 June 13, 2024 18:23
Copy link
Contributor

@yoshutch yoshutch left a comment

Choose a reason for hiding this comment

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

LGTM as long as you see a valid plan using this. You could even test it out on your other repo by setting the "version" to this branch name like source = "github.com/byu-oit/terraform-aws-rds?ref=feat/sgName"

@BScott-c BScott-c closed this Jun 13, 2024
@BScott-c
Copy link
Contributor Author

Couldn't test with the naming of the branch. Use #38 instead

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