我想将一个安全组从弗吉尼亚州复制到俄勒冈州,但亚马逊CLI没有这样的东西 .

有没有办法创建一个EC2安全组,如下所示?

  • describe-db-security-groups --db-security-group-name secgroup-virginia >> sg.txt

  • create-db-security-group --db-security-group-name secgroup-oregon --region us-west-2 sg.txt

我可以在安全命令中使用安全组的JSON输出作为输入吗?