Skip to content

Latest commit

 

History

History

README.md

Here is an example of how to provision an Edgeworker, create the tarball, deploy the bundle to Akamai and activate. If the bundle changes, a new tarball will be created and a new version of the Edgeworker will activate

Providers

Name Version
akamai ~> 7.0
null n/a

Inputs

Name Description Type Default Required
akamai_access_token Akamai access token string n/a yes
akamai_account_key Akamai account key (optional) string "" no
akamai_client_secret Akamai client secret string n/a yes
akamai_client_token Akamai client token string n/a yes
akamai_host Akamai host string n/a yes
config_section Name of the section in your .edgerc file containing your api credentials string "default" no
edgerc_path Location of your .edgerc file string "~/.edgerc" no
group_id The group id that contains your cloudlet string n/a yes
name The name of the Edgeworker string n/a yes

Outputs

No outputs.

Here is an example of how to provision an Edgeworker, create the tarball, deploy the bundle to Akamai and activate. If the bundle changes, a new tarball will be created and a new version of the Edgeworker will activate

Cross-platform support for the tarball creation is included, using PowerShell on Windows and sh on other platforms. The local-exec provisioner will run on the machine where Terraform is being executed, so make sure you have the necessary permissions to create files in the working directory.

Usage

Basic usage of this module is as follows:

module "example" {
  	 source  = "<module-location>"
  
	 # Required variables
  	 akamai_access_token  = <string>
  	 akamai_client_secret  = <string>
  	 akamai_client_token  = <string>
  	 akamai_host  = <string>
  	 group_name  = <string>
  	 name  = <string>
  
	 # Optional variables
  	 akamai_account_key  = <string> | default: ""
}

Requirements

Name Version
terraform >= 1.9.0
akamai ~> 10.0

Resources

Name Type
akamai_edgeworker.edgeworker resource
akamai_edgeworkers_activation.edgeworker resource
null_resource.bundle resource
akamai_contract.contract data source

Modules

No modules.

Inputs

Name Description Type Default Required
akamai_access_token Akamai access token string n/a yes
akamai_client_secret Akamai client secret string n/a yes
akamai_client_token Akamai client token string n/a yes
akamai_host Akamai host string n/a yes
group_name The name of the group for the Edgeworker string n/a yes
name The name of the Edgeworker string n/a yes
akamai_account_key Akamai account key (optional) string "" no

Outputs

No outputs.

Resources