Tuesday, March 12, 2024

diigo.to.shak.blogspot.dailiy. 03/12/2024

    • Ansible, Chef and Puppet are configuration management tools which means they are primarily designed to install and manage software on existing server
    • In Terraform there are certain providers that are either "Hashicorp Maintained" (AWS, Azure etc.) or "Non-Hashicorp Maintained". Below is best practice syntax for establishing providers in your Terraform, notice how there are two blocks, one for what providers are required and another for each provider specific config.
    • Terraform Variables Basics
    • Local Values
      Local values assign a name to an expression, allowing it to be used multiple times within a module without repeating it.
    • Load Order and File Structure
    • Dynamic Blocks
    • Notice how we define the iterator as port now instead of being ingress.value it is port.value. This can make dynamic blocks easier to read and understand.
    • What if you want multiple different dynamic values in one dynamic block?
    • Variables and Terraform Modules
    • Terraform Remote Backend
    • With one shared state file every time an apply is done the state file is locked so two apply processes can not be run at the same time.
      Using a remote backend for state files is the recommended process for collaborative environments. Nearly all businesses using Terraform use remote backend for state files. 
    • Setting up Easy DKIM  for a verified domain identity
      • The message must have a valid DKIM signature and passes the DKIM check.

         
      •  

        The domain specified in the DKIM signature must align (match) with the domain  in the From address.     If the domain's DMARC policy specifies strict alignment for DKIM, these domains  must match exactly (SES uses a strict DKIM policy by default).

    • Complying with DMARC through  DKIM

Posted from Diigo. The rest of my favorite links are here.

Thursday, March 7, 2024

diigo.to.shak.blogspot.dailiy. 03/07/2024

Posted from Diigo. The rest of my favorite links are here.

Wednesday, March 6, 2024

diigo.to.shak.blogspot.dailiy. 03/06/2024

Posted from Diigo. The rest of my favorite links are here.

Monday, March 4, 2024

diigo.to.shak.blogspot.dailiy. 03/04/2024

    • headers = {  'Content-Type': 'application/json',  'Authorization': 'Bearer your_token' }
    • params = {  'param1': 'value1',  'param2': 'value2' }
    • The final URL that the request is made to would look something like this:  http://example.com/api/items?param1=value1&param2=value2
    • How to Install and Switch Python Versions on Ubuntu 22.04
    • Step 1. Install Python 3.10
    • sudo apt install python3.10 -y
    • Python 3.10.6
    • We need to create symbolic links for every installed Python version, including the path of the installed Python version. Execute the following commands one by one:
    • sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1 sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.8 2
    • You can enter any number and use that Python version. For example, we choose the Python3.10 by entering the number 1
    • Adding a data source to your Terraform configurations does not create anything new; it’s just a way to query the provider’s APIs for data and to make that data available to the rest of your Terraform code. Each Terraform provider exposes a variety of data sources. For example, the AWS Provider includes data sources to look up VPC data, subnet data, AMI IDs, IP address ranges, the current user’s identity, and much more.
    • With the aws_vpc data source, the only filter you need is default = true
    • data.aws_vpc.default.id

Posted from Diigo. The rest of my favorite links are here.

Friday, March 1, 2024

diigo.to.shak.blogspot.dailiy. 03/01/2024

Posted from Diigo. The rest of my favorite links are here.

Shak.blog.notes 08/20/2024

Thinking Like an Architect - InfoQ tags: blog ...