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: aws_redshift_cluster publicly_accessible now defaults true #5262

Merged
merged 1 commit into from
Feb 22, 2016

Conversation

stack72
Copy link
Contributor

@stack72 stack72 commented Feb 22, 2016

Fixes #5252

In a nutshell, there was no default on an optional bool. When GetOk was used with false, it wasn't sending a value to the API and therefore defaulting to true.

Changed to use AWS default of true - as redshift clusters default to the default VPC and thus are public by default

make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSRedshiftCluster' 2>~/tf.log
==> Checking that code complies with gofmt requirements...
GO15VENDOREXPERIMENT=1 go generate $(GO15VENDOREXPERIMENT=1 go list ./... | grep -v /vendor/)
TF_ACC=1 GO15VENDOREXPERIMENT=1 go test ./builtin/providers/aws -v -run=TestAccAWSRedshiftCluster -timeout 120m
=== RUN   TestAccAWSRedshiftCluster_basic
--- PASS: TestAccAWSRedshiftCluster_basic (616.52s)
=== RUN   TestAccAWSRedshiftCluster_notPubliclyAccessible
--- PASS: TestAccAWSRedshiftCluster_notPubliclyAccessible (645.47s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws    1262.009s

@phinze
Copy link
Contributor

phinze commented Feb 22, 2016

Solid - LGTM

stack72 added a commit that referenced this pull request Feb 22, 2016
provider/aws: `aws_redshift_cluster` publicly_accessible now defaults true
@stack72 stack72 merged commit 57f58de into hashicorp:master Feb 22, 2016
@stack72 stack72 deleted the b-aws-redshift-cluster-public branch February 22, 2016 23:19
@ghost
Copy link

ghost commented Apr 28, 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 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

redshift cluster resource incorrectly sets publicly_accessible
2 participants