Skip to content

Commit

Permalink
Merge pull request #12 from imperva/petal/SCV-2889-redshift-bucket_ac…
Browse files Browse the repository at this point in the history
…count_id

[SCV-2889] Support bucket_account_id in the data source schema
  • Loading branch information
mattJsonar authored Jul 5, 2024
2 parents 55d1925 + c5d1d3f commit 58121e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ HOSTNAME=registry.terraform.io
NAMESPACE=terraform-providers
PKG_NAME=dsfhub
BINARY=terraform-provider-${PKG_NAME}
VERSION=1.2.44
VERSION=1.2.46
OS_ARCH=darwin_amd64

default: install
Expand Down
8 changes: 8 additions & 0 deletions dsfhub/resource_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,13 @@ func resourceDSFDataSource() *schema.Resource {
},
},
},
"bucket_account_id": {
Type: schema.TypeString,
Description: "S3 bucket Account ID",
Required: false,
Optional: true,
Default: nil,
},
"ca_certs_path": {
Type: schema.TypeString,
Description: "Certificate authority certificates path; what location should the sysetm look for certificate information from. Equivalent to --capath in a curl call",
Expand Down Expand Up @@ -1360,6 +1367,7 @@ func resourceDSFDataSourceRead(d *schema.ResourceData, m interface{}) error {
d.Set("audit_type", dsfDataSourceReadResponse.Data.AssetData.AuditType)
d.Set("availability_zones", dsfDataSourceReadResponse.Data.AssetData.AvailabilityZones)
d.Set("available_regions", dsfDataSourceReadResponse.Data.AssetData.AvailableRegions)
d.Set("bucket_account_id", dsfDataSourceReadResponse.Data.AssetData.BucketAccountId)
d.Set("ca_certs_path", dsfDataSourceReadResponse.Data.AssetData.CaCertsPath)
d.Set("ca_file", dsfDataSourceReadResponse.Data.AssetData.CaFile)
d.Set("cluster_engine", dsfDataSourceReadResponse.Data.AssetData.ClusterEngine)
Expand Down

0 comments on commit 58121e3

Please sign in to comment.