CFnテンプレートを作成してみました。 AWSTemplateFormatVersion: "2010-09-09" Parameters: RoleName: Type: String Default: InitialSetupRole-EnableS3PublicAccessBlock Resources: EnableS3PublicAccessBlock: Type: Custom::EnableS3PublicAccessBlock Properties: ServiceToken: !GetAtt "LambdaFunction.Arn" LambdaFunction: Type: AWS::Lambda::Function Properties: Role: !GetAtt "LambdaExecutionRole.Arn" Runtime: "python3.8" Hand
