Advertisement
uopspop

Untitled

Aug 8th, 2018
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.42 KB | None | 0 0
  1. {
  2. "AWSTemplateFormatVersion": "2010-09-09",
  3. "Parameters": {
  4. "KeyPairName": {
  5. "Description": "You must have your public key on your aws - ec2 - network & security - key pairs section",
  6. "Type": "String"
  7. }
  8. },
  9. "Resources": {
  10. "vpcd3adf3aa": {
  11. "Type": "AWS::EC2::VPC",
  12. "Properties": {
  13. "CidrBlock": "10.99.0.0/16",
  14. "InstanceTenancy": "default",
  15. "EnableDnsSupport": "true",
  16. "EnableDnsHostnames": "false",
  17. "Tags": [
  18. {
  19. "Key": "Name",
  20. "Value": "st-cloudformation"
  21. }
  22. ]
  23. },
  24. "Metadata": {
  25. "AWS::CloudFormation::Designer": {
  26. "id": "100906b8-589d-45d3-9633-4eb9e44ddbaf"
  27. }
  28. }
  29. },
  30. "subnet1b9e3a50": {
  31. "Type": "AWS::EC2::Subnet",
  32. "Properties": {
  33. "CidrBlock": "10.99.0.0/24",
  34. "AvailabilityZone": "us-west-2b",
  35. "VpcId": {
  36. "Ref": "vpcd3adf3aa"
  37. },
  38. "Tags": [
  39. {
  40. "Key": "Name",
  41. "Value": "st-cloudformation"
  42. }
  43. ]
  44. },
  45. "Metadata": {
  46. "AWS::CloudFormation::Designer": {
  47. "id": "80af6f4c-1d4d-4f66-8237-11fbaa5d8061"
  48. }
  49. }
  50. },
  51. "igw14057072": {
  52. "Type": "AWS::EC2::InternetGateway",
  53. "Properties": {
  54. "Tags": [
  55. {
  56. "Key": "Name",
  57. "Value": "st-cloudformation"
  58. }
  59. ]
  60. },
  61. "Metadata": {
  62. "AWS::CloudFormation::Designer": {
  63. "id": "6c215780-cc5d-4f7c-9029-f833506b0ab6"
  64. }
  65. }
  66. },
  67. "acl80f553f8": {
  68. "Type": "AWS::EC2::NetworkAcl",
  69. "Properties": {
  70. "VpcId": {
  71. "Ref": "vpcd3adf3aa"
  72. },
  73. "Tags": [
  74. {
  75. "Key": "Name",
  76. "Value": "st-cloudformation"
  77. }
  78. ]
  79. },
  80. "Metadata": {
  81. "AWS::CloudFormation::Designer": {
  82. "id": "cda52d9d-e7bd-468e-91d9-d51ffa33abd1"
  83. }
  84. }
  85. },
  86. "rtb41104239": {
  87. "Type": "AWS::EC2::RouteTable",
  88. "Properties": {
  89. "VpcId": {
  90. "Ref": "vpcd3adf3aa"
  91. },
  92. "Tags": [
  93. {
  94. "Key": "Name",
  95. "Value": "st-cloudformation-public"
  96. }
  97. ]
  98. },
  99. "Metadata": {
  100. "AWS::CloudFormation::Designer": {
  101. "id": "c93e3089-9729-4403-b730-6737ff99ad2a"
  102. }
  103. }
  104. },
  105. "instancei012c21b7d8e198887": {
  106. "Type": "AWS::EC2::Instance",
  107. "Properties": {
  108. "DisableApiTermination": "false",
  109. "InstanceInitiatedShutdownBehavior": "stop",
  110. "ImageId": "ami-223f945a",
  111. "InstanceType": "t2.micro",
  112. "KeyName": {
  113. "Ref": "KeyPairName"
  114. },
  115. "UserData": { "Fn::Base64" : { "Fn::Join" : ["", [
  116. "#!/bin/bash\n",
  117. "cd /home/ec2-user/\n"
  118. ]]}},
  119. "Monitoring": "false",
  120. "Tags": [
  121. {
  122. "Key": "Name",
  123. "Value": "st-cloudformation"
  124. }
  125. ],
  126. "NetworkInterfaces": [
  127. {
  128. "DeleteOnTermination": "true",
  129. "Description": "Primary network interface",
  130. "DeviceIndex": 0,
  131. "SubnetId": {
  132. "Ref": "subnet1b9e3a50"
  133. },
  134. "PrivateIpAddresses": [
  135. {
  136. "PrivateIpAddress": "10.99.0.151",
  137. "Primary": "true"
  138. }
  139. ],
  140. "GroupSet": [
  141. {
  142. "Ref": "sgstcloudformation"
  143. }
  144. ],
  145. "AssociatePublicIpAddress": "true"
  146. }
  147. ]
  148. },
  149. "Metadata": {
  150. "AWS::CloudFormation::Designer": {
  151. "id": "5467a301-e1f2-4320-93d1-c8c93b84306f"
  152. }
  153. }
  154. },
  155. "sgstcloudformation": {
  156. "Type": "AWS::EC2::SecurityGroup",
  157. "Properties": {
  158. "GroupDescription": "launch-wizard-37 created 2018-04-17T19:55:21.240+08:00",
  159. "VpcId": {
  160. "Ref": "vpcd3adf3aa"
  161. },
  162. "Tags": [
  163. {
  164. "Key": "Name",
  165. "Value": "st-cloudformation"
  166. }
  167. ]
  168. },
  169. "Metadata": {
  170. "AWS::CloudFormation::Designer": {
  171. "id": "c8ac8be7-0b4a-4496-a8d3-1a54e2e42d5a"
  172. }
  173. }
  174. },
  175. "acl1": {
  176. "Type": "AWS::EC2::NetworkAclEntry",
  177. "Properties": {
  178. "CidrBlock": "0.0.0.0/0",
  179. "Egress": "true",
  180. "Protocol": "-1",
  181. "RuleAction": "allow",
  182. "RuleNumber": "100",
  183. "NetworkAclId": {
  184. "Ref": "acl80f553f8"
  185. }
  186. },
  187. "Metadata": {
  188. "AWS::CloudFormation::Designer": {
  189. "id": "811c3c9c-8e1d-413a-b908-22829b94aa85"
  190. }
  191. }
  192. },
  193. "acl2": {
  194. "Type": "AWS::EC2::NetworkAclEntry",
  195. "Properties": {
  196. "CidrBlock": "0.0.0.0/0",
  197. "Protocol": "-1",
  198. "RuleAction": "allow",
  199. "RuleNumber": "100",
  200. "NetworkAclId": {
  201. "Ref": "acl80f553f8"
  202. }
  203. },
  204. "Metadata": {
  205. "AWS::CloudFormation::Designer": {
  206. "id": "1b8e9c00-552b-421b-bbd6-3d8773821d7e"
  207. }
  208. }
  209. },
  210. "subnetacl1": {
  211. "Type": "AWS::EC2::SubnetNetworkAclAssociation",
  212. "Properties": {
  213. "NetworkAclId": {
  214. "Ref": "acl80f553f8"
  215. },
  216. "SubnetId": {
  217. "Ref": "subnet1b9e3a50"
  218. }
  219. },
  220. "Metadata": {
  221. "AWS::CloudFormation::Designer": {
  222. "id": "455b97eb-821c-4699-a909-5fd0b44cabbd"
  223. }
  224. }
  225. },
  226. "route1": {
  227. "Type": "AWS::EC2::Route",
  228. "Properties": {
  229. "DestinationCidrBlock": "0.0.0.0/0",
  230. "RouteTableId": {
  231. "Ref": "rtb41104239"
  232. },
  233. "GatewayId": {
  234. "Ref": "igw14057072"
  235. }
  236. },
  237. "Metadata": {
  238. "AWS::CloudFormation::Designer": {
  239. "id": "0b13684f-bf67-44c6-a0ce-d788f1544e49"
  240. }
  241. }
  242. },
  243. "SubnetRouteTableAssociation008": {
  244. "Type": "AWS::EC2::SubnetRouteTableAssociation",
  245. "Properties": {
  246. "RouteTableId": {
  247. "Ref": "rtb41104239"
  248. },
  249. "SubnetId": {
  250. "Ref": "subnet1b9e3a50"
  251. }
  252. },
  253. "Metadata": {
  254. "AWS::CloudFormation::Designer": {
  255. "id": "8db514ed-7e5f-42db-868e-e430d15b5bb8"
  256. }
  257. }
  258. },
  259. "ingress1": {
  260. "Type": "AWS::EC2::SecurityGroupIngress",
  261. "Properties": {
  262. "GroupId": {
  263. "Ref": "sgstcloudformation"
  264. },
  265. "IpProtocol": "tcp",
  266. "FromPort": "22",
  267. "ToPort": "22",
  268. "CidrIp": "0.0.0.0/0"
  269. }
  270. },
  271. "ingress2": {
  272. "Type": "AWS::EC2::SecurityGroupIngress",
  273. "Properties": {
  274. "GroupId": {
  275. "Ref": "sgstcloudformation"
  276. },
  277. "IpProtocol": "tcp",
  278. "FromPort": "8080",
  279. "ToPort": "8080",
  280. "CidrIp": "0.0.0.0/0"
  281. }
  282. },
  283. "egress1": {
  284. "Type": "AWS::EC2::SecurityGroupEgress",
  285. "Properties": {
  286. "GroupId": {
  287. "Ref": "sgstcloudformation"
  288. },
  289. "IpProtocol": "-1",
  290. "CidrIp": "0.0.0.0/0"
  291. }
  292. },
  293. "EC2DHCP2HAZ9": {
  294. "Type": "AWS::EC2::DHCPOptions",
  295. "Properties": {
  296. "DomainName": "us-west-2.compute.internal",
  297. "DomainNameServers": [
  298. "AmazonProvidedDNS"
  299. ]
  300. },
  301. "Metadata": {
  302. "AWS::CloudFormation::Designer": {
  303. "id": "1f2155f4-d323-494e-b157-1e0a8c2f338c"
  304. }
  305. }
  306. },
  307. "EC2VPCD1WN10": {
  308. "Type": "AWS::EC2::VPCDHCPOptionsAssociation",
  309. "Properties": {
  310. "DhcpOptionsId": {
  311. "Ref": "EC2DHCP2HAZ9"
  312. },
  313. "VpcId": {
  314. "Ref": "vpcd3adf3aa"
  315. }
  316. },
  317. "Metadata": {
  318. "AWS::CloudFormation::Designer": {
  319. "id": "4e13c20d-0335-44e7-a6f4-d8a27ee8642c"
  320. }
  321. }
  322. },
  323. "EC2VPCG4ESOD": {
  324. "Type": "AWS::EC2::VPCGatewayAttachment",
  325. "Properties": {
  326. "VpcId": {
  327. "Ref": "vpcd3adf3aa"
  328. },
  329. "InternetGatewayId": {
  330. "Ref": "igw14057072"
  331. }
  332. },
  333. "Metadata": {
  334. "AWS::CloudFormation::Designer": {
  335. "id": "16e7a5e4-f13b-4591-b6c8-3722c22f229f"
  336. }
  337. }
  338. }
  339. },
  340. "Description": "st-formation",
  341. "Metadata": {
  342. "AWS::CloudFormation::Designer": {
  343. "6c215780-cc5d-4f7c-9029-f833506b0ab6": {
  344. "size": {
  345. "width": 60,
  346. "height": 60
  347. },
  348. "position": {
  349. "x": -130,
  350. "y": 240
  351. },
  352. "z": 0,
  353. "embeds": []
  354. },
  355. "100906b8-589d-45d3-9633-4eb9e44ddbaf": {
  356. "size": {
  357. "width": 690,
  358. "height": 690
  359. },
  360. "position": {
  361. "x": -10,
  362. "y": 80
  363. },
  364. "z": 1,
  365. "embeds": [
  366. "c93e3089-9729-4403-b730-6737ff99ad2a",
  367. "80af6f4c-1d4d-4f66-8237-11fbaa5d8061",
  368. "cda52d9d-e7bd-468e-91d9-d51ffa33abd1"
  369. ]
  370. },
  371. "c8ac8be7-0b4a-4496-a8d3-1a54e2e42d5a": {
  372. "size": {
  373. "width": 60,
  374. "height": 60
  375. },
  376. "position": {
  377. "x": -130,
  378. "y": 540
  379. },
  380. "z": 0,
  381. "embeds": [],
  382. "iscontainedinside": [
  383. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  384. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  385. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  386. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  387. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  388. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  389. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  390. "100906b8-589d-45d3-9633-4eb9e44ddbaf"
  391. ]
  392. },
  393. "c93e3089-9729-4403-b730-6737ff99ad2a": {
  394. "size": {
  395. "width": 240,
  396. "height": 240
  397. },
  398. "position": {
  399. "x": 400,
  400. "y": 160
  401. },
  402. "z": 2,
  403. "parent": "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  404. "embeds": [
  405. "0b13684f-bf67-44c6-a0ce-d788f1544e49"
  406. ],
  407. "iscontainedinside": [
  408. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  409. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  410. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  411. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  412. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  413. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  414. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  415. "100906b8-589d-45d3-9633-4eb9e44ddbaf"
  416. ]
  417. },
  418. "0b13684f-bf67-44c6-a0ce-d788f1544e49": {
  419. "size": {
  420. "width": 60,
  421. "height": 60
  422. },
  423. "position": {
  424. "x": 520,
  425. "y": 170
  426. },
  427. "z": 3,
  428. "parent": "c93e3089-9729-4403-b730-6737ff99ad2a",
  429. "embeds": [],
  430. "isassociatedwith": [
  431. "6c215780-cc5d-4f7c-9029-f833506b0ab6"
  432. ],
  433. "iscontainedinside": [
  434. "c93e3089-9729-4403-b730-6737ff99ad2a",
  435. "c93e3089-9729-4403-b730-6737ff99ad2a",
  436. "c93e3089-9729-4403-b730-6737ff99ad2a",
  437. "c93e3089-9729-4403-b730-6737ff99ad2a",
  438. "c93e3089-9729-4403-b730-6737ff99ad2a",
  439. "c93e3089-9729-4403-b730-6737ff99ad2a",
  440. "c93e3089-9729-4403-b730-6737ff99ad2a",
  441. "c93e3089-9729-4403-b730-6737ff99ad2a"
  442. ]
  443. },
  444. "cda52d9d-e7bd-468e-91d9-d51ffa33abd1": {
  445. "size": {
  446. "width": 330,
  447. "height": 240
  448. },
  449. "position": {
  450. "x": 40,
  451. "y": 150
  452. },
  453. "z": 2,
  454. "parent": "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  455. "embeds": [
  456. "1b8e9c00-552b-421b-bbd6-3d8773821d7e",
  457. "811c3c9c-8e1d-413a-b908-22829b94aa85"
  458. ],
  459. "iscontainedinside": [
  460. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  461. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  462. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  463. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  464. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  465. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  466. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  467. "100906b8-589d-45d3-9633-4eb9e44ddbaf"
  468. ]
  469. },
  470. "1b8e9c00-552b-421b-bbd6-3d8773821d7e": {
  471. "size": {
  472. "width": 60,
  473. "height": 60
  474. },
  475. "position": {
  476. "x": 70,
  477. "y": 210
  478. },
  479. "z": 3,
  480. "parent": "cda52d9d-e7bd-468e-91d9-d51ffa33abd1",
  481. "embeds": [],
  482. "iscontainedinside": [
  483. "cda52d9d-e7bd-468e-91d9-d51ffa33abd1",
  484. "cda52d9d-e7bd-468e-91d9-d51ffa33abd1",
  485. "cda52d9d-e7bd-468e-91d9-d51ffa33abd1",
  486. "cda52d9d-e7bd-468e-91d9-d51ffa33abd1",
  487. "cda52d9d-e7bd-468e-91d9-d51ffa33abd1",
  488. "cda52d9d-e7bd-468e-91d9-d51ffa33abd1",
  489. "cda52d9d-e7bd-468e-91d9-d51ffa33abd1",
  490. "cda52d9d-e7bd-468e-91d9-d51ffa33abd1"
  491. ]
  492. },
  493. "811c3c9c-8e1d-413a-b908-22829b94aa85": {
  494. "size": {
  495. "width": 60,
  496. "height": 60
  497. },
  498. "position": {
  499. "x": 190,
  500. "y": 210
  501. },
  502. "z": 3,
  503. "parent": "cda52d9d-e7bd-468e-91d9-d51ffa33abd1",
  504. "embeds": [],
  505. "iscontainedinside": [
  506. "cda52d9d-e7bd-468e-91d9-d51ffa33abd1",
  507. "cda52d9d-e7bd-468e-91d9-d51ffa33abd1",
  508. "cda52d9d-e7bd-468e-91d9-d51ffa33abd1",
  509. "cda52d9d-e7bd-468e-91d9-d51ffa33abd1",
  510. "cda52d9d-e7bd-468e-91d9-d51ffa33abd1",
  511. "cda52d9d-e7bd-468e-91d9-d51ffa33abd1",
  512. "cda52d9d-e7bd-468e-91d9-d51ffa33abd1",
  513. "cda52d9d-e7bd-468e-91d9-d51ffa33abd1"
  514. ]
  515. },
  516. "80af6f4c-1d4d-4f66-8237-11fbaa5d8061": {
  517. "size": {
  518. "width": 240,
  519. "height": 240
  520. },
  521. "position": {
  522. "x": 40,
  523. "y": 500
  524. },
  525. "z": 2,
  526. "parent": "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  527. "embeds": [
  528. "5467a301-e1f2-4320-93d1-c8c93b84306f"
  529. ],
  530. "iscontainedinside": [
  531. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  532. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  533. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  534. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  535. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  536. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  537. "100906b8-589d-45d3-9633-4eb9e44ddbaf",
  538. "100906b8-589d-45d3-9633-4eb9e44ddbaf"
  539. ]
  540. },
  541. "8db514ed-7e5f-42db-868e-e430d15b5bb8": {
  542. "source": {
  543. "id": "c93e3089-9729-4403-b730-6737ff99ad2a"
  544. },
  545. "target": {
  546. "id": "80af6f4c-1d4d-4f66-8237-11fbaa5d8061"
  547. },
  548. "z": 2
  549. },
  550. "455b97eb-821c-4699-a909-5fd0b44cabbd": {
  551. "source": {
  552. "id": "cda52d9d-e7bd-468e-91d9-d51ffa33abd1"
  553. },
  554. "target": {
  555. "id": "80af6f4c-1d4d-4f66-8237-11fbaa5d8061"
  556. },
  557. "z": 2
  558. },
  559. "5467a301-e1f2-4320-93d1-c8c93b84306f": {
  560. "size": {
  561. "width": 60,
  562. "height": 60
  563. },
  564. "position": {
  565. "x": 70,
  566. "y": 560
  567. },
  568. "z": 3,
  569. "parent": "80af6f4c-1d4d-4f66-8237-11fbaa5d8061",
  570. "embeds": [],
  571. "iscontainedinside": [
  572. "80af6f4c-1d4d-4f66-8237-11fbaa5d8061",
  573. "80af6f4c-1d4d-4f66-8237-11fbaa5d8061",
  574. "80af6f4c-1d4d-4f66-8237-11fbaa5d8061",
  575. "80af6f4c-1d4d-4f66-8237-11fbaa5d8061",
  576. "80af6f4c-1d4d-4f66-8237-11fbaa5d8061",
  577. "80af6f4c-1d4d-4f66-8237-11fbaa5d8061",
  578. "80af6f4c-1d4d-4f66-8237-11fbaa5d8061",
  579. "80af6f4c-1d4d-4f66-8237-11fbaa5d8061"
  580. ]
  581. },
  582. "1f2155f4-d323-494e-b157-1e0a8c2f338c": {
  583. "size": {
  584. "width": 60,
  585. "height": 60
  586. },
  587. "position": {
  588. "x": -120,
  589. "y": 140
  590. },
  591. "z": 0,
  592. "embeds": []
  593. },
  594. "4e13c20d-0335-44e7-a6f4-d8a27ee8642c": {
  595. "source": {
  596. "id": "100906b8-589d-45d3-9633-4eb9e44ddbaf"
  597. },
  598. "target": {
  599. "id": "1f2155f4-d323-494e-b157-1e0a8c2f338c"
  600. },
  601. "z": 2
  602. },
  603. "16e7a5e4-f13b-4591-b6c8-3722c22f229f": {
  604. "source": {
  605. "id": "100906b8-589d-45d3-9633-4eb9e44ddbaf"
  606. },
  607. "target": {
  608. "id": "6c215780-cc5d-4f7c-9029-f833506b0ab6"
  609. },
  610. "z": 2
  611. }
  612. }
  613. }
  614. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement