Module config

@pulumi/cloud-aws > config

Index

config/index.ts

function setEcsCluster

setEcsCluster(cluster: aws.ecs.Cluster, securityGroup?: pulumi.Output<string>, efsMountPath?: undefined | string): void

setEcsCluster configures the ambient ECS cluster imperatively rather than using standard configuration.

let acmCertificateARN

let acmCertificateARN: undefined | string =  config.get("acmCertificateARN");

Optional ACM certificate ARN to support services HTTPS traffic.

let computeIAMRolePolicyARNs

let computeIAMRolePolicyARNs: undefined | string =  config.get("computeIAMRolePolicyARNs");

Set the IAM role policies to apply to compute (both Lambda and ECS) within this Pulumi program. The default is: “arn:aws:iam::aws:policy/AWSLambdaFullAccess,arn:aws:iam::aws:policy/AmazonEC2ContainerServiceFullAccess”.

let ecsAutoCluster

let ecsAutoCluster: boolean =  config.getBoolean("ecsAutoCluster") || false;

Optionally auto-provision an ECS Cluster. If set to true, parameters for the cluster can be provided via the other “ecsAutoCluster*” configuration variables.

let ecsAutoClusterECSOptimizedAMIName

let ecsAutoClusterECSOptimizedAMIName: undefined | string =  config.get("ecsAutoClusterECSOptimizedAMIName");

The name of the ECS-optimzed AMI to use for the Container Instances in this cluster, e.g. “amzn-ami-2017.09.l-amazon-ecs-optimized”.

See http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html for valid values.

let ecsAutoClusterInstanceDockerImageVolumeSize

let ecsAutoClusterInstanceDockerImageVolumeSize: undefined | number = 
    config.getNumber("ecsAutoClusterInstanceDockerImageVolumeSize");

The size (in GiB) of the EBS volume to attach to each instance as Docker Image volume. Defaults to 50 GiB.

let ecsAutoClusterInstanceRolePolicyARNs

let ecsAutoClusterInstanceRolePolicyARNs: undefined | string =  config.get("ecsAutoClusterInstanceRolePolicyARNs");

The EC2 instance role policy ARN to use for the cluster. Defaults to arn:aws:iam::aws:policy/service-role/AmazonEC2ContainerServiceforEC2Role, arn:aws:iam::aws:policy/AmazonEC2ReadOnlyAccess.

let ecsAutoClusterInstanceRootVolumeSize

let ecsAutoClusterInstanceRootVolumeSize: undefined | number =  config.getNumber("ecsAutoClusterInstanceRootVolumeSize");

The size (in GiB) of the EBS volume to attach to each instance as the root volume. Defaults to 8 GiB.

let ecsAutoClusterInstanceSwapVolumeSize

let ecsAutoClusterInstanceSwapVolumeSize: undefined | number =  config.getNumber("ecsAutoClusterInstanceSwapVolumeSize");

The size (in GiB) of the EBS volume to attach to each instance as the swap volume. Defaults to 5 GiB.

let ecsAutoClusterInstanceType

let ecsAutoClusterInstanceType: undefined | string =  config.get("ecsAutoClusterInstanceType");

The EC2 instance type to use for the cluster. Defaults to t2.micro.

let ecsAutoClusterMaxSize

let ecsAutoClusterMaxSize: undefined | number =  config.getNumber("ecsAutoClusterMaxSize");

The maximum size of the cluster. Defaults to 100.

let ecsAutoClusterMinSize

let ecsAutoClusterMinSize: undefined | number =  config.getNumber("ecsAutoClusterMinSize");

The minimum size of the cluster. Defaults to 2.

let ecsAutoClusterNumberOfAZs

let ecsAutoClusterNumberOfAZs: undefined | number =  config.getNumber("ecsAutoClusterNumberOfAZs");

The number of AZs to create subnets in as part of the cluster. Defaults to 2.

let ecsAutoClusterPublicKey

let ecsAutoClusterPublicKey: undefined | string =  config.get("ecsAutoClusterPublicKey");

Public key material for SSH access to the cluster. See allowed formats at: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html If not provided, no SSH access is enabled on VMs.

let ecsAutoClusterUseEFS

let ecsAutoClusterUseEFS: boolean =  config.getBoolean("ecsAutoClusterUseEFS") || false;

Optionally auto-provision an Elastic File System for the Cluster. Defaults to false.

let ecsClusterARN

let ecsClusterARN: pulumi.Input<string> | undefined =  config.get("ecsClusterARN");

Optional ECS cluster ARN. If not provided, Services and Tasks are not available for the target environment.

let ecsClusterEfsMountPath

let ecsClusterEfsMountPath: undefined | string =  config.get("ecsClusterEfsMountPath");

Optional EFS mount path on the cluster hosts. If not provided, Volumes cannot be used in Services and Tasks.

let ecsClusterSecurityGroup

let ecsClusterSecurityGroup: pulumi.Input<string> | undefined =  config.get("ecsClusterSecurityGroup");

Optional ECS cluster security group that all ALBs for services within the cluster will use.

let externalPublicSubnets

let externalPublicSubnets: string[] | undefined =  undefined;

Provide public subnets ids for the VPC as a comma-seperated string. Required if using an existing VPC.

let externalSecurityGroups

let externalSecurityGroups: string[] | undefined =  undefined;

Provide securityGroup ids for the VPC as a comma-seperated string. Required if using an existing VPC.

let externalSubnets

let externalSubnets: string[] | undefined =  undefined;

Provide subnets ids for the VPC as a comma-seperated string. Required if using an existing VPC.

let externalVpcId

let externalVpcId: undefined | string =  config.get("externalVpcId");

Use an existing VPC. If both usePrivateNetwork and externalVpcId are provided, the VPC must be configured to run all compute in private subnets with Internet egress enabled via NAT Gateways.

let functionIncludePackages

let functionIncludePackages: string[] | undefined =  undefined;

Comma-seperated list of additional packages (relative to the project root) to include in Lambda zip uploads for JavaScript callbacks. E.g “body-parser,typescript”.

let functionIncludePaths

let functionIncludePaths: string[] | undefined =  undefined;

Comma-seperated list of additional paths (relative to the project root) to include in Lambda zip uploads for JavaScript callbacks. E.g “./img.png,app/”.

let functionMemorySize

let functionMemorySize: number =  config.getNumber("functionMemorySize") || 128;

Optionally override the Lambda function memory size for all functions.

let useFargate

let useFargate: boolean =  config.getBoolean("useFargate") || false;

Optionally use Fargate-based container compute. All tasks must be Fargate-compatible.

let usePrivateNetwork

let usePrivateNetwork: boolean =  config.getBoolean("usePrivateNetwork") || false;

Optionally put all compute in a private network with no Internet ingress except via explicit API.