Terraform-provider-aws: terraform import does not work for AWS Security Group

Created on 13 Jun 2017  路  2Comments  路  Source: hashicorp/terraform-provider-aws

_This issue was originally opened by @nateww as hashicorp/terraform#12252. It was migrated here as part of the provider split. The original body of the issue is below._


In the process of moving from a flat setup (no modules), we migrated out project to a more modularized setup.

For example

flat:
- etcd_sg.tf
- etcd.tf
...
modular:
- etcd_nodes.tf
- modules:
  - etcd:
    main.tf
    etcd_sg.tf
    outputs.tf



md5-fabe20ce9673f51222f18d96bbdb648e



terraform state rm old-location aws-id



md5-32e0761ffd6a296bcd59f2353afe959a



terraform import new-location aws-id



md5-c0a59d2682546e15949a0973ba4926da



terraform state list

Steps to Reproduce

See below for a GitHub project that demonstrates the issue

References

Github project containing a simple setup to demonstrate the issue

https://github.com/nateww/terraform_securitygroup_example

bug servicec2

Most helpful comment

Still broken in v0.12.18

All 2 comments

I'm experiencing this in 0.9.6.
Does this issue persist to latest, as I intend to migrate to 0.11.x in a few weeks?

Still broken in v0.12.18

Was this page helpful?
0 / 5 - 0 ratings