published on Thursday, Jun 11, 2026 by Pulumi
published on Thursday, Jun 11, 2026 by Pulumi
Use this resource to create and manage an AWS Connection entity in New Relic.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const foo = new newrelic.AwsConnection("foo", {
name: "test-aws-connection",
description: "AWS Connection wrapping the role",
region: "us-east-1",
enabled: true,
scopeType: "ORGANIZATION",
scopeId: "YOUR_ORG_ID_HERE",
credential: {
assumeRole: {
roleArn: "arn:aws:iam::123456789012:role/newrelic-fed-logs-ingest",
externalId: "external id",
},
},
});
import pulumi
import pulumi_newrelic as newrelic
foo = newrelic.AwsConnection("foo",
name="test-aws-connection",
description="AWS Connection wrapping the role",
region="us-east-1",
enabled=True,
scope_type="ORGANIZATION",
scope_id="YOUR_ORG_ID_HERE",
credential={
"assume_role": {
"role_arn": "arn:aws:iam::123456789012:role/newrelic-fed-logs-ingest",
"external_id": "external id",
},
})
package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := newrelic.NewAwsConnection(ctx, "foo", &newrelic.AwsConnectionArgs{
Name: pulumi.String("test-aws-connection"),
Description: pulumi.String("AWS Connection wrapping the role"),
Region: pulumi.String("us-east-1"),
Enabled: pulumi.Bool(true),
ScopeType: pulumi.String("ORGANIZATION"),
ScopeId: pulumi.String("YOUR_ORG_ID_HERE"),
Credential: &newrelic.AwsConnectionCredentialArgs{
AssumeRole: &newrelic.AwsConnectionCredentialAssumeRoleArgs{
RoleArn: pulumi.String("arn:aws:iam::123456789012:role/newrelic-fed-logs-ingest"),
ExternalId: pulumi.String("external id"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() =>
{
var foo = new NewRelic.AwsConnection("foo", new()
{
Name = "test-aws-connection",
Description = "AWS Connection wrapping the role",
Region = "us-east-1",
Enabled = true,
ScopeType = "ORGANIZATION",
ScopeId = "YOUR_ORG_ID_HERE",
Credential = new NewRelic.Inputs.AwsConnectionCredentialArgs
{
AssumeRole = new NewRelic.Inputs.AwsConnectionCredentialAssumeRoleArgs
{
RoleArn = "arn:aws:iam::123456789012:role/newrelic-fed-logs-ingest",
ExternalId = "external id",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.AwsConnection;
import com.pulumi.newrelic.AwsConnectionArgs;
import com.pulumi.newrelic.inputs.AwsConnectionCredentialArgs;
import com.pulumi.newrelic.inputs.AwsConnectionCredentialAssumeRoleArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 foo = new AwsConnection("foo", AwsConnectionArgs.builder()
.name("test-aws-connection")
.description("AWS Connection wrapping the role")
.region("us-east-1")
.enabled(true)
.scopeType("ORGANIZATION")
.scopeId("YOUR_ORG_ID_HERE")
.credential(AwsConnectionCredentialArgs.builder()
.assumeRole(AwsConnectionCredentialAssumeRoleArgs.builder()
.roleArn("arn:aws:iam::123456789012:role/newrelic-fed-logs-ingest")
.externalId("external id")
.build())
.build())
.build());
}
}
resources:
foo:
type: newrelic:AwsConnection
properties:
name: test-aws-connection
description: AWS Connection wrapping the role
region: us-east-1
enabled: true
scopeType: ORGANIZATION
scopeId: YOUR_ORG_ID_HERE
credential:
assumeRole:
roleArn: arn:aws:iam::123456789012:role/newrelic-fed-logs-ingest
externalId: external id
pulumi {
required_providers {
newrelic = {
source = "pulumi/newrelic"
}
}
}
resource "newrelic_awsconnection" "foo" {
name = "test-aws-connection"
description = "AWS Connection wrapping the role"
region = "us-east-1"
enabled = true
scope_type = "ORGANIZATION"
scope_id = "YOUR_ORG_ID_HERE"
credential = {
assume_role = {
role_arn = "arn:aws:iam::123456789012:role/newrelic-fed-logs-ingest"
external_id = "external id"
}
}
}
Create AwsConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AwsConnection(name: string, args: AwsConnectionArgs, opts?: CustomResourceOptions);@overload
def AwsConnection(resource_name: str,
args: AwsConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AwsConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
credential: Optional[AwsConnectionCredentialArgs] = None,
account_id: Optional[str] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
external_id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
scope_id: Optional[str] = None,
scope_type: Optional[str] = None,
settings: Optional[Sequence[AwsConnectionSettingArgs]] = None,
tags: Optional[Sequence[AwsConnectionTagArgs]] = None)func NewAwsConnection(ctx *Context, name string, args AwsConnectionArgs, opts ...ResourceOption) (*AwsConnection, error)public AwsConnection(string name, AwsConnectionArgs args, CustomResourceOptions? opts = null)
public AwsConnection(String name, AwsConnectionArgs args)
public AwsConnection(String name, AwsConnectionArgs args, CustomResourceOptions options)
type: newrelic:AwsConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "newrelic_awsconnection" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AwsConnectionArgs
- 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 AwsConnectionArgs
- 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 AwsConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AwsConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AwsConnectionArgs
- 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 awsConnectionResource = new NewRelic.AwsConnection("awsConnectionResource", new()
{
Credential = new NewRelic.Inputs.AwsConnectionCredentialArgs
{
AssumeRole = new NewRelic.Inputs.AwsConnectionCredentialAssumeRoleArgs
{
RoleArn = "string",
ExternalId = "string",
},
},
AccountId = "string",
Description = "string",
Enabled = false,
ExternalId = "string",
Name = "string",
Region = "string",
ScopeId = "string",
ScopeType = "string",
Settings = new[]
{
new NewRelic.Inputs.AwsConnectionSettingArgs
{
Key = "string",
Value = "string",
},
},
Tags = new[]
{
new NewRelic.Inputs.AwsConnectionTagArgs
{
Key = "string",
Values = new[]
{
"string",
},
},
},
});
example, err := newrelic.NewAwsConnection(ctx, "awsConnectionResource", &newrelic.AwsConnectionArgs{
Credential: &newrelic.AwsConnectionCredentialArgs{
AssumeRole: &newrelic.AwsConnectionCredentialAssumeRoleArgs{
RoleArn: pulumi.String("string"),
ExternalId: pulumi.String("string"),
},
},
AccountId: pulumi.String("string"),
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
ExternalId: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
ScopeId: pulumi.String("string"),
ScopeType: pulumi.String("string"),
Settings: newrelic.AwsConnectionSettingArray{
&newrelic.AwsConnectionSettingArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Tags: newrelic.AwsConnectionTagArray{
&newrelic.AwsConnectionTagArgs{
Key: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
})
resource "newrelic_awsconnection" "awsConnectionResource" {
credential = {
assume_role = {
role_arn = "string"
external_id = "string"
}
}
account_id = "string"
description = "string"
enabled = false
external_id = "string"
name = "string"
region = "string"
scope_id = "string"
scope_type = "string"
settings {
key = "string"
value = "string"
}
tags {
key = "string"
values = ["string"]
}
}
var awsConnectionResource = new AwsConnection("awsConnectionResource", AwsConnectionArgs.builder()
.credential(AwsConnectionCredentialArgs.builder()
.assumeRole(AwsConnectionCredentialAssumeRoleArgs.builder()
.roleArn("string")
.externalId("string")
.build())
.build())
.accountId("string")
.description("string")
.enabled(false)
.externalId("string")
.name("string")
.region("string")
.scopeId("string")
.scopeType("string")
.settings(AwsConnectionSettingArgs.builder()
.key("string")
.value("string")
.build())
.tags(AwsConnectionTagArgs.builder()
.key("string")
.values("string")
.build())
.build());
aws_connection_resource = newrelic.AwsConnection("awsConnectionResource",
credential={
"assume_role": {
"role_arn": "string",
"external_id": "string",
},
},
account_id="string",
description="string",
enabled=False,
external_id="string",
name="string",
region="string",
scope_id="string",
scope_type="string",
settings=[{
"key": "string",
"value": "string",
}],
tags=[{
"key": "string",
"values": ["string"],
}])
const awsConnectionResource = new newrelic.AwsConnection("awsConnectionResource", {
credential: {
assumeRole: {
roleArn: "string",
externalId: "string",
},
},
accountId: "string",
description: "string",
enabled: false,
externalId: "string",
name: "string",
region: "string",
scopeId: "string",
scopeType: "string",
settings: [{
key: "string",
value: "string",
}],
tags: [{
key: "string",
values: ["string"],
}],
});
type: newrelic:AwsConnection
properties:
accountId: string
credential:
assumeRole:
externalId: string
roleArn: string
description: string
enabled: false
externalId: string
name: string
region: string
scopeId: string
scopeType: string
settings:
- key: string
value: string
tags:
- key: string
values:
- string
AwsConnection 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 AwsConnection resource accepts the following input properties:
- Credential
Pulumi.
New Relic. Inputs. Aws Connection Credential - Credentials block describing how New Relic should authenticate into the AWS account. See Nested credential block below.
- Account
Id string - New Relic account ID where the connection will be created. Used when
scopeType = ACCOUNT. - Description string
- A description of the AWS Connection.
- Enabled bool
- Flag to indicate whether the connection is enabled. Defaults to
true. - External
Id string - Consumer-managed identifier — useful for caller-side idempotent tracking. Distinct from
credential.assume_role.external_id(the IAM cross-account External ID). - Name string
- The name of the AWS connection.
- Region string
- AWS region for this connection (e.g.
us-east-1). - Scope
Id string - Scope ID matching
scopeType— a New Relic account ID forACCOUNTscope, or an organization ID forORGANIZATIONscope. - Scope
Type string - Scope type for the connection. Valid values:
ACCOUNT,ORGANIZATION. - Settings
List<Pulumi.
New Relic. Inputs. Aws Connection Setting> - Optional list of connection settings. Each entry takes:
-
List<Pulumi.
New Relic. Inputs. Aws Connection Tag> - Tags applied to the AWS Connection entity. Each entry takes:
- Credential
Aws
Connection Credential Args - Credentials block describing how New Relic should authenticate into the AWS account. See Nested credential block below.
- Account
Id string - New Relic account ID where the connection will be created. Used when
scopeType = ACCOUNT. - Description string
- A description of the AWS Connection.
- Enabled bool
- Flag to indicate whether the connection is enabled. Defaults to
true. - External
Id string - Consumer-managed identifier — useful for caller-side idempotent tracking. Distinct from
credential.assume_role.external_id(the IAM cross-account External ID). - Name string
- The name of the AWS connection.
- Region string
- AWS region for this connection (e.g.
us-east-1). - Scope
Id string - Scope ID matching
scopeType— a New Relic account ID forACCOUNTscope, or an organization ID forORGANIZATIONscope. - Scope
Type string - Scope type for the connection. Valid values:
ACCOUNT,ORGANIZATION. - Settings
[]Aws
Connection Setting Args - Optional list of connection settings. Each entry takes:
-
[]Aws
Connection Tag Args - Tags applied to the AWS Connection entity. Each entry takes:
- credential object
- Credentials block describing how New Relic should authenticate into the AWS account. See Nested credential block below.
- account_
id string - New Relic account ID where the connection will be created. Used when
scopeType = ACCOUNT. - description string
- A description of the AWS Connection.
- enabled bool
- Flag to indicate whether the connection is enabled. Defaults to
true. - external_
id string - Consumer-managed identifier — useful for caller-side idempotent tracking. Distinct from
credential.assume_role.external_id(the IAM cross-account External ID). - name string
- The name of the AWS connection.
- region string
- AWS region for this connection (e.g.
us-east-1). - scope_
id string - Scope ID matching
scopeType— a New Relic account ID forACCOUNTscope, or an organization ID forORGANIZATIONscope. - scope_
type string - Scope type for the connection. Valid values:
ACCOUNT,ORGANIZATION. - settings list(object)
- Optional list of connection settings. Each entry takes:
- list(object)
- Tags applied to the AWS Connection entity. Each entry takes:
- credential
Aws
Connection Credential - Credentials block describing how New Relic should authenticate into the AWS account. See Nested credential block below.
- account
Id String - New Relic account ID where the connection will be created. Used when
scopeType = ACCOUNT. - description String
- A description of the AWS Connection.
- enabled Boolean
- Flag to indicate whether the connection is enabled. Defaults to
true. - external
Id String - Consumer-managed identifier — useful for caller-side idempotent tracking. Distinct from
credential.assume_role.external_id(the IAM cross-account External ID). - name String
- The name of the AWS connection.
- region String
- AWS region for this connection (e.g.
us-east-1). - scope
Id String - Scope ID matching
scopeType— a New Relic account ID forACCOUNTscope, or an organization ID forORGANIZATIONscope. - scope
Type String - Scope type for the connection. Valid values:
ACCOUNT,ORGANIZATION. - settings
List<Aws
Connection Setting> - Optional list of connection settings. Each entry takes:
-
List<Aws
Connection Tag> - Tags applied to the AWS Connection entity. Each entry takes:
- credential
Aws
Connection Credential - Credentials block describing how New Relic should authenticate into the AWS account. See Nested credential block below.
- account
Id string - New Relic account ID where the connection will be created. Used when
scopeType = ACCOUNT. - description string
- A description of the AWS Connection.
- enabled boolean
- Flag to indicate whether the connection is enabled. Defaults to
true. - external
Id string - Consumer-managed identifier — useful for caller-side idempotent tracking. Distinct from
credential.assume_role.external_id(the IAM cross-account External ID). - name string
- The name of the AWS connection.
- region string
- AWS region for this connection (e.g.
us-east-1). - scope
Id string - Scope ID matching
scopeType— a New Relic account ID forACCOUNTscope, or an organization ID forORGANIZATIONscope. - scope
Type string - Scope type for the connection. Valid values:
ACCOUNT,ORGANIZATION. - settings
Aws
Connection Setting[] - Optional list of connection settings. Each entry takes:
-
Aws
Connection Tag[] - Tags applied to the AWS Connection entity. Each entry takes:
- credential
Aws
Connection Credential Args - Credentials block describing how New Relic should authenticate into the AWS account. See Nested credential block below.
- account_
id str - New Relic account ID where the connection will be created. Used when
scopeType = ACCOUNT. - description str
- A description of the AWS Connection.
- enabled bool
- Flag to indicate whether the connection is enabled. Defaults to
true. - external_
id str - Consumer-managed identifier — useful for caller-side idempotent tracking. Distinct from
credential.assume_role.external_id(the IAM cross-account External ID). - name str
- The name of the AWS connection.
- region str
- AWS region for this connection (e.g.
us-east-1). - scope_
id str - Scope ID matching
scopeType— a New Relic account ID forACCOUNTscope, or an organization ID forORGANIZATIONscope. - scope_
type str - Scope type for the connection. Valid values:
ACCOUNT,ORGANIZATION. - settings
Sequence[Aws
Connection Setting Args] - Optional list of connection settings. Each entry takes:
-
Sequence[Aws
Connection Tag Args] - Tags applied to the AWS Connection entity. Each entry takes:
- credential Property Map
- Credentials block describing how New Relic should authenticate into the AWS account. See Nested credential block below.
- account
Id String - New Relic account ID where the connection will be created. Used when
scopeType = ACCOUNT. - description String
- A description of the AWS Connection.
- enabled Boolean
- Flag to indicate whether the connection is enabled. Defaults to
true. - external
Id String - Consumer-managed identifier — useful for caller-side idempotent tracking. Distinct from
credential.assume_role.external_id(the IAM cross-account External ID). - name String
- The name of the AWS connection.
- region String
- AWS region for this connection (e.g.
us-east-1). - scope
Id String - Scope ID matching
scopeType— a New Relic account ID forACCOUNTscope, or an organization ID forORGANIZATIONscope. - scope
Type String - Scope type for the connection. Valid values:
ACCOUNT,ORGANIZATION. - settings List<Property Map>
- Optional list of connection settings. Each entry takes:
- List<Property Map>
- Tags applied to the AWS Connection entity. Each entry takes:
Outputs
All input properties are implicitly available as output properties. Additionally, the AwsConnection 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 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 AwsConnection Resource
Get an existing AwsConnection 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?: AwsConnectionState, opts?: CustomResourceOptions): AwsConnection@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
credential: Optional[AwsConnectionCredentialArgs] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
external_id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
scope_id: Optional[str] = None,
scope_type: Optional[str] = None,
settings: Optional[Sequence[AwsConnectionSettingArgs]] = None,
tags: Optional[Sequence[AwsConnectionTagArgs]] = None) -> AwsConnectionfunc GetAwsConnection(ctx *Context, name string, id IDInput, state *AwsConnectionState, opts ...ResourceOption) (*AwsConnection, error)public static AwsConnection Get(string name, Input<string> id, AwsConnectionState? state, CustomResourceOptions? opts = null)public static AwsConnection get(String name, Output<String> id, AwsConnectionState state, CustomResourceOptions options)resources: _: type: newrelic:AwsConnection get: id: ${id}import {
to = newrelic_awsconnection.example
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.
- Account
Id string - New Relic account ID where the connection will be created. Used when
scopeType = ACCOUNT. - Credential
Pulumi.
New Relic. Inputs. Aws Connection Credential - Credentials block describing how New Relic should authenticate into the AWS account. See Nested credential block below.
- Description string
- A description of the AWS Connection.
- Enabled bool
- Flag to indicate whether the connection is enabled. Defaults to
true. - External
Id string - Consumer-managed identifier — useful for caller-side idempotent tracking. Distinct from
credential.assume_role.external_id(the IAM cross-account External ID). - Name string
- The name of the AWS connection.
- Region string
- AWS region for this connection (e.g.
us-east-1). - Scope
Id string - Scope ID matching
scopeType— a New Relic account ID forACCOUNTscope, or an organization ID forORGANIZATIONscope. - Scope
Type string - Scope type for the connection. Valid values:
ACCOUNT,ORGANIZATION. - Settings
List<Pulumi.
New Relic. Inputs. Aws Connection Setting> - Optional list of connection settings. Each entry takes:
-
List<Pulumi.
New Relic. Inputs. Aws Connection Tag> - Tags applied to the AWS Connection entity. Each entry takes:
- Account
Id string - New Relic account ID where the connection will be created. Used when
scopeType = ACCOUNT. - Credential
Aws
Connection Credential Args - Credentials block describing how New Relic should authenticate into the AWS account. See Nested credential block below.
- Description string
- A description of the AWS Connection.
- Enabled bool
- Flag to indicate whether the connection is enabled. Defaults to
true. - External
Id string - Consumer-managed identifier — useful for caller-side idempotent tracking. Distinct from
credential.assume_role.external_id(the IAM cross-account External ID). - Name string
- The name of the AWS connection.
- Region string
- AWS region for this connection (e.g.
us-east-1). - Scope
Id string - Scope ID matching
scopeType— a New Relic account ID forACCOUNTscope, or an organization ID forORGANIZATIONscope. - Scope
Type string - Scope type for the connection. Valid values:
ACCOUNT,ORGANIZATION. - Settings
[]Aws
Connection Setting Args - Optional list of connection settings. Each entry takes:
-
[]Aws
Connection Tag Args - Tags applied to the AWS Connection entity. Each entry takes:
- account_
id string - New Relic account ID where the connection will be created. Used when
scopeType = ACCOUNT. - credential object
- Credentials block describing how New Relic should authenticate into the AWS account. See Nested credential block below.
- description string
- A description of the AWS Connection.
- enabled bool
- Flag to indicate whether the connection is enabled. Defaults to
true. - external_
id string - Consumer-managed identifier — useful for caller-side idempotent tracking. Distinct from
credential.assume_role.external_id(the IAM cross-account External ID). - name string
- The name of the AWS connection.
- region string
- AWS region for this connection (e.g.
us-east-1). - scope_
id string - Scope ID matching
scopeType— a New Relic account ID forACCOUNTscope, or an organization ID forORGANIZATIONscope. - scope_
type string - Scope type for the connection. Valid values:
ACCOUNT,ORGANIZATION. - settings list(object)
- Optional list of connection settings. Each entry takes:
- list(object)
- Tags applied to the AWS Connection entity. Each entry takes:
- account
Id String - New Relic account ID where the connection will be created. Used when
scopeType = ACCOUNT. - credential
Aws
Connection Credential - Credentials block describing how New Relic should authenticate into the AWS account. See Nested credential block below.
- description String
- A description of the AWS Connection.
- enabled Boolean
- Flag to indicate whether the connection is enabled. Defaults to
true. - external
Id String - Consumer-managed identifier — useful for caller-side idempotent tracking. Distinct from
credential.assume_role.external_id(the IAM cross-account External ID). - name String
- The name of the AWS connection.
- region String
- AWS region for this connection (e.g.
us-east-1). - scope
Id String - Scope ID matching
scopeType— a New Relic account ID forACCOUNTscope, or an organization ID forORGANIZATIONscope. - scope
Type String - Scope type for the connection. Valid values:
ACCOUNT,ORGANIZATION. - settings
List<Aws
Connection Setting> - Optional list of connection settings. Each entry takes:
-
List<Aws
Connection Tag> - Tags applied to the AWS Connection entity. Each entry takes:
- account
Id string - New Relic account ID where the connection will be created. Used when
scopeType = ACCOUNT. - credential
Aws
Connection Credential - Credentials block describing how New Relic should authenticate into the AWS account. See Nested credential block below.
- description string
- A description of the AWS Connection.
- enabled boolean
- Flag to indicate whether the connection is enabled. Defaults to
true. - external
Id string - Consumer-managed identifier — useful for caller-side idempotent tracking. Distinct from
credential.assume_role.external_id(the IAM cross-account External ID). - name string
- The name of the AWS connection.
- region string
- AWS region for this connection (e.g.
us-east-1). - scope
Id string - Scope ID matching
scopeType— a New Relic account ID forACCOUNTscope, or an organization ID forORGANIZATIONscope. - scope
Type string - Scope type for the connection. Valid values:
ACCOUNT,ORGANIZATION. - settings
Aws
Connection Setting[] - Optional list of connection settings. Each entry takes:
-
Aws
Connection Tag[] - Tags applied to the AWS Connection entity. Each entry takes:
- account_
id str - New Relic account ID where the connection will be created. Used when
scopeType = ACCOUNT. - credential
Aws
Connection Credential Args - Credentials block describing how New Relic should authenticate into the AWS account. See Nested credential block below.
- description str
- A description of the AWS Connection.
- enabled bool
- Flag to indicate whether the connection is enabled. Defaults to
true. - external_
id str - Consumer-managed identifier — useful for caller-side idempotent tracking. Distinct from
credential.assume_role.external_id(the IAM cross-account External ID). - name str
- The name of the AWS connection.
- region str
- AWS region for this connection (e.g.
us-east-1). - scope_
id str - Scope ID matching
scopeType— a New Relic account ID forACCOUNTscope, or an organization ID forORGANIZATIONscope. - scope_
type str - Scope type for the connection. Valid values:
ACCOUNT,ORGANIZATION. - settings
Sequence[Aws
Connection Setting Args] - Optional list of connection settings. Each entry takes:
-
Sequence[Aws
Connection Tag Args] - Tags applied to the AWS Connection entity. Each entry takes:
- account
Id String - New Relic account ID where the connection will be created. Used when
scopeType = ACCOUNT. - credential Property Map
- Credentials block describing how New Relic should authenticate into the AWS account. See Nested credential block below.
- description String
- A description of the AWS Connection.
- enabled Boolean
- Flag to indicate whether the connection is enabled. Defaults to
true. - external
Id String - Consumer-managed identifier — useful for caller-side idempotent tracking. Distinct from
credential.assume_role.external_id(the IAM cross-account External ID). - name String
- The name of the AWS connection.
- region String
- AWS region for this connection (e.g.
us-east-1). - scope
Id String - Scope ID matching
scopeType— a New Relic account ID forACCOUNTscope, or an organization ID forORGANIZATIONscope. - scope
Type String - Scope type for the connection. Valid values:
ACCOUNT,ORGANIZATION. - settings List<Property Map>
- Optional list of connection settings. Each entry takes:
- List<Property Map>
- Tags applied to the AWS Connection entity. Each entry takes:
Supporting Types
AwsConnectionCredential, AwsConnectionCredentialArgs
- Assume
Role Pulumi.New Relic. Inputs. Aws Connection Credential Assume Role - STS:AssumeRole configuration. See below.
- Assume
Role AwsConnection Credential Assume Role - STS:AssumeRole configuration. See below.
- assume_
role object - STS:AssumeRole configuration. See below.
- assume
Role AwsConnection Credential Assume Role - STS:AssumeRole configuration. See below.
- assume
Role AwsConnection Credential Assume Role - STS:AssumeRole configuration. See below.
- assume_
role AwsConnection Credential Assume Role - STS:AssumeRole configuration. See below.
- assume
Role Property Map - STS:AssumeRole configuration. See below.
AwsConnectionCredentialAssumeRole, AwsConnectionCredentialAssumeRoleArgs
- Role
Arn string - ARN of the IAM role New Relic should assume.
- External
Id string - External ID supplied by New Relic during STS:AssumeRole.
- Role
Arn string - ARN of the IAM role New Relic should assume.
- External
Id string - External ID supplied by New Relic during STS:AssumeRole.
- role_
arn string - ARN of the IAM role New Relic should assume.
- external_
id string - External ID supplied by New Relic during STS:AssumeRole.
- role
Arn String - ARN of the IAM role New Relic should assume.
- external
Id String - External ID supplied by New Relic during STS:AssumeRole.
- role
Arn string - ARN of the IAM role New Relic should assume.
- external
Id string - External ID supplied by New Relic during STS:AssumeRole.
- role_
arn str - ARN of the IAM role New Relic should assume.
- external_
id str - External ID supplied by New Relic during STS:AssumeRole.
- role
Arn String - ARN of the IAM role New Relic should assume.
- external
Id String - External ID supplied by New Relic during STS:AssumeRole.
AwsConnectionSetting, AwsConnectionSettingArgs
AwsConnectionTag, AwsConnectionTagArgs
Import
AWS Connections can be imported using the entity GUID:
$ pulumi import newrelic:index/awsConnection:AwsConnection foo <entity-guid>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- New Relic pulumi/pulumi-newrelic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
newrelicTerraform Provider.
published on Thursday, Jun 11, 2026 by Pulumi