-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
resource/aws_emr_cluster: Set SchemaConfigModeAttr on step configuration block attribute #8228
Merged
Conversation
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
…ion block attribute References: * hashicorp/terraform#20505 * hashicorp/terraform#20626 In Terraform 0.12, behaviors with configuration blocks are more explicit to allow configuration language improvements and remove ambiguities that required various undocumented workarounds in Terraform 0.11 and prior. As a consequence, configuration blocks that are marked `Optional: true` and `Computed: true` will no longer support explicitly zero-ing out the configuration without special implementation. The `ConfigMode` schema parameter on the configuration block attribute allows the schema to override certain behaviors. In particular, setting `ConfigMode: schema.SchemaConfigModeAttr` will allow practitioners to continue setting the configuration block attribute to an empty list (in the semantic sense, e.g. `attr = []`), keeping this prior behavior in Terraform 0.12. This parameter does not have any effect with Terraform 0.11. This solution may be temporary or revisited in the future. Previous output from Terraform 0.11: ``` --- PASS: TestAccAWSEMRCluster_Step_ConfigMode (828.01s) ``` Previous output from Terraform 0.12: ``` --- FAIL: TestAccAWSEMRCluster_Step_ConfigMode (390.69s) testing.go:568: Step 4 error: config is invalid: Unsupported argument: An argument named "step" is not expected here. Did you mean to define a block of type "step"? ``` Output from Terraform 0.11: ``` --- PASS: TestAccAWSEMRCluster_Step_ConfigMode (764.03s) ``` Output from Terraform 0.12: ``` --- PASS: TestAccAWSEMRCluster_Step_ConfigMode (833.49s) ```
bflad
added
service/emr
Issues and PRs that pertain to the emr service.
technical-debt
Addresses areas of the codebase that need refactoring or redesign.
terraform-0.12
labels
Apr 6, 2019
ghost
added
size/M
Managed by automation to categorize the size of a PR.
tests
PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
documentation
Introduces or discusses updates to documentation.
labels
Apr 6, 2019
apparentlymart
approved these changes
Apr 9, 2019
nywilken
approved these changes
Apr 9, 2019
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.
LGTM
MalloZup
added a commit
to MalloZup/terraform-provider-libvirt
that referenced
this pull request
Jun 6, 2019
MalloZup
added a commit
to MalloZup/terraform-provider-libvirt
that referenced
this pull request
Jun 6, 2019
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
ghost
locked and limited conversation to collaborators
Mar 30, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
documentation
Introduces or discusses updates to documentation.
service/emr
Issues and PRs that pertain to the emr service.
size/M
Managed by automation to categorize the size of a PR.
technical-debt
Addresses areas of the codebase that need refactoring or redesign.
tests
PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
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.
Community Note
References:
In Terraform 0.12, behaviors with configuration blocks are more explicit to allow configuration language improvements and remove ambiguities that required various undocumented workarounds in Terraform 0.11 and prior. As a consequence, configuration blocks that are marked
Optional: true
andComputed: true
will no longer support explicitly zero-ing out the configuration without special implementation.The
ConfigMode
schema parameter on the configuration block attribute allows the schema to override certain behaviors. In particular, settingConfigMode: schema.SchemaConfigModeAttr
will allow practitioners to continue setting the configuration block attribute to an empty list (in the semantic sense, e.g.attr = []
), keeping this prior behavior in Terraform 0.12. This parameter does not have any effect with Terraform 0.11. This solution may be temporary or revisited in the future.Previous output from Terraform 0.11:
Previous output from Terraform 0.12:
Output from Terraform 0.11:
Output from Terraform 0.12: