How to add description to the aws security group ingress rule?

0

aws ec2 authorize-security-group-ingress
--group-id $security_group_id
--protocol tcp
--port 3306
--cidr $ip_to_add/32
--description $description

To see help text, you can run:

aws help aws <command> help aws <command> <subcommand> help

usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]

Unknown options: --description, CICD_20231215085741 Security group configuration completed.

DD-Boom
질문됨 5달 전287회 조회
1개 답변
1

Hello.

Looking at the AWS CLI documentation, there is no "--description" option.
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/authorize-security-group-ingress.html

So you need to use a command like the following.

aws ec2 authorize-security-group-ingress --group-id sg-1111111111 --ip-permissions FromPort=3306,IpProtocol=tcp,IpRanges="[{"CidrIp"="1.1.1.1/32","Description"="test"}]",ToPort=3306
profile picture
전문가
답변함 5달 전
profile pictureAWS
전문가
iBehr
검토됨 5달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠