title: Cloudformation: API: s3:CreateBucket Access Denied
body: <p>I am getting </p>
  
  <blockquote>
    <p>API: s3:CreateBucket Access Denied</p>
  </blockquote>
  
  <p>in CloudFormation template, but when I try the same code to create the S3 bucket, in another barebones template, it works</p>
  
  <pre><code>AWSTemplateFormatVersion : '2010-09-09'
  Transform: AWS::Serverless-2016-10-31
  Description: 'Testing'
  
  Parameters:
    TagCostCenter:
      Type: String
    TagDeveloper:
      Type: String
    TagProject:
      Type: String
  
  Resources:
    S3Artifacts:
      Type: AWS::S3::Bucket
      Properties:
        BucketName: !Sub ${AWS::StackName}-artifacts
        AccessControl: Private
        Tags:
          - Key: Cost Center
            Value: !Ref TagCostCenter
          - Key: Developer
            Value: !Ref TagDeveloper
          - Key: Project
            Value: !Ref TagProject
  </code></pre>
  
  <p>What is wrong? The stack used to work, all I did was add in the S3 bucket</p>