This argument is processed in attribute-as-blocks mode.
This argument is processed in attribute-as-blocks mode.
Amazon EC2 instances
AWS Elastic Beanstalk
Amazon Elastic MapReduce
Amazon RDS (Relational Database Service)
Amazon Redshift
Amazon ElastiCache
Amazon CloudSearch
Amazon Managed Streaming for Apache Kafka (MSK)
Elastic Load Balancing
Lambda (running in a VPC mode)
ALB, NLB, ELB, GLB
VPC Endpoints
· Security group with built-in rules as a single resource
· Security group and security group rules as separate resources that are associated to each other
resource “aws_security_group” “test_security_group” {
name = “test_security_group”
vpc_id = aws_vpc.main.id
ingress {
from_port = 0
to_port = 0
protocol = “-1”
cidr_blocks = [
“0.0.0.0/0”]
}
egress {
from_port = 0
to_port = 0
protocol = “-1”
cidr_blocks = [
“0.0.0.0/0”]
}
tags = {
Name = “test_security_group”
}
}
create-security-group
--description <value>
--group-name <value>
[--vpc-id <value>]
[--tag-specifications <value>]
[--dry-run | --no-dry-run]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
aws ec2 create-security-group —group-name MySecurityGroup —description “My security group”
aws ec2 authorize-security-group-ingress --group-id <sg_id> --protocol tcp --port 22 --cidr 10.0.0.0/8
--
Categorized by Availability, Security & Compliance and Cost