aws --profile foo s3 ls
Month: January 2018
Fix identation all terraform scripts every directory
find . -type d -exec bash -c 'cd "$0" && terraform fmt' {} \;
Terraform import from existing configuration
Datadog
$ terraform import module.timeboard_system.datadog_timeboard.system 111xxx
SQS
$ terraform import module.resource-name.aws_sqs_queue.main https://sqs.ap-southeast-1.amazonaws.com/123xxx/xxxx
Notes:
If you cannot find the resource address, try:
$ terraform plan
Renew ssl certificate let’s encrypt with nginx
When you hate to see your website has ssl invalid certificate and it crossed out like this:
That means you need to update ssl certificate, in this case I use let’s encrypt. I just want to get rid of the invalid ssl certificate logo that make your website looks very unprofessional 🙂
Navigate to path where you place let’s encrypt directory:
$ cd ~/letsencrypt ~/letsencrypt$ sudo ./certbot-auto renew
Finally, restart the nginx, This is using centos, so it’s gonna be like this:
$ sudo /etc/init.d/nginx restart
Done