Tags » Cloudformation

Deploying an Active Directory Forest using AWS CloudFormation


Wow, it is amazing how time flies. Almost two years ago, I wrote a set of blogs that showed how one can use Azure Resource Manager (ARM) templates and Desired State Configuration (DSC) scripts to deploy an Active Directory Forest automatically. 1,096 more words


AWS CloudFormation Script for S3 bucket creation in json format

Step 1: Setup AWS CLI


Read CloudFormation Template Basics

Step 2: Template Creation

Create s3_bucket_creation.json as follows:

  "AWSTemplateFormatVersion": "2010-09-09",
  "Description": "Template to create a S3 bucket",
  "Parameters": {
    "S3BucketName": {
      "Description": "S3 BucketName",
      "Type": "String"
    "S3BucketUsers": {
      "Description": "Comma separated names of S3 Bucket Users",
      "Type": "CommaDelimitedList"
  "Resources": {
    "S3Bucket": {
      "Type": "AWS::S3::Bucket",
      "Properties": {
        "AccessControl": "Private",
        "BucketName": {
          "Ref": "S3BucketName"
        "VersioningConfiguration": {
          "Status" : "Enabled"
    "S3BucketPolicy": {
      "Type": "AWS::S3::BucketPolicy",
      "Properties": {
        "Bucket" : { "Ref": "S3Bucket" },
        "PolicyDocument" : {
              "Principal": {
                "AWS" : {"Ref": "S3BucketUsers"}
              "Resource": { "Fn::Join" : ["", ["arn:aws:s3:::", { "Ref" : "S3Bucket" } , "/*" ]]}
  "Outputs": {
      "Description": "S3 bucket name",
      "Value" : { "Ref" : "S3BucketName"}
    "S3BucketArn" :{
      "Description" : "S3 Bucket Arn",
      "Value" : {
        "Fn::GetAtt": [

… 141 more words

Amazon VPC and CloudFormation

AWS CloudFormation

CloudFormation provides a simpler way to manage, create and update the resources in an orderly manner. It gives a provision to create our own templates that can manage the resources and dependencies of the application. 680 more words

Content Delivery

6 tips for AWS Well-Architected Cost Optimisation + Serverless bonuses

Here are 6 tips or tools for improving your Cost Optimisation strategies for AWS. Grab the free tools below to get a deeper cost insight on your account. 385 more words


Securing IAM Policies

Since the beginning, writing IAM policies with the minimum necessary permissions has been hard. Some services don’t have resource-level permissions (you have to grant to… 372 more words


CloudFormation - Best Practices

AWS Resource Association with CloudFormation Stacks

AWS Cloudformation needs to be used extensively to create, manage and update AWS Resources within Stacksets. Each Stackset invokes a top-level CloudFormation Stack that hierarchically invokes child CloudFormation Stacks. 846 more words