Akamai v7.6.0 published on Friday, Nov 22, 2024 by Pulumi
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.
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/v3/go/pulumi"
"github.com/pulumi/pulumi-akamai/sdk/v2/go/akamai"
"github.com/pulumi/pulumi-akamai/sdk/v2/go/akam/properties"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
contract, err := akamai.GetContract(ctx)
if err != nil {
return err
}
group, err := akamai.GetGroup(ctx)
if err != nil {
return err
}
user, err := 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),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Threading.Tasks;
using Pulumi;
using Pulumi.Akamai;
using Properties = Pulumi.Akamai.Properties;
await Deployment.RunAsync(() =>
{
var group = GetGroup.Invoke();
var contract = GetContract.Invoke();
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,
});
});