CodeDeploy

Definition

AWS CodeDeploy is a fully managed deployment service that automates software deployments to a variety of compute services such as Amazon EC2, AWS Lambda, and on-premises servers. It enables developers to rapidly release new features, helps avoid downtime during application deployment, and handles the complexity of updating applications. CodeDeploy can be integrated with other AWS services and third-party tools, providing a flexible and scalable deployment solution.

Secure Settings Example

Resources:
  MyDeploymentGroup:
    Type: AWS::CodeDeploy::DeploymentGroup
    Properties:
      ApplicationName: MyApplication
      DeploymentGroupName: MyDeploymentGroup
      ServiceRoleArn: arn:aws:iam::123456789012:role/CodeDeployServiceRole
      DeploymentConfigName: CodeDeployDefault.OneAtATime
      AutoRollbackConfiguration:
        Enabled: true
        Events:
          - DEPLOYMENT_FAILURE
      AlarmConfiguration:
        Enabled: true
        Alarms:
          - Name: MyAlarmName

Insecure Settings Example

Resources:
  MyDeploymentGroup:
    Type: AWS::CodeDeploy::DeploymentGroup
    Properties:
      ApplicationName: MyApplication
      DeploymentGroupName: MyDeploymentGroup
      ServiceRoleArn: arn:aws:iam::123456789012:role/CodeDeployServiceRole
      DeploymentConfigName: CodeDeployDefault.AllAtOnce
      AutoRollbackConfiguration:
        Enabled: false