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

r/aws_redshiftserverless_workgroup: allow require_ssl, use_fips_ssl config parameters #33916

Merged
merged 2 commits into from
Oct 12, 2023

Conversation

jar-b
Copy link
Member

@jar-b jar-b commented Oct 12, 2023

Description

Allows SSL-related config_parameters to be specified in Terraform. Adding these can prevent persistent differences when AWS default values are returned in the config_parameters array.

Longer term the config_parameters argument could be refactored to suppress differences when keys with default values are returned from the read operation. The complexity involved with this approach warrants a deeper dive into the API. This PR aims simply to enable explicit configuration of these new keys to unblock existing configurations.

Before:

% make testacc PKG=redshiftserverless TESTS=TestAccRedshiftServerlessWorkgroup_configParameters
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/redshiftserverless/... -v -count 1 -parallel 20 -run='TestAccRedshiftServerlessWorkgroup_configParameters'  -timeout 360m

    workgroup_test.go:94: Step 1/3 error: After applying this test step and performing a `terraform refresh`, the plan was not empty.
        stdout


        Terraform used the selected providers to generate the following execution
        plan. Resource actions are indicated with the following symbols:
          ~ update in-place

        Terraform will perform the following actions:

          # aws_redshiftserverless_workgroup.test will be updated in-place
          ~ resource "aws_redshiftserverless_workgroup" "test" {
                id                   = "tf-acc-test-75452025310988525"
                tags                 = {}
                # (11 unchanged attributes hidden)

              - config_parameter {
                  - parameter_key   = "require_ssl" -> null
                  - parameter_value = "false" -> null
                }
              - config_parameter {
                  - parameter_key   = "use_fips_ssl" -> null
                  - parameter_value = "false" -> null
                }

                # (7 unchanged blocks hidden)
            }

        Plan: 0 to add, 1 to change, 0 to destroy.
--- FAIL: TestAccRedshiftServerlessWorkgroup_configParameters (628.88s)
FAIL
FAIL    github.com/hashicorp/terraform-provider-aws/internal/service/redshiftserverless 632.144s

After:

% make testacc PKG=redshiftserverless TESTS=TestAccRedshiftServerlessWorkgroup_configParameters
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/redshiftserverless/... -v -count 1 -parallel 20 -run='TestAccRedshiftServerlessWorkgroup_configParameters'  -timeout 360m

--- PASS: TestAccRedshiftServerlessWorkgroup_configParameters (780.42s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/redshiftserverless 783.660s

Relations

Closes #33692

References

Output from Acceptance Testing

% make testacc PKG=redshiftserverless TESTS=TestAccRedshiftServerlessWorkgroup_
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/redshiftserverless/... -v -count 1 -parallel 20 -run='TestAccRedshiftServerlessWorkgroup_'  -timeout 360m

--- PASS: TestAccRedshiftServerlessWorkgroup_basic (459.50s)
--- PASS: TestAccRedshiftServerlessWorkgroup_tags (463.93s)
--- PASS: TestAccRedshiftServerlessWorkgroup_disappears (578.93s)
--- PASS: TestAccRedshiftServerlessWorkgroup_configParameters (597.36s)
--- PASS: TestAccRedshiftServerlessWorkgroup_baseCapacityAndPubliclyAccessible (695.84s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/redshiftserverless 699.211s

@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this pull request by adding a 👍 reaction to the original post to help the community and maintainers prioritize this pull request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added size/S Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/redshiftserverless Issues and PRs that pertain to the redshiftserverless service. labels Oct 12, 2023
@terraform-aws-provider terraform-aws-provider bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Oct 12, 2023
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

@jar-b jar-b merged commit 8382c8e into main Oct 12, 2023
51 checks passed
@jar-b jar-b deleted the b-redshiftserverless-config-param branch October 12, 2023 18:16
@github-actions github-actions bot added this to the v5.21.0 milestone Oct 12, 2023
github-actions bot pushed a commit that referenced this pull request Oct 12, 2023
@github-actions
Copy link

This functionality has been released in v5.21.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. Thank you!

Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 12, 2023
@justinretzolk justinretzolk added the bug Addresses a defect in current functionality. label Feb 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. documentation Introduces or discusses updates to documentation. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. service/redshiftserverless Issues and PRs that pertain to the redshiftserverless service. size/S Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

r/aws_redshiftserverless_workgroup: Additional config_parameter keys cause perpetual diff
3 participants