I'm having a strange problem when trying to import an aws_security_group_rule into terraform.

I'm running the latest version of TF (0.11.11)

For example:

terraform import module.ec2.aws_security_group_rule.control_elb sg-securitygroupid_ingress_tcp_8080_8080_sg-sourcesgid

Returns resource aws_security_group_rule doesn't support import

However, looking at the documentation, this does seem possible?


1 Answer 1


Did you try to import in flat setup than modular setup? It seems that in modular setup there is a bug with Terraform. https://github.com/terraform-providers/terraform-provider-aws/issues/559

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.