Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't import security_group_rule #2895

Closed
pauldraper opened this issue Jan 8, 2018 · 4 comments · Fixed by #6027
Closed

Can't import security_group_rule #2895

pauldraper opened this issue Jan 8, 2018 · 4 comments · Fixed by #6027
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/ec2 Issues and PRs that pertain to the ec2 service.
Milestone

Comments

@pauldraper
Copy link

This is an issue without a proposed solution.

Importing security_group_rule resources is unsupported.

This is particularly true if the way you want to import the rules (e.g. put some cidrs in a module, and others elsewhere) isn't the default terraform way.

I wind up writing go code by hand to mimic ipPermissionIDHash, and inserting that into the state by hand.

It would be nice if there were an easier way to import these resources.

@radeksimko radeksimko added the enhancement Requests to existing resources that expand the functionality or scope. label Jan 16, 2018
@radeksimko radeksimko added the service/ec2 Issues and PRs that pertain to the ec2 service. label Jan 28, 2018
@YakDriver
Copy link
Member

YakDriver commented Sep 29, 2018

@pauldraper Not sure if you're still looking for this functionality but I've submitted a PR to provide it, #6027.

@bflad
Copy link
Contributor

bflad commented Oct 8, 2018

Support for importing aws_security_group_rule resources has been merged and will release with version 1.40.0 of the AWS provider, likely middle of this week. 👍

@bflad
Copy link
Contributor

bflad commented Oct 10, 2018

This has been released in version 1.40.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@ghost
Copy link

ghost commented Apr 2, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
4 participants