Groups
Groups
Sign in
Groups
Groups
Terraform
Conversations
About
Send feedback
Help
how to append new rules in aws security group using terraform
1,263 views
Skip to first unread message
Balaji Ramachandran
unread,
Jul 30, 2018, 7:40:52 AM
7/30/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Terraform
As stated by terraform that we can modify the existing settings without destroying the running config.
I am trying to add he new security rules into the existing security group and also want to modify the existing ingress or egree rule.
How to do that?
Best Regards
Bala
Clint Shryock
unread,
Jul 31, 2018, 11:27:42 AM
7/31/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Terraform
I believe it's very common to use a combination of aws_security_group and aws_security_group_rule resources:
-
https://www.terraform.io/docs/providers/aws/r/security_group.html
-
https://www.terraform.io/docs/providers/aws/r/security_group_rule.html
After creating the group, you can add/remove individual rules with configuration. Note that the aws_security_group_rule resource is incompatible with listing rules in-line in the configuration of aws_security_group.
Cheers,
Clint
Reply all
Reply to author
Forward
0 new messages