I tried deploying new s3 bucket in existing vpc using cloud formation template with the help of aws docs, but I am getting error "Encountered unsupported property VpcConfiguration." below is my yaml
Resources:
S3Bucket: Type: AWS::S3::Bucket
Properties:
AccessControl: PublicRead
Tags:
- Key: Name
Value: My Bucket
BucketName: !Ref BucketName
PublicAccessBlockConfiguration:
BlockPublicAcls: false
BlockPublicPolicy: false
IgnorePublicAcls: false
RestrictPublicBuckets: false
VpcConfiguration:
VpcId: vpc-aexxxx