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

Add validation to Redis databases' regions #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KeisukeYamashita
Copy link
Contributor

Why

The user can quickly see the error message during terraform plan instead of encountering the issue when applying the changes.

@@ -15,149 +16,152 @@ func ResourceDatabase() *schema.Resource {
UpdateContext: resourceDatabaseUpdate,
DeleteContext: resourceDatabaseDelete,
Schema: map[string]*schema.Schema{
"database_id": &schema.Schema{
Copy link
Contributor Author

@KeisukeYamashita KeisukeYamashita Apr 20, 2024

Choose a reason for hiding this comment

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

Note

I removed the redundant &schema.Schema. There are other redundant declaration in other files but I limited the scope of the change to this file.

@KeisukeYamashita KeisukeYamashita marked this pull request as ready for review April 20, 2024 21:47
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.

1 participant