Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "AWSTemplateFormatVersion" : "2010-09-09",
- "Description" : "Windows 291 server",
- "Parameters" : {
- "KeyName": {
- "Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance",
- "Type": "String",
- "MinLength": "1",
- "MaxLength": "255",
- "AllowedPattern" : "[\\x20-\\x7E]*",
- "ConstraintDescription" : "can contain only ASCII characters."
- }
- },
- "Mappings" : {
- "RegionMap" : {
- "eu-west-1" : { "AMI" : "ami-061b2fe9068d5ed00" }
- }
- },
- "Resources" : {
- "Ec2Instance" : {
- "Type" : "AWS::EC2::Instance",
- "Properties" : {
- "InstanceType" : { "Ref" : "InstanceType" },
- "KeyName" : { "Ref" : "KeyName" },
- "ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
- "UserData" : { "Fn::Base64" : "80" }
- }
- }
- },
- "InstanceType" : {
- "Description" : "WebServer EC2 instance type",
- "Type" : "String",
- "Default" : "t3a.large",
- "ConstraintDescription" : "must be a valid EC2 instance type."
- },
- "Outputs" : {
- "InstanceId" : {
- "Description" : "InstanceId of the newly created EC2 instance",
- "Value" : { "Ref" : "Ec2Instance" }
- },
- "AZ" : {
- "Description" : "Availability Zone of the newly created EC2 instance",
- "Value" : { "Fn::GetAtt" : [ "Ec2Instance", "AvailabilityZone" ] }
- },
- "PublicIP" : {
- "Description" : "Public IP address of the newly created EC2 instance",
- "Value" : { "Fn::GetAtt" : [ "Ec2Instance", "PublicIp" ] }
- },
- "PrivateIP" : {
- "Description" : "Private IP address of the newly created EC2 instance",
- "Value" : { "Fn::GetAtt" : [ "Ec2Instance", "PrivateIp" ] }
- },
- "PublicDNS" : {
- "Description" : "Public DNSName of the newly created EC2 instance",
- "Value" : { "Fn::GetAtt" : [ "Ec2Instance", "PublicDnsName" ] }
- },
- "PrivateDNS" : {
- "Description" : "Private DNSName of the newly created EC2 instance",
- "Value" : { "Fn::GetAtt" : [ "Ec2Instance", "PrivateDnsName" ] }
- }
- }
- }
Add Comment
Please, Sign In to add comment