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 Reply

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

Please turn AdBlock off
Floating Social Media Icons by Acurax Wordpress Designers

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube