AWS Classroom notes 27/Dec/2023

AWS Cloudformation contd

  • linked templates or nested templates Refer Here
  • For complex infrastructures Using nested stack is recommended Refer Here
  • Terraform modules are much flexible compared to cf nested stacks
  • count doesnot exist in cloud formation Refer Here
  • Can the resources be imported => yes (refer classroom video)

Exercise:

  • Create a dynamo db table with Partition key LockID in cloud formation.
    • with name of table
  • Create an s3 bucket
    • with name of bucket
  • Call the template as backend.json
{
    "AWSTemplateFormatVersion": "2010-09-09",
    "Parameters": {
    },
    "Resources": {

        "dbtable": {
           "Type": "AWS::DynamoDB::Table",
           "Properties": {
              "AttributeDefinitions": [ 

               ],
              "GlobalSecondaryIndexes": [  ],
              "KeySchema": [ 
                {
                    "AttributeName": "LockID",
                    "KeyType": "HASH"
                }
               ],
              "TableName": "qtcfdec23"
           }
        },

        "s3Bucket": {
            "Type": "AWS::S3::Bucket",
            "Properties": {
                "AccessControl": "Private",
                "BucketName": "qtcfdec23"

            }
        }


    }

}
  • Findout a way to call cloudformation template from terraform. Refer Here

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Network Integration by Acurax Social Media Branding Company
Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube