This resource allows you to create and manage third party log integrations for a CloudAMQP instance. Once configured, the logs produced will be forward to corresponding integration.
Only available for dedicated subscription plans.
Example Usage
Azure monitor log integration
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const azureMonitor = new cloudamqp.IntegrationLog("azure_monitor", {
instanceId: instance.id,
name: "azure_monitor",
tenantId: azmTentantId,
applicationId: azmApplicationId,
applicationSecret: azmApplicationSecret,
dceUri: azmDceUri,
table: azmTable,
dcrId: azmDcrId,
});
import pulumi
import pulumi_cloudamqp as cloudamqp
azure_monitor = cloudamqp.IntegrationLog("azure_monitor",
instance_id=instance["id"],
name="azure_monitor",
tenant_id=azm_tentant_id,
application_id=azm_application_id,
application_secret=azm_application_secret,
dce_uri=azm_dce_uri,
table=azm_table,
dcr_id=azm_dcr_id)
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewIntegrationLog(ctx, "azure_monitor", &cloudamqp.IntegrationLogArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("azure_monitor"),
TenantId: pulumi.Any(azmTentantId),
ApplicationId: pulumi.Any(azmApplicationId),
ApplicationSecret: pulumi.Any(azmApplicationSecret),
DceUri: pulumi.Any(azmDceUri),
Table: pulumi.Any(azmTable),
DcrId: pulumi.Any(azmDcrId),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var azureMonitor = new CloudAmqp.IntegrationLog("azure_monitor", new()
{
InstanceId = instance.Id,
Name = "azure_monitor",
TenantId = azmTentantId,
ApplicationId = azmApplicationId,
ApplicationSecret = azmApplicationSecret,
DceUri = azmDceUri,
Table = azmTable,
DcrId = azmDcrId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.IntegrationLog;
import com.pulumi.cloudamqp.IntegrationLogArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var azureMonitor = new IntegrationLog("azureMonitor", IntegrationLogArgs.builder()
.instanceId(instance.id())
.name("azure_monitor")
.tenantId(azmTentantId)
.applicationId(azmApplicationId)
.applicationSecret(azmApplicationSecret)
.dceUri(azmDceUri)
.table(azmTable)
.dcrId(azmDcrId)
.build());
}
}
resources:
azureMonitor:
type: cloudamqp:IntegrationLog
name: azure_monitor
properties:
instanceId: ${instance.id}
name: azure_monitor
tenantId: ${azmTentantId}
applicationId: ${azmApplicationId}
applicationSecret: ${azmApplicationSecret}
dceUri: ${azmDceUri}
table: ${azmTable}
dcrId: ${azmDcrId}
Cloudwatch log integration
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const cloudwatch = new cloudamqp.IntegrationLog("cloudwatch", {
instanceId: instance.id,
name: "cloudwatchlog",
accessKeyId: awsAccessKeyId,
secretAccessKey: awsSecretAccessKey,
region: awsRegion,
});
import pulumi
import pulumi_cloudamqp as cloudamqp
cloudwatch = cloudamqp.IntegrationLog("cloudwatch",
instance_id=instance["id"],
name="cloudwatchlog",
access_key_id=aws_access_key_id,
secret_access_key=aws_secret_access_key,
region=aws_region)
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewIntegrationLog(ctx, "cloudwatch", &cloudamqp.IntegrationLogArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("cloudwatchlog"),
AccessKeyId: pulumi.Any(awsAccessKeyId),
SecretAccessKey: pulumi.Any(awsSecretAccessKey),
Region: pulumi.Any(awsRegion),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var cloudwatch = new CloudAmqp.IntegrationLog("cloudwatch", new()
{
InstanceId = instance.Id,
Name = "cloudwatchlog",
AccessKeyId = awsAccessKeyId,
SecretAccessKey = awsSecretAccessKey,
Region = awsRegion,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.IntegrationLog;
import com.pulumi.cloudamqp.IntegrationLogArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var cloudwatch = new IntegrationLog("cloudwatch", IntegrationLogArgs.builder()
.instanceId(instance.id())
.name("cloudwatchlog")
.accessKeyId(awsAccessKeyId)
.secretAccessKey(awsSecretAccessKey)
.region(awsRegion)
.build());
}
}
resources:
cloudwatch:
type: cloudamqp:IntegrationLog
properties:
instanceId: ${instance.id}
name: cloudwatchlog
accessKeyId: ${awsAccessKeyId}
secretAccessKey: ${awsSecretAccessKey}
region: ${awsRegion}
Cloudwatch log integration with retention and tags (from [v1.38.0])
Use retention and/or tags on the integration to make changes to CloudAMQP Log Group.
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const cloudwatch = new cloudamqp.IntegrationLog("cloudwatch", {
instanceId: instance.id,
name: "cloudwatchlog",
accessKeyId: awsAccessKeyId,
secretAccessKey: awsSecretAccessKey,
region: awsRegion,
retention: 14,
tags: "Project=A,Environment=Development",
});
import pulumi
import pulumi_cloudamqp as cloudamqp
cloudwatch = cloudamqp.IntegrationLog("cloudwatch",
instance_id=instance["id"],
name="cloudwatchlog",
access_key_id=aws_access_key_id,
secret_access_key=aws_secret_access_key,
region=aws_region,
retention=14,
tags="Project=A,Environment=Development")
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewIntegrationLog(ctx, "cloudwatch", &cloudamqp.IntegrationLogArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("cloudwatchlog"),
AccessKeyId: pulumi.Any(awsAccessKeyId),
SecretAccessKey: pulumi.Any(awsSecretAccessKey),
Region: pulumi.Any(awsRegion),
Retention: pulumi.Int(14),
Tags: pulumi.String("Project=A,Environment=Development"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var cloudwatch = new CloudAmqp.IntegrationLog("cloudwatch", new()
{
InstanceId = instance.Id,
Name = "cloudwatchlog",
AccessKeyId = awsAccessKeyId,
SecretAccessKey = awsSecretAccessKey,
Region = awsRegion,
Retention = 14,
Tags = "Project=A,Environment=Development",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.IntegrationLog;
import com.pulumi.cloudamqp.IntegrationLogArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var cloudwatch = new IntegrationLog("cloudwatch", IntegrationLogArgs.builder()
.instanceId(instance.id())
.name("cloudwatchlog")
.accessKeyId(awsAccessKeyId)
.secretAccessKey(awsSecretAccessKey)
.region(awsRegion)
.retention(14)
.tags("Project=A,Environment=Development")
.build());
}
}
resources:
cloudwatch:
type: cloudamqp:IntegrationLog
properties:
instanceId: ${instance.id}
name: cloudwatchlog
accessKeyId: ${awsAccessKeyId}
secretAccessKey: ${awsSecretAccessKey}
region: ${awsRegion}
retention: 14
tags: Project=A,Environment=Development
Coralogix log integration
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const coralogix = new cloudamqp.IntegrationLog("coralogix", {
instanceId: instance.id,
name: "coralogix",
privateKey: coralogixSendDataKey,
endpoint: coralogixEndpoint,
application: coralogixApplication,
subsystem: instance.host,
});
import pulumi
import pulumi_cloudamqp as cloudamqp
coralogix = cloudamqp.IntegrationLog("coralogix",
instance_id=instance["id"],
name="coralogix",
private_key=coralogix_send_data_key,
endpoint=coralogix_endpoint,
application=coralogix_application,
subsystem=instance["host"])
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewIntegrationLog(ctx, "coralogix", &cloudamqp.IntegrationLogArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("coralogix"),
PrivateKey: pulumi.Any(coralogixSendDataKey),
Endpoint: pulumi.Any(coralogixEndpoint),
Application: pulumi.Any(coralogixApplication),
Subsystem: pulumi.Any(instance.Host),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var coralogix = new CloudAmqp.IntegrationLog("coralogix", new()
{
InstanceId = instance.Id,
Name = "coralogix",
PrivateKey = coralogixSendDataKey,
Endpoint = coralogixEndpoint,
Application = coralogixApplication,
Subsystem = instance.Host,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.IntegrationLog;
import com.pulumi.cloudamqp.IntegrationLogArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var coralogix = new IntegrationLog("coralogix", IntegrationLogArgs.builder()
.instanceId(instance.id())
.name("coralogix")
.privateKey(coralogixSendDataKey)
.endpoint(coralogixEndpoint)
.application(coralogixApplication)
.subsystem(instance.host())
.build());
}
}
resources:
coralogix:
type: cloudamqp:IntegrationLog
properties:
instanceId: ${instance.id}
name: coralogix
privateKey: ${coralogixSendDataKey}
endpoint: ${coralogixEndpoint}
application: ${coralogixApplication}
subsystem: ${instance.host}
Datadog log integration
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const datadog = new cloudamqp.IntegrationLog("datadog", {
instanceId: instance.id,
name: "datadog",
region: datadogRegion,
apiKey: datadogApiKey,
tags: "env=prod,region=us1,version=v1.0",
});
import pulumi
import pulumi_cloudamqp as cloudamqp
datadog = cloudamqp.IntegrationLog("datadog",
instance_id=instance["id"],
name="datadog",
region=datadog_region,
api_key=datadog_api_key,
tags="env=prod,region=us1,version=v1.0")
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewIntegrationLog(ctx, "datadog", &cloudamqp.IntegrationLogArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("datadog"),
Region: pulumi.Any(datadogRegion),
ApiKey: pulumi.Any(datadogApiKey),
Tags: pulumi.String("env=prod,region=us1,version=v1.0"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var datadog = new CloudAmqp.IntegrationLog("datadog", new()
{
InstanceId = instance.Id,
Name = "datadog",
Region = datadogRegion,
ApiKey = datadogApiKey,
Tags = "env=prod,region=us1,version=v1.0",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.IntegrationLog;
import com.pulumi.cloudamqp.IntegrationLogArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var datadog = new IntegrationLog("datadog", IntegrationLogArgs.builder()
.instanceId(instance.id())
.name("datadog")
.region(datadogRegion)
.apiKey(datadogApiKey)
.tags("env=prod,region=us1,version=v1.0")
.build());
}
}
resources:
datadog:
type: cloudamqp:IntegrationLog
properties:
instanceId: ${instance.id}
name: datadog
region: ${datadogRegion}
apiKey: ${datadogApiKey}
tags: env=prod,region=us1,version=v1.0
Log entries log integration
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const logentries = new cloudamqp.IntegrationLog("logentries", {
instanceId: instance.id,
name: "logentries",
token: logentriesToken,
});
import pulumi
import pulumi_cloudamqp as cloudamqp
logentries = cloudamqp.IntegrationLog("logentries",
instance_id=instance["id"],
name="logentries",
token=logentries_token)
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewIntegrationLog(ctx, "logentries", &cloudamqp.IntegrationLogArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("logentries"),
Token: pulumi.Any(logentriesToken),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var logentries = new CloudAmqp.IntegrationLog("logentries", new()
{
InstanceId = instance.Id,
Name = "logentries",
Token = logentriesToken,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.IntegrationLog;
import com.pulumi.cloudamqp.IntegrationLogArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var logentries = new IntegrationLog("logentries", IntegrationLogArgs.builder()
.instanceId(instance.id())
.name("logentries")
.token(logentriesToken)
.build());
}
}
resources:
logentries:
type: cloudamqp:IntegrationLog
properties:
instanceId: ${instance.id}
name: logentries
token: ${logentriesToken}
Loggly log integration
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const loggly = new cloudamqp.IntegrationLog("loggly", {
instanceId: instance.id,
name: "loggly",
token: logglyToken,
});
import pulumi
import pulumi_cloudamqp as cloudamqp
loggly = cloudamqp.IntegrationLog("loggly",
instance_id=instance["id"],
name="loggly",
token=loggly_token)
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewIntegrationLog(ctx, "loggly", &cloudamqp.IntegrationLogArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("loggly"),
Token: pulumi.Any(logglyToken),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var loggly = new CloudAmqp.IntegrationLog("loggly", new()
{
InstanceId = instance.Id,
Name = "loggly",
Token = logglyToken,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.IntegrationLog;
import com.pulumi.cloudamqp.IntegrationLogArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var loggly = new IntegrationLog("loggly", IntegrationLogArgs.builder()
.instanceId(instance.id())
.name("loggly")
.token(logglyToken)
.build());
}
}
resources:
loggly:
type: cloudamqp:IntegrationLog
properties:
instanceId: ${instance.id}
name: loggly
token: ${logglyToken}
Papertrail log integration
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const papertrail = new cloudamqp.IntegrationLog("papertrail", {
instanceId: instance.id,
name: "papertrail",
url: papertrailUrl,
});
import pulumi
import pulumi_cloudamqp as cloudamqp
papertrail = cloudamqp.IntegrationLog("papertrail",
instance_id=instance["id"],
name="papertrail",
url=papertrail_url)
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewIntegrationLog(ctx, "papertrail", &cloudamqp.IntegrationLogArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("papertrail"),
Url: pulumi.Any(papertrailUrl),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var papertrail = new CloudAmqp.IntegrationLog("papertrail", new()
{
InstanceId = instance.Id,
Name = "papertrail",
Url = papertrailUrl,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.IntegrationLog;
import com.pulumi.cloudamqp.IntegrationLogArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var papertrail = new IntegrationLog("papertrail", IntegrationLogArgs.builder()
.instanceId(instance.id())
.name("papertrail")
.url(papertrailUrl)
.build());
}
}
resources:
papertrail:
type: cloudamqp:IntegrationLog
properties:
instanceId: ${instance.id}
name: papertrail
url: ${papertrailUrl}
Scalyr log integration
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const scalyr = new cloudamqp.IntegrationLog("scalyr", {
instanceId: instance.id,
name: "scalyr",
token: scalyrToken,
host: scalyrHost,
});
import pulumi
import pulumi_cloudamqp as cloudamqp
scalyr = cloudamqp.IntegrationLog("scalyr",
instance_id=instance["id"],
name="scalyr",
token=scalyr_token,
host=scalyr_host)
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewIntegrationLog(ctx, "scalyr", &cloudamqp.IntegrationLogArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("scalyr"),
Token: pulumi.Any(scalyrToken),
Host: pulumi.Any(scalyrHost),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var scalyr = new CloudAmqp.IntegrationLog("scalyr", new()
{
InstanceId = instance.Id,
Name = "scalyr",
Token = scalyrToken,
Host = scalyrHost,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.IntegrationLog;
import com.pulumi.cloudamqp.IntegrationLogArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var scalyr = new IntegrationLog("scalyr", IntegrationLogArgs.builder()
.instanceId(instance.id())
.name("scalyr")
.token(scalyrToken)
.host(scalyrHost)
.build());
}
}
resources:
scalyr:
type: cloudamqp:IntegrationLog
properties:
instanceId: ${instance.id}
name: scalyr
token: ${scalyrToken}
host: ${scalyrHost}
Splunk log integration
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const splunk = new cloudamqp.IntegrationLog("splunk", {
instanceId: instance.id,
name: "splunk",
token: splunkToken,
hostPort: splunkHostPort,
sourceType: "generic_single_line",
});
import pulumi
import pulumi_cloudamqp as cloudamqp
splunk = cloudamqp.IntegrationLog("splunk",
instance_id=instance["id"],
name="splunk",
token=splunk_token,
host_port=splunk_host_port,
source_type="generic_single_line")
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewIntegrationLog(ctx, "splunk", &cloudamqp.IntegrationLogArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("splunk"),
Token: pulumi.Any(splunkToken),
HostPort: pulumi.Any(splunkHostPort),
SourceType: pulumi.String("generic_single_line"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var splunk = new CloudAmqp.IntegrationLog("splunk", new()
{
InstanceId = instance.Id,
Name = "splunk",
Token = splunkToken,
HostPort = splunkHostPort,
SourceType = "generic_single_line",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.IntegrationLog;
import com.pulumi.cloudamqp.IntegrationLogArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var splunk = new IntegrationLog("splunk", IntegrationLogArgs.builder()
.instanceId(instance.id())
.name("splunk")
.token(splunkToken)
.hostPort(splunkHostPort)
.sourceType("generic_single_line")
.build());
}
}
resources:
splunk:
type: cloudamqp:IntegrationLog
properties:
instanceId: ${instance.id}
name: splunk
token: ${splunkToken}
hostPort: ${splunkHostPort}
sourceType: generic_single_line
Stackdriver log integration (v1.20.2 or older versions)
Use variable file populated with project_id, private_key and client_email
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const stackdriver = new cloudamqp.IntegrationLog("stackdriver", {
instanceId: instance.id,
name: "stackdriver",
projectId: stackdriverProjectId,
privateKey: stackdriverPrivateKey,
clientEmail: stackdriverClientEmail,
});
import pulumi
import pulumi_cloudamqp as cloudamqp
stackdriver = cloudamqp.IntegrationLog("stackdriver",
instance_id=instance["id"],
name="stackdriver",
project_id=stackdriver_project_id,
private_key=stackdriver_private_key,
client_email=stackdriver_client_email)
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewIntegrationLog(ctx, "stackdriver", &cloudamqp.IntegrationLogArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("stackdriver"),
ProjectId: pulumi.Any(stackdriverProjectId),
PrivateKey: pulumi.Any(stackdriverPrivateKey),
ClientEmail: pulumi.Any(stackdriverClientEmail),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var stackdriver = new CloudAmqp.IntegrationLog("stackdriver", new()
{
InstanceId = instance.Id,
Name = "stackdriver",
ProjectId = stackdriverProjectId,
PrivateKey = stackdriverPrivateKey,
ClientEmail = stackdriverClientEmail,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.IntegrationLog;
import com.pulumi.cloudamqp.IntegrationLogArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var stackdriver = new IntegrationLog("stackdriver", IntegrationLogArgs.builder()
.instanceId(instance.id())
.name("stackdriver")
.projectId(stackdriverProjectId)
.privateKey(stackdriverPrivateKey)
.clientEmail(stackdriverClientEmail)
.build());
}
}
resources:
stackdriver:
type: cloudamqp:IntegrationLog
properties:
instanceId: ${instance.id}
name: stackdriver
projectId: ${stackdriverProjectId}
privateKey: ${stackdriverPrivateKey}
clientEmail: ${stackdriverClientEmail}
or by using google_service_account_key resource from Google provider
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
import * as google from "@pulumi/google";
import * as std from "@pulumi/std";
const serviceAccount = new google.index.ServiceAccount("service_account", {
accountId: "<account_id>",
description: "<description>",
displayName: "<display_name>",
});
const serviceAccountKey = new google.index.ServiceAccountKey("service_account_key", {serviceAccountId: serviceAccount.name});
const stackdriver = new cloudamqp.IntegrationLog("stackdriver", {
instanceId: instance.id,
name: "stackdriver",
projectId: std.index.jsondecode({
input: std.index.base64decode({
input: serviceAccountKey.privateKey,
}).result,
}).result.projectId,
privateKey: std.index.jsondecode({
input: std.index.base64decode({
input: serviceAccountKey.privateKey,
}).result,
}).result.privateKey,
clientEmail: std.index.jsondecode({
input: std.index.base64decode({
input: serviceAccountKey.privateKey,
}).result,
}).result.clientEmail,
});
import pulumi
import pulumi_cloudamqp as cloudamqp
import pulumi_google as google
import pulumi_std as std
service_account = google.index.ServiceAccount("service_account",
account_id=<account_id>,
description=<description>,
display_name=<display_name>)
service_account_key = google.index.ServiceAccountKey("service_account_key", service_account_id=service_account.name)
stackdriver = cloudamqp.IntegrationLog("stackdriver",
instance_id=instance["id"],
name="stackdriver",
project_id=std.index.jsondecode(input=std.index.base64decode(input=service_account_key["privateKey"])["result"])["result"]["projectId"],
private_key=std.index.jsondecode(input=std.index.base64decode(input=service_account_key["privateKey"])["result"])["result"]["privateKey"],
client_email=std.index.jsondecode(input=std.index.base64decode(input=service_account_key["privateKey"])["result"])["result"]["clientEmail"])
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi-google/sdk/go/google"
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
serviceAccount, err := google.NewServiceAccount(ctx, "service_account", &google.ServiceAccountArgs{
AccountId: "<account_id>",
Description: "<description>",
DisplayName: "<display_name>",
})
if err != nil {
return err
}
serviceAccountKey, err := google.NewServiceAccountKey(ctx, "service_account_key", &google.ServiceAccountKeyArgs{
ServiceAccountId: serviceAccount.Name,
})
if err != nil {
return err
}
invokeJsondecode, err := std.Jsondecode(ctx, map[string]interface{}{
"input": std.Base64decode(ctx, map[string]interface{}{
"input": serviceAccountKey.PrivateKey,
}, nil).Result,
}, nil)
if err != nil {
return err
}
invokeJsondecode1, err := std.Jsondecode(ctx, map[string]interface{}{
"input": std.Base64decode(ctx, map[string]interface{}{
"input": serviceAccountKey.PrivateKey,
}, nil).Result,
}, nil)
if err != nil {
return err
}
invokeJsondecode2, err := std.Jsondecode(ctx, map[string]interface{}{
"input": std.Base64decode(ctx, map[string]interface{}{
"input": serviceAccountKey.PrivateKey,
}, nil).Result,
}, nil)
if err != nil {
return err
}
_, err = cloudamqp.NewIntegrationLog(ctx, "stackdriver", &cloudamqp.IntegrationLogArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("stackdriver"),
ProjectId: invokeJsondecode.Result.ProjectId,
PrivateKey: invokeJsondecode1.Result.PrivateKey,
ClientEmail: invokeJsondecode2.Result.ClientEmail,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
using Google = Pulumi.Google;
using Std = Pulumi.Std;
return await Deployment.RunAsync(() =>
{
var serviceAccount = new Google.Index.ServiceAccount("service_account", new()
{
AccountId = "<account_id>",
Description = "<description>",
DisplayName = "<display_name>",
});
var serviceAccountKey = new Google.Index.ServiceAccountKey("service_account_key", new()
{
ServiceAccountId = serviceAccount.Name,
});
var stackdriver = new CloudAmqp.IntegrationLog("stackdriver", new()
{
InstanceId = instance.Id,
Name = "stackdriver",
ProjectId = Std.Index.Jsondecode.Invoke(new()
{
Input = Std.Index.Base64decode.Invoke(new()
{
Input = serviceAccountKey.PrivateKey,
}).Result,
}).Result.ProjectId,
PrivateKey = Std.Index.Jsondecode.Invoke(new()
{
Input = Std.Index.Base64decode.Invoke(new()
{
Input = serviceAccountKey.PrivateKey,
}).Result,
}).Result.PrivateKey,
ClientEmail = Std.Index.Jsondecode.Invoke(new()
{
Input = Std.Index.Base64decode.Invoke(new()
{
Input = serviceAccountKey.PrivateKey,
}).Result,
}).Result.ClientEmail,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.google.ServiceAccount;
import com.pulumi.google.ServiceAccountArgs;
import com.pulumi.google.ServiceAccountKey;
import com.pulumi.google.ServiceAccountKeyArgs;
import com.pulumi.cloudamqp.IntegrationLog;
import com.pulumi.cloudamqp.IntegrationLogArgs;
import com.pulumi.std.StdFunctions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var serviceAccount = new ServiceAccount("serviceAccount", ServiceAccountArgs.builder()
.accountId("<account_id>")
.description("<description>")
.displayName("<display_name>")
.build());
var serviceAccountKey = new ServiceAccountKey("serviceAccountKey", ServiceAccountKeyArgs.builder()
.serviceAccountId(serviceAccount.name())
.build());
var stackdriver = new IntegrationLog("stackdriver", IntegrationLogArgs.builder()
.instanceId(instance.id())
.name("stackdriver")
.projectId(StdFunctions.jsondecode(Map.of("input", StdFunctions.base64decode(Map.of("input", serviceAccountKey.privateKey())).result())).result().projectId())
.privateKey(StdFunctions.jsondecode(Map.of("input", StdFunctions.base64decode(Map.of("input", serviceAccountKey.privateKey())).result())).result().privateKey())
.clientEmail(StdFunctions.jsondecode(Map.of("input", StdFunctions.base64decode(Map.of("input", serviceAccountKey.privateKey())).result())).result().clientEmail())
.build());
}
}
resources:
serviceAccount:
type: google:ServiceAccount
name: service_account
properties:
accountId: <account_id>
description: <description>
displayName: <display_name>
serviceAccountKey:
type: google:ServiceAccountKey
name: service_account_key
properties:
serviceAccountId: ${serviceAccount.name}
stackdriver:
type: cloudamqp:IntegrationLog
properties:
instanceId: ${instance.id}
name: stackdriver
projectId:
fn::invoke:
function: std:jsondecode
arguments:
input:
fn::invoke:
function: std:base64decode
arguments:
input: ${serviceAccountKey.privateKey}
return: result
return: result.projectId
privateKey:
fn::invoke:
function: std:jsondecode
arguments:
input:
fn::invoke:
function: std:base64decode
arguments:
input: ${serviceAccountKey.privateKey}
return: result
return: result.privateKey
clientEmail:
fn::invoke:
function: std:jsondecode
arguments:
input:
fn::invoke:
function: std:base64decode
arguments:
input: ${serviceAccountKey.privateKey}
return: result
return: result.clientEmail
Stackdriver log integration (v1.21.0 or newer versions)
Use credentials argument and let the provider do the Base64decode and internally populate, project_id, client_name, private_key
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
import * as google from "@pulumi/google";
const serviceAccount = new google.index.ServiceAccount("service_account", {
accountId: "<account_id>",
description: "<description>",
displayName: "<display_name>",
});
const serviceAccountKey = new google.index.ServiceAccountKey("service_account_key", {serviceAccountId: serviceAccount.name});
const stackdriver = new cloudamqp.IntegrationLog("stackdriver", {
instanceId: instance.id,
name: "stackdriver",
credentials: serviceAccountKey.privateKey,
});
import pulumi
import pulumi_cloudamqp as cloudamqp
import pulumi_google as google
service_account = google.index.ServiceAccount("service_account",
account_id=<account_id>,
description=<description>,
display_name=<display_name>)
service_account_key = google.index.ServiceAccountKey("service_account_key", service_account_id=service_account.name)
stackdriver = cloudamqp.IntegrationLog("stackdriver",
instance_id=instance["id"],
name="stackdriver",
credentials=service_account_key["privateKey"])
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi-google/sdk/go/google"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
serviceAccount, err := google.NewServiceAccount(ctx, "service_account", &google.ServiceAccountArgs{
AccountId: "<account_id>",
Description: "<description>",
DisplayName: "<display_name>",
})
if err != nil {
return err
}
serviceAccountKey, err := google.NewServiceAccountKey(ctx, "service_account_key", &google.ServiceAccountKeyArgs{
ServiceAccountId: serviceAccount.Name,
})
if err != nil {
return err
}
_, err = cloudamqp.NewIntegrationLog(ctx, "stackdriver", &cloudamqp.IntegrationLogArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("stackdriver"),
Credentials: serviceAccountKey.PrivateKey,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
using Google = Pulumi.Google;
return await Deployment.RunAsync(() =>
{
var serviceAccount = new Google.Index.ServiceAccount("service_account", new()
{
AccountId = "<account_id>",
Description = "<description>",
DisplayName = "<display_name>",
});
var serviceAccountKey = new Google.Index.ServiceAccountKey("service_account_key", new()
{
ServiceAccountId = serviceAccount.Name,
});
var stackdriver = new CloudAmqp.IntegrationLog("stackdriver", new()
{
InstanceId = instance.Id,
Name = "stackdriver",
Credentials = serviceAccountKey.PrivateKey,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.google.ServiceAccount;
import com.pulumi.google.ServiceAccountArgs;
import com.pulumi.google.ServiceAccountKey;
import com.pulumi.google.ServiceAccountKeyArgs;
import com.pulumi.cloudamqp.IntegrationLog;
import com.pulumi.cloudamqp.IntegrationLogArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var serviceAccount = new ServiceAccount("serviceAccount", ServiceAccountArgs.builder()
.accountId("<account_id>")
.description("<description>")
.displayName("<display_name>")
.build());
var serviceAccountKey = new ServiceAccountKey("serviceAccountKey", ServiceAccountKeyArgs.builder()
.serviceAccountId(serviceAccount.name())
.build());
var stackdriver = new IntegrationLog("stackdriver", IntegrationLogArgs.builder()
.instanceId(instance.id())
.name("stackdriver")
.credentials(serviceAccountKey.privateKey())
.build());
}
}
resources:
serviceAccount:
type: google:ServiceAccount
name: service_account
properties:
accountId: <account_id>
description: <description>
displayName: <display_name>
serviceAccountKey:
type: google:ServiceAccountKey
name: service_account_key
properties:
serviceAccountId: ${serviceAccount.name}
stackdriver:
type: cloudamqp:IntegrationLog
properties:
instanceId: ${instance.id}
name: stackdriver
credentials: ${serviceAccountKey.privateKey}
or use the same as earlier version and decode the google service account key
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
import * as google from "@pulumi/google";
import * as std from "@pulumi/std";
const serviceAccount = new google.index.ServiceAccount("service_account", {
accountId: "<account_id>",
description: "<description>",
displayName: "<display_name>",
});
const serviceAccountKey = new google.index.ServiceAccountKey("service_account_key", {serviceAccountId: serviceAccount.name});
const stackdriver = new cloudamqp.IntegrationLog("stackdriver", {
instanceId: instance.id,
name: "stackdriver",
projectId: std.index.jsondecode({
input: std.index.base64decode({
input: serviceAccountKey.privateKey,
}).result,
}).result.projectId,
privateKey: std.index.jsondecode({
input: std.index.base64decode({
input: serviceAccountKey.privateKey,
}).result,
}).result.privateKey,
clientEmail: std.index.jsondecode({
input: std.index.base64decode({
input: serviceAccountKey.privateKey,
}).result,
}).result.clientEmail,
});
import pulumi
import pulumi_cloudamqp as cloudamqp
import pulumi_google as google
import pulumi_std as std
service_account = google.index.ServiceAccount("service_account",
account_id=<account_id>,
description=<description>,
display_name=<display_name>)
service_account_key = google.index.ServiceAccountKey("service_account_key", service_account_id=service_account.name)
stackdriver = cloudamqp.IntegrationLog("stackdriver",
instance_id=instance["id"],
name="stackdriver",
project_id=std.index.jsondecode(input=std.index.base64decode(input=service_account_key["privateKey"])["result"])["result"]["projectId"],
private_key=std.index.jsondecode(input=std.index.base64decode(input=service_account_key["privateKey"])["result"])["result"]["privateKey"],
client_email=std.index.jsondecode(input=std.index.base64decode(input=service_account_key["privateKey"])["result"])["result"]["clientEmail"])
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi-google/sdk/go/google"
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
serviceAccount, err := google.NewServiceAccount(ctx, "service_account", &google.ServiceAccountArgs{
AccountId: "<account_id>",
Description: "<description>",
DisplayName: "<display_name>",
})
if err != nil {
return err
}
serviceAccountKey, err := google.NewServiceAccountKey(ctx, "service_account_key", &google.ServiceAccountKeyArgs{
ServiceAccountId: serviceAccount.Name,
})
if err != nil {
return err
}
invokeJsondecode, err := std.Jsondecode(ctx, map[string]interface{}{
"input": std.Base64decode(ctx, map[string]interface{}{
"input": serviceAccountKey.PrivateKey,
}, nil).Result,
}, nil)
if err != nil {
return err
}
invokeJsondecode1, err := std.Jsondecode(ctx, map[string]interface{}{
"input": std.Base64decode(ctx, map[string]interface{}{
"input": serviceAccountKey.PrivateKey,
}, nil).Result,
}, nil)
if err != nil {
return err
}
invokeJsondecode2, err := std.Jsondecode(ctx, map[string]interface{}{
"input": std.Base64decode(ctx, map[string]interface{}{
"input": serviceAccountKey.PrivateKey,
}, nil).Result,
}, nil)
if err != nil {
return err
}
_, err = cloudamqp.NewIntegrationLog(ctx, "stackdriver", &cloudamqp.IntegrationLogArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("stackdriver"),
ProjectId: invokeJsondecode.Result.ProjectId,
PrivateKey: invokeJsondecode1.Result.PrivateKey,
ClientEmail: invokeJsondecode2.Result.ClientEmail,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
using Google = Pulumi.Google;
using Std = Pulumi.Std;
return await Deployment.RunAsync(() =>
{
var serviceAccount = new Google.Index.ServiceAccount("service_account", new()
{
AccountId = "<account_id>",
Description = "<description>",
DisplayName = "<display_name>",
});
var serviceAccountKey = new Google.Index.ServiceAccountKey("service_account_key", new()
{
ServiceAccountId = serviceAccount.Name,
});
var stackdriver = new CloudAmqp.IntegrationLog("stackdriver", new()
{
InstanceId = instance.Id,
Name = "stackdriver",
ProjectId = Std.Index.Jsondecode.Invoke(new()
{
Input = Std.Index.Base64decode.Invoke(new()
{
Input = serviceAccountKey.PrivateKey,
}).Result,
}).Result.ProjectId,
PrivateKey = Std.Index.Jsondecode.Invoke(new()
{
Input = Std.Index.Base64decode.Invoke(new()
{
Input = serviceAccountKey.PrivateKey,
}).Result,
}).Result.PrivateKey,
ClientEmail = Std.Index.Jsondecode.Invoke(new()
{
Input = Std.Index.Base64decode.Invoke(new()
{
Input = serviceAccountKey.PrivateKey,
}).Result,
}).Result.ClientEmail,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.google.ServiceAccount;
import com.pulumi.google.ServiceAccountArgs;
import com.pulumi.google.ServiceAccountKey;
import com.pulumi.google.ServiceAccountKeyArgs;
import com.pulumi.cloudamqp.IntegrationLog;
import com.pulumi.cloudamqp.IntegrationLogArgs;
import com.pulumi.std.StdFunctions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var serviceAccount = new ServiceAccount("serviceAccount", ServiceAccountArgs.builder()
.accountId("<account_id>")
.description("<description>")
.displayName("<display_name>")
.build());
var serviceAccountKey = new ServiceAccountKey("serviceAccountKey", ServiceAccountKeyArgs.builder()
.serviceAccountId(serviceAccount.name())
.build());
var stackdriver = new IntegrationLog("stackdriver", IntegrationLogArgs.builder()
.instanceId(instance.id())
.name("stackdriver")
.projectId(StdFunctions.jsondecode(Map.of("input", StdFunctions.base64decode(Map.of("input", serviceAccountKey.privateKey())).result())).result().projectId())
.privateKey(StdFunctions.jsondecode(Map.of("input", StdFunctions.base64decode(Map.of("input", serviceAccountKey.privateKey())).result())).result().privateKey())
.clientEmail(StdFunctions.jsondecode(Map.of("input", StdFunctions.base64decode(Map.of("input", serviceAccountKey.privateKey())).result())).result().clientEmail())
.build());
}
}
resources:
serviceAccount:
type: google:ServiceAccount
name: service_account
properties:
accountId: <account_id>
description: <description>
displayName: <display_name>
serviceAccountKey:
type: google:ServiceAccountKey
name: service_account_key
properties:
serviceAccountId: ${serviceAccount.name}
stackdriver:
type: cloudamqp:IntegrationLog
properties:
instanceId: ${instance.id}
name: stackdriver
projectId:
fn::invoke:
function: std:jsondecode
arguments:
input:
fn::invoke:
function: std:base64decode
arguments:
input: ${serviceAccountKey.privateKey}
return: result
return: result.projectId
privateKey:
fn::invoke:
function: std:jsondecode
arguments:
input:
fn::invoke:
function: std:base64decode
arguments:
input: ${serviceAccountKey.privateKey}
return: result
return: result.privateKey
clientEmail:
fn::invoke:
function: std:jsondecode
arguments:
input:
fn::invoke:
function: std:base64decode
arguments:
input: ${serviceAccountKey.privateKey}
return: result
return: result.clientEmail
Dependency
This resource depends on CloudAMQP instance identifier, cloudamqp_instance.instance.id.
Create IntegrationLog Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IntegrationLog(name: string, args: IntegrationLogArgs, opts?: CustomResourceOptions);@overload
def IntegrationLog(resource_name: str,
args: IntegrationLogArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IntegrationLog(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[int] = None,
credentials: Optional[str] = None,
tags: Optional[str] = None,
application_id: Optional[str] = None,
application_secret: Optional[str] = None,
client_email: Optional[str] = None,
access_key_id: Optional[str] = None,
dce_uri: Optional[str] = None,
dcr_id: Optional[str] = None,
endpoint: Optional[str] = None,
host: Optional[str] = None,
host_port: Optional[str] = None,
api_key: Optional[str] = None,
application: Optional[str] = None,
name: Optional[str] = None,
secret_access_key: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
retention: Optional[int] = None,
private_key_id: Optional[str] = None,
sourcetype: Optional[str] = None,
subsystem: Optional[str] = None,
table: Optional[str] = None,
private_key: Optional[str] = None,
tenant_id: Optional[str] = None,
token: Optional[str] = None,
url: Optional[str] = None)func NewIntegrationLog(ctx *Context, name string, args IntegrationLogArgs, opts ...ResourceOption) (*IntegrationLog, error)public IntegrationLog(string name, IntegrationLogArgs args, CustomResourceOptions? opts = null)
public IntegrationLog(String name, IntegrationLogArgs args)
public IntegrationLog(String name, IntegrationLogArgs args, CustomResourceOptions options)
type: cloudamqp:IntegrationLog
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args IntegrationLogArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args IntegrationLogArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args IntegrationLogArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IntegrationLogArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IntegrationLogArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var integrationLogResource = new CloudAmqp.IntegrationLog("integrationLogResource", new()
{
InstanceId = 0,
Credentials = "string",
Tags = "string",
ApplicationId = "string",
ApplicationSecret = "string",
ClientEmail = "string",
AccessKeyId = "string",
DceUri = "string",
DcrId = "string",
Endpoint = "string",
Host = "string",
HostPort = "string",
ApiKey = "string",
Application = "string",
Name = "string",
SecretAccessKey = "string",
ProjectId = "string",
Region = "string",
Retention = 0,
PrivateKeyId = "string",
Sourcetype = "string",
Subsystem = "string",
Table = "string",
PrivateKey = "string",
TenantId = "string",
Token = "string",
Url = "string",
});
example, err := cloudamqp.NewIntegrationLog(ctx, "integrationLogResource", &cloudamqp.IntegrationLogArgs{
InstanceId: pulumi.Int(0),
Credentials: pulumi.String("string"),
Tags: pulumi.String("string"),
ApplicationId: pulumi.String("string"),
ApplicationSecret: pulumi.String("string"),
ClientEmail: pulumi.String("string"),
AccessKeyId: pulumi.String("string"),
DceUri: pulumi.String("string"),
DcrId: pulumi.String("string"),
Endpoint: pulumi.String("string"),
Host: pulumi.String("string"),
HostPort: pulumi.String("string"),
ApiKey: pulumi.String("string"),
Application: pulumi.String("string"),
Name: pulumi.String("string"),
SecretAccessKey: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
Retention: pulumi.Int(0),
PrivateKeyId: pulumi.String("string"),
Sourcetype: pulumi.String("string"),
Subsystem: pulumi.String("string"),
Table: pulumi.String("string"),
PrivateKey: pulumi.String("string"),
TenantId: pulumi.String("string"),
Token: pulumi.String("string"),
Url: pulumi.String("string"),
})
var integrationLogResource = new IntegrationLog("integrationLogResource", IntegrationLogArgs.builder()
.instanceId(0)
.credentials("string")
.tags("string")
.applicationId("string")
.applicationSecret("string")
.clientEmail("string")
.accessKeyId("string")
.dceUri("string")
.dcrId("string")
.endpoint("string")
.host("string")
.hostPort("string")
.apiKey("string")
.application("string")
.name("string")
.secretAccessKey("string")
.projectId("string")
.region("string")
.retention(0)
.privateKeyId("string")
.sourcetype("string")
.subsystem("string")
.table("string")
.privateKey("string")
.tenantId("string")
.token("string")
.url("string")
.build());
integration_log_resource = cloudamqp.IntegrationLog("integrationLogResource",
instance_id=0,
credentials="string",
tags="string",
application_id="string",
application_secret="string",
client_email="string",
access_key_id="string",
dce_uri="string",
dcr_id="string",
endpoint="string",
host="string",
host_port="string",
api_key="string",
application="string",
name="string",
secret_access_key="string",
project_id="string",
region="string",
retention=0,
private_key_id="string",
sourcetype="string",
subsystem="string",
table="string",
private_key="string",
tenant_id="string",
token="string",
url="string")
const integrationLogResource = new cloudamqp.IntegrationLog("integrationLogResource", {
instanceId: 0,
credentials: "string",
tags: "string",
applicationId: "string",
applicationSecret: "string",
clientEmail: "string",
accessKeyId: "string",
dceUri: "string",
dcrId: "string",
endpoint: "string",
host: "string",
hostPort: "string",
apiKey: "string",
application: "string",
name: "string",
secretAccessKey: "string",
projectId: "string",
region: "string",
retention: 0,
privateKeyId: "string",
sourcetype: "string",
subsystem: "string",
table: "string",
privateKey: "string",
tenantId: "string",
token: "string",
url: "string",
});
type: cloudamqp:IntegrationLog
properties:
accessKeyId: string
apiKey: string
application: string
applicationId: string
applicationSecret: string
clientEmail: string
credentials: string
dceUri: string
dcrId: string
endpoint: string
host: string
hostPort: string
instanceId: 0
name: string
privateKey: string
privateKeyId: string
projectId: string
region: string
retention: 0
secretAccessKey: string
sourcetype: string
subsystem: string
table: string
tags: string
tenantId: string
token: string
url: string
IntegrationLog Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The IntegrationLog resource accepts the following input properties:
- Instance
Id int Instance identifier for the CloudAMQP instance.
Valid arguments for each third party log integrations below. Corresponding API backend documentation can be found here [CloudAMQP API add integration].
The following arguments used by Azure monitoring.
- Access
Key stringId - AWS access key identifier.
- Api
Key string - The API key for the integration service. (Datadog)
- Application string
- The name of the application. (Azure Monitor)
- Application
Id string - The application identifier.
- Application
Secret string - The application secret.
- Client
Email string - The client email. (Stackdriver)
- Credentials string
- Base64Encoded credentials. (Stackdriver)
- Dce
Uri string - The data collection endpoint.
- Dcr
Id string - ID of data collection rule that your DCE is linked to.
- Endpoint string
- The syslog destination to send the logs to. (Papertrail)
- Host string
- The host information. (Scalyr)
- Host
Port string - Destination to send the logs. (Splunk)
- Name string
- The name of the third party log integration (
cloudwatchlog). - Private
Key string - The private API key used for authentication. (Stackdriver, Coralogix)
- Private
Key stringId - Private key identifier. (Stackdriver)
- Project
Id string - The project ID for the integration service. (Stackdriver)
- Region string
AWS region hosting the integration service.
Optional arguments introduced in version [v1.38.0].
- Retention int
Number of days to retain log events in
CloudAMQPlog group.Note: Possible values are: 0 (never expire) or between 1-3653, read more about valid values in the [Cloudwatch Log retention].
- Secret
Access stringKey - AWS secret access key.
- Sourcetype string
- Assign source type to the data exported, eg. generic_single_line. (Splunk)
- Subsystem string
- The name of the subsystem. (Azure Monitor)
- Table string
The table name.
Use Azure portal to configure external access for Azure Monitor. [Tutorial to find/create all arguments]
The following arguments used by CloudWatch.
- string
Enter tags to
CloudAMQPlog group like this:Project=A,Environment=Development.Note: Tags are only added, unwanted tags needs to be removed manually in the AWS console. Read more about tags format in the [Cloudwatch Log tags]
- Tenant
Id string - The tenant identifier.
- Token string
- The token used for authentication. (Loggly, Logentries, Splunk, Scalyr)
- Url string
- The URL to push the logs to. (Papertrail)
- Instance
Id int Instance identifier for the CloudAMQP instance.
Valid arguments for each third party log integrations below. Corresponding API backend documentation can be found here [CloudAMQP API add integration].
The following arguments used by Azure monitoring.
- Access
Key stringId - AWS access key identifier.
- Api
Key string - The API key for the integration service. (Datadog)
- Application string
- The name of the application. (Azure Monitor)
- Application
Id string - The application identifier.
- Application
Secret string - The application secret.
- Client
Email string - The client email. (Stackdriver)
- Credentials string
- Base64Encoded credentials. (Stackdriver)
- Dce
Uri string - The data collection endpoint.
- Dcr
Id string - ID of data collection rule that your DCE is linked to.
- Endpoint string
- The syslog destination to send the logs to. (Papertrail)
- Host string
- The host information. (Scalyr)
- Host
Port string - Destination to send the logs. (Splunk)
- Name string
- The name of the third party log integration (
cloudwatchlog). - Private
Key string - The private API key used for authentication. (Stackdriver, Coralogix)
- Private
Key stringId - Private key identifier. (Stackdriver)
- Project
Id string - The project ID for the integration service. (Stackdriver)
- Region string
AWS region hosting the integration service.
Optional arguments introduced in version [v1.38.0].
- Retention int
Number of days to retain log events in
CloudAMQPlog group.Note: Possible values are: 0 (never expire) or between 1-3653, read more about valid values in the [Cloudwatch Log retention].
- Secret
Access stringKey - AWS secret access key.
- Sourcetype string
- Assign source type to the data exported, eg. generic_single_line. (Splunk)
- Subsystem string
- The name of the subsystem. (Azure Monitor)
- Table string
The table name.
Use Azure portal to configure external access for Azure Monitor. [Tutorial to find/create all arguments]
The following arguments used by CloudWatch.
- string
Enter tags to
CloudAMQPlog group like this:Project=A,Environment=Development.Note: Tags are only added, unwanted tags needs to be removed manually in the AWS console. Read more about tags format in the [Cloudwatch Log tags]
- Tenant
Id string - The tenant identifier.
- Token string
- The token used for authentication. (Loggly, Logentries, Splunk, Scalyr)
- Url string
- The URL to push the logs to. (Papertrail)
- instance
Id Integer Instance identifier for the CloudAMQP instance.
Valid arguments for each third party log integrations below. Corresponding API backend documentation can be found here [CloudAMQP API add integration].
The following arguments used by Azure monitoring.
- access
Key StringId - AWS access key identifier.
- api
Key String - The API key for the integration service. (Datadog)
- application String
- The name of the application. (Azure Monitor)
- application
Id String - The application identifier.
- application
Secret String - The application secret.
- client
Email String - The client email. (Stackdriver)
- credentials String
- Base64Encoded credentials. (Stackdriver)
- dce
Uri String - The data collection endpoint.
- dcr
Id String - ID of data collection rule that your DCE is linked to.
- endpoint String
- The syslog destination to send the logs to. (Papertrail)
- host String
- The host information. (Scalyr)
- host
Port String - Destination to send the logs. (Splunk)
- name String
- The name of the third party log integration (
cloudwatchlog). - private
Key String - The private API key used for authentication. (Stackdriver, Coralogix)
- private
Key StringId - Private key identifier. (Stackdriver)
- project
Id String - The project ID for the integration service. (Stackdriver)
- region String
AWS region hosting the integration service.
Optional arguments introduced in version [v1.38.0].
- retention Integer
Number of days to retain log events in
CloudAMQPlog group.Note: Possible values are: 0 (never expire) or between 1-3653, read more about valid values in the [Cloudwatch Log retention].
- secret
Access StringKey - AWS secret access key.
- sourcetype String
- Assign source type to the data exported, eg. generic_single_line. (Splunk)
- subsystem String
- The name of the subsystem. (Azure Monitor)
- table String
The table name.
Use Azure portal to configure external access for Azure Monitor. [Tutorial to find/create all arguments]
The following arguments used by CloudWatch.
- String
Enter tags to
CloudAMQPlog group like this:Project=A,Environment=Development.Note: Tags are only added, unwanted tags needs to be removed manually in the AWS console. Read more about tags format in the [Cloudwatch Log tags]
- tenant
Id String - The tenant identifier.
- token String
- The token used for authentication. (Loggly, Logentries, Splunk, Scalyr)
- url String
- The URL to push the logs to. (Papertrail)
- instance
Id number Instance identifier for the CloudAMQP instance.
Valid arguments for each third party log integrations below. Corresponding API backend documentation can be found here [CloudAMQP API add integration].
The following arguments used by Azure monitoring.
- access
Key stringId - AWS access key identifier.
- api
Key string - The API key for the integration service. (Datadog)
- application string
- The name of the application. (Azure Monitor)
- application
Id string - The application identifier.
- application
Secret string - The application secret.
- client
Email string - The client email. (Stackdriver)
- credentials string
- Base64Encoded credentials. (Stackdriver)
- dce
Uri string - The data collection endpoint.
- dcr
Id string - ID of data collection rule that your DCE is linked to.
- endpoint string
- The syslog destination to send the logs to. (Papertrail)
- host string
- The host information. (Scalyr)
- host
Port string - Destination to send the logs. (Splunk)
- name string
- The name of the third party log integration (
cloudwatchlog). - private
Key string - The private API key used for authentication. (Stackdriver, Coralogix)
- private
Key stringId - Private key identifier. (Stackdriver)
- project
Id string - The project ID for the integration service. (Stackdriver)
- region string
AWS region hosting the integration service.
Optional arguments introduced in version [v1.38.0].
- retention number
Number of days to retain log events in
CloudAMQPlog group.Note: Possible values are: 0 (never expire) or between 1-3653, read more about valid values in the [Cloudwatch Log retention].
- secret
Access stringKey - AWS secret access key.
- sourcetype string
- Assign source type to the data exported, eg. generic_single_line. (Splunk)
- subsystem string
- The name of the subsystem. (Azure Monitor)
- table string
The table name.
Use Azure portal to configure external access for Azure Monitor. [Tutorial to find/create all arguments]
The following arguments used by CloudWatch.
- string
Enter tags to
CloudAMQPlog group like this:Project=A,Environment=Development.Note: Tags are only added, unwanted tags needs to be removed manually in the AWS console. Read more about tags format in the [Cloudwatch Log tags]
- tenant
Id string - The tenant identifier.
- token string
- The token used for authentication. (Loggly, Logentries, Splunk, Scalyr)
- url string
- The URL to push the logs to. (Papertrail)
- instance_
id int Instance identifier for the CloudAMQP instance.
Valid arguments for each third party log integrations below. Corresponding API backend documentation can be found here [CloudAMQP API add integration].
The following arguments used by Azure monitoring.
- access_
key_ strid - AWS access key identifier.
- api_
key str - The API key for the integration service. (Datadog)
- application str
- The name of the application. (Azure Monitor)
- application_
id str - The application identifier.
- application_
secret str - The application secret.
- client_
email str - The client email. (Stackdriver)
- credentials str
- Base64Encoded credentials. (Stackdriver)
- dce_
uri str - The data collection endpoint.
- dcr_
id str - ID of data collection rule that your DCE is linked to.
- endpoint str
- The syslog destination to send the logs to. (Papertrail)
- host str
- The host information. (Scalyr)
- host_
port str - Destination to send the logs. (Splunk)
- name str
- The name of the third party log integration (
cloudwatchlog). - private_
key str - The private API key used for authentication. (Stackdriver, Coralogix)
- private_
key_ strid - Private key identifier. (Stackdriver)
- project_
id str - The project ID for the integration service. (Stackdriver)
- region str
AWS region hosting the integration service.
Optional arguments introduced in version [v1.38.0].
- retention int
Number of days to retain log events in
CloudAMQPlog group.Note: Possible values are: 0 (never expire) or between 1-3653, read more about valid values in the [Cloudwatch Log retention].
- secret_
access_ strkey - AWS secret access key.
- sourcetype str
- Assign source type to the data exported, eg. generic_single_line. (Splunk)
- subsystem str
- The name of the subsystem. (Azure Monitor)
- table str
The table name.
Use Azure portal to configure external access for Azure Monitor. [Tutorial to find/create all arguments]
The following arguments used by CloudWatch.
- str
Enter tags to
CloudAMQPlog group like this:Project=A,Environment=Development.Note: Tags are only added, unwanted tags needs to be removed manually in the AWS console. Read more about tags format in the [Cloudwatch Log tags]
- tenant_
id str - The tenant identifier.
- token str
- The token used for authentication. (Loggly, Logentries, Splunk, Scalyr)
- url str
- The URL to push the logs to. (Papertrail)
- instance
Id Number Instance identifier for the CloudAMQP instance.
Valid arguments for each third party log integrations below. Corresponding API backend documentation can be found here [CloudAMQP API add integration].
The following arguments used by Azure monitoring.
- access
Key StringId - AWS access key identifier.
- api
Key String - The API key for the integration service. (Datadog)
- application String
- The name of the application. (Azure Monitor)
- application
Id String - The application identifier.
- application
Secret String - The application secret.
- client
Email String - The client email. (Stackdriver)
- credentials String
- Base64Encoded credentials. (Stackdriver)
- dce
Uri String - The data collection endpoint.
- dcr
Id String - ID of data collection rule that your DCE is linked to.
- endpoint String
- The syslog destination to send the logs to. (Papertrail)
- host String
- The host information. (Scalyr)
- host
Port String - Destination to send the logs. (Splunk)
- name String
- The name of the third party log integration (
cloudwatchlog). - private
Key String - The private API key used for authentication. (Stackdriver, Coralogix)
- private
Key StringId - Private key identifier. (Stackdriver)
- project
Id String - The project ID for the integration service. (Stackdriver)
- region String
AWS region hosting the integration service.
Optional arguments introduced in version [v1.38.0].
- retention Number
Number of days to retain log events in
CloudAMQPlog group.Note: Possible values are: 0 (never expire) or between 1-3653, read more about valid values in the [Cloudwatch Log retention].
- secret
Access StringKey - AWS secret access key.
- sourcetype String
- Assign source type to the data exported, eg. generic_single_line. (Splunk)
- subsystem String
- The name of the subsystem. (Azure Monitor)
- table String
The table name.
Use Azure portal to configure external access for Azure Monitor. [Tutorial to find/create all arguments]
The following arguments used by CloudWatch.
- String
Enter tags to
CloudAMQPlog group like this:Project=A,Environment=Development.Note: Tags are only added, unwanted tags needs to be removed manually in the AWS console. Read more about tags format in the [Cloudwatch Log tags]
- tenant
Id String - The tenant identifier.
- token String
- The token used for authentication. (Loggly, Logentries, Splunk, Scalyr)
- url String
- The URL to push the logs to. (Papertrail)
Outputs
All input properties are implicitly available as output properties. Additionally, the IntegrationLog resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing IntegrationLog Resource
Get an existing IntegrationLog resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: IntegrationLogState, opts?: CustomResourceOptions): IntegrationLog@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_key_id: Optional[str] = None,
api_key: Optional[str] = None,
application: Optional[str] = None,
application_id: Optional[str] = None,
application_secret: Optional[str] = None,
client_email: Optional[str] = None,
credentials: Optional[str] = None,
dce_uri: Optional[str] = None,
dcr_id: Optional[str] = None,
endpoint: Optional[str] = None,
host: Optional[str] = None,
host_port: Optional[str] = None,
instance_id: Optional[int] = None,
name: Optional[str] = None,
private_key: Optional[str] = None,
private_key_id: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
retention: Optional[int] = None,
secret_access_key: Optional[str] = None,
sourcetype: Optional[str] = None,
subsystem: Optional[str] = None,
table: Optional[str] = None,
tags: Optional[str] = None,
tenant_id: Optional[str] = None,
token: Optional[str] = None,
url: Optional[str] = None) -> IntegrationLogfunc GetIntegrationLog(ctx *Context, name string, id IDInput, state *IntegrationLogState, opts ...ResourceOption) (*IntegrationLog, error)public static IntegrationLog Get(string name, Input<string> id, IntegrationLogState? state, CustomResourceOptions? opts = null)public static IntegrationLog get(String name, Output<String> id, IntegrationLogState state, CustomResourceOptions options)resources: _: type: cloudamqp:IntegrationLog get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Access
Key stringId - AWS access key identifier.
- Api
Key string - The API key for the integration service. (Datadog)
- Application string
- The name of the application. (Azure Monitor)
- Application
Id string - The application identifier.
- Application
Secret string - The application secret.
- Client
Email string - The client email. (Stackdriver)
- Credentials string
- Base64Encoded credentials. (Stackdriver)
- Dce
Uri string - The data collection endpoint.
- Dcr
Id string - ID of data collection rule that your DCE is linked to.
- Endpoint string
- The syslog destination to send the logs to. (Papertrail)
- Host string
- The host information. (Scalyr)
- Host
Port string - Destination to send the logs. (Splunk)
- Instance
Id int Instance identifier for the CloudAMQP instance.
Valid arguments for each third party log integrations below. Corresponding API backend documentation can be found here [CloudAMQP API add integration].
The following arguments used by Azure monitoring.
- Name string
- The name of the third party log integration (
cloudwatchlog). - Private
Key string - The private API key used for authentication. (Stackdriver, Coralogix)
- Private
Key stringId - Private key identifier. (Stackdriver)
- Project
Id string - The project ID for the integration service. (Stackdriver)
- Region string
AWS region hosting the integration service.
Optional arguments introduced in version [v1.38.0].
- Retention int
Number of days to retain log events in
CloudAMQPlog group.Note: Possible values are: 0 (never expire) or between 1-3653, read more about valid values in the [Cloudwatch Log retention].
- Secret
Access stringKey - AWS secret access key.
- Sourcetype string
- Assign source type to the data exported, eg. generic_single_line. (Splunk)
- Subsystem string
- The name of the subsystem. (Azure Monitor)
- Table string
The table name.
Use Azure portal to configure external access for Azure Monitor. [Tutorial to find/create all arguments]
The following arguments used by CloudWatch.
- string
Enter tags to
CloudAMQPlog group like this:Project=A,Environment=Development.Note: Tags are only added, unwanted tags needs to be removed manually in the AWS console. Read more about tags format in the [Cloudwatch Log tags]
- Tenant
Id string - The tenant identifier.
- Token string
- The token used for authentication. (Loggly, Logentries, Splunk, Scalyr)
- Url string
- The URL to push the logs to. (Papertrail)
- Access
Key stringId - AWS access key identifier.
- Api
Key string - The API key for the integration service. (Datadog)
- Application string
- The name of the application. (Azure Monitor)
- Application
Id string - The application identifier.
- Application
Secret string - The application secret.
- Client
Email string - The client email. (Stackdriver)
- Credentials string
- Base64Encoded credentials. (Stackdriver)
- Dce
Uri string - The data collection endpoint.
- Dcr
Id string - ID of data collection rule that your DCE is linked to.
- Endpoint string
- The syslog destination to send the logs to. (Papertrail)
- Host string
- The host information. (Scalyr)
- Host
Port string - Destination to send the logs. (Splunk)
- Instance
Id int Instance identifier for the CloudAMQP instance.
Valid arguments for each third party log integrations below. Corresponding API backend documentation can be found here [CloudAMQP API add integration].
The following arguments used by Azure monitoring.
- Name string
- The name of the third party log integration (
cloudwatchlog). - Private
Key string - The private API key used for authentication. (Stackdriver, Coralogix)
- Private
Key stringId - Private key identifier. (Stackdriver)
- Project
Id string - The project ID for the integration service. (Stackdriver)
- Region string
AWS region hosting the integration service.
Optional arguments introduced in version [v1.38.0].
- Retention int
Number of days to retain log events in
CloudAMQPlog group.Note: Possible values are: 0 (never expire) or between 1-3653, read more about valid values in the [Cloudwatch Log retention].
- Secret
Access stringKey - AWS secret access key.
- Sourcetype string
- Assign source type to the data exported, eg. generic_single_line. (Splunk)
- Subsystem string
- The name of the subsystem. (Azure Monitor)
- Table string
The table name.
Use Azure portal to configure external access for Azure Monitor. [Tutorial to find/create all arguments]
The following arguments used by CloudWatch.
- string
Enter tags to
CloudAMQPlog group like this:Project=A,Environment=Development.Note: Tags are only added, unwanted tags needs to be removed manually in the AWS console. Read more about tags format in the [Cloudwatch Log tags]
- Tenant
Id string - The tenant identifier.
- Token string
- The token used for authentication. (Loggly, Logentries, Splunk, Scalyr)
- Url string
- The URL to push the logs to. (Papertrail)
- access
Key StringId - AWS access key identifier.
- api
Key String - The API key for the integration service. (Datadog)
- application String
- The name of the application. (Azure Monitor)
- application
Id String - The application identifier.
- application
Secret String - The application secret.
- client
Email String - The client email. (Stackdriver)
- credentials String
- Base64Encoded credentials. (Stackdriver)
- dce
Uri String - The data collection endpoint.
- dcr
Id String - ID of data collection rule that your DCE is linked to.
- endpoint String
- The syslog destination to send the logs to. (Papertrail)
- host String
- The host information. (Scalyr)
- host
Port String - Destination to send the logs. (Splunk)
- instance
Id Integer Instance identifier for the CloudAMQP instance.
Valid arguments for each third party log integrations below. Corresponding API backend documentation can be found here [CloudAMQP API add integration].
The following arguments used by Azure monitoring.
- name String
- The name of the third party log integration (
cloudwatchlog). - private
Key String - The private API key used for authentication. (Stackdriver, Coralogix)
- private
Key StringId - Private key identifier. (Stackdriver)
- project
Id String - The project ID for the integration service. (Stackdriver)
- region String
AWS region hosting the integration service.
Optional arguments introduced in version [v1.38.0].
- retention Integer
Number of days to retain log events in
CloudAMQPlog group.Note: Possible values are: 0 (never expire) or between 1-3653, read more about valid values in the [Cloudwatch Log retention].
- secret
Access StringKey - AWS secret access key.
- sourcetype String
- Assign source type to the data exported, eg. generic_single_line. (Splunk)
- subsystem String
- The name of the subsystem. (Azure Monitor)
- table String
The table name.
Use Azure portal to configure external access for Azure Monitor. [Tutorial to find/create all arguments]
The following arguments used by CloudWatch.
- String
Enter tags to
CloudAMQPlog group like this:Project=A,Environment=Development.Note: Tags are only added, unwanted tags needs to be removed manually in the AWS console. Read more about tags format in the [Cloudwatch Log tags]
- tenant
Id String - The tenant identifier.
- token String
- The token used for authentication. (Loggly, Logentries, Splunk, Scalyr)
- url String
- The URL to push the logs to. (Papertrail)
- access
Key stringId - AWS access key identifier.
- api
Key string - The API key for the integration service. (Datadog)
- application string
- The name of the application. (Azure Monitor)
- application
Id string - The application identifier.
- application
Secret string - The application secret.
- client
Email string - The client email. (Stackdriver)
- credentials string
- Base64Encoded credentials. (Stackdriver)
- dce
Uri string - The data collection endpoint.
- dcr
Id string - ID of data collection rule that your DCE is linked to.
- endpoint string
- The syslog destination to send the logs to. (Papertrail)
- host string
- The host information. (Scalyr)
- host
Port string - Destination to send the logs. (Splunk)
- instance
Id number Instance identifier for the CloudAMQP instance.
Valid arguments for each third party log integrations below. Corresponding API backend documentation can be found here [CloudAMQP API add integration].
The following arguments used by Azure monitoring.
- name string
- The name of the third party log integration (
cloudwatchlog). - private
Key string - The private API key used for authentication. (Stackdriver, Coralogix)
- private
Key stringId - Private key identifier. (Stackdriver)
- project
Id string - The project ID for the integration service. (Stackdriver)
- region string
AWS region hosting the integration service.
Optional arguments introduced in version [v1.38.0].
- retention number
Number of days to retain log events in
CloudAMQPlog group.Note: Possible values are: 0 (never expire) or between 1-3653, read more about valid values in the [Cloudwatch Log retention].
- secret
Access stringKey - AWS secret access key.
- sourcetype string
- Assign source type to the data exported, eg. generic_single_line. (Splunk)
- subsystem string
- The name of the subsystem. (Azure Monitor)
- table string
The table name.
Use Azure portal to configure external access for Azure Monitor. [Tutorial to find/create all arguments]
The following arguments used by CloudWatch.
- string
Enter tags to
CloudAMQPlog group like this:Project=A,Environment=Development.Note: Tags are only added, unwanted tags needs to be removed manually in the AWS console. Read more about tags format in the [Cloudwatch Log tags]
- tenant
Id string - The tenant identifier.
- token string
- The token used for authentication. (Loggly, Logentries, Splunk, Scalyr)
- url string
- The URL to push the logs to. (Papertrail)
- access_
key_ strid - AWS access key identifier.
- api_
key str - The API key for the integration service. (Datadog)
- application str
- The name of the application. (Azure Monitor)
- application_
id str - The application identifier.
- application_
secret str - The application secret.
- client_
email str - The client email. (Stackdriver)
- credentials str
- Base64Encoded credentials. (Stackdriver)
- dce_
uri str - The data collection endpoint.
- dcr_
id str - ID of data collection rule that your DCE is linked to.
- endpoint str
- The syslog destination to send the logs to. (Papertrail)
- host str
- The host information. (Scalyr)
- host_
port str - Destination to send the logs. (Splunk)
- instance_
id int Instance identifier for the CloudAMQP instance.
Valid arguments for each third party log integrations below. Corresponding API backend documentation can be found here [CloudAMQP API add integration].
The following arguments used by Azure monitoring.
- name str
- The name of the third party log integration (
cloudwatchlog). - private_
key str - The private API key used for authentication. (Stackdriver, Coralogix)
- private_
key_ strid - Private key identifier. (Stackdriver)
- project_
id str - The project ID for the integration service. (Stackdriver)
- region str
AWS region hosting the integration service.
Optional arguments introduced in version [v1.38.0].
- retention int
Number of days to retain log events in
CloudAMQPlog group.Note: Possible values are: 0 (never expire) or between 1-3653, read more about valid values in the [Cloudwatch Log retention].
- secret_
access_ strkey - AWS secret access key.
- sourcetype str
- Assign source type to the data exported, eg. generic_single_line. (Splunk)
- subsystem str
- The name of the subsystem. (Azure Monitor)
- table str
The table name.
Use Azure portal to configure external access for Azure Monitor. [Tutorial to find/create all arguments]
The following arguments used by CloudWatch.
- str
Enter tags to
CloudAMQPlog group like this:Project=A,Environment=Development.Note: Tags are only added, unwanted tags needs to be removed manually in the AWS console. Read more about tags format in the [Cloudwatch Log tags]
- tenant_
id str - The tenant identifier.
- token str
- The token used for authentication. (Loggly, Logentries, Splunk, Scalyr)
- url str
- The URL to push the logs to. (Papertrail)
- access
Key StringId - AWS access key identifier.
- api
Key String - The API key for the integration service. (Datadog)
- application String
- The name of the application. (Azure Monitor)
- application
Id String - The application identifier.
- application
Secret String - The application secret.
- client
Email String - The client email. (Stackdriver)
- credentials String
- Base64Encoded credentials. (Stackdriver)
- dce
Uri String - The data collection endpoint.
- dcr
Id String - ID of data collection rule that your DCE is linked to.
- endpoint String
- The syslog destination to send the logs to. (Papertrail)
- host String
- The host information. (Scalyr)
- host
Port String - Destination to send the logs. (Splunk)
- instance
Id Number Instance identifier for the CloudAMQP instance.
Valid arguments for each third party log integrations below. Corresponding API backend documentation can be found here [CloudAMQP API add integration].
The following arguments used by Azure monitoring.
- name String
- The name of the third party log integration (
cloudwatchlog). - private
Key String - The private API key used for authentication. (Stackdriver, Coralogix)
- private
Key StringId - Private key identifier. (Stackdriver)
- project
Id String - The project ID for the integration service. (Stackdriver)
- region String
AWS region hosting the integration service.
Optional arguments introduced in version [v1.38.0].
- retention Number
Number of days to retain log events in
CloudAMQPlog group.Note: Possible values are: 0 (never expire) or between 1-3653, read more about valid values in the [Cloudwatch Log retention].
- secret
Access StringKey - AWS secret access key.
- sourcetype String
- Assign source type to the data exported, eg. generic_single_line. (Splunk)
- subsystem String
- The name of the subsystem. (Azure Monitor)
- table String
The table name.
Use Azure portal to configure external access for Azure Monitor. [Tutorial to find/create all arguments]
The following arguments used by CloudWatch.
- String
Enter tags to
CloudAMQPlog group like this:Project=A,Environment=Development.Note: Tags are only added, unwanted tags needs to be removed manually in the AWS console. Read more about tags format in the [Cloudwatch Log tags]
- tenant
Id String - The tenant identifier.
- token String
- The token used for authentication. (Loggly, Logentries, Splunk, Scalyr)
- url String
- The URL to push the logs to. (Papertrail)
Import
cloudamqp_integration_logcan be imported using the resource identifier together with CloudAMQP
instance identifier. The identifiers are CSV separated, see example below. To retrieve the resource,
use CloudAMQP API list integration.
From Terraform v1.5.0, the import block can be used to import this resource:
hcl
import {
to = cloudamqp_integration_log.this
id = format("
}
$ pulumi import cloudamqp:index/integrationLog:IntegrationLog this <id>,<instance_id>`
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- CloudAMQP pulumi/pulumi-cloudamqp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudamqpTerraform Provider.
