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

Read property dns_servers for resource resource_aws_ec2_client_vpn_endpoint #11889

Merged
merged 1 commit into from
Feb 6, 2020

Conversation

atareshawty
Copy link
Contributor

Currently, the provider cannot change the attribute dns_servers on the resource resource_aws_ec2_client_vpn_endpoint once the value has been set. This can be fixed by setting the attribute when refreshing state

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Release note for CHANGELOG:

Update resource_aws_ec2_client_vpn_endpoint.dns_servers when refreshing state

Output from acceptance testing:

$ make testacc TEST=./aws TESTARGS='-run=TestAccAwsEc2ClientVpnEndpoint_withDNSServers'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAwsEc2ClientVpnEndpoint_withDNSServers -timeout 120m
=== RUN   TestAccAwsEc2ClientVpnEndpoint_withDNSServers
=== PAUSE TestAccAwsEc2ClientVpnEndpoint_withDNSServers
=== CONT  TestAccAwsEc2ClientVpnEndpoint_withDNSServers
--- PASS: TestAccAwsEc2ClientVpnEndpoint_withDNSServers (34.31s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       36.043s

...

…dpoint

Currently, the provider cannot change the attribute `dns_servers` on the
resource resource_aws_ec2_client_vpn_endpoint. This can be fixed by
setting the attribute properly when refreshing state
@atareshawty atareshawty requested a review from a team February 4, 2020 19:01
@ghost ghost added needs-triage Waiting for first response or review from a maintainer. size/XS Managed by automation to categorize the size of a PR. service/ec2 Issues and PRs that pertain to the ec2 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Feb 4, 2020
@atareshawty
Copy link
Contributor Author

Unsure why my Travis build failed on the Dependencies step:

travis_setup_go

gimme: given '1.13.x' but no release for '1.13' found

gimme: given '1.13.x' but no release for '1.13' found

Failed to run gimme

The command "travis_setup_go" failed and exited with 86 during .

I can start digging in, but I'm not sure how my change could have caused this. Some help would be appreciated 🙏

@bflad
Copy link
Contributor

bflad commented Feb 5, 2020

@atareshawty 👋 Thanks for the heads up. Seems to be a TravisCI issue, due to no fault of yours. I restarted the failed job to see if that'll make it green.

@bflad bflad added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Feb 5, 2020
@atareshawty
Copy link
Contributor Author

@atareshawty 👋 Thanks for the heads up. Seems to be a TravisCI issue, due to no fault of yours. I restarted the failed job to see if that'll make it green.

Great, thanks for doing that! I considered toggling my PR open/closed to get another build, but didn’t want to spam anyone 😀 Looks like Travis is good now

@bflad bflad added this to the v2.48.0 milestone Feb 6, 2020
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this fix, @atareshawty, LGTM 🚀

Output from acceptance testing:

--- PASS: TestAccAwsEc2ClientVpnEndpoint_disappears (17.71s)
--- PASS: TestAccAwsEc2ClientVpnEndpoint_withLogGroup (19.24s)
--- PASS: TestAccAwsEc2ClientVpnEndpoint_splitTunnel (21.03s)
--- PASS: TestAccAwsEc2ClientVpnEndpoint_withDNSServers (24.47s)
--- PASS: TestAccAwsEc2ClientVpnEndpoint_basic (26.73s)
--- PASS: TestAccAwsEc2ClientVpnEndpoint_tags (27.13s)
--- PASS: TestAccAwsEc2ClientVpnEndpoint_msAD (1755.87s)

@bflad bflad merged commit 6a409fe into hashicorp:master Feb 6, 2020
bflad added a commit that referenced this pull request Feb 6, 2020
@ghost
Copy link

ghost commented Feb 7, 2020

This has been released in version 2.48.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 for triage. Thanks!

@atareshawty atareshawty deleted the ec2-client-vpn-dns-servers branch February 7, 2020 02:52
@ghost
Copy link

ghost commented Mar 27, 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 Mar 27, 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. service/ec2 Issues and PRs that pertain to the ec2 service. size/XS 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.

2 participants