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

resource/aws_elasticsearch_domain: Added ForceNew to vpc_options #2157

Merged
merged 2 commits into from
Nov 7, 2017

Conversation

Ninir
Copy link
Contributor

@Ninir Ninir commented Nov 2, 2017

This fixes an issue where you could not switch from an internet-based ES endpoint to a VPC_based one, and vice-versa. Documentation about those limitations

Before

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSElasticSearchDomain_internetToVpcEndpoint'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSElasticSearchDomain_internetToVpcEndpoint -timeout 120m
=== RUN   TestAccAWSElasticSearchDomain_internetToVpcEndpoint
--- FAIL: TestAccAWSElasticSearchDomain_internetToVpcEndpoint (737.45s)
	testing.go:492: Step 1 error: Error applying: 1 error(s) occurred:
		
		* aws_elasticsearch_domain.example: 1 error(s) occurred:
		
		* aws_elasticsearch_domain.example: ValidationException: Domain should be created with VPC options to update VPC options later
			status code: 400, request id: 92ffeaf5-bfc4-11e7-881d-b1dcd6c02d98
FAIL
exit status 1
FAIL	github.com/terraform-providers/terraform-provider-aws/aws	737.489s
make: *** [testacc] Error 1

After:

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSElasticSearchDomain_internetToVpcEndpoint'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSElasticSearchDomain_internetToVpcEndpoint -timeout 120m
=== RUN   TestAccAWSElasticSearchDomain_internetToVpcEndpoint
--- PASS: TestAccAWSElasticSearchDomain_internetToVpcEndpoint (2083.19s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	2083.229s

@Ninir Ninir added the bug Addresses a defect in current functionality. label Nov 2, 2017
@stack72
Copy link
Contributor

stack72 commented Nov 6, 2017

@Ninir do you think a link to these limitations should be added to the documentation as well as this change?

@Ninir
Copy link
Contributor Author

Ninir commented Nov 6, 2017

@stack72 Hey Paul,

This is an excellent idea, added in! Good call! 😄 👍

@Ninir Ninir requested a review from radeksimko November 7, 2017 07:30
@Ninir Ninir merged commit 6cdb8e8 into hashicorp:master Nov 7, 2017
@Ninir Ninir deleted the b-esdomain-vpc-options branch November 14, 2017 14:03
@ghost
Copy link

ghost commented Apr 10, 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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants