-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Description
I'm using the very new AWS::S3::Bucket
property PublicAccessBlockConfiguration
I also have the latest AWS SDK and aws-cli
version: aws-cli/1.16.60 Python/3.7.1 Darwin/16.7.0 botocore/1.12.50
My template looks like:
AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31
Resources:
Bucket:
Type: AWS::S3::Bucket
Properties:
PublicAccessBlockConfiguration:
BlockPublicAcls : true
BlockPublicPolicy : true
IgnorePublicAcls : true
RestrictPublicBuckets : true
And I'm having the following error:
Failed to create the changeset:
Waiter ChangeSetCreateComplete failed:
Waiter encountered a terminal failure state Status: FAILED.
Reason: Transform AWS::Serverless-2016-10-31 failed with:
Invalid Serverless Application Specification document.
Number of errors found: 1.
Resource with id [Bucket] is invalid.
property PublicAccessBlockConfiguration not defined for resource of type AWS::S3::Bucket
This looks like an AWS::Serverless-2016-10-31
transform error? Or am I wrong? 🤔
Edit: I've updated many buckets with PublicAccessBlockConfiguration
and everything looks fine except when the CloudFormation template uses Transform: AWS::Serverless-2016-10-31
and the S3 is a CloudFormation dependency 🤔
Note also than I'm doing aws cloudformation package
prior to aws cloudformation deploy