hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.7k stars 9.07k forks source link

[Enhancement]: New Resource aws_codedeploy_deployment #28918

Open breathingdust opened 1 year ago

breathingdust commented 1 year ago

Description

This would exist as more of an operational resource, as no ongoing management of the deployment would be possible. It may be useful to practioners to allow the creation of an app revision via Terraform.

Affected Resource(s) and/or Data Source(s)

Potential Terraform Configuration

resource "aws_codedeploy_deployment" "example" {
    application_name                 =  "name"
    auto_rollback_configuration      {
       enabled = true
       events = ["event"]
    }
    deployment_config_name           = ""
    deployment_group_name            = ""
    description                      = ""
    file_exists_behavior             = ""
    ignore_application_stop_failures = true
    override_alarm_configuration     {
        alarm {
            name = ""
        }
        enabled = true
        ignore_poll_alarm_failure   = false
    }
    revision {
        app_spec_content {
            content                 = ""
            sha256                  = ""
        }
  etc....
}

References

Would you like to implement a fix?

None

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

ikorchynskyi commented 1 year ago

It would be great addition to bluegreen ECS deployments. As of now, to achieve proper deployment flow w/o provisioners - I've settled on a temporary solution with a tiny custom provider which is dedicated only to deployment creation: https://github.com/ikorchynskyi/terraform-provider-codedeploy