harness.cloudprovider.Aws
Explore with Pulumi AI
Resource for creating an AWS cloud provider. This resource uses the config-as-code API’s. When updating the name or path of this resource you should typically also set the create_before_destroy = true lifecycle setting.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const _default = harness.getSecretManager({
    "default": true,
});
const awsAccessKey = new harness.EncryptedText("aws_access_key", {
    name: "aws_access_key",
    value: "<ACCESS_KEY_ID>",
    secretManagerId: _default.then(_default => _default.id),
});
const awsSecretKey = new harness.EncryptedText("aws_secret_key", {
    name: "aws_secret_key",
    value: "<SECRET_KEY_ID>",
    secretManagerId: _default.then(_default => _default.id),
});
const aws = new harness.cloudprovider.Aws("aws", {
    name: "Example aws cloud provider",
    accessKeyIdSecretName: awsAccessKey.name,
    secretAccessKeySecretName: awsSecretKey.name,
});
import pulumi
import pulumi_harness as harness
default = harness.get_secret_manager(default=True)
aws_access_key = harness.EncryptedText("aws_access_key",
    name="aws_access_key",
    value="<ACCESS_KEY_ID>",
    secret_manager_id=default.id)
aws_secret_key = harness.EncryptedText("aws_secret_key",
    name="aws_secret_key",
    value="<SECRET_KEY_ID>",
    secret_manager_id=default.id)
aws = harness.cloudprovider.Aws("aws",
    name="Example aws cloud provider",
    access_key_id_secret_name=aws_access_key.name,
    secret_access_key_secret_name=aws_secret_key.name)
package main
import (
	"github.com/pulumi/pulumi-harness/sdk/go/harness"
	"github.com/pulumi/pulumi-harness/sdk/go/harness/cloudprovider"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := harness.GetSecretManager(ctx, &harness.GetSecretManagerArgs{
			Default: pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		awsAccessKey, err := harness.NewEncryptedText(ctx, "aws_access_key", &harness.EncryptedTextArgs{
			Name:            pulumi.String("aws_access_key"),
			Value:           pulumi.String("<ACCESS_KEY_ID>"),
			SecretManagerId: pulumi.String(_default.Id),
		})
		if err != nil {
			return err
		}
		awsSecretKey, err := harness.NewEncryptedText(ctx, "aws_secret_key", &harness.EncryptedTextArgs{
			Name:            pulumi.String("aws_secret_key"),
			Value:           pulumi.String("<SECRET_KEY_ID>"),
			SecretManagerId: pulumi.String(_default.Id),
		})
		if err != nil {
			return err
		}
		_, err = cloudprovider.NewAws(ctx, "aws", &cloudprovider.AwsArgs{
			Name:                      pulumi.String("Example aws cloud provider"),
			AccessKeyIdSecretName:     awsAccessKey.Name,
			SecretAccessKeySecretName: awsSecretKey.Name,
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() => 
{
    var @default = Harness.GetSecretManager.Invoke(new()
    {
        Default = true,
    });
    var awsAccessKey = new Harness.EncryptedText("aws_access_key", new()
    {
        Name = "aws_access_key",
        Value = "<ACCESS_KEY_ID>",
        SecretManagerId = @default.Apply(@default => @default.Apply(getSecretManagerResult => getSecretManagerResult.Id)),
    });
    var awsSecretKey = new Harness.EncryptedText("aws_secret_key", new()
    {
        Name = "aws_secret_key",
        Value = "<SECRET_KEY_ID>",
        SecretManagerId = @default.Apply(@default => @default.Apply(getSecretManagerResult => getSecretManagerResult.Id)),
    });
    var aws = new Harness.Cloudprovider.Aws("aws", new()
    {
        Name = "Example aws cloud provider",
        AccessKeyIdSecretName = awsAccessKey.Name,
        SecretAccessKeySecretName = awsSecretKey.Name,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.HarnessFunctions;
import com.pulumi.harness.inputs.GetSecretManagerArgs;
import com.pulumi.harness.EncryptedText;
import com.pulumi.harness.EncryptedTextArgs;
import com.pulumi.harness.cloudprovider.Aws;
import com.pulumi.harness.cloudprovider.AwsArgs;
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) {
        final var default = HarnessFunctions.getSecretManager(GetSecretManagerArgs.builder()
            .default_(true)
            .build());
        var awsAccessKey = new EncryptedText("awsAccessKey", EncryptedTextArgs.builder()
            .name("aws_access_key")
            .value("<ACCESS_KEY_ID>")
            .secretManagerId(default_.id())
            .build());
        var awsSecretKey = new EncryptedText("awsSecretKey", EncryptedTextArgs.builder()
            .name("aws_secret_key")
            .value("<SECRET_KEY_ID>")
            .secretManagerId(default_.id())
            .build());
        var aws = new Aws("aws", AwsArgs.builder()
            .name("Example aws cloud provider")
            .accessKeyIdSecretName(awsAccessKey.name())
            .secretAccessKeySecretName(awsSecretKey.name())
            .build());
    }
}
resources:
  awsAccessKey:
    type: harness:EncryptedText
    name: aws_access_key
    properties:
      name: aws_access_key
      value: <ACCESS_KEY_ID>
      secretManagerId: ${default.id}
  awsSecretKey:
    type: harness:EncryptedText
    name: aws_secret_key
    properties:
      name: aws_secret_key
      value: <SECRET_KEY_ID>
      secretManagerId: ${default.id}
  aws:
    type: harness:cloudprovider:Aws
    properties:
      name: Example aws cloud provider
      accessKeyIdSecretName: ${awsAccessKey.name}
      secretAccessKeySecretName: ${awsSecretKey.name}
variables:
  default:
    fn::invoke:
      function: harness:getSecretManager
      arguments:
        default: true
Create Aws Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Aws(name: string, args?: AwsArgs, opts?: CustomResourceOptions);@overload
def Aws(resource_name: str,
        args: Optional[AwsArgs] = None,
        opts: Optional[ResourceOptions] = None)
@overload
def Aws(resource_name: str,
        opts: Optional[ResourceOptions] = None,
        access_key_id: Optional[str] = None,
        access_key_id_secret_name: Optional[str] = None,
        assume_cross_account_role: Optional[AwsAssumeCrossAccountRoleArgs] = None,
        delegate_selector: Optional[str] = None,
        name: Optional[str] = None,
        secret_access_key_secret_name: Optional[str] = None,
        usage_scopes: Optional[Sequence[AwsUsageScopeArgs]] = None,
        use_ec2_iam_credentials: Optional[bool] = None,
        use_irsa: Optional[bool] = None)func NewAws(ctx *Context, name string, args *AwsArgs, opts ...ResourceOption) (*Aws, error)public Aws(string name, AwsArgs? args = null, CustomResourceOptions? opts = null)type: harness:cloudprovider:Aws
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 AwsArgs
- 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 AwsArgs
- 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 AwsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AwsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AwsArgs
- 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 awsResource = new Harness.Cloudprovider.Aws("awsResource", new()
{
    AccessKeyId = "string",
    AccessKeyIdSecretName = "string",
    AssumeCrossAccountRole = new Harness.Cloudprovider.Inputs.AwsAssumeCrossAccountRoleArgs
    {
        RoleArn = "string",
        ExternalId = "string",
    },
    DelegateSelector = "string",
    Name = "string",
    SecretAccessKeySecretName = "string",
    UsageScopes = new[]
    {
        new Harness.Cloudprovider.Inputs.AwsUsageScopeArgs
        {
            ApplicationId = "string",
            EnvironmentFilterType = "string",
            EnvironmentId = "string",
        },
    },
    UseEc2IamCredentials = false,
    UseIrsa = false,
});
example, err := cloudprovider.NewAws(ctx, "awsResource", &cloudprovider.AwsArgs{
	AccessKeyId:           pulumi.String("string"),
	AccessKeyIdSecretName: pulumi.String("string"),
	AssumeCrossAccountRole: &cloudprovider.AwsAssumeCrossAccountRoleArgs{
		RoleArn:    pulumi.String("string"),
		ExternalId: pulumi.String("string"),
	},
	DelegateSelector:          pulumi.String("string"),
	Name:                      pulumi.String("string"),
	SecretAccessKeySecretName: pulumi.String("string"),
	UsageScopes: cloudprovider.AwsUsageScopeArray{
		&cloudprovider.AwsUsageScopeArgs{
			ApplicationId:         pulumi.String("string"),
			EnvironmentFilterType: pulumi.String("string"),
			EnvironmentId:         pulumi.String("string"),
		},
	},
	UseEc2IamCredentials: pulumi.Bool(false),
	UseIrsa:              pulumi.Bool(false),
})
var awsResource = new Aws("awsResource", AwsArgs.builder()
    .accessKeyId("string")
    .accessKeyIdSecretName("string")
    .assumeCrossAccountRole(AwsAssumeCrossAccountRoleArgs.builder()
        .roleArn("string")
        .externalId("string")
        .build())
    .delegateSelector("string")
    .name("string")
    .secretAccessKeySecretName("string")
    .usageScopes(AwsUsageScopeArgs.builder()
        .applicationId("string")
        .environmentFilterType("string")
        .environmentId("string")
        .build())
    .useEc2IamCredentials(false)
    .useIrsa(false)
    .build());
aws_resource = harness.cloudprovider.Aws("awsResource",
    access_key_id="string",
    access_key_id_secret_name="string",
    assume_cross_account_role={
        "role_arn": "string",
        "external_id": "string",
    },
    delegate_selector="string",
    name="string",
    secret_access_key_secret_name="string",
    usage_scopes=[{
        "application_id": "string",
        "environment_filter_type": "string",
        "environment_id": "string",
    }],
    use_ec2_iam_credentials=False,
    use_irsa=False)
const awsResource = new harness.cloudprovider.Aws("awsResource", {
    accessKeyId: "string",
    accessKeyIdSecretName: "string",
    assumeCrossAccountRole: {
        roleArn: "string",
        externalId: "string",
    },
    delegateSelector: "string",
    name: "string",
    secretAccessKeySecretName: "string",
    usageScopes: [{
        applicationId: "string",
        environmentFilterType: "string",
        environmentId: "string",
    }],
    useEc2IamCredentials: false,
    useIrsa: false,
});
type: harness:cloudprovider:Aws
properties:
    accessKeyId: string
    accessKeyIdSecretName: string
    assumeCrossAccountRole:
        externalId: string
        roleArn: string
    delegateSelector: string
    name: string
    secretAccessKeySecretName: string
    usageScopes:
        - applicationId: string
          environmentFilterType: string
          environmentId: string
    useEc2IamCredentials: false
    useIrsa: false
Aws 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 Aws resource accepts the following input properties:
- AccessKey stringId 
- The plain text AWS access key id.
- AccessKey stringId Secret Name 
- The name of the Harness secret containing the AWS access key id
- AssumeCross AwsAccount Role Assume Cross Account Role 
- Configuration for assuming a cross account role.
- DelegateSelector string
- Select the Delegate to use via one of its Selectors.
- Name string
- The name of the cloud provider.
- SecretAccess stringKey Secret Name 
- The name of the Harness secret containing the AWS secret access key.
- UsageScopes List<AwsUsage Scope> 
- This block is used for scoping the resource to a specific set of applications or environments.
- UseEc2Iam boolCredentials 
- Use the EC2 Instance Profile for Service Accounts.
- UseIrsa bool
- Use the AWS IAM Role for Service Accounts.
- AccessKey stringId 
- The plain text AWS access key id.
- AccessKey stringId Secret Name 
- The name of the Harness secret containing the AWS access key id
- AssumeCross AwsAccount Role Assume Cross Account Role Args 
- Configuration for assuming a cross account role.
- DelegateSelector string
- Select the Delegate to use via one of its Selectors.
- Name string
- The name of the cloud provider.
- SecretAccess stringKey Secret Name 
- The name of the Harness secret containing the AWS secret access key.
- UsageScopes []AwsUsage Scope Args 
- This block is used for scoping the resource to a specific set of applications or environments.
- UseEc2Iam boolCredentials 
- Use the EC2 Instance Profile for Service Accounts.
- UseIrsa bool
- Use the AWS IAM Role for Service Accounts.
- accessKey StringId 
- The plain text AWS access key id.
- accessKey StringId Secret Name 
- The name of the Harness secret containing the AWS access key id
- assumeCross AwsAccount Role Assume Cross Account Role 
- Configuration for assuming a cross account role.
- delegateSelector String
- Select the Delegate to use via one of its Selectors.
- name String
- The name of the cloud provider.
- secretAccess StringKey Secret Name 
- The name of the Harness secret containing the AWS secret access key.
- usageScopes List<AwsUsage Scope> 
- This block is used for scoping the resource to a specific set of applications or environments.
- useEc2Iam BooleanCredentials 
- Use the EC2 Instance Profile for Service Accounts.
- useIrsa Boolean
- Use the AWS IAM Role for Service Accounts.
- accessKey stringId 
- The plain text AWS access key id.
- accessKey stringId Secret Name 
- The name of the Harness secret containing the AWS access key id
- assumeCross AwsAccount Role Assume Cross Account Role 
- Configuration for assuming a cross account role.
- delegateSelector string
- Select the Delegate to use via one of its Selectors.
- name string
- The name of the cloud provider.
- secretAccess stringKey Secret Name 
- The name of the Harness secret containing the AWS secret access key.
- usageScopes AwsUsage Scope[] 
- This block is used for scoping the resource to a specific set of applications or environments.
- useEc2Iam booleanCredentials 
- Use the EC2 Instance Profile for Service Accounts.
- useIrsa boolean
- Use the AWS IAM Role for Service Accounts.
- access_key_ strid 
- The plain text AWS access key id.
- access_key_ strid_ secret_ name 
- The name of the Harness secret containing the AWS access key id
- assume_cross_ Awsaccount_ role Assume Cross Account Role Args 
- Configuration for assuming a cross account role.
- delegate_selector str
- Select the Delegate to use via one of its Selectors.
- name str
- The name of the cloud provider.
- secret_access_ strkey_ secret_ name 
- The name of the Harness secret containing the AWS secret access key.
- usage_scopes Sequence[AwsUsage Scope Args] 
- This block is used for scoping the resource to a specific set of applications or environments.
- use_ec2_ booliam_ credentials 
- Use the EC2 Instance Profile for Service Accounts.
- use_irsa bool
- Use the AWS IAM Role for Service Accounts.
- accessKey StringId 
- The plain text AWS access key id.
- accessKey StringId Secret Name 
- The name of the Harness secret containing the AWS access key id
- assumeCross Property MapAccount Role 
- Configuration for assuming a cross account role.
- delegateSelector String
- Select the Delegate to use via one of its Selectors.
- name String
- The name of the cloud provider.
- secretAccess StringKey Secret Name 
- The name of the Harness secret containing the AWS secret access key.
- usageScopes List<Property Map>
- This block is used for scoping the resource to a specific set of applications or environments.
- useEc2Iam BooleanCredentials 
- Use the EC2 Instance Profile for Service Accounts.
- useIrsa Boolean
- Use the AWS IAM Role for Service Accounts.
Outputs
All input properties are implicitly available as output properties. Additionally, the Aws 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 Aws Resource
Get an existing Aws 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?: AwsState, opts?: CustomResourceOptions): Aws@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        access_key_id: Optional[str] = None,
        access_key_id_secret_name: Optional[str] = None,
        assume_cross_account_role: Optional[AwsAssumeCrossAccountRoleArgs] = None,
        delegate_selector: Optional[str] = None,
        name: Optional[str] = None,
        secret_access_key_secret_name: Optional[str] = None,
        usage_scopes: Optional[Sequence[AwsUsageScopeArgs]] = None,
        use_ec2_iam_credentials: Optional[bool] = None,
        use_irsa: Optional[bool] = None) -> Awsfunc GetAws(ctx *Context, name string, id IDInput, state *AwsState, opts ...ResourceOption) (*Aws, error)public static Aws Get(string name, Input<string> id, AwsState? state, CustomResourceOptions? opts = null)public static Aws get(String name, Output<String> id, AwsState state, CustomResourceOptions options)resources:  _:    type: harness:cloudprovider:Aws    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.
- AccessKey stringId 
- The plain text AWS access key id.
- AccessKey stringId Secret Name 
- The name of the Harness secret containing the AWS access key id
- AssumeCross AwsAccount Role Assume Cross Account Role 
- Configuration for assuming a cross account role.
- DelegateSelector string
- Select the Delegate to use via one of its Selectors.
- Name string
- The name of the cloud provider.
- SecretAccess stringKey Secret Name 
- The name of the Harness secret containing the AWS secret access key.
- UsageScopes List<AwsUsage Scope> 
- This block is used for scoping the resource to a specific set of applications or environments.
- UseEc2Iam boolCredentials 
- Use the EC2 Instance Profile for Service Accounts.
- UseIrsa bool
- Use the AWS IAM Role for Service Accounts.
- AccessKey stringId 
- The plain text AWS access key id.
- AccessKey stringId Secret Name 
- The name of the Harness secret containing the AWS access key id
- AssumeCross AwsAccount Role Assume Cross Account Role Args 
- Configuration for assuming a cross account role.
- DelegateSelector string
- Select the Delegate to use via one of its Selectors.
- Name string
- The name of the cloud provider.
- SecretAccess stringKey Secret Name 
- The name of the Harness secret containing the AWS secret access key.
- UsageScopes []AwsUsage Scope Args 
- This block is used for scoping the resource to a specific set of applications or environments.
- UseEc2Iam boolCredentials 
- Use the EC2 Instance Profile for Service Accounts.
- UseIrsa bool
- Use the AWS IAM Role for Service Accounts.
- accessKey StringId 
- The plain text AWS access key id.
- accessKey StringId Secret Name 
- The name of the Harness secret containing the AWS access key id
- assumeCross AwsAccount Role Assume Cross Account Role 
- Configuration for assuming a cross account role.
- delegateSelector String
- Select the Delegate to use via one of its Selectors.
- name String
- The name of the cloud provider.
- secretAccess StringKey Secret Name 
- The name of the Harness secret containing the AWS secret access key.
- usageScopes List<AwsUsage Scope> 
- This block is used for scoping the resource to a specific set of applications or environments.
- useEc2Iam BooleanCredentials 
- Use the EC2 Instance Profile for Service Accounts.
- useIrsa Boolean
- Use the AWS IAM Role for Service Accounts.
- accessKey stringId 
- The plain text AWS access key id.
- accessKey stringId Secret Name 
- The name of the Harness secret containing the AWS access key id
- assumeCross AwsAccount Role Assume Cross Account Role 
- Configuration for assuming a cross account role.
- delegateSelector string
- Select the Delegate to use via one of its Selectors.
- name string
- The name of the cloud provider.
- secretAccess stringKey Secret Name 
- The name of the Harness secret containing the AWS secret access key.
- usageScopes AwsUsage Scope[] 
- This block is used for scoping the resource to a specific set of applications or environments.
- useEc2Iam booleanCredentials 
- Use the EC2 Instance Profile for Service Accounts.
- useIrsa boolean
- Use the AWS IAM Role for Service Accounts.
- access_key_ strid 
- The plain text AWS access key id.
- access_key_ strid_ secret_ name 
- The name of the Harness secret containing the AWS access key id
- assume_cross_ Awsaccount_ role Assume Cross Account Role Args 
- Configuration for assuming a cross account role.
- delegate_selector str
- Select the Delegate to use via one of its Selectors.
- name str
- The name of the cloud provider.
- secret_access_ strkey_ secret_ name 
- The name of the Harness secret containing the AWS secret access key.
- usage_scopes Sequence[AwsUsage Scope Args] 
- This block is used for scoping the resource to a specific set of applications or environments.
- use_ec2_ booliam_ credentials 
- Use the EC2 Instance Profile for Service Accounts.
- use_irsa bool
- Use the AWS IAM Role for Service Accounts.
- accessKey StringId 
- The plain text AWS access key id.
- accessKey StringId Secret Name 
- The name of the Harness secret containing the AWS access key id
- assumeCross Property MapAccount Role 
- Configuration for assuming a cross account role.
- delegateSelector String
- Select the Delegate to use via one of its Selectors.
- name String
- The name of the cloud provider.
- secretAccess StringKey Secret Name 
- The name of the Harness secret containing the AWS secret access key.
- usageScopes List<Property Map>
- This block is used for scoping the resource to a specific set of applications or environments.
- useEc2Iam BooleanCredentials 
- Use the EC2 Instance Profile for Service Accounts.
- useIrsa Boolean
- Use the AWS IAM Role for Service Accounts.
Supporting Types
AwsAssumeCrossAccountRole, AwsAssumeCrossAccountRoleArgs          
- RoleArn string
- This is an IAM role in the target deployment AWS account.
- ExternalId string
- If the administrator of the account to which the role belongs provided you with an external ID, then enter that value.
- RoleArn string
- This is an IAM role in the target deployment AWS account.
- ExternalId string
- If the administrator of the account to which the role belongs provided you with an external ID, then enter that value.
- roleArn String
- This is an IAM role in the target deployment AWS account.
- externalId String
- If the administrator of the account to which the role belongs provided you with an external ID, then enter that value.
- roleArn string
- This is an IAM role in the target deployment AWS account.
- externalId string
- If the administrator of the account to which the role belongs provided you with an external ID, then enter that value.
- role_arn str
- This is an IAM role in the target deployment AWS account.
- external_id str
- If the administrator of the account to which the role belongs provided you with an external ID, then enter that value.
- roleArn String
- This is an IAM role in the target deployment AWS account.
- externalId String
- If the administrator of the account to which the role belongs provided you with an external ID, then enter that value.
AwsUsageScope, AwsUsageScopeArgs      
- ApplicationId string
- Id of the application to scope to. If empty then this scope applies to all applications.
- EnvironmentFilter stringType 
- Type of environment filter applied. Cannot be used with environment_id. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS.
- EnvironmentId string
- Id of the id of the specific environment to scope to. Cannot be used with environment_filter_type.
- ApplicationId string
- Id of the application to scope to. If empty then this scope applies to all applications.
- EnvironmentFilter stringType 
- Type of environment filter applied. Cannot be used with environment_id. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS.
- EnvironmentId string
- Id of the id of the specific environment to scope to. Cannot be used with environment_filter_type.
- applicationId String
- Id of the application to scope to. If empty then this scope applies to all applications.
- environmentFilter StringType 
- Type of environment filter applied. Cannot be used with environment_id. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS.
- environmentId String
- Id of the id of the specific environment to scope to. Cannot be used with environment_filter_type.
- applicationId string
- Id of the application to scope to. If empty then this scope applies to all applications.
- environmentFilter stringType 
- Type of environment filter applied. Cannot be used with environment_id. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS.
- environmentId string
- Id of the id of the specific environment to scope to. Cannot be used with environment_filter_type.
- application_id str
- Id of the application to scope to. If empty then this scope applies to all applications.
- environment_filter_ strtype 
- Type of environment filter applied. Cannot be used with environment_id. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS.
- environment_id str
- Id of the id of the specific environment to scope to. Cannot be used with environment_filter_type.
- applicationId String
- Id of the application to scope to. If empty then this scope applies to all applications.
- environmentFilter StringType 
- Type of environment filter applied. Cannot be used with environment_id. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS.
- environmentId String
- Id of the id of the specific environment to scope to. Cannot be used with environment_filter_type.
Import
Import using the Harness aws cloud provider id.
$ pulumi import harness:cloudprovider/aws:Aws example <provider_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the harnessTerraform Provider.
