0
votes

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
1

1 Answers

1
votes

Type: AWS::S3::Bucket does not have a property called VpcConfiguration.

I think you meant AWS::S3::AccessPoint which indeed has VpcConfiguration.