Skip to content

Terraform scripts for provision the APIM deployments on Azure cloud

License

Notifications You must be signed in to change notification settings

wso2/terraform-apim

Repository files navigation

Terraform Resources for WSO2 API Manager

Installation

Prerequisites

  • Install and set up Packer (>= v1.4.0 )
  • Install and set up Terraform (>= v0.12.00 )

Instructions:

  1. Download the WSO2 API Manager terraform resource.
  $ git clone https://github.com/wso2/terraform-apim.git
  1. Build the API manager custom image using centos-base.json packer file.

    Note: If you have an Azure subscription, update user variables centos-base.json in root directory azure-simple/packer to include your subscription credentials. The WSO2 API Manager 3.1.0 distribution needs to download into the azure-simple/packer/ansible-apim/files/packs directory.

    $ packer build centos-base.json 
  2. Changed the directory to azure-simple/terraform and update the build baseimage variable in variables.tf and terraform.tfvars files inclusive of Azure subscription credentials.

    $ terraform apply  

    Note: Add the host entry <PUBLIC-IP> apim.wso2test.com in /etc/hosts file to access the WSO2 API Manager console.

  3. Try navigating to the following consoles from your favorite browser.

    https://apim.wso2test.com