Difference between revisions of "AWS Security group (SG)"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
* <code>[[aws ec2 authorize-security-group-ingress]]</code> | * <code>[[aws ec2 authorize-security-group-ingress]]</code> | ||
* <code>[[aws ec2 authorize-security-group-egress]]</code> | * <code>[[aws ec2 authorize-security-group-egress]]</code> | ||
− | + | * <code>aws ec2 describe-instance-attribute [[--instance-id]] i-00b1cf99a8xxx --attribute [[groupSet]]</code> | |
− | + | * <code>[[aws ec2 describe-instances]] | grep "[[GroupName]]|GroupId"</code> | |
− | |||
* [[Terraform resource]]: <code>[[Terraform resource: aws security group|aws_security_group]], [[aws_security_group_rule]]</code> | * [[Terraform resource]]: <code>[[Terraform resource: aws security group|aws_security_group]], [[aws_security_group_rule]]</code> |
Revision as of 12:01, 27 January 2023
Security groups are stateful firewalls
Contents
AWS CLI
aws ec2 create-security-group
aws ec2 describe-security-groups
aws rds describe-db-security-groups
aws ec2 delete-security-group
aws ec2 authorize-security-group-ingress
aws ec2 authorize-security-group-egress
aws ec2 describe-instance-attribute --instance-id i-00b1cf99a8xxx --attribute groupSet
aws ec2 describe-instances | grep "GroupName|GroupId"
Activities
Related
- CidrIp
cidr_blocks
- Network ACL
- Security groups for your Application Load Balancer
aws_security_group
See also
- AWS Security group (SG):
aws ec2 [ create-security-group | describe-security-groups | delete-security-group | authorize-security-group-ingress | authorize-security-group-egress ]
- Security Group, DBSecurityGroup,
aws_security_group, aws_security_group_rule, VpcSecurityGroupId
,AWS::EC2::SecurityGroup
, Security groups for Pods in EKS
Advertising: