Skip to content

lonegunmanb/terraform-alicloud-schema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Alibaba Cloud Provider Schema Repository

This repository contains the generated Go files for the AliCloud provider schemas, which are based on the Terraform AliCloud Provider. These schema files can be used as a reference when writing tools, such as TFLint plugins, that interact with the AWS provider.

Terraform Google Provider's schema is public accessible, but aws and azurerm are not. This library provides a consistent schemas as terraform-azurerm-schema and terraform-aws-schema provide.

Repository Structure

Each tag version of the Terraform AWS Provider has a corresponding tag in this repository. You can find the schema files for each provider version under the respective tag.

e.g.: to use alicloud's 1.211.2 schema, you could:

$ go get github.com/lonegunmanb/terraform-aws-schema@v1.211.2

Then you can read schemas like this:

import (
"testing"

"github.com/lonegunmanb/terraform-alicloud-schema/generated"
"github.com/stretchr/testify/assert"
)

func TestResourceSchema(t *testing.T) {
assert.NotEmpty(t, generated.Resources)
assert.NotEmpty(t, generated.DataSources)
}

Generating Schema Files

The schema files are generated using the terraform provider schema -json command. This command retrieves the schema information and converts it into JSON format. The JSON files are then converted into Go files, which can be found in this repository.

If you encounter any issues or would like to contribute to this repository, please submit an issue or a pull request on GitHub.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages