Come join Pulumi for the industry's first Cloud Engineering Summit! October 7–8. Save Your Spot

Akamai

The Akamai provider for Pulumi can be used to provision any of the cloud resources available in Akamai. The Akamai provider must be configured with credentials to deploy and update resources in Akamai.

See the full API documentation for complete details of the available Akamai provider APIs.

Setup

The Akamai provider supports several options for providing access to Akamai credentials. See the Akamai setup page for details.

Example

const akamai = require("@pulumi/akamai")

const contractId = akamai.getContract().then(x => x.id)
const groupId = akamai.getGroup().then(x => x.id)

const tsdomain = new akamai.properties.EdgeHostName("test", {
    contract: contractId,
    group: groupId,
    product: "prd_Fresca",
    edgeHostname: "test-js.mycompany.io",
    ipv4: true,
});
import * as akamai from "@pulumi/akamai";

const contractId = akamai.getContract().then(x => x.id)
const groupId = akamai.getGroup().then(x => x.id)

const tsdomain = new akamai.properties.EdgeHostName("test", {
    contract: contractId,
    group: groupId,
    product: "prd_Fresca",
    edgeHostname: "test-ts.mycompany.io",
    ipv4: true,
});
import pulumi_akamai as akamai

contract_id = pulumi.Output.from_input(akamai.get_contract()).id
group_id = pulumi.Output.from_input(akamai.get_group()).id

pydomain = akamai.properties.EdgeHostName("test",
          contract=contract_id,
          group=group_id,
          product="prd_Fresca",
          edge_hostname="test-py.mycompany.io",
          ipv4="true")
import (
  "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
  "github.com/pulumi/pulumi-akamai/sdk/go/akamai"
  "github.com/pulumi/pulumi-akamai/sdk/go/akam/properties

contract, _ := akamai.GetContract(ctx)
group, _ := akamai.GetGroup(ctx)

user, _ := properties.NewEdgeHostName(ctx, "demo", &properties.EdgeHostNameArgs{
  Contract:     pulumi.String(contract.Id),
  Group:        pulumi.String(group.Id),
  Product:      pulumi.String("prd_Fresca"),
  EdgeHostname: pulumi.String("test-go.mycompany.io"),
  Ipv4:         pulumi.Bool(true),
})
using System.Collections.Generic;
using System.Threading.Tasks;
using Pulumi;
using Pulumi.Akamai;
using Properties = Pulumi.Akamai.Properties;

class Program
{
    static Task Main() =>
        Deployment.Run(() => {

            var group = Output.Create(GetGroup.InvokeAsync());
            var contract = Output.Create(GetContract.InvokeAsync());

            var hostname = new Properties.EdgeHostName("demo", new Properties.EdgeHostNameArgs
            {
                Contract = contract.Id,
                Group = group.Id,
                Product = "prd_Fresca",
                EdgeHostName = "test-cs.mycompany.io",
                Ipv4 = true,
            });
        });
}

Libraries

The following packages are available in packager managers:

The Akamai provider is open source and available in the pulumi/pulumi-akamai repo.