» 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

The following arguments are supported:

  • name - (Required) The name of the application.
  • compute_platform - (Optional) The compute platform can either be ECS, Lambda, or Server. Default is Server.

» Attribute Reference

The following arguments are exported:

  • id - Amazon's assigned ID for the application.
  • name - The application's name.

» Import

CodeDeploy Applications can be imported using the name, e.g.

$ terraform import aws_codedeploy_app.example my-application