mobilefish

Untitled

Dec 16th, 2022 (edited)
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. {
  2. "AWSTemplateFormatVersion" : "2010-09-09",
  3.  
  4. "Description" : "Windows 291 server",
  5.  
  6. "Parameters" : {
  7. "KeyName": {
  8. "Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance",
  9. "Type": "String",
  10. "MinLength": "1",
  11. "MaxLength": "255",
  12. "AllowedPattern" : "[\\x20-\\x7E]*",
  13. "ConstraintDescription" : "can contain only ASCII characters."
  14. }
  15. },
  16.  
  17. "Mappings" : {
  18. "RegionMap" : {
  19. "eu-west-1" : { "AMI" : "ami-061b2fe9068d5ed00" }
  20. }
  21. },
  22.  
  23. "Resources" : {
  24. "Ec2Instance" : {
  25. "Type" : "AWS::EC2::Instance",
  26. "Properties" : {
  27. "InstanceType" : { "Ref" : "InstanceType" },
  28. "KeyName" : { "Ref" : "KeyName" },
  29. "ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]},
  30. "UserData" : { "Fn::Base64" : "80" }
  31. }
  32. }
  33. },
  34.  
  35. "InstanceType" : {
  36. "Description" : "WebServer EC2 instance type",
  37. "Type" : "String",
  38. "Default" : "t3a.large",
  39. "ConstraintDescription" : "must be a valid EC2 instance type."
  40. },
  41.  
  42. "Outputs" : {
  43. "InstanceId" : {
  44. "Description" : "InstanceId of the newly created EC2 instance",
  45. "Value" : { "Ref" : "Ec2Instance" }
  46. },
  47. "AZ" : {
  48. "Description" : "Availability Zone of the newly created EC2 instance",
  49. "Value" : { "Fn::GetAtt" : [ "Ec2Instance", "AvailabilityZone" ] }
  50. },
  51. "PublicIP" : {
  52. "Description" : "Public IP address of the newly created EC2 instance",
  53. "Value" : { "Fn::GetAtt" : [ "Ec2Instance", "PublicIp" ] }
  54. },
  55. "PrivateIP" : {
  56. "Description" : "Private IP address of the newly created EC2 instance",
  57. "Value" : { "Fn::GetAtt" : [ "Ec2Instance", "PrivateIp" ] }
  58. },
  59. "PublicDNS" : {
  60. "Description" : "Public DNSName of the newly created EC2 instance",
  61. "Value" : { "Fn::GetAtt" : [ "Ec2Instance", "PublicDnsName" ] }
  62. },
  63. "PrivateDNS" : {
  64. "Description" : "Private DNSName of the newly created EC2 instance",
  65. "Value" : { "Fn::GetAtt" : [ "Ec2Instance", "PrivateDnsName" ] }
  66. }
  67. }
  68. }
  69.  
Add Comment
Please, Sign In to add comment