-
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
F/ add ability to specify a privatelink end point for S3 file gateway - NFS resource #24038
Conversation
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.
Welcome @kliu47 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
This reverts commit c24907e.
This reverts commit 598099a.
…dpoint_dns_name'. Acceptance test output: % make testacc TESTS=TestAccStorageGatewayNFSFileShare_basic PKG=storagegateway ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/storagegateway/... -v -count 1 -parallel 20 -run='TestAccStorageGatewayNFSFileShare_basic' -timeout 180m === RUN TestAccStorageGatewayNFSFileShare_basic === PAUSE TestAccStorageGatewayNFSFileShare_basic === CONT TestAccStorageGatewayNFSFileShare_basic --- PASS: TestAccStorageGatewayNFSFileShare_basic (325.55s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/storagegateway 330.882s
Acceptance test output: % make testacc TESTS=TestAccStorageGatewayGateway_GatewayType_stored PKG=storagegateway ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/storagegateway/... -v -count 1 -parallel 20 -run='TestAccStorageGatewayGateway_GatewayType_stored' -timeout 180m === RUN TestAccStorageGatewayGateway_GatewayType_stored === PAUSE TestAccStorageGatewayGateway_GatewayType_stored === CONT TestAccStorageGatewayGateway_GatewayType_stored --- PASS: TestAccStorageGatewayGateway_GatewayType_stored (219.24s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/storagegateway 222.917s
This reverts commit 2dee622.
…th' and 'maintenance_start_time.day_of_week' nullable. Acceptance test output: % make testacc TESTS=TestAccStorageGatewayGateway_maintenanceStartTime PKG=storagegateway ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/storagegateway/... -v -count 1 -parallel 20 -run='TestAccStorageGatewayGateway_maintenanceStartTime' -timeout 180m === RUN TestAccStorageGatewayGateway_maintenanceStartTime === PAUSE TestAccStorageGatewayGateway_maintenanceStartTime === CONT TestAccStorageGatewayGateway_maintenanceStartTime --- PASS: TestAccStorageGatewayGateway_maintenanceStartTime (221.15s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/storagegateway 227.231s
% make testacc TESTS=TestAccStorageGatewayNFSFileShare_ PKG=storagegateway ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/storagegateway/... -v -count 1 -parallel 2 -run='TestAccStorageGatewayNFSFileShare_' -timeout 180m
=== RUN TestAccStorageGatewayNFSFileShare_basic
=== PAUSE TestAccStorageGatewayNFSFileShare_basic
=== RUN TestAccStorageGatewayNFSFileShare_audit
=== PAUSE TestAccStorageGatewayNFSFileShare_audit
=== RUN TestAccStorageGatewayNFSFileShare_tags
=== PAUSE TestAccStorageGatewayNFSFileShare_tags
=== RUN TestAccStorageGatewayNFSFileShare_fileShareName
=== PAUSE TestAccStorageGatewayNFSFileShare_fileShareName
=== RUN TestAccStorageGatewayNFSFileShare_clientList
=== PAUSE TestAccStorageGatewayNFSFileShare_clientList
=== RUN TestAccStorageGatewayNFSFileShare_defaultStorageClass
=== PAUSE TestAccStorageGatewayNFSFileShare_defaultStorageClass
=== RUN TestAccStorageGatewayNFSFileShare_guessMIMETypeEnabled
=== PAUSE TestAccStorageGatewayNFSFileShare_guessMIMETypeEnabled
=== RUN TestAccStorageGatewayNFSFileShare_kmsEncrypted
=== PAUSE TestAccStorageGatewayNFSFileShare_kmsEncrypted
=== RUN TestAccStorageGatewayNFSFileShare_kmsKeyARN
=== PAUSE TestAccStorageGatewayNFSFileShare_kmsKeyARN
=== RUN TestAccStorageGatewayNFSFileShare_nFSFileShareDefaults
=== PAUSE TestAccStorageGatewayNFSFileShare_nFSFileShareDefaults
=== RUN TestAccStorageGatewayNFSFileShare_objectACL
=== PAUSE TestAccStorageGatewayNFSFileShare_objectACL
=== RUN TestAccStorageGatewayNFSFileShare_readOnly
=== PAUSE TestAccStorageGatewayNFSFileShare_readOnly
=== RUN TestAccStorageGatewayNFSFileShare_requesterPays
=== PAUSE TestAccStorageGatewayNFSFileShare_requesterPays
=== RUN TestAccStorageGatewayNFSFileShare_squash
=== PAUSE TestAccStorageGatewayNFSFileShare_squash
=== RUN TestAccStorageGatewayNFSFileShare_notificationPolicy
=== PAUSE TestAccStorageGatewayNFSFileShare_notificationPolicy
=== RUN TestAccStorageGatewayNFSFileShare_cacheAttributes
=== PAUSE TestAccStorageGatewayNFSFileShare_cacheAttributes
=== RUN TestAccStorageGatewayNFSFileShare_disappears
=== PAUSE TestAccStorageGatewayNFSFileShare_disappears
=== CONT TestAccStorageGatewayNFSFileShare_basic
=== CONT TestAccStorageGatewayNFSFileShare_nFSFileShareDefaults
--- PASS: TestAccStorageGatewayNFSFileShare_basic (328.80s)
=== CONT TestAccStorageGatewayNFSFileShare_squash
--- PASS: TestAccStorageGatewayNFSFileShare_nFSFileShareDefaults (374.51s)
=== CONT TestAccStorageGatewayNFSFileShare_disappears
--- PASS: TestAccStorageGatewayNFSFileShare_disappears (310.24s)
=== CONT TestAccStorageGatewayNFSFileShare_cacheAttributes
--- PASS: TestAccStorageGatewayNFSFileShare_squash (437.75s)
=== CONT TestAccStorageGatewayNFSFileShare_notificationPolicy
--- PASS: TestAccStorageGatewayNFSFileShare_cacheAttributes (427.33s)
=== CONT TestAccStorageGatewayNFSFileShare_defaultStorageClass
--- PASS: TestAccStorageGatewayNFSFileShare_notificationPolicy (494.58s)
=== CONT TestAccStorageGatewayNFSFileShare_kmsKeyARN
--- PASS: TestAccStorageGatewayNFSFileShare_defaultStorageClass (480.85s)
=== CONT TestAccStorageGatewayNFSFileShare_kmsEncrypted
--- PASS: TestAccStorageGatewayNFSFileShare_kmsKeyARN (478.81s)
=== CONT TestAccStorageGatewayNFSFileShare_guessMIMETypeEnabled
--- PASS: TestAccStorageGatewayNFSFileShare_kmsEncrypted (343.72s)
=== CONT TestAccStorageGatewayNFSFileShare_readOnly
--- PASS: TestAccStorageGatewayNFSFileShare_guessMIMETypeEnabled (439.39s)
=== CONT TestAccStorageGatewayNFSFileShare_requesterPays
--- PASS: TestAccStorageGatewayNFSFileShare_readOnly (368.53s)
=== CONT TestAccStorageGatewayNFSFileShare_fileShareName
--- PASS: TestAccStorageGatewayNFSFileShare_requesterPays (411.02s)
=== CONT TestAccStorageGatewayNFSFileShare_tags
--- PASS: TestAccStorageGatewayNFSFileShare_fileShareName (389.37s)
=== CONT TestAccStorageGatewayNFSFileShare_audit
nfs_file_share_test.go:77: Step 1/3 error: Error running apply: exit status 1
Error: error creating Storage Gateway NFS File Share: InvalidGatewayRequestException: Policy document length breaking Cloudwatch Logs Constraints, either < 1 or > 5120 (Service: AWSIngestionHub; Status Code: 400; Error Code: LogDestinationPermissionIssueException; Request ID: 4146bc1d-7db0-4566-b353-67a54fda30a7; Proxy: null)
{
RespMetadata: {
StatusCode: 400,
RequestID: "f8efefca-197c-4572-a846-6f65bee4942a"
},
Error_: {
ErrorCode: "AuthenticationFailure"
},
Message_: "Policy document length breaking Cloudwatch Logs Constraints, either < 1 or > 5120 (Service: AWSIngestionHub; Status Code: 400; Error Code: LogDestinationPermissionIssueException; Request ID: 4146bc1d-7db0-4566-b353-67a54fda30a7; Proxy: null)"
}
with aws_storagegateway_nfs_file_share.test,
on terraform_plugin_test.tf line 168, in resource "aws_storagegateway_nfs_file_share" "test":
168: resource "aws_storagegateway_nfs_file_share" "test" {
--- PASS: TestAccStorageGatewayNFSFileShare_tags (382.03s)
=== CONT TestAccStorageGatewayNFSFileShare_objectACL
--- FAIL: TestAccStorageGatewayNFSFileShare_audit (324.68s)
=== CONT TestAccStorageGatewayNFSFileShare_clientList
--- PASS: TestAccStorageGatewayNFSFileShare_objectACL (381.53s)
--- PASS: TestAccStorageGatewayNFSFileShare_clientList (466.02s)
FAIL
FAIL github.com/hashicorp/terraform-provider-aws/internal/service/storagegateway 3492.494s
FAIL
make: *** [testacc] Error 1 We get that error in nightly CI:
% make testacc TESTS=TestAccStorageGatewayGateway_ PKG=storagegateway ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/storagegateway/... -v -count 1 -parallel 2 -run='TestAccStorageGatewayGateway_' -timeout 180m
=== RUN TestAccStorageGatewayGateway_GatewayType_cached
=== PAUSE TestAccStorageGatewayGateway_GatewayType_cached
=== RUN TestAccStorageGatewayGateway_GatewayType_fileFSxSMB
=== PAUSE TestAccStorageGatewayGateway_GatewayType_fileFSxSMB
=== RUN TestAccStorageGatewayGateway_GatewayType_fileS3
=== PAUSE TestAccStorageGatewayGateway_GatewayType_fileS3
=== RUN TestAccStorageGatewayGateway_GatewayType_stored
=== PAUSE TestAccStorageGatewayGateway_GatewayType_stored
=== RUN TestAccStorageGatewayGateway_GatewayType_vtl
=== PAUSE TestAccStorageGatewayGateway_GatewayType_vtl
=== RUN TestAccStorageGatewayGateway_tags
=== PAUSE TestAccStorageGatewayGateway_tags
=== RUN TestAccStorageGatewayGateway_gatewayName
=== PAUSE TestAccStorageGatewayGateway_gatewayName
=== RUN TestAccStorageGatewayGateway_cloudWatchLogs
=== PAUSE TestAccStorageGatewayGateway_cloudWatchLogs
=== RUN TestAccStorageGatewayGateway_gatewayTimezone
=== PAUSE TestAccStorageGatewayGateway_gatewayTimezone
=== RUN TestAccStorageGatewayGateway_gatewayVPCEndpoint
=== PAUSE TestAccStorageGatewayGateway_gatewayVPCEndpoint
=== RUN TestAccStorageGatewayGateway_smbActiveDirectorySettings
=== PAUSE TestAccStorageGatewayGateway_smbActiveDirectorySettings
=== RUN TestAccStorageGatewayGateway_SMBActiveDirectorySettings_timeout
=== PAUSE TestAccStorageGatewayGateway_SMBActiveDirectorySettings_timeout
=== RUN TestAccStorageGatewayGateway_smbMicrosoftActiveDirectorySettings
=== PAUSE TestAccStorageGatewayGateway_smbMicrosoftActiveDirectorySettings
=== RUN TestAccStorageGatewayGateway_SMBMicrosoftActiveDirectorySettings_timeout
=== PAUSE TestAccStorageGatewayGateway_SMBMicrosoftActiveDirectorySettings_timeout
=== RUN TestAccStorageGatewayGateway_smbGuestPassword
=== PAUSE TestAccStorageGatewayGateway_smbGuestPassword
=== RUN TestAccStorageGatewayGateway_smbSecurityStrategy
=== PAUSE TestAccStorageGatewayGateway_smbSecurityStrategy
=== RUN TestAccStorageGatewayGateway_smbVisibility
=== PAUSE TestAccStorageGatewayGateway_smbVisibility
=== RUN TestAccStorageGatewayGateway_disappears
=== PAUSE TestAccStorageGatewayGateway_disappears
=== RUN TestAccStorageGatewayGateway_bandwidthUpload
=== PAUSE TestAccStorageGatewayGateway_bandwidthUpload
=== RUN TestAccStorageGatewayGateway_bandwidthDownload
=== PAUSE TestAccStorageGatewayGateway_bandwidthDownload
=== RUN TestAccStorageGatewayGateway_bandwidthAll
=== PAUSE TestAccStorageGatewayGateway_bandwidthAll
=== RUN TestAccStorageGatewayGateway_maintenanceStartTime
=== PAUSE TestAccStorageGatewayGateway_maintenanceStartTime
=== CONT TestAccStorageGatewayGateway_GatewayType_cached
=== CONT TestAccStorageGatewayGateway_SMBActiveDirectorySettings_timeout
--- PASS: TestAccStorageGatewayGateway_GatewayType_cached (250.67s)
=== CONT TestAccStorageGatewayGateway_maintenanceStartTime
--- PASS: TestAccStorageGatewayGateway_SMBActiveDirectorySettings_timeout (935.15s)
=== CONT TestAccStorageGatewayGateway_bandwidthAll
--- PASS: TestAccStorageGatewayGateway_bandwidthAll (273.88s)
=== CONT TestAccStorageGatewayGateway_bandwidthDownload
--- PASS: TestAccStorageGatewayGateway_maintenanceStartTime (224.36s)
=== CONT TestAccStorageGatewayGateway_bandwidthUpload
--- PASS: TestAccStorageGatewayGateway_bandwidthDownload (258.57s)
=== CONT TestAccStorageGatewayGateway_disappears
--- PASS: TestAccStorageGatewayGateway_bandwidthUpload (288.59s)
=== CONT TestAccStorageGatewayGateway_smbVisibility
--- PASS: TestAccStorageGatewayGateway_disappears (208.31s)
=== CONT TestAccStorageGatewayGateway_smbSecurityStrategy
--- PASS: TestAccStorageGatewayGateway_smbVisibility (374.70s)
=== CONT TestAccStorageGatewayGateway_smbGuestPassword
--- PASS: TestAccStorageGatewayGateway_smbSecurityStrategy (323.75s)
=== CONT TestAccStorageGatewayGateway_SMBMicrosoftActiveDirectorySettings_timeout
--- PASS: TestAccStorageGatewayGateway_smbGuestPassword (328.11s)
=== CONT TestAccStorageGatewayGateway_smbMicrosoftActiveDirectorySettings
--- PASS: TestAccStorageGatewayGateway_SMBMicrosoftActiveDirectorySettings_timeout (2222.79s)
=== CONT TestAccStorageGatewayGateway_tags
--- PASS: TestAccStorageGatewayGateway_tags (270.70s)
=== CONT TestAccStorageGatewayGateway_smbActiveDirectorySettings
--- PASS: TestAccStorageGatewayGateway_smbMicrosoftActiveDirectorySettings (2330.32s)
=== CONT TestAccStorageGatewayGateway_gatewayVPCEndpoint
--- PASS: TestAccStorageGatewayGateway_gatewayVPCEndpoint (323.40s)
=== CONT TestAccStorageGatewayGateway_gatewayTimezone
--- PASS: TestAccStorageGatewayGateway_gatewayTimezone (328.08s)
=== CONT TestAccStorageGatewayGateway_cloudWatchLogs
--- PASS: TestAccStorageGatewayGateway_smbActiveDirectorySettings (976.57s)
=== CONT TestAccStorageGatewayGateway_gatewayName
=== CONT TestAccStorageGatewayGateway_cloudWatchLogs
gateway_test.go:317: Step 1/2 error: Error running apply: exit status 1
Error: error setting CloudWatch Log Group: InvalidGatewayRequestException: Policy document length breaking Cloudwatch Logs Constraints, either < 1 or > 5120 (Service: AWSIngestionHub; Status Code: 400; Error Code: LogDestinationPermissionIssueException; Request ID: adb2159b-8a92-4d66-97f9-96074ed19548; Proxy: null)
{
RespMetadata: {
StatusCode: 400,
RequestID: "af33a933-ef17-4643-949d-e0abfc5a4380"
},
Error_: {
ErrorCode: "AuthenticationFailure"
},
Message_: "Policy document length breaking Cloudwatch Logs Constraints, either < 1 or > 5120 (Service: AWSIngestionHub; Status Code: 400; Error Code: LogDestinationPermissionIssueException; Request ID: adb2159b-8a92-4d66-97f9-96074ed19548; Proxy: null)"
}
with aws_storagegateway_gateway.test,
on terraform_plugin_test.tf line 104, in resource "aws_storagegateway_gateway" "test":
104: resource "aws_storagegateway_gateway" "test" {
--- FAIL: TestAccStorageGatewayGateway_cloudWatchLogs (323.73s)
=== CONT TestAccStorageGatewayGateway_GatewayType_fileS3
--- PASS: TestAccStorageGatewayGateway_GatewayType_fileS3 (303.89s)
=== CONT TestAccStorageGatewayGateway_GatewayType_vtl
--- PASS: TestAccStorageGatewayGateway_GatewayType_vtl (186.69s)
=== CONT TestAccStorageGatewayGateway_GatewayType_stored
--- PASS: TestAccStorageGatewayGateway_GatewayType_stored (237.95s)
=== CONT TestAccStorageGatewayGateway_GatewayType_fileFSxSMB
--- PASS: TestAccStorageGatewayGateway_GatewayType_fileFSxSMB (314.68s)
=== CONT TestAccStorageGatewayGateway_gatewayName
--- PASS: TestAccStorageGatewayGateway_gatewayName (342.22s)
FAIL
FAIL github.com/hashicorp/terraform-provider-aws/internal/service/storagegateway 6705.747s
FAIL
make: *** [testacc] Error 1 We get that error in nightly CI:
|
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 🚀.
@kliu47 @awasilyev Thanks for the contribution 🎉 👏. |
This functionality has been released in v4.9.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! |
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 #21705.
Closes #15331.
Output from acceptance testing: