AWS Fundamentals Logo
AWS Fundamentals
AWS::CodeDeploy::DeploymentGroup

CodeDeploy DeploymentGroup

Resource type definition for AWS::CodeDeploy::DeploymentGroup

Properties

20 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
ApplicationName
string
RequiredCreate-only
ServiceRoleArn
string
Required
AlarmConfiguration
AlarmConfiguration
AutoRollbackConfiguration
AutoRollbackConfiguration
AutoScalingGroups
Array<string>
BlueGreenDeploymentConfiguration
BlueGreenDeploymentConfiguration
Deployment
Deployment
DeploymentConfigName
string
DeploymentGroupName
string
Create-only
DeploymentStyle
DeploymentStyle
Ec2TagFilters
Array<EC2TagFilter>
Ec2TagSet
EC2TagSet
ECSServices
Array<ECSService>
LoadBalancerInfo
LoadBalancerInfo
OnPremisesInstanceTagFilters
Array<TagFilter>
OnPremisesTagSet
OnPremisesTagSet
OutdatedInstancesStrategy
string
Tags
Array<Tag>
TerminationHookEnabled
boolean
TriggerConfigurations
Array<TriggerConfig>

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::CodeDeploy::DeploymentGroup

Resources:
  MyResource:
    Type: AWS::CodeDeploy::DeploymentGroup
    Properties:
      ApplicationName: "my-applicationname"
      ServiceRoleArn: "arn:aws:service:region:account:resource"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

codedeploy:CreateDeploymentGroupcodedeploy:CreateDeploymentcodedeploy:GetDeploymentcodedeploy:GetDeploymentConfigcodedeploy:GetApplicationRevisioncodedeploy:ListDeploymentscodedeploy:RegisterApplicationRevisioncodedeploy:RegisterOnPremisesInstance

read

codedeploy:GetDeploymentGroupcodedeploy:ListTagsForResourcecodedeploy:ListDeploymentscodedeploy:GetDeployment

update

codedeploy:UpdateDeploymentGroupcodedeploy:TagResourcecodedeploy:UntagResourcecodedeploy:GetDeploymentcodedeploy:CreateDeploymentcodedeploy:GetDeploymentConfigcodedeploy:GetApplicationRevisioncodedeploy:StopDeployment

delete

codedeploy:DeleteDeploymentGroupcodedeploy:GetDeploymentGroup

list

codedeploy:ListDeploymentGroups

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceCodeDeploy
Properties20
Required2
TaggingSupported
Primary IDApplicationName

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

DeploymentGroupNameApplicationName

External Links