terraform-aws-modules / terraform-aws-security-group

Terraform module to create AWS Security Group resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/security-group/aws
Other
562 stars 1.08k forks source link

Is there way to use the module to import a SG existent? #273

Closed weyderfs closed 1 year ago

weyderfs commented 1 year ago

Guys, I don't found in the documentation a how to import a existent security group using this module?

I have been trying execute: terragrunt import aws_security_group.this sg-xxxxxx and return success:


WARN[0019] No double-slash (//) found in source URL /terraform-aws-modules/terraform-aws-security-group.git. Relative paths in downloaded Terraform code may not work.

Import successful!

The resources that were imported are shown above. These resources are now in
your Terraform state and will henceforth be managed by Terraform.

But when I just run the terragrunt plan the outputs shows like a new resource creation...

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days

github-actions[bot] commented 1 year ago

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.