1. Packages
  2. Packages
  3. Defang Providers
  4. API Docs
  5. Project
Viewing docs for Defang AWS v2.4.1
published on Saturday, Jul 11, 2026 by Defang
defang-aws logo
Viewing docs for Defang AWS v2.4.1
published on Saturday, Jul 11, 2026 by Defang

    Create Project Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Project(name: string, args: ProjectArgs, opts?: ComponentResourceOptions);
    @overload
    def Project(resource_name: str,
                args: ProjectArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Project(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                services: Optional[Mapping[str, _compose.ServiceConfigArgs]] = None,
                aws: Optional[AWSConfigArgs] = None,
                etag: Optional[str] = None,
                networks: Optional[Mapping[str, _compose.NetworkConfigArgs]] = None,
                wait_for_steady_state: Optional[bool] = None)
    func NewProject(ctx *Context, name string, args ProjectArgs, opts ...ResourceOption) (*Project, error)
    public Project(string name, ProjectArgs args, ComponentResourceOptions? opts = null)
    public Project(String name, ProjectArgs args)
    public Project(String name, ProjectArgs args, ComponentResourceOptions options)
    
    type: defang-aws:Project
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "defang-aws_project" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ProjectArgs
    The arguments to resource properties.
    opts ComponentResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ProjectArgs
    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 ProjectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProjectArgs
    The arguments to resource properties.
    opts ComponentResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProjectArgs
    The arguments to resource properties.
    options ComponentResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var projectResource = new DefangAws.Project("projectResource", new()
    {
        Services = 
        {
            { "string", new DefangAws.Compose.Inputs.ServiceConfigArgs
            {
                Autoscaling = false,
                Build = new DefangAws.Compose.Inputs.BuildConfigArgs
                {
                    Context = "string",
                    Args = 
                    {
                        { "string", "string" },
                    },
                    CacheFrom = new[]
                    {
                        "string",
                    },
                    CacheTo = new[]
                    {
                        "string",
                    },
                    Dockerfile = "string",
                    Platforms = new[]
                    {
                        "string",
                    },
                    ShmSize = "string",
                    Target = "string",
                },
                Command = new[]
                {
                    "string",
                },
                ContainerName = "string",
                DependsOn = 
                {
                    { "string", new DefangAws.Compose.Inputs.ServiceDependencyArgs
                    {
                        Condition = "string",
                        Required = false,
                    } },
                },
                Deploy = new DefangAws.Compose.Inputs.DeployConfigArgs
                {
                    Replicas = 0,
                    Resources = new DefangAws.Compose.Inputs.ResourcesArgs
                    {
                        Reservations = new DefangAws.Compose.Inputs.ResourceConfigArgs
                        {
                            Cpus = 0,
                            Memory = "string",
                        },
                    },
                },
                DomainName = "string",
                Entrypoint = new[]
                {
                    "string",
                },
                Environment = 
                {
                    { "string", "string" },
                },
                HealthCheck = new DefangAws.Compose.Inputs.HealthCheckConfigArgs
                {
                    IntervalSeconds = 0,
                    Retries = 0,
                    StartPeriodSeconds = 0,
                    Test = new[]
                    {
                        "string",
                    },
                    TimeoutSeconds = 0,
                },
                Image = "string",
                Llm = null,
                NetworkMode = "string",
                Networks = 
                {
                    { "string", new DefangAws.Compose.Inputs.ServiceNetworkConfigArgs
                    {
                        Aliases = new[]
                        {
                            "string",
                        },
                    } },
                },
                Platform = "string",
                Policies = new[]
                {
                    "string",
                },
                Ports = new[]
                {
                    new DefangAws.Compose.Inputs.ServicePortConfigArgs
                    {
                        Target = 0,
                        AppProtocol = "string",
                        Listener = "string",
                        Mode = "string",
                        Protocol = "string",
                    },
                },
                Postgres = new DefangAws.Compose.Inputs.PostgresConfigArgs
                {
                    AllowDowntime = false,
                    FromSnapshot = "string",
                },
                Redis = new DefangAws.Compose.Inputs.RedisConfigArgs
                {
                    AllowDowntime = false,
                    FromSnapshot = "string",
                },
                Restart = "string",
                StopGracePeriod = "string",
                Volumes = new[]
                {
                    new DefangAws.Compose.Inputs.ServiceVolumeConfigArgs
                    {
                        Source = "string",
                        Target = "string",
                        ReadOnly = false,
                    },
                },
                VolumesFrom = new[]
                {
                    "string",
                },
                WorkingDir = "string",
            } },
        },
        Aws = new DefangAws.Inputs.AWSConfigArgs
        {
            AlbCertificateArn = "string",
            DnsRoleArn = "string",
            PrivateSubnetIDs = new[]
            {
                "string",
            },
            ProjectDomain = "string",
            PublicSubnetIDs = new[]
            {
                "string",
            },
            PublicZoneId = "string",
            VpcID = "string",
        },
        Etag = "string",
        Networks = 
        {
            { "string", new DefangAws.Compose.Inputs.NetworkConfigArgs
            {
                Internal = false,
            } },
        },
        WaitForSteadyState = false,
    });
    
    example, err := defangaws.NewProject(ctx, "projectResource", &defangaws.ProjectArgs{
    	Services: compose.ServiceConfigMap{
    		"string": &compose.ServiceConfigArgs{
    			Autoscaling: pulumi.Bool(false),
    			Build: &compose.BuildConfigArgs{
    				Context: pulumi.String("string"),
    				Args: pulumi.StringMap{
    					"string": pulumi.String("string"),
    				},
    				CacheFrom: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				CacheTo: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				Dockerfile: pulumi.String("string"),
    				Platforms: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				ShmSize: pulumi.String("string"),
    				Target:  pulumi.String("string"),
    			},
    			Command: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			ContainerName: pulumi.String("string"),
    			DependsOn: compose.ServiceDependencyMap{
    				"string": &compose.ServiceDependencyArgs{
    					Condition: pulumi.String("string"),
    					Required:  pulumi.Bool(false),
    				},
    			},
    			Deploy: &compose.DeployConfigArgs{
    				Replicas: pulumi.Int(0),
    				Resources: &compose.ResourcesArgs{
    					Reservations: &compose.ResourceConfigArgs{
    						Cpus:   pulumi.Float64(0),
    						Memory: pulumi.String("string"),
    					},
    				},
    			},
    			DomainName: pulumi.String("string"),
    			Entrypoint: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Environment: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    			HealthCheck: &compose.HealthCheckConfigArgs{
    				IntervalSeconds:    pulumi.Int(0),
    				Retries:            pulumi.Int(0),
    				StartPeriodSeconds: pulumi.Int(0),
    				Test: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				TimeoutSeconds: pulumi.Int(0),
    			},
    			Image:       pulumi.String("string"),
    			Llm:         &compose.LlmConfigArgs{},
    			NetworkMode: pulumi.String("string"),
    			Networks: compose.ServiceNetworkConfigMap{
    				"string": &compose.ServiceNetworkConfigArgs{
    					Aliases: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    				},
    			},
    			Platform: pulumi.String("string"),
    			Policies: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Ports: compose.ServicePortConfigArray{
    				&compose.ServicePortConfigArgs{
    					Target:      pulumi.Int(0),
    					AppProtocol: pulumi.String("string"),
    					Listener:    pulumi.String("string"),
    					Mode:        pulumi.String("string"),
    					Protocol:    pulumi.String("string"),
    				},
    			},
    			Postgres: &compose.PostgresConfigArgs{
    				AllowDowntime: pulumi.Bool(false),
    				FromSnapshot:  pulumi.String("string"),
    			},
    			Redis: &compose.RedisConfigArgs{
    				AllowDowntime: pulumi.Bool(false),
    				FromSnapshot:  pulumi.String("string"),
    			},
    			Restart:         pulumi.String("string"),
    			StopGracePeriod: pulumi.String("string"),
    			Volumes: compose.ServiceVolumeConfigArray{
    				&compose.ServiceVolumeConfigArgs{
    					Source:   pulumi.String("string"),
    					Target:   pulumi.String("string"),
    					ReadOnly: pulumi.Bool(false),
    				},
    			},
    			VolumesFrom: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			WorkingDir: pulumi.String("string"),
    		},
    	},
    	Aws: &defangaws.AWSConfigArgs{
    		AlbCertificateArn: pulumi.String("string"),
    		DnsRoleArn:        pulumi.String("string"),
    		PrivateSubnetIDs: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		ProjectDomain: pulumi.String("string"),
    		PublicSubnetIDs: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		PublicZoneId: pulumi.String("string"),
    		VpcID:        pulumi.String("string"),
    	},
    	Etag: "string",
    	Networks: compose.NetworkConfigMap{
    		"string": &compose.NetworkConfigArgs{
    			Internal: pulumi.Bool(false),
    		},
    	},
    	WaitForSteadyState: false,
    })
    
    resource "defang-aws_project" "projectResource" {
      services = {
        "string" = {
          autoscaling = false
          build = {
            context = "string"
            args = {
              "string" = "string"
            }
            cache_from = ["string"]
            cache_to   = ["string"]
            dockerfile = "string"
            platforms  = ["string"]
            shm_size   = "string"
            target     = "string"
          }
          command        = ["string"]
          container_name = "string"
          depends_on = {
            "string" = {
              condition = "string"
              required  = false
            }
          }
          deploy = {
            replicas = 0
            resources = {
              reservations = {
                cpus   = 0
                memory = "string"
              }
            }
          }
          domain_name = "string"
          entrypoint  = ["string"]
          environment = {
            "string" = "string"
          }
          health_check = {
            interval_seconds     = 0
            retries              = 0
            start_period_seconds = 0
            test                 = ["string"]
            timeout_seconds      = 0
          }
          image        = "string"
          llm          = {}
          network_mode = "string"
          networks = {
            "string" = {
              aliases = ["string"]
            }
          }
          platform = "string"
          policies = ["string"]
          ports = [{
            "target"      = 0
            "appProtocol" = "string"
            "listener"    = "string"
            "mode"        = "string"
            "protocol"    = "string"
          }]
          postgres = {
            allow_downtime = false
            from_snapshot  = "string"
          }
          redis = {
            allow_downtime = false
            from_snapshot  = "string"
          }
          restart           = "string"
          stop_grace_period = "string"
          volumes = [{
            "source"   = "string"
            "target"   = "string"
            "readOnly" = false
          }]
          volumes_from = ["string"]
          working_dir  = "string"
        }
      }
      aws = {
        alb_certificate_arn = "string"
        dns_role_arn        = "string"
        private_subnet_i_ds = ["string"]
        project_domain      = "string"
        public_subnet_i_ds  = ["string"]
        public_zone_id      = "string"
        vpc_id              = "string"
      }
      etag = "string"
      networks = {
        "string" = {
          internal = false
        }
      }
      wait_for_steady_state = false
    }
    
    var projectResource = new Project("projectResource", ProjectArgs.builder()
        .services(Map.of("string", ServiceConfigArgs.builder()
            .autoscaling(false)
            .build(BuildConfigArgs.builder()
                .context("string")
                .args(Map.of("string", "string"))
                .cacheFrom("string")
                .cacheTo("string")
                .dockerfile("string")
                .platforms("string")
                .shmSize("string")
                .target("string")
                .build())
            .command("string")
            .containerName("string")
            .dependsOn(Map.of("string", ServiceDependencyArgs.builder()
                .condition("string")
                .required(false)
                .build()))
            .deploy(DeployConfigArgs.builder()
                .replicas(0)
                .resources(ResourcesArgs.builder()
                    .reservations(ResourceConfigArgs.builder()
                        .cpus(0.0)
                        .memory("string")
                        .build())
                    .build())
                .build())
            .domainName("string")
            .entrypoint("string")
            .environment(Map.of("string", "string"))
            .healthCheck(HealthCheckConfigArgs.builder()
                .intervalSeconds(0)
                .retries(0)
                .startPeriodSeconds(0)
                .test("string")
                .timeoutSeconds(0)
                .build())
            .image("string")
            .llm(LlmConfigArgs.builder()
                .build())
            .networkMode("string")
            .networks(Map.of("string", ServiceNetworkConfigArgs.builder()
                .aliases("string")
                .build()))
            .platform("string")
            .policies("string")
            .ports(ServicePortConfigArgs.builder()
                .target(0)
                .appProtocol("string")
                .listener("string")
                .mode("string")
                .protocol("string")
                .build())
            .postgres(PostgresConfigArgs.builder()
                .allowDowntime(false)
                .fromSnapshot("string")
                .build())
            .redis(RedisConfigArgs.builder()
                .allowDowntime(false)
                .fromSnapshot("string")
                .build())
            .restart("string")
            .stopGracePeriod("string")
            .volumes(ServiceVolumeConfigArgs.builder()
                .source("string")
                .target("string")
                .readOnly(false)
                .build())
            .volumesFrom("string")
            .workingDir("string")
            .build()))
        .aws(AWSConfigArgs.builder()
            .albCertificateArn("string")
            .dnsRoleArn("string")
            .privateSubnetIDs("string")
            .projectDomain("string")
            .publicSubnetIDs("string")
            .publicZoneId("string")
            .vpcID("string")
            .build())
        .etag("string")
        .networks(Map.of("string", NetworkConfigArgs.builder()
            .internal(false)
            .build()))
        .waitForSteadyState(false)
        .build());
    
    project_resource = defang_aws.Project("projectResource",
        services={
            "string": {
                "autoscaling": False,
                "build": {
                    "context": "string",
                    "args": {
                        "string": "string",
                    },
                    "cache_from": ["string"],
                    "cache_to": ["string"],
                    "dockerfile": "string",
                    "platforms": ["string"],
                    "shm_size": "string",
                    "target": "string",
                },
                "command": ["string"],
                "container_name": "string",
                "depends_on": {
                    "string": {
                        "condition": "string",
                        "required": False,
                    },
                },
                "deploy": {
                    "replicas": 0,
                    "resources": {
                        "reservations": {
                            "cpus": float(0),
                            "memory": "string",
                        },
                    },
                },
                "domain_name": "string",
                "entrypoint": ["string"],
                "environment": {
                    "string": "string",
                },
                "health_check": {
                    "interval_seconds": 0,
                    "retries": 0,
                    "start_period_seconds": 0,
                    "test": ["string"],
                    "timeout_seconds": 0,
                },
                "image": "string",
                "llm": {},
                "network_mode": "string",
                "networks": {
                    "string": {
                        "aliases": ["string"],
                    },
                },
                "platform": "string",
                "policies": ["string"],
                "ports": [{
                    "target": 0,
                    "app_protocol": "string",
                    "listener": "string",
                    "mode": "string",
                    "protocol": "string",
                }],
                "postgres": {
                    "allow_downtime": False,
                    "from_snapshot": "string",
                },
                "redis": {
                    "allow_downtime": False,
                    "from_snapshot": "string",
                },
                "restart": "string",
                "stop_grace_period": "string",
                "volumes": [{
                    "source": "string",
                    "target": "string",
                    "read_only": False,
                }],
                "volumes_from": ["string"],
                "working_dir": "string",
            },
        },
        aws={
            "alb_certificate_arn": "string",
            "dns_role_arn": "string",
            "private_subnet_ids": ["string"],
            "project_domain": "string",
            "public_subnet_ids": ["string"],
            "public_zone_id": "string",
            "vpc_id": "string",
        },
        etag="string",
        networks={
            "string": {
                "internal": False,
            },
        },
        wait_for_steady_state=False)
    
    const projectResource = new defang_aws.Project("projectResource", {
        services: {
            string: {
                autoscaling: false,
                build: {
                    context: "string",
                    args: {
                        string: "string",
                    },
                    cacheFrom: ["string"],
                    cacheTo: ["string"],
                    dockerfile: "string",
                    platforms: ["string"],
                    shmSize: "string",
                    target: "string",
                },
                command: ["string"],
                containerName: "string",
                dependsOn: {
                    string: {
                        condition: "string",
                        required: false,
                    },
                },
                deploy: {
                    replicas: 0,
                    resources: {
                        reservations: {
                            cpus: 0,
                            memory: "string",
                        },
                    },
                },
                domainName: "string",
                entrypoint: ["string"],
                environment: {
                    string: "string",
                },
                healthCheck: {
                    intervalSeconds: 0,
                    retries: 0,
                    startPeriodSeconds: 0,
                    test: ["string"],
                    timeoutSeconds: 0,
                },
                image: "string",
                llm: {},
                networkMode: "string",
                networks: {
                    string: {
                        aliases: ["string"],
                    },
                },
                platform: "string",
                policies: ["string"],
                ports: [{
                    target: 0,
                    appProtocol: "string",
                    listener: "string",
                    mode: "string",
                    protocol: "string",
                }],
                postgres: {
                    allowDowntime: false,
                    fromSnapshot: "string",
                },
                redis: {
                    allowDowntime: false,
                    fromSnapshot: "string",
                },
                restart: "string",
                stopGracePeriod: "string",
                volumes: [{
                    source: "string",
                    target: "string",
                    readOnly: false,
                }],
                volumesFrom: ["string"],
                workingDir: "string",
            },
        },
        aws: {
            albCertificateArn: "string",
            dnsRoleArn: "string",
            privateSubnetIDs: ["string"],
            projectDomain: "string",
            publicSubnetIDs: ["string"],
            publicZoneId: "string",
            vpcID: "string",
        },
        etag: "string",
        networks: {
            string: {
                internal: false,
            },
        },
        waitForSteadyState: false,
    });
    
    type: defang-aws:Project
    properties:
        aws:
            albCertificateArn: string
            dnsRoleArn: string
            privateSubnetIDs:
                - string
            projectDomain: string
            publicSubnetIDs:
                - string
            publicZoneId: string
            vpcID: string
        etag: string
        networks:
            string:
                internal: false
        services:
            string:
                autoscaling: false
                build:
                    args:
                        string: string
                    cacheFrom:
                        - string
                    cacheTo:
                        - string
                    context: string
                    dockerfile: string
                    platforms:
                        - string
                    shmSize: string
                    target: string
                command:
                    - string
                containerName: string
                dependsOn:
                    string:
                        condition: string
                        required: false
                deploy:
                    replicas: 0
                    resources:
                        reservations:
                            cpus: 0
                            memory: string
                domainName: string
                entrypoint:
                    - string
                environment:
                    string: string
                healthCheck:
                    intervalSeconds: 0
                    retries: 0
                    startPeriodSeconds: 0
                    test:
                        - string
                    timeoutSeconds: 0
                image: string
                llm: {}
                networkMode: string
                networks:
                    string:
                        aliases:
                            - string
                platform: string
                policies:
                    - string
                ports:
                    - appProtocol: string
                      listener: string
                      mode: string
                      protocol: string
                      target: 0
                postgres:
                    allowDowntime: false
                    fromSnapshot: string
                redis:
                    allowDowntime: false
                    fromSnapshot: string
                restart: string
                stopGracePeriod: string
                volumes:
                    - readOnly: false
                      source: string
                      target: string
                volumesFrom:
                    - string
                workingDir: string
        waitForSteadyState: false
    

    Project 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 Project resource accepts the following input properties:

    Services Dictionary<string, DefangLabs.DefangAws.Compose.Inputs.ServiceConfigArgs>
    Aws DefangLabs.DefangAws.Inputs.AWSConfig
    Etag string
    Networks Dictionary<string, DefangLabs.DefangAws.Compose.Inputs.NetworkConfigArgs>
    WaitForSteadyState bool
    Services ServiceConfigArgs
    Aws AWSConfigArgs
    Etag string
    Networks NetworkConfigArgs
    WaitForSteadyState bool
    services map(object)
    aws object
    etag string
    networks map(object)
    wait_for_steady_state bool
    services Map<String,ServiceConfigArgs>
    aws AWSConfig
    etag String
    networks Map<String,NetworkConfigArgs>
    waitForSteadyState Boolean
    services {[key: string]: composeServiceConfigArgs}
    aws AWSConfig
    etag string
    networks {[key: string]: composeNetworkConfigArgs}
    waitForSteadyState boolean
    services Mapping[str, compose.ServiceConfigArgs]
    aws AWSConfigArgs
    etag str
    networks Mapping[str, compose.NetworkConfigArgs]
    wait_for_steady_state bool
    services Map<Property Map>
    aws Property Map
    etag String
    networks Map<Property Map>
    waitForSteadyState Boolean

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Project resource produces the following output properties:

    ClusterName string
    Endpoints Dictionary<string, string>
    LogGroupName string
    ServiceNames Dictionary<string, string>
    TaskRoleArns Dictionary<string, string>
    LoadBalancerArn string
    LoadBalancerDns string
    ClusterName string
    Endpoints map[string]string
    LogGroupName string
    ServiceNames map[string]string
    TaskRoleArns map[string]string
    LoadBalancerArn string
    LoadBalancerDns string
    cluster_name string
    endpoints map(string)
    log_group_name string
    service_names map(string)
    task_role_arns map(string)
    load_balancer_arn string
    load_balancer_dns string
    clusterName String
    endpoints Map<String,String>
    logGroupName String
    serviceNames Map<String,String>
    taskRoleArns Map<String,String>
    loadBalancerArn String
    loadBalancerDns String
    clusterName string
    endpoints {[key: string]: string}
    logGroupName string
    serviceNames {[key: string]: string}
    taskRoleArns {[key: string]: string}
    loadBalancerArn string
    loadBalancerDns string
    cluster_name str
    endpoints Mapping[str, str]
    log_group_name str
    service_names Mapping[str, str]
    task_role_arns Mapping[str, str]
    load_balancer_arn str
    load_balancer_dns str
    clusterName String
    endpoints Map<String>
    logGroupName String
    serviceNames Map<String>
    taskRoleArns Map<String>
    loadBalancerArn String
    loadBalancerDns String

    Supporting Types

    AWSConfig, AWSConfigArgs

    AlbCertificateArn string
    DnsRoleArn string
    PrivateSubnetIDs List<string>
    ProjectDomain string
    PublicSubnetIDs List<string>
    PublicZoneId string
    VpcID string
    albCertificateArn String
    dnsRoleArn String
    privateSubnetIDs List<String>
    projectDomain String
    publicSubnetIDs List<String>
    publicZoneId String
    vpcID String
    albCertificateArn String
    dnsRoleArn String
    privateSubnetIDs List<String>
    projectDomain String
    publicSubnetIDs List<String>
    publicZoneId String
    vpcID String

    BuildConfig, BuildConfigArgs

    Context string
    Args Dictionary<string, string>
    CacheFrom List<string>
    CacheTo List<string>
    Dockerfile string
    Platforms List<string>
    ShmSize string
    Target string
    Context string
    Args map[string]string
    CacheFrom []string
    CacheTo []string
    Dockerfile string
    Platforms []string
    ShmSize string
    Target string
    context string
    args map(string)
    cache_from list(string)
    cache_to list(string)
    dockerfile string
    platforms list(string)
    shm_size string
    target string
    context String
    args Map<String,String>
    cacheFrom List<String>
    cacheTo List<String>
    dockerfile String
    platforms List<String>
    shmSize String
    target String
    context string
    args {[key: string]: string}
    cacheFrom string[]
    cacheTo string[]
    dockerfile string
    platforms string[]
    shmSize string
    target string
    context str
    args Mapping[str, str]
    cache_from Sequence[str]
    cache_to Sequence[str]
    dockerfile str
    platforms Sequence[str]
    shm_size str
    target str
    context String
    args Map<String>
    cacheFrom List<String>
    cacheTo List<String>
    dockerfile String
    platforms List<String>
    shmSize String
    target String

    DeployConfig, DeployConfigArgs

    HealthCheckConfig, HealthCheckConfigArgs

    intervalSeconds Integer
    retries Integer
    startPeriodSeconds Integer
    test List<String>
    timeoutSeconds Integer
    intervalSeconds Number
    retries Number
    startPeriodSeconds Number
    test List<String>
    timeoutSeconds Number

    NetworkConfig, NetworkConfigArgs

    internal Boolean
    internal boolean
    internal Boolean

    PostgresConfig, PostgresConfigArgs

    RedisConfig, RedisConfigArgs

    ResourceConfig, ResourceConfigArgs

    Cpus double
    Memory string
    Cpus float64
    Memory string
    cpus number
    memory string
    cpus Double
    memory String
    cpus number
    memory string
    cpus float
    memory str
    cpus Number
    memory String

    Resources, ResourcesArgs

    ServiceConfig, ServiceConfigArgs

    Autoscaling bool
    Build DefangLabs.DefangAws.Compose.Inputs.BuildConfig
    Command List<string>
    ContainerName string
    DependsOn Dictionary<string, DefangLabs.DefangAws.Compose.Inputs.ServiceDependency>
    Deploy DefangLabs.DefangAws.Compose.Inputs.DeployConfig
    DomainName string
    Entrypoint List<string>
    Environment Dictionary<string, string>
    HealthCheck DefangLabs.DefangAws.Compose.Inputs.HealthCheckConfig
    Image string
    Llm DefangLabs.DefangAws.Compose.Inputs.LlmConfig
    NetworkMode string
    Networks Dictionary<string, DefangLabs.DefangAws.Compose.Inputs.ServiceNetworkConfig>
    Platform string
    Policies List<string>
    Ports List<DefangLabs.DefangAws.Compose.Inputs.ServicePortConfig>
    Postgres DefangLabs.DefangAws.Compose.Inputs.PostgresConfig
    Redis DefangLabs.DefangAws.Compose.Inputs.RedisConfig
    Restart string
    StopGracePeriod string
    Volumes List<DefangLabs.DefangAws.Compose.Inputs.ServiceVolumeConfig>
    VolumesFrom List<string>
    WorkingDir string

    ServiceDependency, ServiceDependencyArgs

    Condition string
    Required bool
    Condition string
    Required bool
    condition string
    required bool
    condition String
    required Boolean
    condition string
    required boolean
    condition String
    required Boolean

    ServiceNetworkConfig, ServiceNetworkConfigArgs

    Aliases List<string>
    Aliases []string
    aliases list(string)
    aliases List<String>
    aliases string[]
    aliases Sequence[str]
    aliases List<String>

    ServicePortConfig, ServicePortConfigArgs

    Target int
    AppProtocol string
    Listener string
    Mode string
    Protocol string
    Target int
    AppProtocol string
    Listener string
    Mode string
    Protocol string
    target number
    app_protocol string
    listener string
    mode string
    protocol string
    target Integer
    appProtocol String
    listener String
    mode String
    protocol String
    target number
    appProtocol string
    listener string
    mode string
    protocol string
    target Number
    appProtocol String
    listener String
    mode String
    protocol String

    ServiceVolumeConfig, ServiceVolumeConfigArgs

    Source string
    Target string
    ReadOnly bool
    Source string
    Target string
    ReadOnly bool
    source string
    target string
    read_only bool
    source String
    target String
    readOnly Boolean
    source string
    target string
    readOnly boolean
    source String
    target String
    readOnly Boolean

    Package Details

    Repository
    defang-aws DefangLabs/pulumi-defang
    License
    Apache-2.0
    defang-aws logo
    Viewing docs for Defang AWS v2.4.1
    published on Saturday, Jul 11, 2026 by Defang

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial