AWS Console - Network ACL - Inbound/Outbound Rules

0

Is there a way in which I can Export the Inbound Rules for a network ACL?? Currently everytime a new server is created on AWS, and we setup the rules we have to manually key in the inbound rules each time? sometimes they have up to 18 entries on them. Is there a way so export and import these on the console???

1개 답변
1

You can from within the console use CloudShell to get a CLI for your account. From this CLI you can use the describe network ACLs to get the current, https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-network-acls.html and then use the create-network ACL with the previously exported json to create the ACL programmatically. https://docs.aws.amazon.com/cli/latest/reference/ec2/create-network-acl.html

In all reality the console should be a last resort for implementing things. Instead I would leverage the CLI or CloudFormation for repeatable infrastructure tasks.

Here's the example for ACLs in CloudFormation: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkacl.html

profile pictureAWS
전문가
Rob_H
답변함 2년 전

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

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

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

관련 콘텐츠