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

DMS - Replication task - Allow date usage on cdc_start_time parameter #31917

Conversation

jeremychauvet
Copy link
Contributor

@jeremychauvet jeremychauvet commented Jun 12, 2023

Description

This merge request introduce support of RFC3339 format date (eg: 2023-06-09T18:27:12Z) for the parameter cdc_start_time.

This is also the required format when creating a replication task (see --cdc-start-time) using the AWS CLI v2.

Relations

Closes #19801

References

Output from Acceptance Testing

Unix timestamp

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

RFC3339 date

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

CHAUVET, Jérémy (EH:GROUP) and others added 3 commits June 12, 2023 22:42
…nix-values' of github.com:jeremychauvet/terraform-provider-aws into b-19801-dms-replication-task-cdc-start-time-allow-non-unix-values
@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 the size/M Managed by automation to categorize the size of a PR. label Jun 12, 2023
@gdavison
Copy link
Contributor

Thanks for the PR, @jeremychauvet. We could get around the breaking change by accepting either the existing Unix timestamp or an RFC 3339 date. The validation function verify.ValidStringDateOrPositiveInt can be used for this, and is in use in a few resources.

@jeremychauvet
Copy link
Contributor Author

Thanks for the feedback @gdavison 🙏🏼
Changing code to use it 🚀

@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. service/dms Issues and PRs that pertain to the dms service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Jun 13, 2023
@jeremychauvet jeremychauvet changed the title DMS - Replication task - Allow date usage on cdc_start_time parameter [WIP] DMS - Replication task - Allow date usage on cdc_start_time parameter Jun 13, 2023
@jeremychauvet
Copy link
Contributor Author

Code updated, added new tests to match it:

make testacc TESTS=TestAccDMSReplicationTask_cdcStartTime_unix_timestamp PKG=dms
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/dms/... -v -count 1 -parallel 20 -run='TestAccDMSReplicationTask_cdcStartTime_unix_timestamp'  -timeout 180m
=== RUN   TestAccDMSReplicationTask_cdcStartTime_unix_timestamp
=== PAUSE TestAccDMSReplicationTask_cdcStartTime_unix_timestamp
=== CONT  TestAccDMSReplicationTask_cdcStartTime_unix_timestamp
--- PASS: TestAccDMSReplicationTask_cdcStartTime_unix_timestamp (1051.69s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/dms        1053.867s
make testacc TESTS=TestAccDMSReplicationTask_cdcStartTime_rfc3339_date PKG=dms
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/dms/... -v -count 1 -parallel 20 -run='TestAccDMSReplicationTask_cdcStartTime_rfc3339_date'  -timeout 180m
=== RUN   TestAccDMSReplicationTask_cdcStartTime_rfc3339_date
=== PAUSE TestAccDMSReplicationTask_cdcStartTime_rfc3339_date
=== CONT  TestAccDMSReplicationTask_cdcStartTime_rfc3339_date
--- PASS: TestAccDMSReplicationTask_cdcStartTime_rfc3339_date (1062.81s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/dms        1064.967s

@jeremychauvet jeremychauvet changed the title [WIP] DMS - Replication task - Allow date usage on cdc_start_time parameter DMS - Replication task - Allow date usage on cdc_start_time parameter Jun 13, 2023
@jeremychauvet
Copy link
Contributor Author

PR ready for review ✅

@ewbankkit
Copy link
Contributor

@jeremychauvet Thanks for the contribution 🎉 👏.
These changes have been rolled into #34356.

@ewbankkit ewbankkit merged commit fa60946 into hashicorp:main Dec 19, 2023
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 Jan 19, 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/dms Issues and PRs that pertain to the dms service. size/M 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.

AWS DMS cdc start time non unix timestamp value
3 participants