Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 669 Bytes

File metadata and controls

39 lines (24 loc) · 669 Bytes

Ec2 Security Groups

An AWS CLI tutorial that demonstrates Ec2 operations.

Running

bash ec2-security-groups.sh

To auto-run with cleanup:

echo 'y' | bash ec2-security-groups.sh

What it does

  1. Creating security group: $SG_NAME
  2. Adding inbound rules
  3. Describing rules
  4. Adding a tag
  5. Listing security groups

Resources created

  • Security Group
  • Tags

The script prompts you to clean up resources when it finishes.

Cost

Free tier eligible for most operations. Clean up resources after use to avoid charges.

Related docs