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

r/ec2_client_vpn_endpoint - add arn attribute + plan time validations #13601

Merged
merged 2 commits into from
Jun 4, 2020

Conversation

DrFaust92
Copy link
Collaborator

@DrFaust92 DrFaust92 commented Jun 3, 2020

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

Relates #13527

Release note for CHANGELOG:

resource_aws_ec2_client_vpn_endpoint: add `arn` attribute.
resource_aws_ec2_client_vpn_endpoint: add plan time validations for `root_certificate_chain_arn`, `client_cidr_block` and `server_certificate_arn`

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAwsEc2ClientVpnEndpoint_ '
--- PASS: TestAccAwsEc2ClientVpnEndpoint_disappears (42.37s)
--- PASS: TestAccAwsEc2ClientVpnEndpoint_msAD (1751.79s)
--- PASS: TestAccAwsEc2ClientVpnEndpoint_mutualAuthAndMsAD (1774.49s)
--- PASS: TestAccAwsEc2ClientVpnEndpoint_withLogGroup (86.98s)
--- PASS: TestAccAwsEc2ClientVpnEndpoint_withDNSServers (80.35s)
--- PASS: TestAccAwsEc2ClientVpnEndpoint_tags (119.59s)
--- PASS: TestAccAwsEc2ClientVpnEndpoint_splitTunnel (82.66s)

…server_certificate_arn` and `root_certificate_chain_arn`

minor test refactors
@DrFaust92 DrFaust92 requested a review from a team June 3, 2020 21:36
@ghost ghost added size/M 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. documentation Introduces or discusses updates to documentation. labels Jun 3, 2020
@DrFaust92 DrFaust92 changed the title r/ec2_client_vpn_endpoint - add arn attribute + plan time validations [WIP]r/ec2_client_vpn_endpoint - add arn attribute + plan time validations Jun 3, 2020
@DrFaust92 DrFaust92 changed the title [WIP]r/ec2_client_vpn_endpoint - add arn attribute + plan time validations r/ec2_client_vpn_endpoint - add arn attribute + plan time validations Jun 3, 2020
@DrFaust92 DrFaust92 added the enhancement Requests to existing resources that expand the functionality or scope. label Jun 3, 2020
@anGie44 anGie44 added the technical-debt Addresses areas of the codebase that need refactoring or redesign. label Jun 3, 2020
@anGie44 anGie44 self-assigned this Jun 3, 2020
Copy link
Contributor

@anGie44 anGie44 left a comment

Choose a reason for hiding this comment

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

Looks great @DrFaust92! Confirmed ARN specs and output of acceptance tests:

--- PASS: TestAccAwsEc2ClientVpnEndpoint_disappears (11.70s)
--- PASS: TestAccAwsEc2ClientVpnEndpoint_basic (13.62s)
--- PASS: TestAccAwsEc2ClientVpnEndpoint_withDNSServers (19.59s)
--- PASS: TestAccAwsEc2ClientVpnEndpoint_splitTunnel (19.72s)
--- PASS: TestAccAwsEc2ClientVpnEndpoint_withLogGroup (24.22s)
--- PASS: TestAccAwsEc2ClientVpnEndpoint_tags (30.60s)
--- PASS: TestAccAwsEc2ClientVpnEndpoint_mutualAuthAndMsAD (1634.27s)
--- PASS: TestAccAwsEc2ClientVpnEndpoint_msAD (1745.23s)

@ewbankkit
Copy link
Contributor

For any resource that we add an arn attribute that is synthesized using meta.(*AWSClient).accountid, we need to add it to the documented list of resources affected by the provider skip_requesting_account_id flag in website/docs/index.html.markdown.

A note to remind us recently got added to the Contributing Guide.

@anGie44
Copy link
Contributor

anGie44 commented Jun 4, 2020

ahh thanks for noting that @ewbankkit! @DrFaust92 do you mind updating the index markdown?

@ghost ghost added the provider Pertains to the provider itself, rather than any interaction with AWS. label Jun 4, 2020
@DrFaust92
Copy link
Collaborator Author

@anGie44 , Done for this and other PRs that add ARN.
@ewbankkit , thanks for catching that

@anGie44 anGie44 merged commit ea95526 into hashicorp:master Jun 4, 2020
anGie44 added a commit that referenced this pull request Jun 4, 2020
and reword log for #13033
@anGie44 anGie44 added this to the v2.65.0 milestone Jun 4, 2020
@ghost
Copy link

ghost commented Jun 5, 2020

This has been released in version 2.65.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!

@DrFaust92 DrFaust92 deleted the r/ec2_client_vpn_endpoint-arn branch June 23, 2020 11:28
@ghost
Copy link

ghost commented Jul 5, 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 Jul 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. enhancement Requests to existing resources that expand the functionality or scope. provider Pertains to the provider itself, rather than any interaction with AWS. service/ec2 Issues and PRs that pertain to the ec2 service. size/M Managed by automation to categorize the size of a PR. technical-debt Addresses areas of the codebase that need refactoring or redesign. 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.

3 participants