Answers: <p>Did you try to import in flat setup than modular setup? It seems that in modular setup there is a bug with Terraform. <a href="https://github.com/terraform-providers/terraform-provider-aws/issues/559" rel="nofollow noreferrer">https://github.com/terraform-providers/terraform-provider-aws/issues/559</a></p>
  
Answers: CC BY-SA 4.0
Answers: 2019-01-19T08:17:12.347Z
Answers: 2019-01-19T08:17:12.347Z
Answers: deosha
Body: <p>I'm having a strange problem when trying to import an <code>aws_security_group_rule</code> into terraform.</p>
  
  <p>I'm running the latest version of TF (0.11.11)</p>
  
  <p>For example:</p>
  
  <p><code>terraform import module.ec2.aws_security_group_rule.control_elb sg-securitygroupid_ingress_tcp_8080_8080_sg-sourcesgid</code></p>
  
  <p>Returns <code>resource aws_security_group_rule doesn't support import</code></p>
  
  <p>However, looking at the documentation, this does seem possible?</p>
  
  <p><a href="https://www.terraform.io/docs/providers/aws/r/security_group_rule.html" rel="nofollow noreferrer">https://www.terraform.io/docs/providers/aws/r/security_group_rule.html</a></p>
  
Tags: <amazon-web-services><terraform>
Title: Terraform - aws_security_group_rule doesn't support import
UserDisplayName: Caledonia91
ThreadText: # Terraform - aws_security_group_rule doesn't support import
  
  (Asked by: username_0 on 2019-01-18)
  
  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?
  
  <https://www.terraform.io/docs/providers/aws/r/security_group_rule.html>
  
  **Tags:** amazon-web-services, terraform
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-01-19. Score: 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>
  
  
  ---
  
  