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

Remove max_frame_rate default value #7141

Merged
merged 1 commit into from
Jul 14, 2020
Merged

Remove max_frame_rate default value #7141

merged 1 commit into from
Jul 14, 2020

Conversation

cretueusebiu
Copy link
Contributor

Fixes #695

This is the same as hashicorp/terraform#11340, but even if it was merged there, it's still not merged here.

Changes proposed in this pull request:

  • Remove max_frame_rate default value and let AWS set it.

@ghost ghost added size/XS Managed by automation to categorize the size of a PR. service/elastic-transcoder labels Jan 15, 2019
@pabloxio
Copy link

I need this! 😩

@aeschright aeschright requested a review from a team June 25, 2019 21:44
@bowczarek
Copy link

bowczarek commented Jul 26, 2019

I need that as well :( any ETA for merging the change and releasing nie provider plugin?

Can't believe it haven't been merged since 15th of January :( simple one line, and it was already fixed in the terraform core but not in aws provider plugin.

@thaffenden
Copy link

Sorry to bump, but any news on this tiny one?

@aeschright
Copy link
Contributor

Hi folks, I had a look at the AWS docs for this feature and I agree the max_frame_rate default doesn't make sense. In order to move forward, this PR needs to update our own docs and also make sure the tests are passing.

I suspect it would be a good idea for us to send a default frame_rate of auto here since the field is optional and the AWS docs aren't explicit about what happens if it's blank. If anyone wants to look at the test cases on this resource and make sure they are realistic, that would be very helpful. Thanks!

Copy link
Contributor

@svanzoest svanzoest left a comment

Choose a reason for hiding this comment

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

This has been a regression for a long time. I'd be great to have this merged. 🚀

@bflad bflad added this to the v3.0.0 milestone Apr 9, 2020
@bflad bflad added the breaking-change Introduces a breaking change in current functionality; usually deferred to the next major release. label Apr 9, 2020
@bflad bflad self-assigned this Jul 14, 2020
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

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

Thanks for submitting this, @cretueusebiu. Please note this worked when adding new testing to cover it, however it broke some existing test configurations until Computed: true was added to that attribute's schema, to denote that the value can be configured outside Terraform by the API and that Terraform should ignore that difference.

Previously:

=== CONT  TestAccAWSElasticTranscoderPreset_Video_FrameRate
    TestAccAWSElasticTranscoderPreset_Video_FrameRate: testing.go:684: Step 0 error: errors during apply:

        Error: Error creating Elastic Transcoder Preset: ValidationException: When you specify a value for MaxFrameRate, you must also specify 'FrameRate':'Auto'. Either change the value of FrameRate or remove the MaxFrameRate object, and resubmit the request.

TestAccAWSElasticTranscoderPreset_Full: testing.go:684: Step 0 error: After applying this step and refreshing, the plan was not empty:

        DIFF:

        DESTROY/CREATE: aws_elastictranscoder_preset.test
        ...
        video.0.max_frame_rate:                       "30" => "" (forces new resource)

Output from acceptance testing:

--- PASS: TestAccAWSElasticTranscoderPreset_disappears (6.52s)
--- PASS: TestAccAWSElasticTranscoderPreset_basic (8.90s)
--- PASS: TestAccAWSElasticTranscoderPreset_Description (8.95s)
--- PASS: TestAccAWSElasticTranscoderPreset_Video_FrameRate (9.82s)
--- PASS: TestAccAWSElasticTranscoderPreset_Full (15.27s)

bflad added a commit that referenced this pull request Jul 14, 2020
…eRate default removal and ensure it is Computed

Reference: #7141

Previously:

```
=== CONT  TestAccAWSElasticTranscoderPreset_Video_FrameRate
    TestAccAWSElasticTranscoderPreset_Video_FrameRate: testing.go:684: Step 0 error: errors during apply:

        Error: Error creating Elastic Transcoder Preset: ValidationException: When you specify a value for MaxFrameRate, you must also specify 'FrameRate':'Auto'. Either change the value of FrameRate or remove the MaxFrameRate object, and resubmit the request.

TestAccAWSElasticTranscoderPreset_Full: testing.go:684: Step 0 error: After applying this step and refreshing, the plan was not empty:

        DIFF:

        DESTROY/CREATE: aws_elastictranscoder_preset.test
        ...
        video.0.max_frame_rate:                       "30" => "" (forces new resource)
```

Output from acceptance testing:

```
--- PASS: TestAccAWSElasticTranscoderPreset_disappears (6.52s)
--- PASS: TestAccAWSElasticTranscoderPreset_basic (8.90s)
--- PASS: TestAccAWSElasticTranscoderPreset_Description (8.95s)
--- PASS: TestAccAWSElasticTranscoderPreset_Video_FrameRate (9.82s)
--- PASS: TestAccAWSElasticTranscoderPreset_Full (15.27s)
```
bflad added a commit that referenced this pull request Jul 14, 2020
…ate argument default removal to version 3 upgrade guide

Reference: #7141
bflad added a commit that referenced this pull request Jul 14, 2020
@bflad bflad merged commit e4e208d into hashicorp:master Jul 14, 2020
@ghost
Copy link

ghost commented Jul 31, 2020

This has been released in version 3.0.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@cretueusebiu cretueusebiu deleted the issues-695 branch August 3, 2020 19:40
@cretueusebiu cretueusebiu restored the issues-695 branch August 3, 2020 19:41
@ghost
Copy link

ghost commented Aug 13, 2020

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 ghost locked and limited conversation to collaborators Aug 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking-change Introduces a breaking change in current functionality; usually deferred to the next major release. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[regression] providers/aws: Setting MaxFrameRate on ElasticTranscoderPreset breaks fixed frame rate
7 participants