An Akamai provider for HashiCorp Terraform.
- Download the desired release version for your operating system
- Untar the download contents
- Install the
terraform-provider-akamaianywhere on your system - Add
terraform-provider-akamaito your~/.terraformrcfile:
providers {
"akamai" = "path/to/your/terraform-provider-akamai"
}
If you'd prefer to install from source:
- Add
terraform-provider-akamaito your~/.terraformrcfile:
providers {
"akamai" = "$GOPATH/bin/terraform-provider-akamai"
}
- Install
terraform-provider-akamai:
git clone git@github.com:Comcast/terraform-provider-akamai.git
cd terraform-provider-akamai
make
Note that terraform-provider-akamai assumes the following Akamai credentials stored as environment variables:
export AKAMAI_EDGEGRID_HOST=https://some-host.luna.akamaiapis.net
export AKAMAI_EDGEGRID_ACCESS_TOKEN=some-access-token
export AKAMAI_EDGEGRID_CLIENT_TOKEN=some-client-token
export AKAMAI_EDGEGRID_CLIENT_SECRET=some-client-secret
See example.tf as a usage reference.
When using terraform-provider-akamai against an existing Akamai GTM domain with existing Akamai GTM properties,
Terraform will destroy all existing Akamai GTM properties associated with the resource "akamai_gtm_domain"
cited in your .tf file. If undesired, this destructive action can be avoided by omitting usage of the
resource "akamai_gtm_domain" in your .tf file.
Acceptance tests require Akamai credentials authorized to perform CRUD actions against the golangtest.akadns.net GTM domain.
Establish the required AKAMAI_EDGEGRID_* environment variables and execute the tests:
make test
To publish a new terraform-provider-akamai release from your git repository's HEAD...
- establish a
GITHUB_TOKENenv variable:export GITHUB_TOKEN=YOUR_ACCESS_TOKEN - edit
Makefile'sVERSIONvariable to the appropriate semantic version - execute
make buildto build the release artifacts - execute
make releaseto publish the release artifacts to GitHub