Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/janaom/terraform_ansible_aws

terraform | ansible code for aws task
https://github.com/janaom/terraform_ansible_aws

Last synced: about 1 month ago
JSON representation

terraform | ansible code for aws task

Awesome Lists containing this project

README

        

# terraform_aws
terraform code for the AWS task

The #terraform fmt command is used to rewrite Terraform configuration files to a canonical format and style.

If there is an error, run:
#terraform state list | grep null
#terraform taint null_resource.grafana_update[0]
#terraform apply -auto-approve

sudo vi /etc/ansible/hosts -> to add
"[hosts]
localhost
[hosts:vars]
ansible_connection=local
ansible_python_interpreter=/usr/bin/python3"

sudo vi /etc/ansible/ansible.cfg -> to add "host_key_checking = False"

sudo systemctl status grafana -> to check if grafana was removed

aws ec2 wait instance-status-ok --instance-ids i-[AMI] --region [region]

ansible-playbook -i aws_hosts --private-key /home/jana/.ssh/id_rsa playbooks/main.playbook.yml

openssl pkcs8 -topk8 -inform PEM -outform PEM -in xxx.pem -out converted-github-app.pem -norcypt -> jenkins will understand