cli-terraform-gtm

command module
v0.0.0-...-5765116 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

README

Akamai CLI for Global Traffic Management (GTM) Terraform Provider

Go Report Card FOSSA Status

An Akamai CLI package for managing Terraform GTM Domain configurations and associated objects.

Getting Started

Installing

To install this package, use Akamai CLI:

$ akamai install terraform-gtm

You may also use this as a stand-alone command by downloading the latest release binary for your system, or by cloning this repository and compiling it yourself.

Compiling from Source

If you want to compile it from source, you will need Go 1.8 or later, and the Dep package manager installed:

  1. Fetch the package:
    go get github.com/akamai/cli-terraform-gtm
  2. Change to the package directory:
    cd $GOPATH/src/github.com/akamai/cli-terraform-gtm
  3. Install dependencies using dep:
    dep ensure
  4. Compile the binary:
  • Linux/macOS/*nix: go build -o akamai-terraform-gtm
  • Windows: go build -o akamai-terraform-gtm.exe
  1. Move the binary (akamai-terraform-gtm or akamai-terraform-gtm.exe) in to your PATH

Usage

  akamai-terraform-gtm [--edgerc] [--section] <command> [sub-command]

Description:
   Manage Terraform GTM Domain configurations and assoc objects

Global Flags:
   --tfworkpath value      file path location for placement of created and/or modified artifacts. Default: current directory
   --resources             Create json formatted resource import list file, <domain>_resources.json. Used as input by createconfig.
   --createconfig          Create Terraform configuration (<domain>.tf), gtmvars.tf, and import command script (<domain>_import.script) files

Built-In Commands:
  create-domain
  list
  help
Create list of all domain objects. Written in json format to _resources.json
$ akamai terraform-gtm create-domain example.akadns.net --resources
Generate Terraform GTM Domain configuration file .tf, vars config file, gtmvars.tf, and import script, _resource_import.script
$ akamai terraform-gtm create-domain example.akadns.net --createconfig

Notes:

  1. Mapping GTM entity names to TF resource names may require normalization. Invalid TF resource name characters will be replaced by underscores, '_' in config generation.

License

This package is licensed under the Apache 2.0 License. See LICENSE for details.

FOSSA Status

Documentation

Overview

Copyright 2019. Akamai Technologies, Inc

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL