nisanth
Thu Feb 15 2024
Redis Cache : One of the most common use cases for Redis is caching frequently accessed data to reduce the load on databases and speed up response times
soniya.rayabagi
Wed Feb 14 2024
export TF_LOG=DEBUG
this sets the TF_LOG
environment variable to DEBUG
, instructing Terraform to output detailed debug logs during its execution( Terraform apply ).unset TF_LOG
this unsets (removes) the TF_LOG
environment variable, effectively turning off debug logging for Terraform execution.soniya.rayabagi
Tue Feb 13 2024
terraform workspace show
command is used to display the name of the current workspace.terraform workspace new <name>
command is used when you want to create new workspace.terraform workspace list
command used to list all the workspaces.terraform workspace select example1
can switch between the workspaces.soniya.rayabagi
Mon Feb 12 2024
The
docker-compose up
command starts and runs all the services defined in a docker-compose.yml file, creating and starting containers.docker-compose up -d
command which starts the containers in the background and leaves them running (daemon processes) .soniya.rayabagi
Thu Feb 08 2024
"terraform init -backend-config=backend.hcl"
command initializes your Terraform directory and configures its backend according to the settings specified in the backend.hcl
file, for managing infrastructure.then , If you wish to attempt automatic migration of the state, use the command
"terraform init -migrate-state"
nisanth
Thu Feb 08 2024
Jenkins is a self-hosted CI/CD automation server, serving as an alternative to cloud-based services like GitHub Actions
ayushsrivastava
Thu Feb 08 2024
Related to Auth0 and react-auth0 sdk
To add a custom parameter to the authentication endpoint of which auth0 interacts we can pass it like this in the object
once the custom parameter is passed we can see it in
If we want to take any custom actions based on this custom parameter we can access it in Auth0
To add a custom parameter to the authentication endpoint of which auth0 interacts we can pass it like this in the object
authorizationParams: {
screen_hint: "signup",
ui_locales: "en",
custom_param: "custom_param",
},
authorizationParams
object is used in methods loginWithRedirect, withAuthenticationRequired
provided by @auth0/auth0-react
once the custom parameter is passed we can see it in
/authorize
endpoint when we open the Universal login or signup form from Auth0If we want to take any custom actions based on this custom parameter we can access it in Auth0
post login
custom actionsnisanth
Thu Feb 08 2024
The
docker build -f
command is used to specify the name of the Dockerfile to use for building a Docker image. This flag allows you to specify the path to the Dockerfile that you want to use for building the image. However, if you have a Dockerfile with a different name or located in a different directory, you can use the -f
flag followed by the path to the Dockerfile.soniya.rayabagi
Wed Feb 07 2024
Storing Terraform State in S3 with Encryption and DynamoDB Locking , instead of Storing locally :
To improve security , you can configure Terraform to store its state file in an AWS S3 bucket with encryption and use DynamoDB for state locking. This setup prevents local state file risks, enables team access, and avoids state conflicts.
To improve security , you can configure Terraform to store its state file in an AWS S3 bucket with encryption and use DynamoDB for state locking. This setup prevents local state file risks, enables team access, and avoids state conflicts.
syntax :
terraform {
backend "<BACKEND_NAME>" {
[CONFIG...]
}
}
example :
terraform {
backend "s3" {
bucket = "my-terraform-state"
key = "state/production/terraform.tfstate"
region = "us-east-1"
encrypt = true
dynamodb_table = "my-terraform-lock"
}
}
mahesh.bhosle
Tue Feb 06 2024
act
utility can be used to simulate GitHub Actions locally, for testing the GitHub workflows.To install act on Mac:[To run the jobs locally, docker must be running on the system.]brew install act
To use theact
navigate to the GitHub repo and useact -l
to list all jobs
To run any particular job:act -j job_id
To run a job on any particular platform:act -j job_id -P
Showing 20 to 22 of 71 results