-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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_transfer_server: Add support for VPC security groups #17539
resource/aws_transfer_server: Add support for VPC security groups #17539
Conversation
Thank you for your contribution! 🚀 Please note that the Remove any changes to the |
Hi Folks, |
you can set in draft @amadureira |
Also, your PR should not change anything on the files CHANGELOG.md and hidden files. |
@teamterraform, |
Please add |
…Id is not supported".
…points API. Acceptance test output (failures expected): % make testacc TEST=./aws TESTARGS='-run=TestAccAWSTransfer_serial/Server/VPC$' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSTransfer_serial/Server/VPC -timeout 180m === RUN TestAccAWSTransfer_serial === RUN TestAccAWSTransfer_serial/Server === RUN TestAccAWSTransfer_serial/Server/VPCAddressAllocationIDs resource_aws_transfer_server_test.go:288: Step 3/3 error: Error running apply: exit status 1 2021/06/29 10:59:43 [DEBUG] Using modified User-Agent: Terraform/0.12.31 HashiCorp-terraform-exec/0.13.3 Error: error updating Transfer Server (s-45159289697f40d29): InvalidRequestException: Changing Security Group is not supported on terraform_plugin_test.tf line 66, in resource "aws_transfer_server" "test": 66: resource "aws_transfer_server" "test" { === RUN TestAccAWSTransfer_serial/Server/VPC resource_aws_transfer_server_test.go:237: Step 3/3 error: Error running apply: exit status 1 2021/06/29 11:00:57 [DEBUG] Using modified User-Agent: Terraform/0.12.31 HashiCorp-terraform-exec/0.13.3 Error: error updating Transfer Server (s-e9f52c9d825845e5a): InvalidRequestException: Changing Security Group is not supported on terraform_plugin_test.tf line 56, in resource "aws_transfer_server" "test": 56: resource "aws_transfer_server" "test" { === RUN TestAccAWSTransfer_serial/Server/VPCEndpointID === RUN TestAccAWSTransfer_serial/Server/VPCSecurityGroupIDs resource_aws_transfer_server_test.go:340: Step 3/3 error: Error running apply: exit status 1 2021/06/29 11:03:44 [DEBUG] Using modified User-Agent: Terraform/0.12.31 HashiCorp-terraform-exec/0.13.3 Error: error updating Transfer Server (s-1e131250f9944c45a): InvalidRequestException: Changing Security Group is not supported on terraform_plugin_test.tf line 65, in resource "aws_transfer_server" "test": 65: resource "aws_transfer_server" "test" { --- FAIL: TestAccAWSTransfer_serial (411.21s) --- FAIL: TestAccAWSTransfer_serial/Server (411.21s) --- FAIL: TestAccAWSTransfer_serial/Server/VPCAddressAllocationIDs (185.57s) --- FAIL: TestAccAWSTransfer_serial/Server/VPC (58.73s) --- PASS: TestAccAWSTransfer_serial/Server/VPCEndpointID (106.22s) --- FAIL: TestAccAWSTransfer_serial/Server/VPCSecurityGroupIDs (60.69s) FAIL FAIL github.com/terraform-providers/terraform-provider-aws/aws 414.320s FAIL make: *** [testacc] Error 1
… security_group_ids.
…esources should not implement multiple AWS service functionality'.
Error: error deleting EC2 VPC Endpoint (vpce-09a9ae6b78f2b0571): 1 error occurred: * vpce-09a9ae6b78f2b0571: InvalidVpcEndpoint.NotFound: The Vpc Endpoint Id 'vpce-09a9ae6b78f2b0571' does not exist
…point always requires at least 1).
…ewly provisioned VPC Endpoint to become available.
…tionIds must be removed before SubnetIds can be modified'.
ed45dec
to
f3cf2ce
Compare
There was a problem hiding this 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=TestAccAWSTransfer_serial/Server'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSTransfer_serial/Server -timeout 180m
=== RUN TestAccAWSTransfer_serial
=== RUN TestAccAWSTransfer_serial/Server
=== RUN TestAccAWSTransfer_serial/Server/disappears
=== RUN TestAccAWSTransfer_serial/Server/Protocols
=== RUN TestAccAWSTransfer_serial/Server/SecurityPolicy
=== RUN TestAccAWSTransfer_serial/Server/UpdateEndpointTypePublicToVPC
=== RUN TestAccAWSTransfer_serial/Server/UpdateEndpointTypeVPCEndpointToVPCAddressAllocationIDs
=== RUN TestAccAWSTransfer_serial/Server/VPCSecurityGroupIDs
=== RUN TestAccAWSTransfer_serial/Server/basic
=== RUN TestAccAWSTransfer_serial/Server/UpdateEndpointTypePublicToVPCAddressAllocationIDs
=== RUN TestAccAWSTransfer_serial/Server/VPCAddressAllocationIDsSecurityGroupIDs
=== RUN TestAccAWSTransfer_serial/Server/HostKey
=== RUN TestAccAWSTransfer_serial/Server/Domain
=== RUN TestAccAWSTransfer_serial/Server/UpdateEndpointTypeVPCEndpointToVPCSecurityGroupIDs
=== RUN TestAccAWSTransfer_serial/Server/UpdateEndpointTypeVPCToPublic
=== RUN TestAccAWSTransfer_serial/Server/APIGateway
=== RUN TestAccAWSTransfer_serial/Server/ForceDestroy
=== RUN TestAccAWSTransfer_serial/Server/UpdateEndpointTypeVPCEndpointToVPC
=== RUN TestAccAWSTransfer_serial/Server/VPC
=== RUN TestAccAWSTransfer_serial/Server/VPCAddressAllocationIDs
=== RUN TestAccAWSTransfer_serial/Server/VPCEndpointID
=== RUN TestAccAWSTransfer_serial/Server/APIGatewayForceDestroy
--- PASS: TestAccAWSTransfer_serial (3799.61s)
--- PASS: TestAccAWSTransfer_serial/Server (3799.61s)
--- PASS: TestAccAWSTransfer_serial/Server/disappears (151.55s)
--- PASS: TestAccAWSTransfer_serial/Server/Protocols (283.05s)
--- PASS: TestAccAWSTransfer_serial/Server/SecurityPolicy (207.53s)
--- PASS: TestAccAWSTransfer_serial/Server/UpdateEndpointTypePublicToVPC (302.33s)
--- PASS: TestAccAWSTransfer_serial/Server/UpdateEndpointTypeVPCEndpointToVPCAddressAllocationIDs (241.86s)
--- PASS: TestAccAWSTransfer_serial/Server/VPCSecurityGroupIDs (75.81s)
--- PASS: TestAccAWSTransfer_serial/Server/basic (211.54s)
--- PASS: TestAccAWSTransfer_serial/Server/UpdateEndpointTypePublicToVPCAddressAllocationIDs (369.64s)
--- PASS: TestAccAWSTransfer_serial/Server/VPCAddressAllocationIDsSecurityGroupIDs (206.68s)
--- PASS: TestAccAWSTransfer_serial/Server/HostKey (184.54s)
--- PASS: TestAccAWSTransfer_serial/Server/Domain (187.40s)
--- PASS: TestAccAWSTransfer_serial/Server/UpdateEndpointTypeVPCEndpointToVPCSecurityGroupIDs (192.16s)
--- PASS: TestAccAWSTransfer_serial/Server/UpdateEndpointTypeVPCToPublic (233.88s)
--- PASS: TestAccAWSTransfer_serial/Server/APIGateway (196.55s)
--- PASS: TestAccAWSTransfer_serial/Server/ForceDestroy (190.65s)
--- PASS: TestAccAWSTransfer_serial/Server/UpdateEndpointTypeVPCEndpointToVPC (121.09s)
--- PASS: TestAccAWSTransfer_serial/Server/VPC (184.91s)
--- PASS: TestAccAWSTransfer_serial/Server/VPCAddressAllocationIDs (284.45s)
--- PASS: TestAccAWSTransfer_serial/Server/VPCEndpointID (54.44s)
--- PASS: TestAccAWSTransfer_serial/Server/APIGatewayForceDestroy (228.42s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 3803.238s
@amadureira Thanks for the contribution 🎉 👏. |
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. |
Community Note
Closes #15788.
Closes #19850.
Closes #16556.
Closes #15823.
Output from acceptance testing: