Giter VIP home page Giter VIP logo

terraform-provider-nacos's Introduction

Terraform Provider for Nacos

The Terraform Nacos Provider is a plugin for Terraform that allows for the full lifecycle management of Nacos configuration.

Currently, we only support configuration management on Nacos.

However, our goal is to support other Nacos resources as well such as Namepsace, Service Discovery...

Public provider link https://registry.terraform.io/providers/zalopay-oss/nacos/0.1.1

How to use

Please check Document in /docs

How to develop

Build

OS_ARCH=<your os>_<your architecture> make install
# Example
OS_ARCH=darwin_arm64 make install

Run

You can run an example in the /examples folder at your machine

Requisites:

  • terraform installed
  • accessibility to a nacos server
cd examples/

# Please use your actual credentials here
export NACOS_USERNAME=<nacos username> NACOS_PASSWORD=<nacos password> NACOS_ADDRESS=<nacos address> 
# or declare them in main.tf

terraform init
terraform apply

Test

Terraform provider using acceptance tests.

Please refer to https://www.terraform.io/plugin/sdkv2/testing/acceptance-tests when you add new test cases.

To run acceptance tests at your machine, make sure

  • the accessibility to the nacos server
  • create two namespaces sandbox_1 and sandbox_2 on nacos for testing (check in internal/nacos/resource_configuration_test.go)
  • an installed terraform. Otherwise the test will install another terraform version when running
make testacc

terraform-provider-nacos's People

Contributors

dinhanhhuy avatar tungluu18 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.