Resource: aws_codedeploy_app

Provides a CodeDeploy application to be used as a basis for deployments

Example Usage

ECS Application

resource "aws_codedeploy_app" "example" {
  compute_platform = "ECS"
  name             = "example"
}

Lambda Application

resource "aws_codedeploy_app" "example" {
  compute_platform = "Lambda"
  name             = "example"
}

Server Application

resource "aws_codedeploy_app" "example" {
  compute_platform = "Server"
  name             = "example"
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import CodeDeploy Applications using the name. For example:

import {
  to = aws_codedeploy_app.example
  id = "my-application"
}

Using terraform import, import CodeDeploy Applications using the name. For example:

% terraform import aws_codedeploy_app.example my-application