Posts

Terraform frequent commands

$ cat /tmp/tfhelp | awk '{$1=$1;print}' | awk -F ' ' '{$1=""; print $0}' | sort -u cat terraform cat /usr/local/bin/terraform cd .terraform/modules/cell_shared.databricks_email_notification/ cd .terraform/modules/cell_shared.databricks_email_notification/modules history | grep terraform > /tmp/tfhelp rm -rf .terraform && terraform init rm -rf .terraform && terraform init && terraform plan -out tf.plan rm -rf .terraform && terraform init && terraform plan -out tf.plan | tee -a out.plan rm -rf .terraform && terraform init && terraform plan -out tf.plan | tee /tmp/wfplan rm -rf .terraform && terraform init && terraform plan -out tf.plan | tee /tmp/wfplan2 terraform apply terraform apply "tf.plan" terraform apply tf.plan terraform apply "tf.plan" terraform apply "tf.plan" terraform apply "tf.plan"terraform apply "tf.plan...

Hashicorp App Delivery flow and Tools

The workflow A) DEVELOPMENT: First the developer develops the App B) TESTING: Once the app is developed, we then move to the next stage of Testing TDD is complete C) STATIC Code Analysis: The next stage is Packaging. This is where we come to the stage of  using  1) Configuraiton Management   2) Security   3) Compliance Take all of the above and transform the code into something, that is a production worthy image. Once we have packaged our application, then how do we do provisioning 1) Day 1 - nothing running, where we go from nothing to something 2) Day 2 - how do we continue to Evolve ? Day2 challenge is much mor eimportant and challenging because we are in production. Our Next challenge is Deployment How do we take an application that we manage and Deploy on the infrastructure we just provisioned The Goal here is two fold Once we do our deployment, now we have to monitor it to make sure it stays up and running Monitoring is its...

Terraform - Ec2 instance

Terraform is configured using a high-level, expressive configuration syntax to describe the resources that make up your infrastructure. First create the main.tf file Then we see the following  main.tf workbook:terraform workbookcode$ pwd /Users/workbookcode/repos/terraform workbook-ltm1:terraform workbookcode$ subl . workbook-ltm1:terraform workbookcode$ pwd /Users/workbookcode/repos/terraform workbook-ltm1:terraform workbookcode$ terraform init There are some problems with the configuration, described below. The Terraform configuration must be valid before initialization so that Terraform can determine which modules and providers need to be installed. Error: Argument or block definition required   on main.tf line 13, in resource "aws_instance" "web": An argument or block definition is required here. workbook-ltm1:terraform workbookcode$ terraform init Initializing the backend... Initializing provider plugins... - Checking for available provider plugins... - Downloa...