Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sh /home/resources/wso/bin/wso.sh
- #!/bin/bash
- # update ubuntu
- sudo apt-get update
- # install nginx
- sudo apt-get install nginx -y
- sudo service nginx start
- #start wso2
- sh /home/resources/wso/bin/wso.sh
- data "template_file" "start" {
- template = "${file("start.tpl")}"
- }
- resource "aws_instance" "wnginx" {
- ami = "${var.instance_ami}"
- instance_type = "${var.instance_type}"
- user_data = "${data.template_file.start.rendered}"
- }
Add Comment
Please, Sign In to add comment