Created
April 26, 2018 19:38
-
-
Save ivanbojer/3d499261ba541f9333d8514deb3c6f6e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Install Kali linux in the existing VPC / subnet", | |
"Parameters": { | |
"ServerKeyName": { | |
"Description": "SSH Key", | |
"Type": "AWS::EC2::KeyPair::KeyName" | |
}, | |
"PublicSubnet": { | |
"Description": "Subnet", | |
"Type": "AWS::EC2::Subnet::Id" | |
}, | |
"securityGroup": { | |
"Description": "Security Group", | |
"Type": "AWS::EC2::SecurityGroup::Id" | |
} | |
}, | |
"Mappings": { | |
"KaliRegionMap" : { | |
"ap-south-1" : {"AMI": "ami-0d580762" }, | |
"eu-west-3" : {"AMI": "ami-8166d0fc" }, | |
"eu-west-2" : {"AMI": "ami-f31df994" }, | |
"eu-west-1" : {"AMI": "ami-ba3c79c3" }, | |
"ap-northeast-2" : {"AMI": "ami-096ec367" }, | |
"ap-northeast-1" : {"AMI": "ami-4b13552d" }, | |
"sa-east-1" : {"AMI": "ami-8e1e55e2" }, | |
"ca-central-1" : {"AMI": "ami-14820570" }, | |
"ap-southeast-1" : {"AMI": "ami-d4fbb3a8" }, | |
"ap-southeast-2" : {"AMI": "ami-6bd41209" }, | |
"eu-central-1" : {"AMI": "ami-8b8ae7e4" }, | |
"us-east-1" : {"AMI": "ami-10e00b6d" }, | |
"us-east-2" : {"AMI": "ami-a1ffc8c4" }, | |
"us-west-1" : {"AMI": "ami-e3efe483" }, | |
"us-west-2" : {"AMI": "ami-aaf078d2" } | |
} | |
}, | |
"Resources": { | |
"KaliLinuxInstance": { | |
"Type": "AWS::EC2::Instance", | |
"Properties": { | |
"DisableApiTermination": "false", | |
"InstanceInitiatedShutdownBehavior": "stop", | |
"ImageId": { "Fn::FindInMap" : [ "KaliRegionMap", { "Ref" : "AWS::Region" }, "AMI" ] }, | |
"InstanceType": "t2.micro", | |
"KeyName": { "Ref": "ServerKeyName" }, | |
"Monitoring": "false", | |
"Tags": [{ "Key": "Name", "Value": "Kali Linux" }], | |
"NetworkInterfaces": [ { | |
"AssociatePublicIpAddress": "true", | |
"DeviceIndex": "0", | |
"GroupSet": [{ "Ref" : "securityGroup" }], | |
"SubnetId": { "Ref" : "PublicSubnet" } | |
} ] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment