-
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
Add aws_redshift_scheduled_action
resource
#13474
Conversation
aws_redshift_scheduled_action
resource
if aws.TimeValue(scheduledAction.StartTime).Format(time.RFC3339) != "0001-01-01T00:00:00Z" { | ||
d.Set("start_time", aws.TimeValue(scheduledAction.StartTime).Format(time.RFC3339)) | ||
} | ||
|
||
if aws.TimeValue(scheduledAction.EndTime).Format(time.RFC3339) != "0001-01-01T00:00:00Z" { | ||
d.Set("end_time", aws.TimeValue(scheduledAction.EndTime).Format(time.RFC3339)) | ||
} |
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.
If each of StartTime and EndTime are not set, "0001-01-01T00:00:00Z" was returned. So when it was returned, start_time and end_time are not set.
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.
You may be able to check against scheduledAction.StartTime != nil
and scheduledAction.EndTime != nil
instead 👍
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.
@bflad Thank you for telling, I fixed it!
So, any chance of merging it soon? |
@bflad Do I have to do more things? Or wait for review? |
Notification of Recent and Upcoming Changes to ContributionsThank you for this contribution! There have been a few recent development changes that affect this pull request. We apologize for the inconvenience, especially if there have been long review delays up until now. Please note that this is automated message from an unmonitored account. See the FAQ for additional information on the maintainer team and review prioritization. If you are unable to complete these updates, please leave a comment for the community and maintainers so someone can potentially continue the work. The maintainers will encourage other contributors to use the existing contribution as the base for additional changes as appropriate. Otherwise, contributions that do not receive updated code or comments from the original contributor may be closed in the future so the maintainers can focus on active items. For the most up to date information about Terraform AWS Provider development, see the Contributing Guide. Additional technical debt changes can be tracked with the As part of updating a pull request with these changes, the most current unit testing and linting will run. These may report issues that were not previously reported. Terraform 0.12 SyntaxReference: #8950 Version 3 and later of the Terraform AWS Provider, which all existing contributions would potentially be added, only supports Terraform 0.12 and later. Certain syntax elements of Terraform 0.11 and earlier show deprecation warnings during runs with Terraform 0.12. Documentation and test configurations, such as those including deprecated string interpolations ( Action Required: Terraform Plugin SDK Version 2Reference: #14551 The Terraform AWS Provider has been upgraded to the latest version of the Terraform Plugin SDK. Generally, most changes to contributions should only involve updating Go import paths in source code files. Please see the referenced issue for additional information. Action Required: Removal of website/aws.erb FileReference: #14712 Any changes to the Upcoming Change of Git Branch NamingReference: #14292 Development environments will need their upstream Git branch updated from Upcoming Change of GitHub OrganizationReference: #14715 This repository will be migrating from https://github.com/terraform-providers/terraform-provider-aws to https://github.com/hashicorp/terraform-provider-aws. No practitioner or developer action is anticipated and most GitHub functionality will automatically redirect to the new location. Go import paths including |
I will update by end of September! |
|
Can someone review this please? |
I'd love to be able to use this or somethign similar. AWS has updated the functionality around this as well. |
Hi Guys, any update on this PR? |
Hoping this PR doesn't get lost after so much time. |
1 year has passed since this pull request got ready, please someone review |
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 🚀.
Commercial
% make testacc TESTARGS='-run=TestAccAWSRedshiftScheduledAction_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSRedshiftScheduledAction_ -timeout 180m
=== RUN TestAccAWSRedshiftScheduledAction_basicPauseCluster
=== PAUSE TestAccAWSRedshiftScheduledAction_basicPauseCluster
=== RUN TestAccAWSRedshiftScheduledAction_PauseClusterWithOptions
=== PAUSE TestAccAWSRedshiftScheduledAction_PauseClusterWithOptions
=== RUN TestAccAWSRedshiftScheduledAction_basicResumeCluster
=== PAUSE TestAccAWSRedshiftScheduledAction_basicResumeCluster
=== RUN TestAccAWSRedshiftScheduledAction_basicResizeCluster
=== PAUSE TestAccAWSRedshiftScheduledAction_basicResizeCluster
=== RUN TestAccAWSRedshiftScheduledAction_ResizeClusterWithOptions
=== PAUSE TestAccAWSRedshiftScheduledAction_ResizeClusterWithOptions
=== RUN TestAccAWSRedshiftScheduledAction_disappears
=== PAUSE TestAccAWSRedshiftScheduledAction_disappears
=== CONT TestAccAWSRedshiftScheduledAction_basicPauseCluster
=== CONT TestAccAWSRedshiftScheduledAction_ResizeClusterWithOptions
=== CONT TestAccAWSRedshiftScheduledAction_disappears
=== CONT TestAccAWSRedshiftScheduledAction_basicResumeCluster
=== CONT TestAccAWSRedshiftScheduledAction_basicResizeCluster
=== CONT TestAccAWSRedshiftScheduledAction_PauseClusterWithOptions
--- PASS: TestAccAWSRedshiftScheduledAction_disappears (28.22s)
--- PASS: TestAccAWSRedshiftScheduledAction_PauseClusterWithOptions (31.07s)
--- PASS: TestAccAWSRedshiftScheduledAction_ResizeClusterWithOptions (31.21s)
--- PASS: TestAccAWSRedshiftScheduledAction_basicResumeCluster (45.87s)
--- PASS: TestAccAWSRedshiftScheduledAction_basicPauseCluster (45.88s)
--- PASS: TestAccAWSRedshiftScheduledAction_basicResizeCluster (45.89s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 49.841s
GovCloud
% make testacc TESTARGS='-run=TestAccAWSRedshiftScheduledAction_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSRedshiftScheduledAction_ -timeout 180m
=== RUN TestAccAWSRedshiftScheduledAction_basicPauseCluster
=== PAUSE TestAccAWSRedshiftScheduledAction_basicPauseCluster
=== RUN TestAccAWSRedshiftScheduledAction_PauseClusterWithOptions
=== PAUSE TestAccAWSRedshiftScheduledAction_PauseClusterWithOptions
=== RUN TestAccAWSRedshiftScheduledAction_basicResumeCluster
=== PAUSE TestAccAWSRedshiftScheduledAction_basicResumeCluster
=== RUN TestAccAWSRedshiftScheduledAction_basicResizeCluster
=== PAUSE TestAccAWSRedshiftScheduledAction_basicResizeCluster
=== RUN TestAccAWSRedshiftScheduledAction_ResizeClusterWithOptions
=== PAUSE TestAccAWSRedshiftScheduledAction_ResizeClusterWithOptions
=== RUN TestAccAWSRedshiftScheduledAction_disappears
=== PAUSE TestAccAWSRedshiftScheduledAction_disappears
=== CONT TestAccAWSRedshiftScheduledAction_basicPauseCluster
=== CONT TestAccAWSRedshiftScheduledAction_ResizeClusterWithOptions
=== CONT TestAccAWSRedshiftScheduledAction_basicResizeCluster
=== CONT TestAccAWSRedshiftScheduledAction_PauseClusterWithOptions
=== CONT TestAccAWSRedshiftScheduledAction_basicResumeCluster
=== CONT TestAccAWSRedshiftScheduledAction_disappears
--- PASS: TestAccAWSRedshiftScheduledAction_disappears (32.61s)
--- PASS: TestAccAWSRedshiftScheduledAction_PauseClusterWithOptions (35.95s)
--- PASS: TestAccAWSRedshiftScheduledAction_ResizeClusterWithOptions (36.04s)
--- PASS: TestAccAWSRedshiftScheduledAction_basicPauseCluster (51.05s)
--- PASS: TestAccAWSRedshiftScheduledAction_basicResizeCluster (51.12s)
--- PASS: TestAccAWSRedshiftScheduledAction_basicResumeCluster (53.16s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 56.301s
@ewbankkit Thank you for fixing! |
This functionality has been released in v3.61.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! |
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. |
Community Note
Relates OR Closes #12745
Release note for CHANGELOG:
Output from acceptance testing: