mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-24 07:26:26 -06:00
65523fa006
* Converting archive_file to datasource. * Ratcheting back new dir perms. * Ratcheting back new dir perms. * goimports * Adding output_base64sha256 attribute to archive_file. Updating docs. * Dropping CheckDestroy since this is a data source. * Correcting data source attribute checks.
21 lines
434 B
Go
21 lines
434 B
Go
package archive
|
|
|
|
import (
|
|
"github.com/hashicorp/terraform/helper/schema"
|
|
"github.com/hashicorp/terraform/terraform"
|
|
)
|
|
|
|
func Provider() terraform.ResourceProvider {
|
|
return &schema.Provider{
|
|
DataSourcesMap: map[string]*schema.Resource{
|
|
"archive_file": dataSourceFile(),
|
|
},
|
|
ResourcesMap: map[string]*schema.Resource{
|
|
"archive_file": schema.DataSourceResourceShim(
|
|
"archive_file",
|
|
dataSourceFile(),
|
|
),
|
|
},
|
|
}
|
|
}
|