.github/workflows/tyk-backup.yml
.tyk-backup.yml
file:TYK_SYNC_VERSION
: The version of Tyk Sync you want to use.TYK_DASHBOARD_URL
: The URL of your Tyk Dashboard.TYK_DASHBOARD_SECRET
: The secret key for your Tyk Dashboard.AWS_S3_BUCKET
: The name of your AWS S3 bucket.AWS_ACCESS_KEY_ID
: Your AWS access key ID.AWS_SECRET_ACCESS_KEY
: Your AWS secret access key.tyk-backup.yml
file and push it to the main branch of your repository.
/apis/
for API definition files./policies/
for security policy files./assets/
for API template files..github/workflows/tyk-sync.yml
.tyk-sync.yml
file:TYK_SYNC_VERSION
: The version of Tyk Sync you want to use (e.g., v2.0.0).TYK_DASHBOARD_URL
: The URL of your Tyk Dashboard.TYK_DASHBOARD_SECRET
: The secret key for your Tyk Dashboard.tyk-sync.yml
file and push it to the main branch of your repository.
.tyk.json
file including all JSON files in the repository and use the sync
command to update the Tyk installation.
.tyk.json
file to list all API definition files that Tyk Sync should process.
Example .tyk.json
:
publish
command to upload your local API definitions to Tyk. Use Docker bind mounts to access your local files.
sync
, update
, and publish
commands, you need to specify where Tyk Sync can get the source API configurations to update the target Tyk installation. You can store the source files either in a Git repository or the local file system.
master
branch. To specify a different branch, use the --branch
or -b
flag. If the Git repository requires connection using Secure Shell Protocol (SSH), you can specify SSH keys with --key
or -k
flag.
--path
or -p
flag to specify the source directory for your API configuration files.
.tyk.json
index file is required at the root of the source Git repository or the specified path. This .tyk.json
file lists all the files that should be processed by Tyk Sync.
Example .tyk.json
: