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

feat: Add custom_time_zone & file_extension to extended_S3_configuration block for aws_kinesis_firehose_delivery_stream #35969

Conversation

acwwat
Copy link
Contributor

@acwwat acwwat commented Feb 25, 2024

Description

This PR is to add the custom_time_zone and file_extension arguments to the extended_s3_configuration configuration block for the kinesis_firehose_delivery_stream resource.

In terms of design, I opted to set a default value UTC for custom_time_zone, even though the attribute can initially be empty. The quirk with the API for this resource is that the update action requires the default value for these two attributes - not providing it does not equate to removing the attributes in the update action. But the attributes will be set permanently in the resource with UTC and empty string thereafter. It was too difficult to get the states to completely match without resorting to default values.

Relations

Closes #35957

References

Referenced ExtendedS3DestinationConfiguration, ExtendedS3DestinationDescription, and ExtendedS3DestinationUpdate for the API spec.

Output from Acceptance Testing

Note: TestAccFirehoseDeliveryStream_extendedS3CustomTimeZoneAndFileExtensionUpdates is a new test case.

$
make testacc TESTS=TestAccFirehoseDeliveryStream_basic PKG=firehose
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/firehose/... -v -count 1 -parallel 20 -run='TestAccFirehoseDeliveryStream_basic'  -timeout 360m
=== RUN   TestAccFirehoseDeliveryStream_basic
=== PAUSE TestAccFirehoseDeliveryStream_basic
=== CONT  TestAccFirehoseDeliveryStream_basic
--- PASS: TestAccFirehoseDeliveryStream_basic (257.26s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/firehose   257.433s

$

$ make testacc TESTS=TestAccFirehoseDeliveryStream_extendedS3CustomTimeZoneAndFileExtensionUpdates PKG=firehose
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/firehose/... -v -count 1 -parallel 20 -run='TestAccFirehoseDeliveryStream_extendedS3CustomTimeZoneAndFileExtensionUpdates'  -timeout 360m
=== RUN   TestAccFirehoseDeliveryStream_extendedS3CustomTimeZoneAndFileExtensionUpdates
=== PAUSE TestAccFirehoseDeliveryStream_extendedS3CustomTimeZoneAndFileExtensionUpdates
=== CONT  TestAccFirehoseDeliveryStream_extendedS3CustomTimeZoneAndFileExtensionUpdates
--- PASS: TestAccFirehoseDeliveryStream_extendedS3CustomTimeZoneAndFileExtensionUpdates (369.12s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/firehose   369.305s

$
...

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/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/firehose Issues and PRs that pertain to the firehose service. labels Feb 25, 2024
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Feb 25, 2024
@acwwat acwwat force-pushed the f-aws_kinesis_firehose_delivery_stream-add_ext_s3_cfg_attrs branch 2 times, most recently from 36fd6e2 to a6770cd Compare February 25, 2024 05:26
@acwwat acwwat changed the title [WIP] feat: Add custom_time_zone & file_extension to extended_S3_configuration block for aws_kinesis_firehose_delivery_stream feat: Add custom_time_zone & file_extension to extended_S3_configuration block for aws_kinesis_firehose_delivery_stream Feb 25, 2024
@github-actions github-actions bot added size/XL Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. and removed size/M Managed by automation to categorize the size of a PR. labels Feb 25, 2024
…ion block for aws_kinesis_firehose_delivery_stream
@acwwat acwwat force-pushed the f-aws_kinesis_firehose_delivery_stream-add_ext_s3_cfg_attrs branch from a6770cd to 509a1ff Compare February 25, 2024 05:35
@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Feb 26, 2024
@ewbankkit ewbankkit self-assigned this Feb 26, 2024
@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 Feb 26, 2024
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 🚀.

% make testacc TESTARGS='-run=TestAccFirehoseDeliveryStream_extendedS3' PKG=firehose ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/firehose/... -v -count 1 -parallel 3  -run=TestAccFirehoseDeliveryStream_extendedS3 -timeout 360m
=== RUN   TestAccFirehoseDeliveryStream_extendedS3basic
=== PAUSE TestAccFirehoseDeliveryStream_extendedS3basic
=== RUN   TestAccFirehoseDeliveryStream_extendedS3KMSKeyARN
=== PAUSE TestAccFirehoseDeliveryStream_extendedS3KMSKeyARN
=== RUN   TestAccFirehoseDeliveryStream_extendedS3DynamicPartitioning
=== PAUSE TestAccFirehoseDeliveryStream_extendedS3DynamicPartitioning
=== RUN   TestAccFirehoseDeliveryStream_extendedS3DynamicPartitioningUpdate
=== PAUSE TestAccFirehoseDeliveryStream_extendedS3DynamicPartitioningUpdate
=== RUN   TestAccFirehoseDeliveryStream_extendedS3Updates
=== PAUSE TestAccFirehoseDeliveryStream_extendedS3Updates
=== RUN   TestAccFirehoseDeliveryStream_extendedS3CustomTimeZoneAndFileExtensionUpdates
=== PAUSE TestAccFirehoseDeliveryStream_extendedS3CustomTimeZoneAndFileExtensionUpdates
=== CONT  TestAccFirehoseDeliveryStream_extendedS3basic
=== CONT  TestAccFirehoseDeliveryStream_extendedS3DynamicPartitioningUpdate
=== CONT  TestAccFirehoseDeliveryStream_extendedS3CustomTimeZoneAndFileExtensionUpdates
--- PASS: TestAccFirehoseDeliveryStream_extendedS3basic (127.61s)
=== CONT  TestAccFirehoseDeliveryStream_extendedS3Updates
--- PASS: TestAccFirehoseDeliveryStream_extendedS3CustomTimeZoneAndFileExtensionUpdates (142.05s)
=== CONT  TestAccFirehoseDeliveryStream_extendedS3DynamicPartitioning
--- PASS: TestAccFirehoseDeliveryStream_extendedS3DynamicPartitioningUpdate (247.99s)
=== CONT  TestAccFirehoseDeliveryStream_extendedS3KMSKeyARN
--- PASS: TestAccFirehoseDeliveryStream_extendedS3DynamicPartitioning (147.80s)
--- PASS: TestAccFirehoseDeliveryStream_extendedS3Updates (187.75s)
--- PASS: TestAccFirehoseDeliveryStream_extendedS3KMSKeyARN (130.15s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/firehose	391.345s

@ewbankkit
Copy link
Contributor

@acwwat Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit be60d1a into hashicorp:main Feb 26, 2024
43 checks passed
@github-actions github-actions bot added this to the v5.39.0 milestone Feb 26, 2024
@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Mar 1, 2024
Copy link

github-actions bot commented Mar 1, 2024

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

@acwwat acwwat deleted the f-aws_kinesis_firehose_delivery_stream-add_ext_s3_cfg_attrs branch March 1, 2024 05:06
@acwwat acwwat restored the f-aws_kinesis_firehose_delivery_stream-add_ext_s3_cfg_attrs branch March 1, 2024 05:07
@acwwat acwwat deleted the f-aws_kinesis_firehose_delivery_stream-add_ext_s3_cfg_attrs branch March 1, 2024 05:08
Copy link

github-actions bot commented Apr 1, 2024

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 Apr 1, 2024
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/firehose Issues and PRs that pertain to the firehose service. size/XL 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
2 participants