Skip to content

Instantly share code, notes, and snippets.

@oscarnevarezleal
Created September 18, 2019 21:16
Show Gist options
  • Save oscarnevarezleal/c23ef9e409de44b5dc2987a4e0cfbe3c to your computer and use it in GitHub Desktop.
Save oscarnevarezleal/c23ef9e409de44b5dc2987a4e0cfbe3c to your computer and use it in GitHub Desktop.
{
"AWSTemplateFormatVersion": "2010-09-09",
"Metadata": {
"AWS::CloudFormation::Designer": {
"efe6e8a5-83b8-44fe-9a93-c3ea86b57fe7": {
"size": {
"width": 60,
"height": 60
},
"position": {
"x": 200,
"y": 320
},
"z": 0,
"embeds": [],
"isassociatedwith": [
"0628f1f5-0905-46bc-bf08-da59c3847696"
]
},
"0628f1f5-0905-46bc-bf08-da59c3847696": {
"size": {
"width": 60,
"height": 60
},
"position": {
"x": -140,
"y": 370
},
"z": 0,
"embeds": []
},
"f5c8e622-1d0e-4c06-9a24-cb03a218bb9e": {
"size": {
"width": 60,
"height": 60
},
"position": {
"x": -140,
"y": 260
},
"z": 0,
"embeds": [],
"dependson": [
"efe6e8a5-83b8-44fe-9a93-c3ea86b57fe7"
]
},
"7be21d16-f511-4bc1-a691-848763d83723": {
"size": {
"width": 60,
"height": 60
},
"position": {
"x": -50,
"y": 260
},
"z": 0,
"embeds": []
},
"b5478863-2b93-4b1a-9d66-e9742c6d681a": {
"size": {
"width": 60,
"height": 60
},
"position": {
"x": 450,
"y": 430
},
"z": 0,
"embeds": [],
"isassociatedwith": [
"efe6e8a5-83b8-44fe-9a93-c3ea86b57fe7"
]
},
"07e3b176-f438-4aab-8900-d094bdab04ed": {
"size": {
"width": 60,
"height": 60
},
"position": {
"x": 450,
"y": 270
},
"z": 0,
"embeds": [],
"isassociatedwith": [
"efe6e8a5-83b8-44fe-9a93-c3ea86b57fe7"
]
},
"c4ac05a7-14ce-4a16-9061-ccccf8070d4c": {
"size": {
"width": 60,
"height": 60
},
"position": {
"x": 70,
"y": 430
},
"z": 0,
"embeds": [],
"isassociatedwith": [
"efe6e8a5-83b8-44fe-9a93-c3ea86b57fe7"
]
}
}
},
"Resources": {
"AuroraMasterDB": {
"Type": "AWS::RDS::DBInstance",
"Properties": {
"Engine": "aurora",
"AllocatedStorage": "100",
"DBInstanceClass": "db.t3.small",
"DBName": "Lub",
"MasterUsername": "userdb",
"MasterUserPassword": "pwd32940923840928",
"Iops": "100",
"DBSecurityGroups": [
{
"Ref": "DbSecurityGroup"
}
]
},
"Metadata": {
"AWS::CloudFormation::Designer": {
"id": "efe6e8a5-83b8-44fe-9a93-c3ea86b57fe7"
}
}
},
"DbSecurityGroup": {
"Type": "AWS::RDS::DBSecurityGroup",
"Properties": {
"DBSecurityGroupIngress": [
{
"CIDRIP": "0.0.0.0/0"
}
],
"GroupDescription": "database access"
},
"Metadata": {
"AWS::CloudFormation::Designer": {
"id": "0628f1f5-0905-46bc-bf08-da59c3847696"
}
}
},
"ElasticCache1": {
"Type": "AWS::ElastiCache::CacheCluster",
"Properties": {
"AutoMinorVersionUpgrade": "true",
"Engine": "memcached",
"CacheNodeType": "cache.t2.micro",
"NumCacheNodes": "1"
},
"Metadata": {
"AWS::CloudFormation::Designer": {
"id": "f5c8e622-1d0e-4c06-9a24-cb03a218bb9e"
}
},
"DependsOn": [
"AuroraMasterDB"
]
},
"ECSG27O5I": {
"Type": "AWS::ElastiCache::SecurityGroup",
"Properties": {
"Description": "ElastiCache SecurityGroup"
},
"Metadata": {
"AWS::CloudFormation::Designer": {
"id": "7be21d16-f511-4bc1-a691-848763d83723"
}
}
},
"AuroraReadReplicaR": {
"Type": "AWS::RDS::DBInstance",
"Properties": {
"Engine": "aurora-mysql",
"AllocatedStorage": "100",
"SourceDBInstanceIdentifier": {
"Ref": "AuroraMasterDB"
}
},
"Metadata": {
"AWS::CloudFormation::Designer": {
"id": "b5478863-2b93-4b1a-9d66-e9742c6d681a"
}
}
},
"AuroraReadReplicaC": {
"Type": "AWS::RDS::DBInstance",
"Properties": {
"Engine": "aurora-mysql",
"AllocatedStorage": "100",
"SourceDBInstanceIdentifier": {
"Ref": "AuroraMasterDB"
}
},
"Metadata": {
"AWS::CloudFormation::Designer": {
"id": "07e3b176-f438-4aab-8900-d094bdab04ed"
}
}
},
"AuroraAZ": {
"Type": "AWS::RDS::DBInstance",
"Properties": {
"MultiAZ": "true",
"AllocatedStorage": "100",
"Engine": "aurora-mysql",
"SourceDBInstanceIdentifier": {
"Ref": "AuroraMasterDB"
}
},
"Metadata": {
"AWS::CloudFormation::Designer": {
"id": "c4ac05a7-14ce-4a16-9061-ccccf8070d4c"
}
}
}
},
"Outputs": {
"AuroraMasterDB": {
"Description": "The Main database",
"Value": {
"Ref": "AuroraMasterDB"
},
"Export": {
"Name": "AuroraMasterDB"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment