cloudposse-archives / terraform-aws-jenkins

Terraform module to build Docker image with Jenkins, save it to an ECR repo, and deploy to Elastic Beanstalk running Docker stack
https://cloudposse.com/accelerate
Apache License 2.0
256 stars 152 forks source link

aws_cloudformation_stack.datapipeline.outputs" does not have any elements #26

Closed Ethor-ian closed 6 years ago

Ethor-ian commented 6 years ago

first of all, awesome work.

I am not sure that this is a bug or a misconfiguration. I am using your example "new vpc, new subnets" and configured the datapipeline config adequately however I keep getting this error

`Error: Error refreshing state: 1 error(s) occurred:

${aws_cloudformation_stack.datapipeline.outputs["DataPipelineId"]}`

Ethor-ian commented 6 years ago

it works.

it something fails to be created initially, everything needs to be deleted manually to avoid any conflict

aknysh commented 6 years ago

@jimgen yea, we noticed that too. after a failed deployment, the created CodePipeline resources must be deleted manually - Terraform can't delete it. You had a failed deployment, and the two pipelines needed to be manually deleted and then re-created from TF. thanks a lot for testing!