From 1dec1b63c98c9888038f7e4d53825b728be10d9d Mon Sep 17 00:00:00 2001 From: lavenderguitar Date: Tue, 25 Apr 2023 14:31:46 -0400 Subject: [PATCH] Add script to copy security groups across accounts --- copy_security_groups.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copy_security_groups.py b/copy_security_groups.py index 4b2fb6b..035fe7d 100644 --- a/copy_security_groups.py +++ b/copy_security_groups.py @@ -34,4 +34,4 @@ for ip_permission in response['SecurityGroups'][0]['IpPermissionsEgress']: destination_ec2.authorize_security_group_egress(GroupId=new_security_group['GroupId'], IpPermissions=[ip_permission]) -print("Security group copied successfully!") +print(f"Security group copied successfully! New security group ID: {new_security_group['GroupId']}")