Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support codedeploy import app #1473

Closed
agutierrezl opened this issue Aug 22, 2017 · 4 comments · Fixed by #6025
Closed

Support codedeploy import app #1473

agutierrezl opened this issue Aug 22, 2017 · 4 comments · Fixed by #6025
Labels
enhancement Requests to existing resources that expand the functionality or scope.
Milestone

Comments

@agutierrezl
Copy link

agutierrezl commented Aug 22, 2017

Hi there,

This is a feature request. It will be nice you included support for importing code deploy apps.

Terraform Version

$ terraform -v
Terraform v0.10.2

Affected Resource(s)

Please list the resources as a list, for example:

  • aws_codedeploy_app
  • aws_codedeploy_deployment_group

Terraform Configuration Files

resource "aws_codedeploy_app" "app" {
  name = "${var.project}"
}

resource "aws_codedeploy_deployment_group" "deployment-group" {
  app_name = "${aws_codedeploy_app.app.name}"
  deployment_group_name = "${var.project}-App"
  service_role_arn = "${aws_iam_role.codedeploy_iam_role.arn}"
  auto_rollback_configuration {
    enabled = false
  }
  autoscaling_groups = ["${aws_autoscaling_group.asg.name}"]
  deployment_config_name = "CodeDeployDefault.OneAtATime"
}

Expected Behavior

CodeDeploy app imported to the state file

Actual Behavior

aws_codedeploy_app.app: Importing from ID "aws-codedeploy-app"...
Error importing: 1 error(s) occurred:

  • aws_codedeploy_app.app (import id: aws-codedeploy-app): import aws_codedeploy_app.app (id: aws-codedeploy-app): resource aws_codedeploy_app doesn't support import

...
aws_codedeploy_deployment_group.deployment-group: Importing from ID "dg-App"...
Error importing: 1 error(s) occurred:

  • aws_codedeploy_deployment_group.deployment-group (import id: dg-App): import aws_codedeploy_deployment_group.deployment-group (id: dg-App): resource aws_codedeploy_deployment_group doesn't support import

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform import aws_codedeploy_app.app aws-codedeploy-app
  2. terraform import aws_codedeploy_deployment_group.deployment-group dg-App
@Ninir Ninir added the enhancement Requests to existing resources that expand the functionality or scope. label Aug 23, 2017
@hegyre
Copy link

hegyre commented Feb 21, 2018

Hello guys,

I'm in the same situation, still no way to import a deployment group

@bflad
Copy link
Contributor

bflad commented Sep 29, 2018

Pull request submitted: #6025

@bflad bflad added this to the v1.39.0 milestone Oct 3, 2018
@bflad
Copy link
Contributor

bflad commented Oct 3, 2018

Support for aws_codedeploy_* resource import has been merged and will release with version 1.39.0 of the AWS provider, likely later today.

@ghost
Copy link

ghost commented Apr 3, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants