Skip to content

Latest commit

 

History

History
107 lines (80 loc) · 4.58 KB

s3_zone_settings.md

File metadata and controls

107 lines (80 loc) · 4.58 KB
title linkTitle page_title subcategory description
powerscale_s3_zone_settings resource
powerscale_s3_zone_settings
powerscale_s3_zone_settings Resource - terraform-provider-powerscale
This resource is used to manage the S3 Zone Settings entity of the PowerScale Array. PowerScale S3 Zone Setting map to access zone configuration which provide default location for creating s3 buckets. We can Create, Update and Delete the S3 Zone Setting using this resource. We can also import an existing S3 Zone Settings from PowerScale array.

powerscale_s3_zone_settings (Resource)

This resource is used to manage the S3 Zone Settings entity of the PowerScale Array. PowerScale S3 Zone Setting map to access zone configuration which provide default location for creating s3 buckets. We can Create, Update and Delete the S3 Zone Setting using this resource. We can also import an existing S3 Zone Settings from PowerScale array.

Example Usage

/*
Copyright (c) 2024 Dell Inc., or its subsidiaries. All Rights Reserved.

Licensed under the Mozilla Public License Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://mozilla.org/MPL/2.0/


Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

# Available actions: Create, Update, Delete and Import
# After `terraform apply` of this example file it will modify S3 Zone Settings on  the PowerScale Array.
# For more information, Please check the terraform state file.

# PowerScale S3 Zone settings allows you to configure S3 Zone settings on PowerScale.
resource "powerscale_s3_zone_settings" "s3_zone_setting" {
  zone                         = "tfacc-test"
  root_path                    = "/ifs/"
  base_domain                  = "dell.com"
  bucket_directory_create_mode = 511
  object_acl_policy            = "deny" # replace or deny
}

Schema

Required

  • zone (String) The name of the access zone you want to update settings for s3 service. If this field is updated, Terraform will delete and then recreate this resource.

Optional

  • base_domain (String) Base Domain for S3 zone
  • bucket_directory_create_mode (Number) The permission mode for creating bucket directories.
  • object_acl_policy (String) The default policy for object access control lists (ACLs), which can be either replace or deny.
  • root_path (String) The root path for the S3 bucket.

Unless specified otherwise, all fields of this resource can be updated.

Import

Import is supported using the following syntax:

# Copyright (c) 2024 Dell Inc., or its subsidiaries. All Rights Reserved.

# Licensed under the Mozilla Public License Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

#     http://mozilla.org/MPL/2.0/


# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# S3 Zone Settings can be imported by the name of the S3 Zone
# The command is
# terraform import powerscale_s3_zone_settings.s3_zone_settings_example <S3 zone name>
terraform import powerscale_s3_zone_settings.s3_zone_settings_example "System"

# after running this command, populate the zone field and other required parameters in the config file to start managing this resource.
# Note: running "terraform show" after importing shows the current config/state of the resource. You can copy/paste that config to make it easier to manage the resource.