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

provider/aws: Redshift Cluster not allowing 0 for automated_snapshot_retention_period #6537

Merged
merged 1 commit into from
May 8, 2016

Conversation

stack72
Copy link
Contributor

@stack72 stack72 commented May 8, 2016

The default value for automated_snapshot_retention_period is 1.
Therefore, it can be included in the CreateClusterInput without
needing to check that it is set.

This was actually stopping people from setting the value to 0 (disabling
the snapshots) as there is an issue in d.GetOk() evaluating 0 for int

Also, documented that the Default is actually 1 here

@stack72 stack72 added provider/aws build Auto-pinning labels May 8, 2016
@stack72
Copy link
Contributor Author

stack72 commented May 8, 2016

FYI, this wasn't noticed before as the tests for Redshift are not currently running nightly in Travis (there is a PR to fix that in place too)

automated_snapshot_retention_period

The default value for `automated_snapshot_retention_period` is 1.
Therefore, it can be included in the `CreateClusterInput` without
needing to check that it is set.

This was actually stopping people from setting the value to 0 (disabling
the snapshots) as there is an issue in `d.GetOk()` evaluating 0 for int
@stack72 stack72 force-pushed the redshift-cluster-retention-default branch from 49418ff to 76b9581 Compare May 8, 2016 17:56
@stack72 stack72 added bug and removed build Auto-pinning labels May 8, 2016
@jen20
Copy link
Contributor

jen20 commented May 8, 2016

LGTM.

@stack72 stack72 merged commit dc30bd2 into master May 8, 2016
@stack72 stack72 deleted the redshift-cluster-retention-default branch May 8, 2016 18:29
cristicalin pushed a commit to cristicalin/terraform that referenced this pull request May 24, 2016
automated_snapshot_retention_period

The default value for `automated_snapshot_retention_period` is 1.
Therefore, it can be included in the `CreateClusterInput` without
needing to check that it is set.

This was actually stopping people from setting the value to 0 (disabling
the snapshots) as there is an issue in `d.GetOk()` evaluating 0 for int
@ghost
Copy link

ghost commented Apr 26, 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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants