-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Add new resource & data source: azurerm_netapp_snapshot #5215
Add new resource & data source: azurerm_netapp_snapshot #5215
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.
Hi @neil-yechenwei,
Thank you for the PR, i've left some mostly minor comments inline to address. I also do wonder if we should eport the filesystem id? is it useful to the user?
{ | ||
Config: testAccAzureRMNetAppSnapshot_requiresImport(ri, testLocation()), | ||
ExpectError: testRequiresImportError("azurerm_netapp_snapshot"), | ||
}, |
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.
and this can become - data.RequiresImportErrorStep(testAccAzureRMNetAppSnapshot_requiresImport),
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.
fixed
|
||
* `location` - The Azure Region where the NetApp Snapshot exists. | ||
|
||
* `file_system_id` - UUID v4 used to identify the FileSystem. |
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.
Does it make sense to export this?
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.
It's not useful to user since this field is also not required for creating this resource on azure portal.
@@ -51,3 +51,5 @@ The following attributes are exported: | |||
* `subnet_id` - The ID of a Subnet in which the NetApp Volume resides. | |||
|
|||
* `storage_quota_in_gb` - The maximum Storage Quota in Gigabytes allowed for a file system. | |||
|
|||
* `file_system_id` - The ID of the file system. |
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.
Does it make sense to export this?
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.
Same as above reason
|
||
* `location` - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. | ||
|
||
* `file_system_id` - (Optional) UUID v4 used to identify the FileSystem. |
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.
This is exported not an argument? also does it make sense?
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.
Same as above reason
Hi @katbyte , Thanks for your comments. I've updated code per your comments. |
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.
Thanks for the revisions @neil-yechenwei, this LGTM now 👍
This has been released in version 1.40.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 1.40.0"
}
# ... other configuration ... |
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. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
This PR is the code implement of the issue #5216