Skip to content

TykTechnologies/terraform-provider-tyk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tyk Terraform Provider

This is a POC to test a tyk terraform provider.

OpenTofu

Following recent changes in Terraform's MPL, we've begun exploring OpenTofu, a fork of TF and true open-source managed by the Linux Foundation. You can watch this brief video to learn and see that OpenTofu binary works seamlessly with our Tyk TF provider to provision Tyk API Management resources on Tyk Cloud.

Get started

Build Tyk TF Provider

Run the following command to build and install the provider

go build -o terraform-provider-tyk
make install

Test sample configuration

You will need your tyk cloud email and Tyk cloud password. You can save the email in your environment variable with the name: TYK_EMAIL The password can also be saved in your environment variable with the name: TYK_PASSWORD

Sample:

  export TYK_EMAIL="email here"
  export TYK_PASSWORD="password here"

After building and installing the provider you can test it with the samples in the example folder.

cd examples && terraform init && terraform apply

Project Structure

  • Examples
    • Contains the example TF file you can use to build a complete and new deployment in Tyk Cloud, as explained in this README
  • tyk
    • Tyk everyday users, who simply wish to use TF with Tyk cloud services, can safely bypass this directory.
    • You should delve into it exclusively if you aspire to contribute to this open-source project. The TF SDK and Tyk SDK serve as the bridge to connect to Tyk cloud infrastructure, creating resources, modifying or deleting.