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

rd/transfer_server - add support for domain #19691

Merged
merged 3 commits into from
Jun 8, 2021

Conversation

DrFaust92
Copy link
Collaborator

@DrFaust92 DrFaust92 commented Jun 7, 2021

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 #17022

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccXXX'
--- PASS: TestAccAWSTransferServer_vpcEndpointId (148.42s)
--- PASS: TestAccAWSTransferServer_forceDestroy (188.83s)
--- PASS: TestAccAWSTransferServer_hostKey (216.91s)
--- PASS: TestAccAWSTransferServer_domain (219.98s)
--- PASS: TestAccAWSTransferServer_apiGateway (227.95s)
--- PASS: TestAccAWSTransferServer_securityPolicy (231.31s)
--- PASS: TestAccAWSTransferServer_disappears (233.67s)
--- PASS: TestAccAWSTransferServer_basic (238.02s)
--- PASS: TestAccAWSTransferServer_vpc (290.41s)
--- PASS: TestAccAWSTransferServer_protocols (384.76s)


--- PASS: TestAccDataSourceAwsTransferServer_service_managed (214.97s)
--- PASS: TestAccDataSourceAwsTransferServer_basic (219.49s)
--- PASS: TestAccDataSourceAwsTransferServer_apigateway (233.32s)

@ghost ghost added size/S Managed by automation to categorize the size of a PR. labels Jun 7, 2021
@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. service/transfer Issues and PRs that pertain to the transfer service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Jun 7, 2021
@ghost ghost added size/M Managed by automation to categorize the size of a PR. and removed size/S Managed by automation to categorize the size of a PR. labels Jun 7, 2021
@DrFaust92 DrFaust92 added the enhancement Requests to existing resources that expand the functionality or scope. label Jun 7, 2021
@DrFaust92 DrFaust92 marked this pull request as ready for review June 7, 2021 10:40
@DrFaust92 DrFaust92 requested a review from a team as a code owner June 7, 2021 10:40
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

Commercial
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSTransferServer_\|TestAccDataSourceAwsTransferServer_'  ACCTEST_PARALLELISM=6
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 6 -run=TestAccAWSTransferServer_\|TestAccDataSourceAwsTransferServer_ -timeout 180m
=== RUN   TestAccDataSourceAwsTransferServer_basic
=== PAUSE TestAccDataSourceAwsTransferServer_basic
=== RUN   TestAccDataSourceAwsTransferServer_service_managed
=== PAUSE TestAccDataSourceAwsTransferServer_service_managed
=== RUN   TestAccDataSourceAwsTransferServer_apigateway
=== PAUSE TestAccDataSourceAwsTransferServer_apigateway
=== RUN   TestAccAWSTransferServer_basic
=== PAUSE TestAccAWSTransferServer_basic
=== RUN   TestAccAWSTransferServer_domain
=== PAUSE TestAccAWSTransferServer_domain
=== RUN   TestAccAWSTransferServer_disappears
=== PAUSE TestAccAWSTransferServer_disappears
=== RUN   TestAccAWSTransferServer_securityPolicy
=== PAUSE TestAccAWSTransferServer_securityPolicy
=== RUN   TestAccAWSTransferServer_vpc
=== PAUSE TestAccAWSTransferServer_vpc
=== RUN   TestAccAWSTransferServer_protocols
=== PAUSE TestAccAWSTransferServer_protocols
=== RUN   TestAccAWSTransferServer_apiGateway
=== PAUSE TestAccAWSTransferServer_apiGateway
=== RUN   TestAccAWSTransferServer_forceDestroy
=== PAUSE TestAccAWSTransferServer_forceDestroy
=== RUN   TestAccAWSTransferServer_hostKey
=== PAUSE TestAccAWSTransferServer_hostKey
=== RUN   TestAccAWSTransferServer_vpcEndpointId
=== PAUSE TestAccAWSTransferServer_vpcEndpointId
=== CONT  TestAccDataSourceAwsTransferServer_basic
=== CONT  TestAccAWSTransferServer_vpc
=== CONT  TestAccAWSTransferServer_basic
=== CONT  TestAccAWSTransferServer_domain
=== CONT  TestAccDataSourceAwsTransferServer_apigateway
=== CONT  TestAccAWSTransferServer_securityPolicy
--- PASS: TestAccAWSTransferServer_domain (186.81s)
=== CONT  TestAccAWSTransferServer_disappears
--- PASS: TestAccDataSourceAwsTransferServer_apigateway (194.20s)
=== CONT  TestAccDataSourceAwsTransferServer_service_managed
--- PASS: TestAccAWSTransferServer_securityPolicy (233.23s)
=== CONT  TestAccAWSTransferServer_hostKey
--- PASS: TestAccAWSTransferServer_basic (236.46s)
=== CONT  TestAccAWSTransferServer_vpcEndpointId
--- PASS: TestAccAWSTransferServer_vpc (252.16s)
=== CONT  TestAccAWSTransferServer_apiGateway
--- PASS: TestAccAWSTransferServer_disappears (176.34s)
=== CONT  TestAccAWSTransferServer_forceDestroy
--- PASS: TestAccDataSourceAwsTransferServer_service_managed (183.05s)
=== CONT  TestAccAWSTransferServer_protocols
--- PASS: TestAccAWSTransferServer_vpcEndpointId (154.65s)
--- PASS: TestAccAWSTransferServer_hostKey (183.69s)
--- PASS: TestAccDataSourceAwsTransferServer_basic (427.79s)
--- PASS: TestAccAWSTransferServer_apiGateway (214.83s)
--- PASS: TestAccAWSTransferServer_forceDestroy (188.76s)
--- PASS: TestAccAWSTransferServer_protocols (242.30s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	623.087s
GovCloud
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSTransferServer_\|TestAccDataSourceAwsTransferServer_'  ACCTEST_PARALLELISM=6
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 6 -run=TestAccAWSTransferServer_\|TestAccDataSourceAwsTransferServer_ -timeout 180m
=== RUN   TestAccDataSourceAwsTransferServer_basic
=== PAUSE TestAccDataSourceAwsTransferServer_basic
=== RUN   TestAccDataSourceAwsTransferServer_service_managed
=== PAUSE TestAccDataSourceAwsTransferServer_service_managed
=== RUN   TestAccDataSourceAwsTransferServer_apigateway
=== PAUSE TestAccDataSourceAwsTransferServer_apigateway
=== RUN   TestAccAWSTransferServer_basic
=== PAUSE TestAccAWSTransferServer_basic
=== RUN   TestAccAWSTransferServer_domain
=== PAUSE TestAccAWSTransferServer_domain
=== RUN   TestAccAWSTransferServer_disappears
=== PAUSE TestAccAWSTransferServer_disappears
=== RUN   TestAccAWSTransferServer_securityPolicy
=== PAUSE TestAccAWSTransferServer_securityPolicy
=== RUN   TestAccAWSTransferServer_vpc
=== PAUSE TestAccAWSTransferServer_vpc
=== RUN   TestAccAWSTransferServer_protocols
=== PAUSE TestAccAWSTransferServer_protocols
=== RUN   TestAccAWSTransferServer_apiGateway
=== PAUSE TestAccAWSTransferServer_apiGateway
=== RUN   TestAccAWSTransferServer_forceDestroy
=== PAUSE TestAccAWSTransferServer_forceDestroy
=== RUN   TestAccAWSTransferServer_hostKey
=== PAUSE TestAccAWSTransferServer_hostKey
=== RUN   TestAccAWSTransferServer_vpcEndpointId
    resource_aws_transfer_server_test.go:461: Transfer Server VPC_ENDPOINT endpoint type is not supported in GovCloud partition
--- SKIP: TestAccAWSTransferServer_vpcEndpointId (0.00s)
=== CONT  TestAccDataSourceAwsTransferServer_basic
=== CONT  TestAccAWSTransferServer_vpc
=== CONT  TestAccAWSTransferServer_forceDestroy
=== CONT  TestAccAWSTransferServer_apiGateway
=== CONT  TestAccAWSTransferServer_hostKey
=== CONT  TestAccAWSTransferServer_protocols
    resource_aws_api_gateway_rest_api_test.go:1326: skipping test; Endpoint Configuration type EDGE is not supported in this partition (aws-us-gov)
=== CONT  TestAccAWSTransferServer_apiGateway
    resource_aws_api_gateway_rest_api_test.go:1326: skipping test; Endpoint Configuration type EDGE is not supported in this partition (aws-us-gov)
--- SKIP: TestAccAWSTransferServer_apiGateway (1.38s)
=== CONT  TestAccAWSTransferServer_securityPolicy
--- SKIP: TestAccAWSTransferServer_protocols (1.38s)
=== CONT  TestAccAWSTransferServer_domain
=== CONT  TestAccAWSTransferServer_hostKey
    provider_test.go:1103: skipping test for aws-us-gov/us-gov-west-1: Error running apply: exit status 1
        2021/06/08 09:42:00 [DEBUG] Using modified User-Agent: Terraform/0.12.31 HashiCorp-terraform-exec/0.13.3
        
        Error: error creating Transfer Server: InvalidRequestException: Invalid server type: PUBLIC
        
          on terraform_plugin_test.tf line 2, in resource "aws_transfer_server" "test":
           2: resource "aws_transfer_server" "test" {
        
        
--- SKIP: TestAccAWSTransferServer_hostKey (6.44s)
=== CONT  TestAccAWSTransferServer_disappears
=== CONT  TestAccAWSTransferServer_domain
    provider_test.go:1103: skipping test for aws-us-gov/us-gov-west-1: Error running apply: exit status 1
        2021/06/08 09:42:01 [DEBUG] Using modified User-Agent: Terraform/0.12.31 HashiCorp-terraform-exec/0.13.3
        
        Error: error creating Transfer Server: InvalidRequestException: Invalid server type: PUBLIC
        
          on terraform_plugin_test.tf line 2, in resource "aws_transfer_server" "test":
           2: resource "aws_transfer_server" "test" {
        
        
=== CONT  TestAccAWSTransferServer_securityPolicy
    provider_test.go:1103: skipping test for aws-us-gov/us-gov-west-1: Error running apply: exit status 1
        2021/06/08 09:42:01 [DEBUG] Using modified User-Agent: Terraform/0.12.31 HashiCorp-terraform-exec/0.13.3
        
        Error: error creating Transfer Server: InvalidRequestException: Invalid server type: PUBLIC
        
          on terraform_plugin_test.tf line 2, in resource "aws_transfer_server" "test":
           2: resource "aws_transfer_server" "test" {
        
        
--- SKIP: TestAccAWSTransferServer_domain (5.79s)
=== CONT  TestAccDataSourceAwsTransferServer_apigateway
--- SKIP: TestAccAWSTransferServer_securityPolicy (5.91s)
=== CONT  TestAccAWSTransferServer_basic
=== CONT  TestAccDataSourceAwsTransferServer_apigateway
    resource_aws_api_gateway_rest_api_test.go:1326: skipping test; Endpoint Configuration type EDGE is not supported in this partition (aws-us-gov)
--- SKIP: TestAccDataSourceAwsTransferServer_apigateway (0.45s)
=== CONT  TestAccDataSourceAwsTransferServer_service_managed
=== CONT  TestAccDataSourceAwsTransferServer_basic
    provider_test.go:1103: skipping test for aws-us-gov/us-gov-west-1: Error running apply: exit status 1
        2021/06/08 09:42:02 [DEBUG] Using modified User-Agent: Terraform/0.12.31 HashiCorp-terraform-exec/0.13.3
        
        Error: error creating Transfer Server: InvalidRequestException: Invalid server type: PUBLIC
        
          on terraform_plugin_test.tf line 2, in resource "aws_transfer_server" "test":
           2: resource "aws_transfer_server" "test" {}
        
        
--- SKIP: TestAccDataSourceAwsTransferServer_basic (8.17s)
=== CONT  TestAccAWSTransferServer_forceDestroy
    provider_test.go:1103: skipping test for aws-us-gov/us-gov-west-1: Error running apply: exit status 1
        2021/06/08 09:42:00 [DEBUG] Using modified User-Agent: Terraform/0.12.31 HashiCorp-terraform-exec/0.13.3
        
        Error: error creating Transfer Server: InvalidRequestException: Invalid server type: PUBLIC
        
          on terraform_plugin_test.tf line 2, in resource "aws_transfer_server" "test":
           2: resource "aws_transfer_server" "test" {
        
        
=== CONT  TestAccAWSTransferServer_disappears
    provider_test.go:1103: skipping test for aws-us-gov/us-gov-west-1: Error running apply: exit status 1
        2021/06/08 09:42:05 [DEBUG] Using modified User-Agent: Terraform/0.12.31 HashiCorp-terraform-exec/0.13.3
        
        Error: error creating Transfer Server: InvalidRequestException: Invalid server type: PUBLIC
        
          on terraform_plugin_test.tf line 2, in resource "aws_transfer_server" "test":
           2: resource "aws_transfer_server" "test" {}
        
        
--- SKIP: TestAccAWSTransferServer_disappears (5.23s)
=== CONT  TestAccAWSTransferServer_basic
    provider_test.go:1103: skipping test for aws-us-gov/us-gov-west-1: Error running apply: exit status 1
        2021/06/08 09:42:06 [DEBUG] Using modified User-Agent: Terraform/0.12.31 HashiCorp-terraform-exec/0.13.3
        
        Error: error creating Transfer Server: InvalidRequestException: Invalid server type: PUBLIC
        
          on terraform_plugin_test.tf line 2, in resource "aws_transfer_server" "test":
           2: resource "aws_transfer_server" "test" {}
        
        
--- SKIP: TestAccAWSTransferServer_basic (4.99s)
--- SKIP: TestAccAWSTransferServer_forceDestroy (13.13s)
=== CONT  TestAccDataSourceAwsTransferServer_service_managed
    provider_test.go:1103: skipping test for aws-us-gov/us-gov-west-1: Error running apply: exit status 1
        2021/06/08 09:42:07 [DEBUG] Using modified User-Agent: Terraform/0.12.31 HashiCorp-terraform-exec/0.13.3
        
        Error: error creating Transfer Server: InvalidRequestException: Invalid server type: PUBLIC
        
          on terraform_plugin_test.tf line 42, in resource "aws_transfer_server" "test":
          42: resource "aws_transfer_server" "test" {
        
        
--- SKIP: TestAccDataSourceAwsTransferServer_service_managed (11.66s)
--- PASS: TestAccAWSTransferServer_vpc (249.67s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	252.709s

@ewbankkit ewbankkit merged commit 05bd6a5 into hashicorp:main Jun 8, 2021
@github-actions github-actions bot added this to the v3.45.0 milestone Jun 8, 2021
@DrFaust92 DrFaust92 deleted the r/transfer_server_domain branch June 8, 2021 15:00
@github-actions
Copy link

This functionality has been released in v3.45.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. Thank you!

@github-actions
Copy link

I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 12, 2021
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. service/transfer Issues and PRs that pertain to the transfer service. size/M 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