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

azurerm_storage_account - adds support for enabling SFTP #19428

Merged
merged 4 commits into from
Nov 28, 2022

Conversation

leesutcliffe
Copy link
Contributor

@leesutcliffe leesutcliffe commented Nov 24, 2022

This PR is to add SFTP support to the azurerm_storage_account resource.
A sftp_enabled property has been added which takes a boolean value to enable or disable the service

Relates-to: #14736

Acceptance tests run successfully

make acctests SERVICE=storage TESTARGS='-run=TestAccStorageAccount_isSftpEnabled' TESTTIMEOUT='60m'

==> Checking that code complies with gofmt requirements...
==> Checking that Custom Timeouts are used...
==> Checking that acceptance test packages are used...
TF_ACC=1 go test -v ./internal/services/storage -run=TestAccStorageAccount_isSftpEnabled -timeout 60m -ldflags="-X=github.com/hashicorp/terraform-provider-azurerm/version.ProviderVersion=acc"
=== RUN   TestAccStorageAccount_isSftpEnabled
=== PAUSE TestAccStorageAccount_isSftpEnabled
=== CONT  TestAccStorageAccount_isSftpEnabled
--- PASS: TestAccStorageAccount_isSftpEnabled (190.48s)
PASS
ok      github.com/hashicorp/terraform-provider-azurerm/internal/services/storage       (cached)

The locally complied provider works as expected

Terraform will perform the following actions:
<...OUTPUT OMITTED...>
  # azurerm_storage_account.this will be created
  + resource "azurerm_storage_account" "this" {
      + access_tier                       = (known after apply)
      + account_kind                      = "StorageV2"
      + account_replication_type          = "LRS"
      + account_tier                      = "Standard"
     <...OUTPUT OMITTED...>
      + sftp_enabled                      = true

      <...OUTPUT OMITTED...>

Copy link
Member

@jackofallops jackofallops left a comment

Choose a reason for hiding this comment

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

Hi @leesutcliffe
Thanks for the PR. The change looks good, but the linters are failing. Could you take a look at the action failures and we'll re-review when the failures are addressed? (I think it might just be make fmt required)

Thanks!

@leesutcliffe
Copy link
Contributor Author

Thanks @jackofallops lint errors resolved

@jackofallops jackofallops added this to the v3.34.0 milestone Nov 26, 2022
Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

hey @leesutcliffe

Thanks for pushing those changes, I've taken a look through and left a couple of minor comments inline but this otherwise LGTM 👍

website/docs/r/storage_account.html.markdown Outdated Show resolved Hide resolved
internal/services/storage/storage_account_resource.go Outdated Show resolved Hide resolved
Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

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

Thanks for this @leesutcliffe LGTM 🥭

@stephybun stephybun merged commit 2c9bbc5 into hashicorp:main Nov 28, 2022
stephybun added a commit that referenced this pull request Nov 28, 2022
@leesutcliffe leesutcliffe deleted the add_sftp_enabled_14736 branch November 28, 2022 13:56
harshavmb pushed a commit to AmadeusITGroup/terraform-provider-azurerm that referenced this pull request Nov 28, 2022
…9428)

* adds sftp_enabled property to azurerm_storage_account

Relates-to: hashicorp#14736

* resolves lint error

Relates-to: hashicorp#14736

* resolves comments, bool in notes and error msg format

Relates-to: hashicorp#14736
harshavmb pushed a commit to AmadeusITGroup/terraform-provider-azurerm that referenced this pull request Nov 28, 2022
@github-actions
Copy link

github-actions bot commented Dec 2, 2022

This functionality has been released in v3.34.0 of the Terraform 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

github-actions bot commented Jan 2, 2023

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 contributions.
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 Jan 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants