Exemple #1
0
func Provider() terraform.ResourceProvider {
	return &schema.Provider{
		DataSourcesMap: map[string]*schema.Resource{
			"template_file":             dataSourceFile(),
			"template_cloudinit_config": dataSourceCloudinitConfig(),
		},
		ResourcesMap: map[string]*schema.Resource{
			"template_file": schema.DataSourceResourceShim(
				"template_file",
				dataSourceFile(),
			),
			"template_cloudinit_config": schema.DataSourceResourceShim(
				"template_cloudinit_config",
				dataSourceCloudinitConfig(),
			),
		},
	}
}
Exemple #2
0
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(),
			),
		},
	}
}
Exemple #3
0
// Provider returns a terraform.ResourceProvider.
func Provider() terraform.ResourceProvider {
	return &schema.Provider{
		ResourcesMap: map[string]*schema.Resource{
			"terraform_remote_state": schema.DataSourceResourceShim(
				"terraform_remote_state",
				dataSourceRemoteState(),
			),
		},
		DataSourcesMap: map[string]*schema.Resource{
			"terraform_remote_state": dataSourceRemoteState(),
		},
	}
}
Exemple #4
0
func Provider() terraform.ResourceProvider {
	return &schema.Provider{
		DataSourcesMap: map[string]*schema.Resource{
			"tls_cert_request": dataSourceCertRequest(),
		},
		ResourcesMap: map[string]*schema.Resource{
			"tls_private_key":         resourcePrivateKey(),
			"tls_locally_signed_cert": resourceLocallySignedCert(),
			"tls_self_signed_cert":    resourceSelfSignedCert(),

			"tls_cert_request": schema.DataSourceResourceShim(
				"tls_cert_request",
				dataSourceCertRequest(),
			),
		},
	}
}
func Provider() terraform.ResourceProvider {
	return &schema.Provider{
		Schema: map[string]*schema.Schema{},

		ResourcesMap: map[string]*schema.Resource{
			"dns_a_record": schema.DataSourceResourceShim(
				"dns_a_record",
				dataSourceDnsARecord(),
			),
		},
		DataSourcesMap: map[string]*schema.Resource{
			"dns_a_record":     dataSourceDnsARecord(),
			"dns_cname_record": dataSourceDnsCnameRecord(),
			"dns_text_record":  dataSourceDnsTxtRecord(),
		},
	}
}