Skip to content

Commit 2ffd591

Browse files
committed
fix(ec2.py): correct typo in ImageBlockPublicAccessState from "block-all-sharing" to "block-new-sharing" to ensure proper functionality
1 parent 4766b0c commit 2ffd591

File tree

1 file changed

+1
-1
lines changed
  • src/regional/account_setup/resources

1 file changed

+1
-1
lines changed

src/regional/account_setup/resources/ec2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,6 @@ def enable_snapshot_block_public_access(self) -> None:
113113

114114
def enable_ami_block_public_access(self) -> None:
115115
try:
116-
self.client.enable_image_block_public_access(ImageBlockPublicAccessState="block-all-sharing")
116+
self.client.enable_image_block_public_access(ImageBlockPublicAccessState="block-new-sharing")
117117
except botocore.exceptions.ClientError:
118118
logger.exception(f"Unable to enable AMI block public access in {self.region_name}")

0 commit comments

Comments
 (0)