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

cloud formation stack import is not supported #1331

Closed
hashibot opened this issue Aug 3, 2017 · 1 comment · Fixed by #1432
Closed

cloud formation stack import is not supported #1331

hashibot opened this issue Aug 3, 2017 · 1 comment · Fixed by #1432
Labels
enhancement Requests to existing resources that expand the functionality or scope.

Comments

@hashibot
Copy link

hashibot commented Aug 3, 2017

This issue was originally opened by @AncientCulture as hashicorp/terraform#15721. It was migrated here as a result of the provider split. The original body of the issue is below.


Hi,

summary

It would be really nice if terraform could also import cf stacks. This would allow on one hand the best out of both worlds (tooling of tf and conditional resource creation of cf). On the other hand it would allow smoother transition from cf to tf

Terraform Version

v0.10.0

Expected Behavior

terraform import aws_cloudformation_stack.ecs_stack
should import the current state

Actual Behavior

import throws error that this feature is not supported:
resource aws_cloudformation_stack doesn't support import

Cheers,
Nils

@hashibot hashibot added the enhancement Requests to existing resources that expand the functionality or scope. label Aug 3, 2017
stack72 added a commit to stack72/terraform-provider-aws that referenced this issue Aug 16, 2017
Fixes: hashicorp#1331

```
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSCloudFormation_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSCloudFormation_ -timeout 120m
=== RUN   TestAccAWSCloudFormation_importBasic
--- PASS: TestAccAWSCloudFormation_importBasic (89.21s)
=== RUN   TestAccAWSCloudFormation_basic
--- PASS: TestAccAWSCloudFormation_basic (85.71s)
=== RUN   TestAccAWSCloudFormation_yaml
--- PASS: TestAccAWSCloudFormation_yaml (85.08s)
=== RUN   TestAccAWSCloudFormation_defaultParams
--- PASS: TestAccAWSCloudFormation_defaultParams (86.75s)
=== RUN   TestAccAWSCloudFormation_allAttributes
--- PASS: TestAccAWSCloudFormation_allAttributes (154.23s)
=== RUN   TestAccAWSCloudFormation_withParams
--- PASS: TestAccAWSCloudFormation_withParams (158.42s)
```
nbaztec pushed a commit to nbaztec/terraform-provider-aws that referenced this issue Sep 26, 2017
Fixes: hashicorp#1331

```
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSCloudFormation_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSCloudFormation_ -timeout 120m
=== RUN   TestAccAWSCloudFormation_importBasic
--- PASS: TestAccAWSCloudFormation_importBasic (89.21s)
=== RUN   TestAccAWSCloudFormation_basic
--- PASS: TestAccAWSCloudFormation_basic (85.71s)
=== RUN   TestAccAWSCloudFormation_yaml
--- PASS: TestAccAWSCloudFormation_yaml (85.08s)
=== RUN   TestAccAWSCloudFormation_defaultParams
--- PASS: TestAccAWSCloudFormation_defaultParams (86.75s)
=== RUN   TestAccAWSCloudFormation_allAttributes
--- PASS: TestAccAWSCloudFormation_allAttributes (154.23s)
=== RUN   TestAccAWSCloudFormation_withParams
--- PASS: TestAccAWSCloudFormation_withParams (158.42s)
```
@ghost
Copy link

ghost commented Apr 11, 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 11, 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.

1 participant