-
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
fsx_lustre_file_system - add auto_import_policy
argument
#15231
fsx_lustre_file_system - add auto_import_policy
argument
#15231
Conversation
"auto_import_policy": { | ||
Type: schema.TypeString, | ||
Optional: true, | ||
Computed: true, |
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.
Should this default to NONE
to match the API and enable drift detection when it is unconfigured?
Computed: true, | |
Default: fsx.AutoImportPolicyTypeNone, |
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.
I tried to play to play with this but wasn't able to find a combination other than the one in the PR to maked this work.
If set to default it will try to set this and fail as import/export params
are required with it. Let me try something different with this. (I'll at
least at requiredwith for import export for this param)
…On Mon, Sep 21, 2020, 15:58 Brian Flad ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In aws/resource_aws_fsx_lustre_file_system.go
<#15231 (comment)>
:
> @@ -137,6 +133,12 @@ func resourceAwsFsxLustreFileSystem() *schema.Resource {
Computed: true,
ValidateFunc: validation.IntBetween(0, 35),
},
+ "auto_import_policy": {
+ Type: schema.TypeString,
+ Optional: true,
+ Computed: true,
Should this default to NONE to match the API
<https://docs.aws.amazon.com/fsx/latest/APIReference/API_CreateFileSystemLustreConfiguration.html#FSx-Type-CreateFileSystemLustreConfiguration-AutoImportPolicy>
and enable drift detection when it is unconfigured?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#15231 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIA2W7SSEZGYOQWMTQPAYQLSG5EWRANCNFSM4RTAQETQ>
.
|
14606db
to
516e9cd
Compare
6fabbd4
to
9f5a897
Compare
Rebased |
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.
$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSFsxLustreFileSystem_basic\|TestAccAWSFsxLustreFileSystem_autoImportPolicy'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSFsxLustreFileSystem_basic\|TestAccAWSFsxLustreFileSystem_autoImportPolicy -timeout 120m
=== RUN TestAccAWSFsxLustreFileSystem_basic
=== PAUSE TestAccAWSFsxLustreFileSystem_basic
=== RUN TestAccAWSFsxLustreFileSystem_autoImportPolicy
=== PAUSE TestAccAWSFsxLustreFileSystem_autoImportPolicy
=== CONT TestAccAWSFsxLustreFileSystem_basic
=== CONT TestAccAWSFsxLustreFileSystem_autoImportPolicy
--- PASS: TestAccAWSFsxLustreFileSystem_basic (585.18s)
--- PASS: TestAccAWSFsxLustreFileSystem_autoImportPolicy (1196.34s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 1196.389s
9f5a897
to
d112f3d
Compare
323020a
to
e1effbb
Compare
Hey @DrFaust92 Getting consistent test failures on this one, can you take a look? make testacc TEST=./aws TESTARGS='-run=TestAccAWSFsxLustreFileSystem_basic\|TestAccAWSFsxLustreFileSystem_autoImportPolicy'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSFsxLustreFileSystem_basic\|TestAccAWSFsxLustreFileSystem_autoImportPolicy -timeout 120m
=== RUN TestAccAWSFsxLustreFileSystem_basic
=== RUN TestAccAWSFsxLustreFileSystem_autoImportPolicy
resource_aws_fsx_lustre_file_system_test.go:75: Check 19/19 error: aws_fsx_lustre_file_system.test: Attribute 'auto_import_policy' expected "NONE", got ""
--- FAIL: TestAccAWSFsxLustreFileSystem_basic (483.51s) |
@breathingdust mistake on my part during the rebase. basic test should not check this. its computed only when s3 export is set. |
Thanks @DrFaust92, looking good now. 🚀 Verified Acceptance Tests in Commercial (us-west-2) make testacc TEST=./aws TESTARGS='-run=TestAccAWSFsxLustreFileSystem_basic\|TestAccAWSFsxLustreFileSystem_autoImportPolicy'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSFsxLustreFileSystem_basic\|TestAccAWSFsxLustreFileSystem_autoImportPolicy -timeout 120m
=== RUN TestAccAWSFsxLustreFileSystem_basic
=== PAUSE TestAccAWSFsxLustreFileSystem_basic
=== RUN TestAccAWSFsxLustreFileSystem_autoImportPolicy
=== PAUSE TestAccAWSFsxLustreFileSystem_autoImportPolicy
=== CONT TestAccAWSFsxLustreFileSystem_basic
=== CONT TestAccAWSFsxLustreFileSystem_autoImportPolicy
--- PASS: TestAccAWSFsxLustreFileSystem_basic (642.49s)
--- PASS: TestAccAWSFsxLustreFileSystem_autoImportPolicy (1281.19s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 1283.173s |
This has been released in version 3.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 for triage. Thanks! |
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! |
Community Note
Closes #14406
Release note for CHANGELOG:
Output from acceptance testing: