getting started with cloud formation - creating s3 bucket yaml style

 

I managed to get a good tutorial from this link here: https://catalog.workshops.aws/cfn101/en-US/basics/templates/template-and-stack


One of the easiest example, that i worked with is creating a s3 bucket. Create a yaml file, called it test.yaml.

Resources:
  S3Bucket:
    Type: AWS::S3::Bucket
    Properties:
      BucketEncryption:
        ServerSideEncryptionConfiguration:
          - ServerSideEncryptionByDefault:
              SSEAlgorithm: AES256
      BucketName: testtesttestjerwoo
      VersioningConfiguration:
        Status: Enabled

BucketName is the name that you would like to create.
If you leave it blank, then a random name will be generated for you.  

Then goto your AWS Cloud formation, create a stack, choose upload a file and upload this file. You should accept all the default and then click "Submit". 

It will create all the required aws resources for you. 


Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm