Guest User

Untitled

a guest
Oct 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. sh /home/resources/wso/bin/wso.sh
  2.  
  3. #!/bin/bash
  4.  
  5. # update ubuntu
  6. sudo apt-get update
  7. # install nginx
  8. sudo apt-get install nginx -y
  9. sudo service nginx start
  10.  
  11. #start wso2
  12. sh /home/resources/wso/bin/wso.sh
  13.  
  14. data "template_file" "start" {
  15. template = "${file("start.tpl")}"
  16. }
  17.  
  18. resource "aws_instance" "wnginx" {
  19. ami = "${var.instance_ami}"
  20. instance_type = "${var.instance_type}"
  21. user_data = "${data.template_file.start.rendered}"
  22. }
Add Comment
Please, Sign In to add comment