-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
azurerm_redis_cache
- Check if redis_configuration.rdb_backup_enabled
and redis_configuration.aof_backup_enabled
configured
#22309
Merged
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't be using
GetRawConfig
since this functionality won't be available when we move to framework.There is a wrapper function that can be used instead
pluginsdk.IsExplicitlyNullInConfig
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rdb_storage_connection_string
is nested inredis_configuration
. Cannot get it withpluginsdk.IsExplicitlyNullInConfig(d, "redis_configuration.0.rdb_backup_enabled")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case there's no need to use either
IsExplicitlyNullInConfig
ord.GetRawConfig().AsValueMap()
- this should only be set if the value is set totrue
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rdb_backup_enabled
can befalse
ortrue
and it can only be set when SKU isPremium
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@avendretter @em-le-ts
rdb_backup_enabled
can be set when SKU isPremium
. Current V2 SDK will auto set a default value(false
) to it even not configured. So I need to know if this is configured in the HCL, One way to get it is used.GetRawConfig().AsValueMap()
but this function is not compatible with the terraform framework plugin. Currently we are blocked here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xuzhang3 I used the
Basic
SKU and it was failing, saying that therdb_backup_enabled
option is only allowed forPremium
, so I assume it will be set to true regardless of the inputs of SKU