patternterraformMinor
Terraform - aws_security_group_rule doesn't support import
Viewed 0 times
aws_security_group_ruledoesnsupportimportterraform
Problem
I'm having a strange problem when trying to import an
I'm running the latest version of TF (0.11.11)
For example:
Returns
However, looking at the documentation, this does seem possible?
https://www.terraform.io/docs/providers/aws/r/security_group_rule.html
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-sourcesgidReturns
resource aws_security_group_rule doesn't support importHowever, looking at the documentation, this does seem possible?
https://www.terraform.io/docs/providers/aws/r/security_group_rule.html
Solution
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
Context
StackExchange DevOps Q#6033, answer score: 1
Revisions (0)
No revisions yet.