Size: a a a

2020 March 03

NF

Nelson Florez in terraform_ru
instance goes up but does not install apache
источник

NF

Nelson Florez in terraform_ru
***
источник

NF

Nelson Florez in terraform_ru
script content
источник

NF

Nelson Florez in terraform_ru
#!/bin/bash
yum install -y httpd24 php72 mysql57-server php72-mysqlnd
service httpd start
chkconfig httpd on
источник

IM

Iurii Medvedev in terraform_ru
Nelson Florez
instance goes up but does not install apache
Please check cloud init logs
источник

F|

Farhan | Smart Sapien in terraform_ru
Hello Everyone, I'm trying to deploy an example script on aws instance using terraform but is there way to check if that script successfully executed or not?
источник

F|

Farhan | Smart Sapien in terraform_ru
I ran this script but terraform didn't give me any error while executing it

#!/bin/bash
echo "Hello, World" > index.html
ajsdhsjd
источник

VT

Victor Tur in terraform_ru
Check /var/log/cloud-init-output,there is an outputs from cloud init
источник

F|

Farhan | Smart Sapien in terraform_ru
Victor Tur
Check /var/log/cloud-init-output,there is an outputs from cloud init
Is it need to be configured by terraform before checking it?
источник

F|

Farhan | Smart Sapien in terraform_ru
Ans. Not needed
источник

F|

Farhan | Smart Sapien in terraform_ru
It does giving me log but still not useful for automate testing
источник

i

inqfen in terraform_ru
Farhan | Smart Sapien
It does giving me log but still not useful for automate testing
You need another tool for tests, you can start this in terraform
источник

i

inqfen in terraform_ru
As local exec for example
источник

F|

Farhan | Smart Sapien in terraform_ru
inqfen
You need another tool for tests, you can start this in terraform
Thanks, I think its the only best way
источник

F|

Farhan | Smart Sapien in terraform_ru
inqfen
As local exec for example
But there still be no guarantee that it will work on remote instance
источник

F|

Farhan | Smart Sapien in terraform_ru
remote-exec can do that after running local-exec
источник

i

inqfen in terraform_ru
Farhan | Smart Sapien
But there still be no guarantee that it will work on remote instance
You can connect to remote server thru ansible or such software
источник

i

inqfen in terraform_ru
And in ansible playbook you can execute pack of tests, not only for logs
источник

i

inqfen in terraform_ru
Also you can use specialized frameworks
источник

i

inqfen in terraform_ru
источник